OSDN Git Service

configure.in: Respect LDFLAGS environment variable if passed into configure
[android-x86/external-e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 E2FSPROGS_YEAR
654 E2FSPROGS_MONTH
655 E2FSPROGS_DAY
656 E2FSPROGS_VERSION
657 E2FSPROGS_PKGVER
658 build
659 build_cpu
660 build_vendor
661 build_os
662 host
663 host_cpu
664 host_vendor
665 host_os
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CPP
674 LD
675 GREP
676 EGREP
677 LINUX_INCLUDE
678 MAINTAINER_CMT
679 HTREE_CMT
680 ELF_CMT
681 BSDLIB_CMT
682 PROFILE_CMT
683 CHECKER_CMT
684 LIB_EXT
685 STATIC_LIB_EXT
686 PROFILED_LIB_EXT
687 DEBUGFS_CMT
688 IMAGER_CMT
689 RESIZER_CMT
690 FSCK_PROG
691 FSCK_MAN
692 E2INITRD_PROG
693 E2INITRD_MAN
694 PKG_CONFIG
695 DEVMAPPER_REQ
696 DEVMAPPER_PC_LIBS
697 DEVMAPPER_LIBS
698 STATIC_DEVMAPPER_LIBS
699 STATIC_BLKID_DEVMAPPER_LIBS
700 UUIDD_CMT
701 GETTEXT_PACKAGE
702 PACKAGE
703 VERSION
704 SET_MAKE
705 INSTALL_PROGRAM
706 INSTALL_SCRIPT
707 INSTALL_DATA
708 MKINSTALLDIRS
709 USE_NLS
710 MSGFMT
711 GMSGFMT
712 XGETTEXT
713 MSGMERGE
714 RANLIB
715 ALLOCA
716 GLIBC21
717 HAVE_POSIX_PRINTF
718 HAVE_ASPRINTF
719 HAVE_SNPRINTF
720 HAVE_WPRINTF
721 LIBICONV
722 LTLIBICONV
723 INTLBISON
724 BUILD_INCLUDED_LIBINTL
725 USE_INCLUDED_LIBINTL
726 CATOBJEXT
727 DATADIRNAME
728 INSTOBJEXT
729 GENCAT
730 INTLOBJS
731 INTL_LIBTOOL_SUFFIX_PREFIX
732 INTLLIBS
733 LIBINTL
734 LTLIBINTL
735 POSUB
736 BINARY_TYPE
737 LN
738 LN_S
739 MV
740 CP
741 RM
742 CHMOD
743 AWK
744 SED
745 PERL
746 LDCONFIG
747 AR
748 STRIP
749 MAKEINFO
750 BUILD_CC
751 SIZEOF_SHORT
752 SIZEOF_INT
753 SIZEOF_LONG
754 SIZEOF_LONG_LONG
755 SOCKET_LIB
756 DLOPEN_LIB
757 UNI_DIFF_OPTS
758 LINUX_CMT
759 CYGWIN_CMT
760 UNIX_CMT
761 root_prefix
762 root_bindir
763 root_sbindir
764 root_libdir
765 root_sysconfdir
766 LDFLAG_STATIC
767 SS_DIR
768 ET_DIR
769 DO_TEST_SUITE
770 INTL_FLAGS
771 BUILD_CFLAGS
772 BUILD_LDFLAGS
773 LIBOBJS
774 LTLIBOBJS'
775 ac_subst_files='MCONFIG
776 MAKEFILE_ELF
777 MAKEFILE_BSDLIB
778 MAKEFILE_PROFILE
779 MAKEFILE_CHECKER
780 MAKEFILE_LIBRARY
781 ASM_TYPES_HEADER
782 PUBLIC_CONFIG_HEADER'
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 PKG_CONFIG'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845   # If the previous option needs an argument, assign it.
846   if test -n "$ac_prev"; then
847     eval $ac_prev=\$ac_option
848     ac_prev=
849     continue
850   fi
851
852   case $ac_option in
853   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854   *)    ac_optarg=yes ;;
855   esac
856
857   # Accept the important Cygnus configure options, so we can diagnose typos.
858
859   case $ac_dashdash$ac_option in
860   --)
861     ac_dashdash=yes ;;
862
863   -bindir | --bindir | --bindi | --bind | --bin | --bi)
864     ac_prev=bindir ;;
865   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866     bindir=$ac_optarg ;;
867
868   -build | --build | --buil | --bui | --bu)
869     ac_prev=build_alias ;;
870   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871     build_alias=$ac_optarg ;;
872
873   -cache-file | --cache-file | --cache-fil | --cache-fi \
874   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875     ac_prev=cache_file ;;
876   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878     cache_file=$ac_optarg ;;
879
880   --config-cache | -C)
881     cache_file=config.cache ;;
882
883   -datadir | --datadir | --datadi | --datad)
884     ac_prev=datadir ;;
885   -datadir=* | --datadir=* | --datadi=* | --datad=*)
886     datadir=$ac_optarg ;;
887
888   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889   | --dataroo | --dataro | --datar)
890     ac_prev=datarootdir ;;
891   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893     datarootdir=$ac_optarg ;;
894
895   -disable-* | --disable-*)
896     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900    { (exit 1); exit 1; }; }
901     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902     eval enable_$ac_feature=no ;;
903
904   -docdir | --docdir | --docdi | --doc | --do)
905     ac_prev=docdir ;;
906   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907     docdir=$ac_optarg ;;
908
909   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910     ac_prev=dvidir ;;
911   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912     dvidir=$ac_optarg ;;
913
914   -enable-* | --enable-*)
915     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916     # Reject names that are not valid shell variable names.
917     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919    { (exit 1); exit 1; }; }
920     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921     eval enable_$ac_feature=\$ac_optarg ;;
922
923   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925   | --exec | --exe | --ex)
926     ac_prev=exec_prefix ;;
927   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929   | --exec=* | --exe=* | --ex=*)
930     exec_prefix=$ac_optarg ;;
931
932   -gas | --gas | --ga | --g)
933     # Obsolete; use --with-gas.
934     with_gas=yes ;;
935
936   -help | --help | --hel | --he | -h)
937     ac_init_help=long ;;
938   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939     ac_init_help=recursive ;;
940   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941     ac_init_help=short ;;
942
943   -host | --host | --hos | --ho)
944     ac_prev=host_alias ;;
945   -host=* | --host=* | --hos=* | --ho=*)
946     host_alias=$ac_optarg ;;
947
948   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949     ac_prev=htmldir ;;
950   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951   | --ht=*)
952     htmldir=$ac_optarg ;;
953
954   -includedir | --includedir | --includedi | --included | --include \
955   | --includ | --inclu | --incl | --inc)
956     ac_prev=includedir ;;
957   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958   | --includ=* | --inclu=* | --incl=* | --inc=*)
959     includedir=$ac_optarg ;;
960
961   -infodir | --infodir | --infodi | --infod | --info | --inf)
962     ac_prev=infodir ;;
963   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964     infodir=$ac_optarg ;;
965
966   -libdir | --libdir | --libdi | --libd)
967     ac_prev=libdir ;;
968   -libdir=* | --libdir=* | --libdi=* | --libd=*)
969     libdir=$ac_optarg ;;
970
971   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972   | --libexe | --libex | --libe)
973     ac_prev=libexecdir ;;
974   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975   | --libexe=* | --libex=* | --libe=*)
976     libexecdir=$ac_optarg ;;
977
978   -localedir | --localedir | --localedi | --localed | --locale)
979     ac_prev=localedir ;;
980   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981     localedir=$ac_optarg ;;
982
983   -localstatedir | --localstatedir | --localstatedi | --localstated \
984   | --localstate | --localstat | --localsta | --localst | --locals)
985     ac_prev=localstatedir ;;
986   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988     localstatedir=$ac_optarg ;;
989
990   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991     ac_prev=mandir ;;
992   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993     mandir=$ac_optarg ;;
994
995   -nfp | --nfp | --nf)
996     # Obsolete; use --without-fp.
997     with_fp=no ;;
998
999   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000   | --no-cr | --no-c | -n)
1001     no_create=yes ;;
1002
1003   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005     no_recursion=yes ;;
1006
1007   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009   | --oldin | --oldi | --old | --ol | --o)
1010     ac_prev=oldincludedir ;;
1011   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014     oldincludedir=$ac_optarg ;;
1015
1016   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017     ac_prev=prefix ;;
1018   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019     prefix=$ac_optarg ;;
1020
1021   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022   | --program-pre | --program-pr | --program-p)
1023     ac_prev=program_prefix ;;
1024   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026     program_prefix=$ac_optarg ;;
1027
1028   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029   | --program-suf | --program-su | --program-s)
1030     ac_prev=program_suffix ;;
1031   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033     program_suffix=$ac_optarg ;;
1034
1035   -program-transform-name | --program-transform-name \
1036   | --program-transform-nam | --program-transform-na \
1037   | --program-transform-n | --program-transform- \
1038   | --program-transform | --program-transfor \
1039   | --program-transfo | --program-transf \
1040   | --program-trans | --program-tran \
1041   | --progr-tra | --program-tr | --program-t)
1042     ac_prev=program_transform_name ;;
1043   -program-transform-name=* | --program-transform-name=* \
1044   | --program-transform-nam=* | --program-transform-na=* \
1045   | --program-transform-n=* | --program-transform-=* \
1046   | --program-transform=* | --program-transfor=* \
1047   | --program-transfo=* | --program-transf=* \
1048   | --program-trans=* | --program-tran=* \
1049   | --progr-tra=* | --program-tr=* | --program-t=*)
1050     program_transform_name=$ac_optarg ;;
1051
1052   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053     ac_prev=pdfdir ;;
1054   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055     pdfdir=$ac_optarg ;;
1056
1057   -psdir | --psdir | --psdi | --psd | --ps)
1058     ac_prev=psdir ;;
1059   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060     psdir=$ac_optarg ;;
1061
1062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063   | -silent | --silent | --silen | --sile | --sil)
1064     silent=yes ;;
1065
1066   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067     ac_prev=sbindir ;;
1068   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069   | --sbi=* | --sb=*)
1070     sbindir=$ac_optarg ;;
1071
1072   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074   | --sharedst | --shareds | --shared | --share | --shar \
1075   | --sha | --sh)
1076     ac_prev=sharedstatedir ;;
1077   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080   | --sha=* | --sh=*)
1081     sharedstatedir=$ac_optarg ;;
1082
1083   -site | --site | --sit)
1084     ac_prev=site ;;
1085   -site=* | --site=* | --sit=*)
1086     site=$ac_optarg ;;
1087
1088   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089     ac_prev=srcdir ;;
1090   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091     srcdir=$ac_optarg ;;
1092
1093   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094   | --syscon | --sysco | --sysc | --sys | --sy)
1095     ac_prev=sysconfdir ;;
1096   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098     sysconfdir=$ac_optarg ;;
1099
1100   -target | --target | --targe | --targ | --tar | --ta | --t)
1101     ac_prev=target_alias ;;
1102   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103     target_alias=$ac_optarg ;;
1104
1105   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106     verbose=yes ;;
1107
1108   -version | --version | --versio | --versi | --vers | -V)
1109     ac_init_version=: ;;
1110
1111   -with-* | --with-*)
1112     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115       { echo "$as_me: error: invalid package name: $ac_package" >&2
1116    { (exit 1); exit 1; }; }
1117     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118     eval with_$ac_package=\$ac_optarg ;;
1119
1120   -without-* | --without-*)
1121     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127     eval with_$ac_package=no ;;
1128
1129   --x)
1130     # Obsolete; use --with-x.
1131     with_x=yes ;;
1132
1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134   | --x-incl | --x-inc | --x-in | --x-i)
1135     ac_prev=x_includes ;;
1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138     x_includes=$ac_optarg ;;
1139
1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142     ac_prev=x_libraries ;;
1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145     x_libraries=$ac_optarg ;;
1146
1147   -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149    { (exit 1); exit 1; }; }
1150     ;;
1151
1152   *=*)
1153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157    { (exit 1); exit 1; }; }
1158     eval $ac_envvar=\$ac_optarg
1159     export $ac_envvar ;;
1160
1161   *)
1162     # FIXME: should be removed in autoconf 3.0.
1163     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167     ;;
1168
1169   esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174   { echo "$as_me: error: missing argument to $ac_option" >&2
1175    { (exit 1); exit 1; }; }
1176 fi
1177
1178 # Be sure to have absolute directory names.
1179 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180                 datadir sysconfdir sharedstatedir localstatedir includedir \
1181                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182                 libdir localedir mandir
1183 do
1184   eval ac_val=\$$ac_var
1185   case $ac_val in
1186     [\\/$]* | ?:[\\/]* )  continue;;
1187     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188   esac
1189   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190    { (exit 1); exit 1; }; }
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202   if test "x$build_alias" = x; then
1203     cross_compiling=maybe
1204     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205     If a cross compiler is detected then cross compile mode will be used." >&2
1206   elif test "x$build_alias" != "x$host_alias"; then
1207     cross_compiling=yes
1208   fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220   { echo "$as_me: error: Working directory cannot be determined" >&2
1221    { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223   { echo "$as_me: error: pwd does not report name of working directory" >&2
1224    { (exit 1); exit 1; }; }
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229   ac_srcdir_defaulted=yes
1230   # Try the directory containing this script, then the parent directory.
1231   ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233          X"$0" : 'X\(//\)[^/]' \| \
1234          X"$0" : 'X\(//\)$' \| \
1235          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 echo X"$0" |
1237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\/\)[^/].*/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\/\)$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\).*/{
1250             s//\1/
1251             q
1252           }
1253           s/.*/./; q'`
1254   srcdir=$ac_confdir
1255   if test ! -r "$srcdir/$ac_unique_file"; then
1256     srcdir=..
1257   fi
1258 else
1259   ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264    { (exit 1); exit 1; }; }
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269    { (exit 1); exit 1; }; }
1270         pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273   srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283   eval ac_env_${ac_var}_value=\$${ac_var}
1284   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292   # Omit some internal or obsolete options to make the list less imposing.
1293   # This message is too long to be a string in the A/UX 3.1 sh.
1294   cat <<_ACEOF
1295 \`configure' configures this package to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305   -h, --help              display this help and exit
1306       --help=short        display options specific to this package
1307       --help=recursive    display the short help of all the included packages
1308   -V, --version           display version information and exit
1309   -q, --quiet, --silent   do not print \`checking...' messages
1310       --cache-file=FILE   cache test results in FILE [disabled]
1311   -C, --config-cache      alias for \`--cache-file=config.cache'
1312   -n, --no-create         do not create output files
1313       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316   --prefix=PREFIX         install architecture-independent files in PREFIX
1317                           [$ac_default_prefix]
1318   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                           [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329   --bindir=DIR           user executables [EPREFIX/bin]
1330   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1331   --libexecdir=DIR       program executables [EPREFIX/libexec]
1332   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1333   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1334   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1335   --libdir=DIR           object code libraries [EPREFIX/lib]
1336   --includedir=DIR       C header files [PREFIX/include]
1337   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1338   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1339   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1340   --infodir=DIR          info documentation [DATAROOTDIR/info]
1341   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1342   --mandir=DIR           man documentation [DATAROOTDIR/man]
1343   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1344   --htmldir=DIR          html documentation [DOCDIR]
1345   --dvidir=DIR           dvi documentation [DOCDIR]
1346   --pdfdir=DIR           pdf documentation [DOCDIR]
1347   --psdir=DIR            ps documentation [DOCDIR]
1348 _ACEOF
1349
1350   cat <<\_ACEOF
1351
1352 System types:
1353   --build=BUILD     configure for building on BUILD [guessed]
1354   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359
1360   cat <<\_ACEOF
1361
1362 Optional Features:
1363   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1364   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1365   --enable-maintainer-mode enable makefile rules useful for maintainers
1366   --enable-compression    enable EXPERIMENTAL compression support
1367   --enable-htree          enable EXPERIMENTAL htree directory support
1368   --enable-elf-shlibs     select ELF shared libraries
1369   --enable-bsd-shlibs     select BSD shared libraries
1370   --enable-profile        build profiling libraries
1371   --enable-checker        build checker libraries
1372   --enable-jbd-debug      enable journal debugging
1373   --enable-blkid-debug    enable blkid debugging
1374   --enable-testio-debug   enable the use of the test I/O manager for debugging
1375   --disable-debugfs       disable support of debugfs program
1376   --disable-imager        disable support of e2image program
1377   --disable-resizer       disable support of e2resize program
1378   --enable-fsck           build fsck wrapper program
1379   --enable-e2initrd-helper build e2initrd-helper program
1380   --enable-blkid-devmapper  build with device-mapper support
1381   --disable-tls           disable use of thread local support
1382   --disable-uuidd         disable building the uuid daemon
1383   --disable-nls           do not use Native Language Support
1384   --disable-rpath         do not hardcode runtime library paths
1385
1386 Optional Packages:
1387   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1388   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1389   --with-diet-libc        use diet libc
1390   --with-cc=COMPILER      select compiler to use
1391   --with-linker=LINKER    select linker to use
1392   --with-ccopts=CCOPTS    select compiler command line options
1393   --with-ldopts=LDOPTS    select linker command line options
1394   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1396   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1397   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1398   --with-included-gettext use the GNU gettext library included here
1399   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1400   --without-libintl-prefix     don't search for libintl in includedir and libdir
1401
1402 Some influential environment variables:
1403   CC          C compiler command
1404   CFLAGS      C compiler flags
1405   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1406               nonstandard directory <lib dir>
1407   LIBS        libraries to pass to the linker, e.g. -l<library>
1408   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409               you have headers in a nonstandard directory <include dir>
1410   CPP         C preprocessor
1411   PKG_CONFIG  path to pkg-config utility
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421   # If there are subdirs, report their specific --help.
1422   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423     test -d "$ac_dir" || continue
1424     ac_builddir=.
1425
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *)
1429   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430   # A ".." for each directory in $ac_dir_suffix.
1431   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432   case $ac_top_builddir_sub in
1433   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435   esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1441
1442 case $srcdir in
1443   .)  # We are building in place.
1444     ac_srcdir=.
1445     ac_top_srcdir=$ac_top_builddir_sub
1446     ac_abs_top_srcdir=$ac_pwd ;;
1447   [\\/]* | ?:[\\/]* )  # Absolute name.
1448     ac_srcdir=$srcdir$ac_dir_suffix;
1449     ac_top_srcdir=$srcdir
1450     ac_abs_top_srcdir=$srcdir ;;
1451   *) # Relative name.
1452     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453     ac_top_srcdir=$ac_top_build_prefix$srcdir
1454     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458     cd "$ac_dir" || { ac_status=$?; continue; }
1459     # Check for guested configure.
1460     if test -f "$ac_srcdir/configure.gnu"; then
1461       echo &&
1462       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463     elif test -f "$ac_srcdir/configure"; then
1464       echo &&
1465       $SHELL "$ac_srcdir/configure" --help=recursive
1466     else
1467       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468     fi || ac_status=$?
1469     cd "$ac_pwd" || { ac_status=$?; break; }
1470   done
1471 fi
1472
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1475   cat <<\_ACEOF
1476 configure
1477 generated by GNU Autoconf 2.61
1478
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484   exit
1485 fi
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1489
1490 It was created by $as_me, which was
1491 generated by GNU Autoconf 2.61.  Invocation command line was
1492
1493   $ $0 $@
1494
1495 _ACEOF
1496 exec 5>>config.log
1497 {
1498 cat <<_ASUNAME
1499 ## --------- ##
1500 ## Platform. ##
1501 ## --------- ##
1502
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1511
1512 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1513 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1516 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1517 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1518 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1519
1520 _ASUNAME
1521
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   echo "PATH: $as_dir"
1528 done
1529 IFS=$as_save_IFS
1530
1531 } >&5
1532
1533 cat >&5 <<_ACEOF
1534
1535
1536 ## ----------- ##
1537 ## Core tests. ##
1538 ## ----------- ##
1539
1540 _ACEOF
1541
1542
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1548 ac_configure_args=
1549 ac_configure_args0=
1550 ac_configure_args1=
1551 ac_must_keep_next=false
1552 for ac_pass in 1 2
1553 do
1554   for ac_arg
1555   do
1556     case $ac_arg in
1557     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559     | -silent | --silent | --silen | --sile | --sil)
1560       continue ;;
1561     *\'*)
1562       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563     esac
1564     case $ac_pass in
1565     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566     2)
1567       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568       if test $ac_must_keep_next = true; then
1569         ac_must_keep_next=false # Got value, back to normal.
1570       else
1571         case $ac_arg in
1572           *=* | --config-cache | -C | -disable-* | --disable-* \
1573           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575           | -with-* | --with-* | -without-* | --without-* | --x)
1576             case "$ac_configure_args0 " in
1577               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578             esac
1579             ;;
1580           -* ) ac_must_keep_next=true ;;
1581         esac
1582       fi
1583       ac_configure_args="$ac_configure_args '$ac_arg'"
1584       ;;
1585     esac
1586   done
1587 done
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log.  We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597   # Save into config.log some information that might help in debugging.
1598   {
1599     echo
1600
1601     cat <<\_ASBOX
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1605 _ASBOX
1606     echo
1607     # The following way of writing the cache mishandles newlines in values,
1608 (
1609   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610     eval ac_val=\$$ac_var
1611     case $ac_val in #(
1612     *${as_nl}*)
1613       case $ac_var in #(
1614       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616       esac
1617       case $ac_var in #(
1618       _ | IFS | as_nl) ;; #(
1619       *) $as_unset $ac_var ;;
1620       esac ;;
1621     esac
1622   done
1623   (set) 2>&1 |
1624     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625     *${as_nl}ac_space=\ *)
1626       sed -n \
1627         "s/'\''/'\''\\\\'\'''\''/g;
1628           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629       ;; #(
1630     *)
1631       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632       ;;
1633     esac |
1634     sort
1635 )
1636     echo
1637
1638     cat <<\_ASBOX
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1642 _ASBOX
1643     echo
1644     for ac_var in $ac_subst_vars
1645     do
1646       eval ac_val=\$$ac_var
1647       case $ac_val in
1648       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649       esac
1650       echo "$ac_var='\''$ac_val'\''"
1651     done | sort
1652     echo
1653
1654     if test -n "$ac_subst_files"; then
1655       cat <<\_ASBOX
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1659 _ASBOX
1660       echo
1661       for ac_var in $ac_subst_files
1662       do
1663         eval ac_val=\$$ac_var
1664         case $ac_val in
1665         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666         esac
1667         echo "$ac_var='\''$ac_val'\''"
1668       done | sort
1669       echo
1670     fi
1671
1672     if test -s confdefs.h; then
1673       cat <<\_ASBOX
1674 ## ----------- ##
1675 ## confdefs.h. ##
1676 ## ----------- ##
1677 _ASBOX
1678       echo
1679       cat confdefs.h
1680       echo
1681     fi
1682     test "$ac_signal" != 0 &&
1683       echo "$as_me: caught signal $ac_signal"
1684     echo "$as_me: exit $exit_status"
1685   } >&5
1686   rm -f core *.core core.conftest.* &&
1687     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688     exit $exit_status
1689 ' 0
1690 for ac_signal in 1 2 13 15; do
1691   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 done
1693 ac_signal=0
1694
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1697
1698 # Predefined preprocessor variables.
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 _ACEOF
1723
1724
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728   set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731 else
1732   set x "$ac_default_prefix/share/config.site" \
1733         "$ac_default_prefix/etc/config.site"
1734 fi
1735 shift
1736 for ac_site_file
1737 do
1738   if test -r "$ac_site_file"; then
1739     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741     sed 's/^/| /' "$ac_site_file" >&5
1742     . "$ac_site_file"
1743   fi
1744 done
1745
1746 if test -r "$cache_file"; then
1747   # Some versions of bash will fail to source /dev/null (special
1748   # files actually), so we avoid doing that.
1749   if test -f "$cache_file"; then
1750     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1752     case $cache_file in
1753       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754       *)                      . "./$cache_file";;
1755     esac
1756   fi
1757 else
1758   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1760   >$cache_file
1761 fi
1762
1763 # Check that the precious variables saved in the cache have kept the same
1764 # value.
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768   eval ac_new_set=\$ac_env_${ac_var}_set
1769   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770   eval ac_new_val=\$ac_env_${ac_var}_value
1771   case $ac_old_set,$ac_new_set in
1772     set,)
1773       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775       ac_cache_corrupted=: ;;
1776     ,set)
1777       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779       ac_cache_corrupted=: ;;
1780     ,);;
1781     *)
1782       if test "x$ac_old_val" != "x$ac_new_val"; then
1783         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1786 echo "$as_me:   former value:  $ac_old_val" >&2;}
1787         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1788 echo "$as_me:   current value: $ac_new_val" >&2;}
1789         ac_cache_corrupted=:
1790       fi;;
1791   esac
1792   # Pass precious variables to config.status.
1793   if test "$ac_new_set" = set; then
1794     case $ac_new_val in
1795     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796     *) ac_arg=$ac_var=$ac_new_val ;;
1797     esac
1798     case " $ac_configure_args " in
1799       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1800       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801     esac
1802   fi
1803 done
1804 if $ac_cache_corrupted; then
1805   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809    { (exit 1); exit 1; }; }
1810 fi
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833
1834
1835
1836 ac_aux_dir=
1837 for ac_dir in config "$srcdir"/config; do
1838   if test -f "$ac_dir/install-sh"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/install-sh -c"
1841     break
1842   elif test -f "$ac_dir/install.sh"; then
1843     ac_aux_dir=$ac_dir
1844     ac_install_sh="$ac_aux_dir/install.sh -c"
1845     break
1846   elif test -f "$ac_dir/shtool"; then
1847     ac_aux_dir=$ac_dir
1848     ac_install_sh="$ac_aux_dir/shtool install -c"
1849     break
1850   fi
1851 done
1852 if test -z "$ac_aux_dir"; then
1853   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1855    { (exit 1); exit 1; }; }
1856 fi
1857
1858 # These three variables are undocumented and unsupported,
1859 # and are intended to be withdrawn in a future Autoconf release.
1860 # They can cause serious problems if a builder's source tree is in a directory
1861 # whose full name contains unusual characters.
1862 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1863 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1864 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1865
1866
1867 MCONFIG=./MCONFIG
1868
1869 BINARY_TYPE=bin
1870 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1871         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1873         | tr \" " "`
1874 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1875 MONTH=`echo $DATE | awk -F- '{print $2}'`
1876 YEAR=`echo $DATE | awk -F- '{print $3}'`
1877
1878 if expr $YEAR ">" 1900 > /dev/null ; then
1879         E2FSPROGS_YEAR=$YEAR
1880 elif expr $YEAR ">" 90 >/dev/null ; then
1881         E2FSPROGS_YEAR=19$YEAR
1882 else
1883         E2FSPROGS_YEAR=20$YEAR
1884 fi
1885
1886 case $MONTH in
1887 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1899 *)      { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1900 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1901 esac
1902
1903 base_ver=`echo $E2FSPROGS_VERSION | \
1904                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1905
1906 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1907
1908 case $E2FSPROGS_VERSION in
1909 *-WIP|pre-*)
1910         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1911         ;;
1912 *)
1913         E2FSPROGS_PKGVER="$base_ver"
1914         ;;
1915 esac
1916
1917 unset DATE MONTH YEAR base_ver pre_vers date_spec
1918 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1919 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1920 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1921 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1922
1923
1924
1925
1926
1927 # Make sure we can run config.sub.
1928 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1931    { (exit 1); exit 1; }; }
1932
1933 { echo "$as_me:$LINENO: checking build system type" >&5
1934 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_build+set}" = set; then
1936   echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938   ac_build_alias=$build_alias
1939 test "x$ac_build_alias" = x &&
1940   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941 test "x$ac_build_alias" = x &&
1942   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944    { (exit 1); exit 1; }; }
1945 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1946   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1948    { (exit 1); exit 1; }; }
1949
1950 fi
1951 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952 echo "${ECHO_T}$ac_cv_build" >&6; }
1953 case $ac_cv_build in
1954 *-*-*) ;;
1955 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956 echo "$as_me: error: invalid value of canonical build" >&2;}
1957    { (exit 1); exit 1; }; };;
1958 esac
1959 build=$ac_cv_build
1960 ac_save_IFS=$IFS; IFS='-'
1961 set x $ac_cv_build
1962 shift
1963 build_cpu=$1
1964 build_vendor=$2
1965 shift; shift
1966 # Remember, the first character of IFS is used to create $*,
1967 # except with old shells:
1968 build_os=$*
1969 IFS=$ac_save_IFS
1970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1971
1972
1973 { echo "$as_me:$LINENO: checking host system type" >&5
1974 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1975 if test "${ac_cv_host+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test "x$host_alias" = x; then
1979   ac_cv_host=$ac_cv_build
1980 else
1981   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1982     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1984    { (exit 1); exit 1; }; }
1985 fi
1986
1987 fi
1988 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989 echo "${ECHO_T}$ac_cv_host" >&6; }
1990 case $ac_cv_host in
1991 *-*-*) ;;
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993 echo "$as_me: error: invalid value of canonical host" >&2;}
1994    { (exit 1); exit 1; }; };;
1995 esac
1996 host=$ac_cv_host
1997 ac_save_IFS=$IFS; IFS='-'
1998 set x $ac_cv_host
1999 shift
2000 host_cpu=$1
2001 host_vendor=$2
2002 shift; shift
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2005 host_os=$*
2006 IFS=$ac_save_IFS
2007 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2008
2009
2010 WITH_DIET_LIBC=
2011
2012 # Check whether --with-diet-libc was given.
2013 if test "${with_diet_libc+set}" = set; then
2014   withval=$with_diet_libc; CC="diet cc -nostdinc"
2015 WITH_DIET_LIBC=yes
2016 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2017 echo "${ECHO_T}CC=$CC" >&6; }
2018 fi
2019
2020 # Check whether --with-cc was given.
2021 if test "${with_cc+set}" = set; then
2022   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2023 echo "${ECHO_T}CC=$withval" >&6; }
2024 CC=$withval
2025 else
2026   if test -z "$CC" ; then CC=cc; fi
2027 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2028 echo "${ECHO_T}CC defaults to $CC" >&6; }
2029 fi
2030 export CC
2031
2032 ac_ext=c
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 if test -n "$ac_tool_prefix"; then
2038   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2039 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_CC+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$CC"; then
2046   ac_cv_prog_CC="$CC" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061 IFS=$as_save_IFS
2062
2063 fi
2064 fi
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067   { echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6; }
2069 else
2070   { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074
2075 fi
2076 if test -z "$ac_cv_prog_CC"; then
2077   ac_ct_CC=$CC
2078   # Extract the first word of "gcc", so it can be a program name with args.
2079 set dummy gcc; ac_word=$2
2080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$ac_ct_CC"; then
2086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095     ac_cv_prog_ac_ct_CC="gcc"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101 IFS=$as_save_IFS
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6; }
2109 else
2110   { echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6; }
2112 fi
2113
2114   if test "x$ac_ct_CC" = x; then
2115     CC=""
2116   else
2117     case $cross_compiling:$ac_tool_warned in
2118 yes:)
2119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2120 whose name does not start with the host triplet.  If you think this
2121 configuration is useful to you, please write to autoconf@gnu.org." >&5
2122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2123 whose name does not start with the host triplet.  If you think this
2124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2125 ac_tool_warned=yes ;;
2126 esac
2127     CC=$ac_ct_CC
2128   fi
2129 else
2130   CC="$ac_cv_prog_CC"
2131 fi
2132
2133 if test -z "$CC"; then
2134           if test -n "$ac_tool_prefix"; then
2135     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2136 set dummy ${ac_tool_prefix}cc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   if test -n "$CC"; then
2143   ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150   for ac_exec_ext in '' $ac_executable_extensions; do
2151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152     ac_cv_prog_CC="${ac_tool_prefix}cc"
2153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154     break 2
2155   fi
2156 done
2157 done
2158 IFS=$as_save_IFS
2159
2160 fi
2161 fi
2162 CC=$ac_cv_prog_CC
2163 if test -n "$CC"; then
2164   { echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6; }
2166 else
2167   { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2169 fi
2170
2171
2172   fi
2173 fi
2174 if test -z "$CC"; then
2175   # Extract the first word of "cc", so it can be a program name with args.
2176 set dummy cc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   if test -n "$CC"; then
2183   ac_cv_prog_CC="$CC" # Let the user override the test.
2184 else
2185   ac_prog_rejected=no
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2194        ac_prog_rejected=yes
2195        continue
2196      fi
2197     ac_cv_prog_CC="cc"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203 IFS=$as_save_IFS
2204
2205 if test $ac_prog_rejected = yes; then
2206   # We found a bogon in the path, so make sure we never use it.
2207   set dummy $ac_cv_prog_CC
2208   shift
2209   if test $# != 0; then
2210     # We chose a different compiler from the bogus one.
2211     # However, it has the same basename, so the bogon will be chosen
2212     # first if we set CC to just the basename; use the full file name.
2213     shift
2214     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2215   fi
2216 fi
2217 fi
2218 fi
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221   { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2223 else
2224   { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2226 fi
2227
2228
2229 fi
2230 if test -z "$CC"; then
2231   if test -n "$ac_tool_prefix"; then
2232   for ac_prog in cl.exe
2233   do
2234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   if test -n "$CC"; then
2242   ac_cv_prog_CC="$CC" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249   for ac_exec_ext in '' $ac_executable_extensions; do
2250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256 done
2257 IFS=$as_save_IFS
2258
2259 fi
2260 fi
2261 CC=$ac_cv_prog_CC
2262 if test -n "$CC"; then
2263   { echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6; }
2265 else
2266   { echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6; }
2268 fi
2269
2270
2271     test -n "$CC" && break
2272   done
2273 fi
2274 if test -z "$CC"; then
2275   ac_ct_CC=$CC
2276   for ac_prog in cl.exe
2277 do
2278   # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   if test -n "$ac_ct_CC"; then
2286   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295     ac_cv_prog_ac_ct_CC="$ac_prog"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301 IFS=$as_save_IFS
2302
2303 fi
2304 fi
2305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2306 if test -n "$ac_ct_CC"; then
2307   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2308 echo "${ECHO_T}$ac_ct_CC" >&6; }
2309 else
2310   { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2312 fi
2313
2314
2315   test -n "$ac_ct_CC" && break
2316 done
2317
2318   if test "x$ac_ct_CC" = x; then
2319     CC=""
2320   else
2321     case $cross_compiling:$ac_tool_warned in
2322 yes:)
2323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet.  If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&5
2326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet.  If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2329 ac_tool_warned=yes ;;
2330 esac
2331     CC=$ac_ct_CC
2332   fi
2333 fi
2334
2335 fi
2336
2337
2338 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: no acceptable C compiler found in \$PATH
2341 See \`config.log' for more details." >&2;}
2342    { (exit 1); exit 1; }; }
2343
2344 # Provide some information about the compiler.
2345 echo "$as_me:$LINENO: checking for C compiler version" >&5
2346 ac_compiler=`set X $ac_compile; echo $2`
2347 { (ac_try="$ac_compiler --version >&5"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compiler --version >&5") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }
2357 { (ac_try="$ac_compiler -v >&5"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363   (eval "$ac_compiler -v >&5") 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }
2367 { (ac_try="$ac_compiler -V >&5"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373   (eval "$ac_compiler -V >&5") 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }
2377
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h.  */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h.  */
2384
2385 int
2386 main ()
2387 {
2388
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2397 # of exeext.
2398 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 #
2402 # List of possible output files, starting from the most likely.
2403 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2404 # only as a last resort.  b.out is created by i960 compilers.
2405 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2406 #
2407 # The IRIX 6 linker writes into existing files which may not be
2408 # executable, retaining their permissions.  Remove them first so a
2409 # subsequent execution test works.
2410 ac_rmfiles=
2411 for ac_file in $ac_files
2412 do
2413   case $ac_file in
2414     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2415     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2416   esac
2417 done
2418 rm -f $ac_rmfiles
2419
2420 if { (ac_try="$ac_link_default"
2421 case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_link_default") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; then
2430   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2431 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2432 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2433 # so that the user can short-circuit this test for compilers unknown to
2434 # Autoconf.
2435 for ac_file in $ac_files ''
2436 do
2437   test -f "$ac_file" || continue
2438   case $ac_file in
2439     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2440         ;;
2441     [ab].out )
2442         # We found the default executable, but exeext='' is most
2443         # certainly right.
2444         break;;
2445     *.* )
2446         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2447         then :; else
2448            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2449         fi
2450         # We set ac_cv_exeext here because the later test for it is not
2451         # safe: cross compilers may not add the suffix if given an `-o'
2452         # argument, so we may need to know it at that point already.
2453         # Even if this section looks crufty: it has the advantage of
2454         # actually working.
2455         break;;
2456     * )
2457         break;;
2458   esac
2459 done
2460 test "$ac_cv_exeext" = no && ac_cv_exeext=
2461
2462 else
2463   ac_file=''
2464 fi
2465
2466 { echo "$as_me:$LINENO: result: $ac_file" >&5
2467 echo "${ECHO_T}$ac_file" >&6; }
2468 if test -z "$ac_file"; then
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&2;}
2476    { (exit 77); exit 77; }; }
2477 fi
2478
2479 ac_exeext=$ac_cv_exeext
2480
2481 # Check that the compiler produces executables we can run.  If not, either
2482 # the compiler is broken, or we cross compile.
2483 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2485 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486 # If not cross compiling, check that we can run a simple program.
2487 if test "$cross_compiling" != yes; then
2488   if { ac_try='./$ac_file'
2489   { (case "(($ac_try" in
2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491   *) ac_try_echo=$ac_try;;
2492 esac
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494   (eval "$ac_try") 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }; }; then
2498     cross_compiling=no
2499   else
2500     if test "$cross_compiling" = maybe; then
2501         cross_compiling=yes
2502     else
2503         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&2;}
2509    { (exit 1); exit 1; }; }
2510     fi
2511   fi
2512 fi
2513 { echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6; }
2515
2516 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2517 ac_clean_files=$ac_clean_files_save
2518 # Check that the compiler produces executables we can run.  If not, either
2519 # the compiler is broken, or we cross compile.
2520 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2522 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2523 echo "${ECHO_T}$cross_compiling" >&6; }
2524
2525 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2526 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2527 if { (ac_try="$ac_link"
2528 case "(($ac_try" in
2529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530   *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533   (eval "$ac_link") 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; then
2537   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2539 # work properly (i.e., refer to `conftest.exe'), while it won't with
2540 # `rm'.
2541 for ac_file in conftest.exe conftest conftest.*; do
2542   test -f "$ac_file" || continue
2543   case $ac_file in
2544     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2545     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546           break;;
2547     * ) break;;
2548   esac
2549 done
2550 else
2551   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2554 See \`config.log' for more details." >&2;}
2555    { (exit 1); exit 1; }; }
2556 fi
2557
2558 rm -f conftest$ac_cv_exeext
2559 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2560 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2561
2562 rm -f conftest.$ac_ext
2563 EXEEXT=$ac_cv_exeext
2564 ac_exeext=$EXEEXT
2565 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2566 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2567 if test "${ac_cv_objext+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h.  */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h.  */
2576
2577 int
2578 main ()
2579 {
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.o conftest.obj
2586 if { (ac_try="$ac_compile"
2587 case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_compile") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; then
2596   for ac_file in conftest.o conftest.obj conftest.*; do
2597   test -f "$ac_file" || continue;
2598   case $ac_file in
2599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2600     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2601        break;;
2602   esac
2603 done
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2611 See \`config.log' for more details." >&2;}
2612    { (exit 1); exit 1; }; }
2613 fi
2614
2615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2616 fi
2617 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2618 echo "${ECHO_T}$ac_cv_objext" >&6; }
2619 OBJEXT=$ac_cv_objext
2620 ac_objext=$OBJEXT
2621 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2622 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2623 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h.  */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h.  */
2632
2633 int
2634 main ()
2635 {
2636 #ifndef __GNUC__
2637        choke me
2638 #endif
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (ac_try="$ac_compile"
2646 case "(($ac_try" in
2647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648   *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651   (eval "$ac_compile") 2>conftest.er1
2652   ac_status=$?
2653   grep -v '^ *+' conftest.er1 >conftest.err
2654   rm -f conftest.er1
2655   cat conftest.err >&5
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); } && {
2658          test -z "$ac_c_werror_flag" ||
2659          test ! -s conftest.err
2660        } && test -s conftest.$ac_objext; then
2661   ac_compiler_gnu=yes
2662 else
2663   echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666         ac_compiler_gnu=no
2667 fi
2668
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2671
2672 fi
2673 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2674 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2675 GCC=`test $ac_compiler_gnu = yes && echo yes`
2676 ac_test_CFLAGS=${CFLAGS+set}
2677 ac_save_CFLAGS=$CFLAGS
2678 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_cc_g+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   ac_save_c_werror_flag=$ac_c_werror_flag
2684    ac_c_werror_flag=yes
2685    ac_cv_prog_cc_g=no
2686    CFLAGS="-g"
2687    cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693
2694 int
2695 main ()
2696 {
2697
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709   (eval "$ac_compile") 2>conftest.er1
2710   ac_status=$?
2711   grep -v '^ *+' conftest.er1 >conftest.err
2712   rm -f conftest.er1
2713   cat conftest.err >&5
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } && {
2716          test -z "$ac_c_werror_flag" ||
2717          test ! -s conftest.err
2718        } && test -s conftest.$ac_objext; then
2719   ac_cv_prog_cc_g=yes
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724         CFLAGS=""
2725       cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731
2732 int
2733 main ()
2734 {
2735
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (ac_try="$ac_compile"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_compile") 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } && {
2754          test -z "$ac_c_werror_flag" ||
2755          test ! -s conftest.err
2756        } && test -s conftest.$ac_objext; then
2757   :
2758 else
2759   echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2761
2762         ac_c_werror_flag=$ac_save_c_werror_flag
2763          CFLAGS="-g"
2764          cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_compile") 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
2790   cat conftest.err >&5
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } && {
2793          test -z "$ac_c_werror_flag" ||
2794          test ! -s conftest.err
2795        } && test -s conftest.$ac_objext; then
2796   ac_cv_prog_cc_g=yes
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801
2802 fi
2803
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 fi
2806
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 fi
2809
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811    ac_c_werror_flag=$ac_save_c_werror_flag
2812 fi
2813 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2815 if test "$ac_test_CFLAGS" = set; then
2816   CFLAGS=$ac_save_CFLAGS
2817 elif test $ac_cv_prog_cc_g = yes; then
2818   if test "$GCC" = yes; then
2819     CFLAGS="-g -O2"
2820   else
2821     CFLAGS="-g"
2822   fi
2823 else
2824   if test "$GCC" = yes; then
2825     CFLAGS="-O2"
2826   else
2827     CFLAGS=
2828   fi
2829 fi
2830 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2831 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_cc_c89+set}" = set; then
2833   echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835   ac_cv_prog_cc_c89=no
2836 ac_save_CC=$CC
2837 cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843 #include <stdarg.h>
2844 #include <stdio.h>
2845 #include <sys/types.h>
2846 #include <sys/stat.h>
2847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2848 struct buf { int x; };
2849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2850 static char *e (p, i)
2851      char **p;
2852      int i;
2853 {
2854   return p[i];
2855 }
2856 static char *f (char * (*g) (char **, int), char **p, ...)
2857 {
2858   char *s;
2859   va_list v;
2860   va_start (v,p);
2861   s = g (p, va_arg (v,int));
2862   va_end (v);
2863   return s;
2864 }
2865
2866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2867    function prototypes and stuff, but not '\xHH' hex character constants.
2868    These don't provoke an error unfortunately, instead are silently treated
2869    as 'x'.  The following induces an error, until -std is added to get
2870    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2871    array size at least.  It's necessary to write '\x00'==0 to get something
2872    that's true only with -std.  */
2873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2874
2875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2876    inside strings and character constants.  */
2877 #define FOO(x) 'x'
2878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2879
2880 int test (int i, double x);
2881 struct s1 {int (*f) (int a);};
2882 struct s2 {int (*f) (double a);};
2883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2884 int argc;
2885 char **argv;
2886 int
2887 main ()
2888 {
2889 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2895         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2896 do
2897   CC="$ac_save_CC $ac_arg"
2898   rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_compile") 2>conftest.er1
2906   ac_status=$?
2907   grep -v '^ *+' conftest.er1 >conftest.err
2908   rm -f conftest.er1
2909   cat conftest.err >&5
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); } && {
2912          test -z "$ac_c_werror_flag" ||
2913          test ! -s conftest.err
2914        } && test -s conftest.$ac_objext; then
2915   ac_cv_prog_cc_c89=$ac_arg
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920
2921 fi
2922
2923 rm -f core conftest.err conftest.$ac_objext
2924   test "x$ac_cv_prog_cc_c89" != "xno" && break
2925 done
2926 rm -f conftest.$ac_ext
2927 CC=$ac_save_CC
2928
2929 fi
2930 # AC_CACHE_VAL
2931 case "x$ac_cv_prog_cc_c89" in
2932   x)
2933     { echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6; } ;;
2935   xno)
2936     { echo "$as_me:$LINENO: result: unsupported" >&5
2937 echo "${ECHO_T}unsupported" >&6; } ;;
2938   *)
2939     CC="$CC $ac_cv_prog_cc_c89"
2940     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2942 esac
2943
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
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2957 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2958 # On Suns, sometimes $CPP names a directory.
2959 if test -n "$CPP" && test -d "$CPP"; then
2960   CPP=
2961 fi
2962 if test -z "$CPP"; then
2963   if test "${ac_cv_prog_CPP+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966       # Double quotes because CPP needs to be expanded
2967     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2968     do
2969       ac_preproc_ok=false
2970 for ac_c_preproc_warn_flag in '' yes
2971 do
2972   # Use a header file that comes with gcc, so configuring glibc
2973   # with a fresh cross-compiler works.
2974   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975   # <limits.h> exists even on freestanding compilers.
2976   # On the NeXT, cc -E runs the code through the compiler's parser,
2977   # not just through cpp. "Syntax error" is here to catch this case.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 #ifdef __STDC__
2985 # include <limits.h>
2986 #else
2987 # include <assert.h>
2988 #endif
2989                      Syntax error
2990 _ACEOF
2991 if { (ac_try="$ac_cpp conftest.$ac_ext"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2998   ac_status=$?
2999   grep -v '^ *+' conftest.er1 >conftest.err
3000   rm -f conftest.er1
3001   cat conftest.err >&5
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); } >/dev/null && {
3004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3005          test ! -s conftest.err
3006        }; then
3007   :
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012   # Broken: fails on valid input.
3013 continue
3014 fi
3015
3016 rm -f conftest.err conftest.$ac_ext
3017
3018   # OK, works on sane cases.  Now check whether nonexistent headers
3019   # can be detected and how.
3020   cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026 #include <ac_nonexistent.h>
3027 _ACEOF
3028 if { (ac_try="$ac_cpp conftest.$ac_ext"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3035   ac_status=$?
3036   grep -v '^ *+' conftest.er1 >conftest.err
3037   rm -f conftest.er1
3038   cat conftest.err >&5
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } >/dev/null && {
3041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3042          test ! -s conftest.err
3043        }; then
3044   # Broken: success on invalid input.
3045 continue
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050   # Passes both tests.
3051 ac_preproc_ok=:
3052 break
3053 fi
3054
3055 rm -f conftest.err conftest.$ac_ext
3056
3057 done
3058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3059 rm -f conftest.err conftest.$ac_ext
3060 if $ac_preproc_ok; then
3061   break
3062 fi
3063
3064     done
3065     ac_cv_prog_CPP=$CPP
3066
3067 fi
3068   CPP=$ac_cv_prog_CPP
3069 else
3070   ac_cv_prog_CPP=$CPP
3071 fi
3072 { echo "$as_me:$LINENO: result: $CPP" >&5
3073 echo "${ECHO_T}$CPP" >&6; }
3074 ac_preproc_ok=false
3075 for ac_c_preproc_warn_flag in '' yes
3076 do
3077   # Use a header file that comes with gcc, so configuring glibc
3078   # with a fresh cross-compiler works.
3079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080   # <limits.h> exists even on freestanding compilers.
3081   # On the NeXT, cc -E runs the code through the compiler's parser,
3082   # not just through cpp. "Syntax error" is here to catch this case.
3083   cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089 #ifdef __STDC__
3090 # include <limits.h>
3091 #else
3092 # include <assert.h>
3093 #endif
3094                      Syntax error
3095 _ACEOF
3096 if { (ac_try="$ac_cpp conftest.$ac_ext"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } >/dev/null && {
3109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3110          test ! -s conftest.err
3111        }; then
3112   :
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117   # Broken: fails on valid input.
3118 continue
3119 fi
3120
3121 rm -f conftest.err conftest.$ac_ext
3122
3123   # OK, works on sane cases.  Now check whether nonexistent headers
3124   # can be detected and how.
3125   cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h.  */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h.  */
3131 #include <ac_nonexistent.h>
3132 _ACEOF
3133 if { (ac_try="$ac_cpp conftest.$ac_ext"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } >/dev/null && {
3146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3147          test ! -s conftest.err
3148        }; then
3149   # Broken: success on invalid input.
3150 continue
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155   # Passes both tests.
3156 ac_preproc_ok=:
3157 break
3158 fi
3159
3160 rm -f conftest.err conftest.$ac_ext
3161
3162 done
3163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164 rm -f conftest.err conftest.$ac_ext
3165 if $ac_preproc_ok; then
3166   :
3167 else
3168   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3171 See \`config.log' for more details." >&2;}
3172    { (exit 1); exit 1; }; }
3173 fi
3174
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
3181
3182 # Check whether --with-linker was given.
3183 if test "${with_linker+set}" = set; then
3184   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3185 echo "${ECHO_T}LD=$withval" >&6; }
3186 LD=$withval
3187 else
3188   if test -z "$LD" ; then LD=$CC; fi
3189 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3190 echo "${ECHO_T}LD defaults to $LD" >&6; }
3191 fi
3192 export LD
3193
3194
3195 # Check whether --with-ccopts was given.
3196 if test "${with_ccopts+set}" = set; then
3197   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3198 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3199 CFLAGS=$withval
3200 fi
3201
3202
3203 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3204 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   # Extract the first word of "grep ggrep" to use in msg output
3209 if test -z "$GREP"; then
3210 set dummy grep ggrep; ac_prog_name=$2
3211 if test "${ac_cv_path_GREP+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   ac_path_GREP_found=false
3215 # Loop through the user's path and test for each of PROGNAME-LIST
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221   for ac_prog in grep ggrep; do
3222   for ac_exec_ext in '' $ac_executable_extensions; do
3223     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3224     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3225     # Check for GNU ac_path_GREP and select it if it is found.
3226   # Check for GNU $ac_path_GREP
3227 case `"$ac_path_GREP" --version 2>&1` in
3228 *GNU*)
3229   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3230 *)
3231   ac_count=0
3232   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3233   while :
3234   do
3235     cat "conftest.in" "conftest.in" >"conftest.tmp"
3236     mv "conftest.tmp" "conftest.in"
3237     cp "conftest.in" "conftest.nl"
3238     echo 'GREP' >> "conftest.nl"
3239     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3240     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3241     ac_count=`expr $ac_count + 1`
3242     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3243       # Best one so far, save it but keep looking for a better one
3244       ac_cv_path_GREP="$ac_path_GREP"
3245       ac_path_GREP_max=$ac_count
3246     fi
3247     # 10*(2^10) chars as input seems more than enough
3248     test $ac_count -gt 10 && break
3249   done
3250   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3251 esac
3252
3253
3254     $ac_path_GREP_found && break 3
3255   done
3256 done
3257
3258 done
3259 IFS=$as_save_IFS
3260
3261
3262 fi
3263
3264 GREP="$ac_cv_path_GREP"
3265 if test -z "$GREP"; then
3266   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3267 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3268    { (exit 1); exit 1; }; }
3269 fi
3270
3271 else
3272   ac_cv_path_GREP=$GREP
3273 fi
3274
3275
3276 fi
3277 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3278 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3279  GREP="$ac_cv_path_GREP"
3280
3281
3282 { echo "$as_me:$LINENO: checking for egrep" >&5
3283 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3284 if test "${ac_cv_path_EGREP+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3288    then ac_cv_path_EGREP="$GREP -E"
3289    else
3290      # Extract the first word of "egrep" to use in msg output
3291 if test -z "$EGREP"; then
3292 set dummy egrep; ac_prog_name=$2
3293 if test "${ac_cv_path_EGREP+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296   ac_path_EGREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   for ac_prog in egrep; do
3304   for ac_exec_ext in '' $ac_executable_extensions; do
3305     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3307     # Check for GNU ac_path_EGREP and select it if it is found.
3308   # Check for GNU $ac_path_EGREP
3309 case `"$ac_path_EGREP" --version 2>&1` in
3310 *GNU*)
3311   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3312 *)
3313   ac_count=0
3314   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315   while :
3316   do
3317     cat "conftest.in" "conftest.in" >"conftest.tmp"
3318     mv "conftest.tmp" "conftest.in"
3319     cp "conftest.in" "conftest.nl"
3320     echo 'EGREP' >> "conftest.nl"
3321     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323     ac_count=`expr $ac_count + 1`
3324     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325       # Best one so far, save it but keep looking for a better one
3326       ac_cv_path_EGREP="$ac_path_EGREP"
3327       ac_path_EGREP_max=$ac_count
3328     fi
3329     # 10*(2^10) chars as input seems more than enough
3330     test $ac_count -gt 10 && break
3331   done
3332   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 esac
3334
3335
3336     $ac_path_EGREP_found && break 3
3337   done
3338 done
3339
3340 done
3341 IFS=$as_save_IFS
3342
3343
3344 fi
3345
3346 EGREP="$ac_cv_path_EGREP"
3347 if test -z "$EGREP"; then
3348   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350    { (exit 1); exit 1; }; }
3351 fi
3352
3353 else
3354   ac_cv_path_EGREP=$EGREP
3355 fi
3356
3357
3358    fi
3359 fi
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3362  EGREP="$ac_cv_path_EGREP"
3363
3364
3365 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3367 if test "${ac_cv_header_stdc+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376 #include <stdlib.h>
3377 #include <stdarg.h>
3378 #include <string.h>
3379 #include <float.h>
3380
3381 int
3382 main ()
3383 {
3384
3385   ;
3386   return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_compile") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } && {
3403          test -z "$ac_c_werror_flag" ||
3404          test ! -s conftest.err
3405        } && test -s conftest.$ac_objext; then
3406   ac_cv_header_stdc=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411         ac_cv_header_stdc=no
3412 fi
3413
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415
3416 if test $ac_cv_header_stdc = yes; then
3417   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3418   cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424 #include <string.h>
3425
3426 _ACEOF
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428   $EGREP "memchr" >/dev/null 2>&1; then
3429   :
3430 else
3431   ac_cv_header_stdc=no
3432 fi
3433 rm -f conftest*
3434
3435 fi
3436
3437 if test $ac_cv_header_stdc = yes; then
3438   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 #include <stdlib.h>
3446
3447 _ACEOF
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449   $EGREP "free" >/dev/null 2>&1; then
3450   :
3451 else
3452   ac_cv_header_stdc=no
3453 fi
3454 rm -f conftest*
3455
3456 fi
3457
3458 if test $ac_cv_header_stdc = yes; then
3459   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3460   if test "$cross_compiling" = yes; then
3461   :
3462 else
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <ctype.h>
3470 #include <stdlib.h>
3471 #if ((' ' & 0x0FF) == 0x020)
3472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3474 #else
3475 # define ISLOWER(c) \
3476                    (('a' <= (c) && (c) <= 'i') \
3477                      || ('j' <= (c) && (c) <= 'r') \
3478                      || ('s' <= (c) && (c) <= 'z'))
3479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3480 #endif
3481
3482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3483 int
3484 main ()
3485 {
3486   int i;
3487   for (i = 0; i < 256; i++)
3488     if (XOR (islower (i), ISLOWER (i))
3489         || toupper (i) != TOUPPER (i))
3490       return 2;
3491   return 0;
3492 }
3493 _ACEOF
3494 rm -f conftest$ac_exeext
3495 if { (ac_try="$ac_link"
3496 case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501   (eval "$ac_link") 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3505   { (case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510   (eval "$ac_try") 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); }; }; then
3514   :
3515 else
3516   echo "$as_me: program exited with status $ac_status" >&5
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 ( exit $ac_status )
3521 ac_cv_header_stdc=no
3522 fi
3523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3524 fi
3525
3526
3527 fi
3528 fi
3529 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3530 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3531 if test $ac_cv_header_stdc = yes; then
3532
3533 cat >>confdefs.h <<\_ACEOF
3534 #define STDC_HEADERS 1
3535 _ACEOF
3536
3537 fi
3538
3539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3550                   inttypes.h stdint.h unistd.h
3551 do
3552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564 $ac_includes_default
3565
3566 #include <$ac_header>
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575   (eval "$ac_compile") 2>conftest.er1
3576   ac_status=$?
3577   grep -v '^ *+' conftest.er1 >conftest.err
3578   rm -f conftest.er1
3579   cat conftest.err >&5
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } && {
3582          test -z "$ac_c_werror_flag" ||
3583          test ! -s conftest.err
3584        } && test -s conftest.$ac_objext; then
3585   eval "$as_ac_Header=yes"
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590         eval "$as_ac_Header=no"
3591 fi
3592
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595 ac_res=`eval echo '${'$as_ac_Header'}'`
3596                { echo "$as_me:$LINENO: result: $ac_res" >&5
3597 echo "${ECHO_T}$ac_res" >&6; }
3598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3599   cat >>confdefs.h <<_ACEOF
3600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601 _ACEOF
3602
3603 fi
3604
3605 done
3606
3607
3608 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3610 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3611 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 fi
3614 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3615 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3616 else
3617   # Is the header compilable?
3618 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3619 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3626 $ac_includes_default
3627 #include <linux/fs.h>
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (ac_try="$ac_compile"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636   (eval "$ac_compile") 2>conftest.er1
3637   ac_status=$?
3638   grep -v '^ *+' conftest.er1 >conftest.err
3639   rm -f conftest.er1
3640   cat conftest.err >&5
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); } && {
3643          test -z "$ac_c_werror_flag" ||
3644          test ! -s conftest.err
3645        } && test -s conftest.$ac_objext; then
3646   ac_header_compiler=yes
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651         ac_header_compiler=no
3652 fi
3653
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3656 echo "${ECHO_T}$ac_header_compiler" >&6; }
3657
3658 # Is the header present?
3659 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3660 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #include <linux/fs.h>
3668 _ACEOF
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } >/dev/null && {
3682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683          test ! -s conftest.err
3684        }; then
3685   ac_header_preproc=yes
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690   ac_header_preproc=no
3691 fi
3692
3693 rm -f conftest.err conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3695 echo "${ECHO_T}$ac_header_preproc" >&6; }
3696
3697 # So?  What about this header?
3698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3699   yes:no: )
3700     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3701 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3702     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3703 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3704     ac_header_preproc=yes
3705     ;;
3706   no:yes:* )
3707     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3708 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3709     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3710 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3712 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3713     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3714 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3715     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3716 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3717     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3718 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3719
3720     ;;
3721 esac
3722 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3723 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3724 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3725   echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727   ac_cv_header_linux_fs_h=$ac_header_preproc
3728 fi
3729 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3730 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3731
3732 fi
3733 if test $ac_cv_header_linux_fs_h = yes; then
3734   linux_headers=yes
3735 else
3736   linux_headers=no
3737 fi
3738
3739
3740 if test "$linux_headers" != yes; then
3741   LINUX_INCLUDE='-I$(top_builddir)/include'
3742 fi
3743
3744 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3745 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3746 if test "$GCC" = yes
3747 then
3748     case "$host_cpu" in
3749         alpha)          addcflags="-mieee" ;;
3750     esac
3751 fi
3752 if test "x$addcflags" != x
3753 then
3754     { echo "$as_me:$LINENO: result: $addcflags" >&5
3755 echo "${ECHO_T}$addcflags" >&6; }
3756     CFLAGS="$addcflags $CFLAGS"
3757 else
3758     { echo "$as_me:$LINENO: result: (none)" >&5
3759 echo "${ECHO_T}(none)" >&6; }
3760 fi
3761 LIB_EXT=.a
3762 STATIC_LIB_EXT=.a
3763 PROFILE_LIB_EXT=.a
3764
3765 # Check whether --with-ldopts was given.
3766 if test "${with_ldopts+set}" = set; then
3767   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3768 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3769 LDFLAGS=$withval
3770 fi
3771
3772
3773 # Check whether --with-root-prefix was given.
3774 if test "${with_root_prefix+set}" = set; then
3775   withval=$with_root_prefix; root_prefix=$withval
3776 else
3777   root_prefix=NONE
3778 fi
3779 # Check whether --enable-maintainer-mode was given.
3780 if test "${enable_maintainer_mode+set}" = set; then
3781   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3782 then
3783         MAINTAINER_CMT=#
3784         { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3785 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3786 else
3787         MAINTAINER_CMT=
3788         { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3789 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3790 fi
3791
3792 else
3793   MAINTAINER_CMT=#
3794 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3795 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3796
3797 fi
3798
3799
3800 # Check whether --enable-compression was given.
3801 if test "${enable_compression+set}" = set; then
3802   enableval=$enable_compression; if test "$enableval" = "no"
3803 then
3804         { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3805 echo "${ECHO_T}Disabling compression support" >&6; }
3806 else
3807         cat >>confdefs.h <<\_ACEOF
3808 #define ENABLE_COMPRESSION 1
3809 _ACEOF
3810
3811         { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3812 echo "${ECHO_T}Enabling compression support" >&6; }
3813         { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3814 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3815 fi
3816
3817 else
3818   { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3819 echo "${ECHO_T}Disabling compression support by default" >&6; }
3820
3821 fi
3822
3823 # Check whether --enable-htree was given.
3824 if test "${enable_htree+set}" = set; then
3825   enableval=$enable_htree; if test "$enableval" = "no"
3826 then
3827         HTREE_CMT=#
3828         { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3829 echo "${ECHO_T}Disabling htree directory support" >&6; }
3830 else
3831         HTREE_CMT=
3832         cat >>confdefs.h <<\_ACEOF
3833 #define ENABLE_HTREE 1
3834 _ACEOF
3835
3836         { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3837 echo "${ECHO_T}Enabling htree directory support" >&6; }
3838 fi
3839
3840 else
3841   HTREE_CMT=
3842 cat >>confdefs.h <<\_ACEOF
3843 #define ENABLE_HTREE 1
3844 _ACEOF
3845
3846 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3847 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3848
3849 fi
3850
3851
3852 E2_PKG_CONFIG_STATIC=--static
3853 # Check whether --enable-elf-shlibs was given.
3854 if test "${enable_elf_shlibs+set}" = set; then
3855   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3856 then
3857         ELF_CMT=#
3858         MAKEFILE_ELF=/dev/null
3859         { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3860 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3861 else
3862         E2_PKG_CONFIG_STATIC=
3863         ELF_CMT=
3864         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3865         case "$host_os" in
3866         solaris2.*)
3867                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3868         ;;
3869         esac
3870         BINARY_TYPE=elfbin
3871         LIB_EXT=.so
3872         { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3873 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3874 fi
3875
3876 else
3877   MAKEFILE_ELF=/dev/null
3878 ELF_CMT=#
3879 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3880 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3881
3882 fi
3883
3884
3885
3886 # Check whether --enable-bsd-shlibs was given.
3887 if test "${enable_bsd_shlibs+set}" = set; then
3888   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3889 then
3890         BSDLIB_CMT=#
3891         MAKEFILE_BSDLIB=/dev/null
3892         { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3893 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3894 else
3895         E2_PKG_CONFIG_STATIC=
3896         BSDLIB_CMT=
3897         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3898         LIB_EXT=.so
3899         case "$host_os" in
3900         darwin*)
3901                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3902                 LIB_EXT=.dylib
3903         ;;
3904         esac
3905         { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3906 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3907 fi
3908
3909 else
3910   MAKEFILE_BSDLIB=/dev/null
3911 BSDLIB_CMT=#
3912 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3913 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3914
3915 fi
3916
3917
3918
3919 # Check whether --enable-profile was given.
3920 if test "${enable_profile+set}" = set; then
3921   enableval=$enable_profile; if test "$enableval" = "no"
3922 then
3923         PROFILE_CMT=#
3924         MAKEFILE_PROFILE=/dev/null
3925         { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3926 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3927 else
3928         PROFILE_CMT=
3929         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3930         PROFILED_LIB_EXT=_p.a
3931         { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3932 echo "${ECHO_T}Building profiling libraries" >&6; }
3933 fi
3934
3935 else
3936   PROFILE_CMT=#
3937 MAKEFILE_PROFILE=/dev/null
3938 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3939 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3940
3941 fi
3942
3943
3944
3945 # Check whether --enable-checker was given.
3946 if test "${enable_checker+set}" = set; then
3947   enableval=$enable_checker; if test "$enableval" = "no"
3948 then
3949         CHECKER_CMT=#
3950         MAKEFILE_CHECKER=/dev/null
3951         { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3952 echo "${ECHO_T}Disabling checker libraries" >&6; }
3953 else
3954         CHECKER_CMT=
3955         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3956         { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3957 echo "${ECHO_T}Building checker libraries" >&6; }
3958 fi
3959
3960 else
3961   CHECKER_CMT=#
3962 MAKEFILE_CHECKER=/dev/null
3963 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3964 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3965
3966 fi
3967
3968
3969
3970
3971
3972
3973 # Check whether --enable-jbd-debug was given.
3974 if test "${enable_jbd_debug+set}" = set; then
3975   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3976 then
3977         { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3978 echo "${ECHO_T}Disabling journal debugging" >&6; }
3979 else
3980         cat >>confdefs.h <<\_ACEOF
3981 #define CONFIG_JBD_DEBUG 1
3982 _ACEOF
3983
3984         { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3985 echo "${ECHO_T}Enabling journal debugging" >&6; }
3986 fi
3987
3988 else
3989   { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3990 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3991
3992 fi
3993
3994 # Check whether --enable-blkid-debug was given.
3995 if test "${enable_blkid_debug+set}" = set; then
3996   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3997 then
3998         { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
3999 echo "${ECHO_T}Disabling blkid debugging" >&6; }
4000 else
4001         cat >>confdefs.h <<\_ACEOF
4002 #define CONFIG_BLKID_DEBUG 1
4003 _ACEOF
4004
4005         { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4006 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4007 fi
4008
4009 else
4010   { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4011 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4012
4013 fi
4014
4015 # Check whether --enable-testio-debug was given.
4016 if test "${enable_testio_debug+set}" = set; then
4017   enableval=$enable_testio_debug; if test "$enableval" = "no"
4018 then
4019         { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4020 echo "${ECHO_T}Disabling testio debugging" >&6; }
4021 else
4022         cat >>confdefs.h <<\_ACEOF
4023 #define CONFIG_TESTIO_DEBUG 1
4024 _ACEOF
4025
4026         { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4027 echo "${ECHO_T}Enabling testio debugging" >&6; }
4028 fi
4029
4030 else
4031   { echo "$as_me:$LINENO: result: Disabling testio debugging by default" >&5
4032 echo "${ECHO_T}Disabling testio debugging by default" >&6; }
4033
4034 fi
4035
4036 # Check whether --enable-debugfs was given.
4037 if test "${enable_debugfs+set}" = set; then
4038   enableval=$enable_debugfs; if test "$enableval" = "no"
4039 then
4040         { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4041 echo "${ECHO_T}Disabling debugfs support" >&6; }
4042         DEBUGFS_CMT="#"
4043 else
4044         DEBUGFS_CMT=
4045         { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4046 echo "${ECHO_T}Enabling debugfs support" >&6; }
4047 fi
4048
4049 else
4050   { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4051 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4052 DEBUGFS_CMT=
4053
4054 fi
4055
4056
4057 # Check whether --enable-imager was given.
4058 if test "${enable_imager+set}" = set; then
4059   enableval=$enable_imager; if test "$enableval" = "no"
4060 then
4061         { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4062 echo "${ECHO_T}Disabling e2image support" >&6; }
4063         IMAGER_CMT="#"
4064 else
4065         IMAGER_CMT=
4066         { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4067 echo "${ECHO_T}Enabling e2image support" >&6; }
4068 fi
4069
4070 else
4071   { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4072 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4073 IMAGER_CMT=
4074
4075 fi
4076
4077
4078 # Check whether --enable-resizer was given.
4079 if test "${enable_resizer+set}" = set; then
4080   enableval=$enable_resizer; if test "$enableval" = "no"
4081 then
4082         { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4083 echo "${ECHO_T}Disabling e2resize support" >&6; }
4084         RESIZER_CMT="#"
4085 else
4086         RESIZER_CMT=
4087         { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4088 echo "${ECHO_T}Enabling e2resize support" >&6; }
4089 fi
4090
4091 else
4092   { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4093 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4094 RESIZER_CMT=
4095
4096 fi
4097
4098
4099 # Check whether --enable-fsck was given.
4100 if test "${enable_fsck+set}" = set; then
4101   enableval=$enable_fsck; if test "$enableval" = "no"
4102 then
4103         FSCK_PROG='' FSCK_MAN=''
4104         { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4105 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4106 else
4107         FSCK_PROG=fsck FSCK_MAN=fsck.8
4108         { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4109 echo "${ECHO_T}Building fsck wrapper" >&6; }
4110 fi
4111
4112 else
4113   case "$host_os" in
4114   gnu*)
4115     FSCK_PROG='' FSCK_MAN=''
4116     { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4117 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4118     ;;
4119   *)
4120     FSCK_PROG=fsck FSCK_MAN=fsck.8
4121     { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4122 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4123 esac
4124
4125 fi
4126
4127
4128
4129 # Check whether --enable-e2initrd-helper was given.
4130 if test "${enable_e2initrd_helper+set}" = set; then
4131   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4132 then
4133         E2INITRD_PROG='' E2INITRD_MAN=''
4134         { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4135 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4136 else
4137         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4138         { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4139 echo "${ECHO_T}Building e2initrd helper" >&6; }
4140 fi
4141
4142 else
4143   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4144 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4145 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4146
4147 fi
4148
4149
4150
4151 STATIC_BLKID_DEVMAPPER_LIBS=''
4152 # Check whether --enable-blkid-devmapper was given.
4153 if test "${enable_blkid_devmapper+set}" = set; then
4154   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4155 then
4156         { echo "$as_me:$LINENO: result: Disabling device-mapper support" >&5
4157 echo "${ECHO_T}Disabling device-mapper support" >&6; }
4158         DEVMAPPER_REQ=''
4159         DEVMAPPER_LIBS=''
4160         STATIC_DEVMAPPER_LIBS=''
4161 else
4162         cat >>confdefs.h <<\_ACEOF
4163 #define HAVE_DEVMAPPER 1
4164 _ACEOF
4165
4166         { echo "$as_me:$LINENO: result: Enabling device-mapper support" >&5
4167 echo "${ECHO_T}Enabling device-mapper support" >&6; }
4168
4169
4170
4171 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4172         if test -n "$ac_tool_prefix"; then
4173   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   case $PKG_CONFIG in
4181   [\\/]* | ?:[\\/]*)
4182   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4183   ;;
4184   *)
4185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190   for ac_exec_ext in '' $ac_executable_extensions; do
4191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197 done
4198 IFS=$as_save_IFS
4199
4200   ;;
4201 esac
4202 fi
4203 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4204 if test -n "$PKG_CONFIG"; then
4205   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4206 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4207 else
4208   { echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6; }
4210 fi
4211
4212
4213 fi
4214 if test -z "$ac_cv_path_PKG_CONFIG"; then
4215   ac_pt_PKG_CONFIG=$PKG_CONFIG
4216   # Extract the first word of "pkg-config", so it can be a program name with args.
4217 set dummy pkg-config; ac_word=$2
4218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4220 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4221   echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223   case $ac_pt_PKG_CONFIG in
4224   [\\/]* | ?:[\\/]*)
4225   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4226   ;;
4227   *)
4228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243   ;;
4244 esac
4245 fi
4246 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4247 if test -n "$ac_pt_PKG_CONFIG"; then
4248   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4249 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4250 else
4251   { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4253 fi
4254
4255   if test "x$ac_pt_PKG_CONFIG" = x; then
4256     PKG_CONFIG=""
4257   else
4258     case $cross_compiling:$ac_tool_warned in
4259 yes:)
4260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4261 whose name does not start with the host triplet.  If you think this
4262 configuration is useful to you, please write to autoconf@gnu.org." >&5
4263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet.  If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268     PKG_CONFIG=$ac_pt_PKG_CONFIG
4269   fi
4270 else
4271   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4272 fi
4273
4274 fi
4275 if test -n "$PKG_CONFIG"; then
4276         _pkg_min_version=0.9.0
4277         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4278 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4279         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4280                 { echo "$as_me:$LINENO: result: yes" >&5
4281 echo "${ECHO_T}yes" >&6; }
4282         else
4283                 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4285                 PKG_CONFIG=""
4286         fi
4287
4288 fi
4289
4290         if test -z "$PKG_CONFIG"; then
4291                 { { echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4292 echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4293    { (exit 1); exit 1; }; }
4294         fi
4295
4296         { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4297 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4298 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   ac_check_lib_save_LIBS=$LIBS
4302 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4303 cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309
4310 /* Override any GCC internal prototype to avoid an error.
4311    Use char because int might match the return type of a GCC
4312    builtin and then its argument prototype would still apply.  */
4313 #ifdef __cplusplus
4314 extern "C"
4315 #endif
4316 char dm_tree_create ();
4317 int
4318 main ()
4319 {
4320 return dm_tree_create ();
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext conftest$ac_exeext
4326 if { (ac_try="$ac_link"
4327 case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332   (eval "$ac_link") 2>conftest.er1
4333   ac_status=$?
4334   grep -v '^ *+' conftest.er1 >conftest.err
4335   rm -f conftest.er1
4336   cat conftest.err >&5
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); } && {
4339          test -z "$ac_c_werror_flag" ||
4340          test ! -s conftest.err
4341        } && test -s conftest$ac_exeext &&
4342        $as_test_x conftest$ac_exeext; then
4343   ac_cv_lib_devmapper_dm_tree_create=yes
4344 else
4345   echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348         ac_cv_lib_devmapper_dm_tree_create=no
4349 fi
4350
4351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4352       conftest$ac_exeext conftest.$ac_ext
4353 LIBS=$ac_check_lib_save_LIBS
4354 fi
4355 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4356 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4357 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4358   DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4359                  STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4360                  DEVMAPPER_REQ="devmapper";
4361                  DEVMAPPER_PC_LIBS="-ldevmapper"
4362 else
4363   { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4364 echo "$as_me: error: device-mapper library not found" >&2;}
4365    { (exit 1); exit 1; }; }
4366 fi
4367
4368         # work around stupid devmapper.pc bug in Debian
4369         case "$STATIC_DEVMAPPER_LIBS" in
4370         *pthread*)
4371             ;;
4372         *)
4373             { echo "$as_me:$LINENO: WARNING: Working around Debian bug 390243..." >&5
4374 echo "$as_me: WARNING: Working around Debian bug 390243..." >&2;}
4375             STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4376             ;;
4377         esac
4378         if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4379             DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4380             STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4381         fi
4382 fi
4383
4384 else
4385   { echo "$as_me:$LINENO: result: Disabling device-mapper support by default" >&5
4386 echo "${ECHO_T}Disabling device-mapper support by default" >&6; }
4387
4388 fi
4389
4390
4391
4392
4393
4394
4395 # Check whether --enable-tls was given.
4396 if test "${enable_tls+set}" = set; then
4397   enableval=$enable_tls; if test "$enableval" = "no"
4398 then
4399         try_tls=""
4400         { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4401 echo "${ECHO_T}Disabling thread local support" >&6; }
4402 else
4403         try_tls="yes"
4404         { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4405 echo "${ECHO_T}Enabling thread local support" >&6; }
4406 fi
4407
4408 else
4409   if test -n "$WITH_DIET_LIBC"
4410 then
4411         try_tls=""
4412         { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4413 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4414 else
4415         try_tls="yes"
4416         { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4417 echo "${ECHO_T}Try using thread local support by default" >&6; }
4418 fi
4419
4420 fi
4421
4422 if test "$try_tls" = "yes"
4423 then
4424
4425   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4426 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4427   if test "${ac_cv_tls+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430
4431     ax_tls_keywords="__thread __declspec(thread) none"
4432     for ax_tls_keyword in $ax_tls_keywords; do
4433        case $ax_tls_keyword in
4434           none) ac_cv_tls=none ; break ;;
4435           *)
4436              cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #include <stdlib.h>
4443                  static void
4444                  foo(void) {
4445                  static  $ax_tls_keyword  int bar;
4446                  exit(1);
4447                  }
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4458 case "(($ac_try" in
4459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460   *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463   (eval "$ac_compile") 2>conftest.er1
4464   ac_status=$?
4465   grep -v '^ *+' conftest.er1 >conftest.err
4466   rm -f conftest.er1
4467   cat conftest.err >&5
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } && {
4470          test -z "$ac_c_werror_flag" ||
4471          test ! -s conftest.err
4472        } && test -s conftest.$ac_objext; then
4473   ac_cv_tls=$ax_tls_keyword ; break
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478         ac_cv_tls=none
4479
4480 fi
4481
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483           esac
4484     done
4485
4486 fi
4487
4488
4489   if test "$ac_cv_tls" != "none"; then
4490
4491 cat >>confdefs.h <<_ACEOF
4492 #define TLS $ac_cv_tls
4493 _ACEOF
4494
4495   fi
4496   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4497 echo "${ECHO_T}$ac_cv_tls" >&6; }
4498
4499 fi
4500 # Check whether --enable-uuidd was given.
4501 if test "${enable_uuidd+set}" = set; then
4502   enableval=$enable_uuidd; if test "$enableval" = "no"
4503 then
4504         { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4505 echo "${ECHO_T}Not building uuidd" >&6; }
4506         UUIDD_CMT="#"
4507 else
4508         cat >>confdefs.h <<\_ACEOF
4509 #define USE_UUIDD 1
4510 _ACEOF
4511
4512         UUIDD_CMT=""
4513         { echo "$as_me:$LINENO: result: Building uuidd" >&5
4514 echo "${ECHO_T}Building uuidd" >&6; }
4515 fi
4516
4517 else
4518   cat >>confdefs.h <<\_ACEOF
4519 #define USE_UUIDD 1
4520 _ACEOF
4521
4522 UUIDD_CMT=""
4523 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4524 echo "${ECHO_T}Building uuidd by default" >&6; }
4525
4526 fi
4527
4528
4529 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4530
4531 GETTEXT_PACKAGE=e2fsprogs
4532 PACKAGE=e2fsprogs
4533 VERSION="$E2FSPROGS_VERSION"
4534 VERSION=0.14.1
4535 cat >>confdefs.h <<_ACEOF
4536 #define PACKAGE "$PACKAGE"
4537 _ACEOF
4538
4539 cat >>confdefs.h <<_ACEOF
4540 #define VERSION "$VERSION"
4541 _ACEOF
4542
4543
4544
4545
4546
4547 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4548 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4549 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4550 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   cat >conftest.make <<\_ACEOF
4554 SHELL = /bin/sh
4555 all:
4556         @echo '@@@%%%=$(MAKE)=@@@%%%'
4557 _ACEOF
4558 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4559 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4560   *@@@%%%=?*=@@@%%%*)
4561     eval ac_cv_prog_make_${ac_make}_set=yes;;
4562   *)
4563     eval ac_cv_prog_make_${ac_make}_set=no;;
4564 esac
4565 rm -f conftest.make
4566 fi
4567 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4568   { echo "$as_me:$LINENO: result: yes" >&5
4569 echo "${ECHO_T}yes" >&6; }
4570   SET_MAKE=
4571 else
4572   { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4574   SET_MAKE="MAKE=${MAKE-make}"
4575 fi
4576
4577 # Find a good install program.  We prefer a C program (faster),
4578 # so one script is as good as another.  But avoid the broken or
4579 # incompatible versions:
4580 # SysV /etc/install, /usr/sbin/install
4581 # SunOS /usr/etc/install
4582 # IRIX /sbin/install
4583 # AIX /bin/install
4584 # AmigaOS /C/install, which installs bootblocks on floppy discs
4585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4588 # OS/2's system install, which has a completely different semantic
4589 # ./install, which can be erroneously created by make from ./install.sh.
4590 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4591 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4592 if test -z "$INSTALL"; then
4593 if test "${ac_cv_path_install+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599   IFS=$as_save_IFS
4600   test -z "$as_dir" && as_dir=.
4601   # Account for people who put trailing slashes in PATH elements.
4602 case $as_dir/ in
4603   ./ | .// | /cC/* | \
4604   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4605   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4606   /usr/ucb/* ) ;;
4607   *)
4608     # OSF1 and SCO ODT 3.0 have their own names for install.
4609     # Don't use installbsd from OSF since it installs stuff as root
4610     # by default.
4611     for ac_prog in ginstall scoinst install; do
4612       for ac_exec_ext in '' $ac_executable_extensions; do
4613         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4614           if test $ac_prog = install &&
4615             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4616             # AIX install.  It has an incompatible calling convention.
4617             :
4618           elif test $ac_prog = install &&
4619             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4620             # program-specific install script used by HP pwplus--don't use.
4621             :
4622           else
4623             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4624             break 3
4625           fi
4626         fi
4627       done
4628     done
4629     ;;
4630 esac
4631 done
4632 IFS=$as_save_IFS
4633
4634
4635 fi
4636   if test "${ac_cv_path_install+set}" = set; then
4637     INSTALL=$ac_cv_path_install
4638   else
4639     # As a last resort, use the slow shell script.  Don't cache a
4640     # value for INSTALL within a source directory, because that will
4641     # break other packages using the cache if that directory is
4642     # removed, or if the value is a relative name.
4643     INSTALL=$ac_install_sh
4644   fi
4645 fi
4646 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4647 echo "${ECHO_T}$INSTALL" >&6; }
4648
4649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4650 # It thinks the first close brace ends the variable substitution.
4651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4652
4653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4654
4655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4656
4657
4658         MKINSTALLDIRS=
4659   if test -n "$ac_aux_dir"; then
4660     case "$ac_aux_dir" in
4661       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4662       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4663     esac
4664   fi
4665   if test -z "$MKINSTALLDIRS"; then
4666     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4667   fi
4668
4669
4670
4671   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4672 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4673     # Check whether --enable-nls was given.
4674 if test "${enable_nls+set}" = set; then
4675   enableval=$enable_nls; USE_NLS=$enableval
4676 else
4677   USE_NLS=yes
4678 fi
4679
4680   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4681 echo "${ECHO_T}$USE_NLS" >&6; }
4682
4683
4684
4685
4686
4687
4688 # Prepare PATH_SEPARATOR.
4689 # The user is always right.
4690 if test "${PATH_SEPARATOR+set}" != set; then
4691   echo "#! /bin/sh" >conf$$.sh
4692   echo  "exit 0"   >>conf$$.sh
4693   chmod +x conf$$.sh
4694   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4695     PATH_SEPARATOR=';'
4696   else
4697     PATH_SEPARATOR=:
4698   fi
4699   rm -f conf$$.sh
4700 fi
4701
4702 # Find out how to test for executable files. Don't use a zero-byte file,
4703 # as systems may use methods other than mode bits to determine executability.
4704 cat >conf$$.file <<_ASEOF
4705 #! /bin/sh
4706 exit 0
4707 _ASEOF
4708 chmod +x conf$$.file
4709 if test -x conf$$.file >/dev/null 2>&1; then
4710   ac_executable_p="test -x"
4711 else
4712   ac_executable_p="test -f"
4713 fi
4714 rm -f conf$$.file
4715
4716 # Extract the first word of "msgfmt", so it can be a program name with args.
4717 set dummy msgfmt; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_path_MSGFMT+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   case "$MSGFMT" in
4724   [\\/]* | ?:[\\/]*)
4725     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4726     ;;
4727   *)
4728     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4729     for ac_dir in $PATH; do
4730       IFS="$ac_save_IFS"
4731       test -z "$ac_dir" && ac_dir=.
4732       for ac_exec_ext in '' $ac_executable_extensions; do
4733         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4734           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4735      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4736             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4737             break 2
4738           fi
4739         fi
4740       done
4741     done
4742     IFS="$ac_save_IFS"
4743   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4744     ;;
4745 esac
4746 fi
4747 MSGFMT="$ac_cv_path_MSGFMT"
4748 if test "$MSGFMT" != ":"; then
4749   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4750 echo "${ECHO_T}$MSGFMT" >&6; }
4751 else
4752   { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 fi
4755
4756   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4757 set dummy gmsgfmt; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   case $GMSGFMT in
4764   [\\/]* | ?:[\\/]*)
4765   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4766   ;;
4767   *)
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773   for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4784   ;;
4785 esac
4786 fi
4787 GMSGFMT=$ac_cv_path_GMSGFMT
4788 if test -n "$GMSGFMT"; then
4789   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4790 echo "${ECHO_T}$GMSGFMT" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796
4797
4798
4799 # Prepare PATH_SEPARATOR.
4800 # The user is always right.
4801 if test "${PATH_SEPARATOR+set}" != set; then
4802   echo "#! /bin/sh" >conf$$.sh
4803   echo  "exit 0"   >>conf$$.sh
4804   chmod +x conf$$.sh
4805   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4806     PATH_SEPARATOR=';'
4807   else
4808     PATH_SEPARATOR=:
4809   fi
4810   rm -f conf$$.sh
4811 fi
4812
4813 # Find out how to test for executable files. Don't use a zero-byte file,
4814 # as systems may use methods other than mode bits to determine executability.
4815 cat >conf$$.file <<_ASEOF
4816 #! /bin/sh
4817 exit 0
4818 _ASEOF
4819 chmod +x conf$$.file
4820 if test -x conf$$.file >/dev/null 2>&1; then
4821   ac_executable_p="test -x"
4822 else
4823   ac_executable_p="test -f"
4824 fi
4825 rm -f conf$$.file
4826
4827 # Extract the first word of "xgettext", so it can be a program name with args.
4828 set dummy xgettext; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   case "$XGETTEXT" in
4835   [\\/]* | ?:[\\/]*)
4836     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4837     ;;
4838   *)
4839     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4840     for ac_dir in $PATH; do
4841       IFS="$ac_save_IFS"
4842       test -z "$ac_dir" && ac_dir=.
4843       for ac_exec_ext in '' $ac_executable_extensions; do
4844         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4845           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4846      (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
4847             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4848             break 2
4849           fi
4850         fi
4851       done
4852     done
4853     IFS="$ac_save_IFS"
4854   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4855     ;;
4856 esac
4857 fi
4858 XGETTEXT="$ac_cv_path_XGETTEXT"
4859 if test "$XGETTEXT" != ":"; then
4860   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4861 echo "${ECHO_T}$XGETTEXT" >&6; }
4862 else
4863   { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4865 fi
4866
4867     rm -f messages.po
4868
4869
4870 # Prepare PATH_SEPARATOR.
4871 # The user is always right.
4872 if test "${PATH_SEPARATOR+set}" != set; then
4873   echo "#! /bin/sh" >conf$$.sh
4874   echo  "exit 0"   >>conf$$.sh
4875   chmod +x conf$$.sh
4876   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4877     PATH_SEPARATOR=';'
4878   else
4879     PATH_SEPARATOR=:
4880   fi
4881   rm -f conf$$.sh
4882 fi
4883
4884 # Find out how to test for executable files. Don't use a zero-byte file,
4885 # as systems may use methods other than mode bits to determine executability.
4886 cat >conf$$.file <<_ASEOF
4887 #! /bin/sh
4888 exit 0
4889 _ASEOF
4890 chmod +x conf$$.file
4891 if test -x conf$$.file >/dev/null 2>&1; then
4892   ac_executable_p="test -x"
4893 else
4894   ac_executable_p="test -f"
4895 fi
4896 rm -f conf$$.file
4897
4898 # Extract the first word of "msgmerge", so it can be a program name with args.
4899 set dummy msgmerge; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case "$MSGMERGE" in
4906   [\\/]* | ?:[\\/]*)
4907     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4908     ;;
4909   *)
4910     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4911     for ac_dir in $PATH; do
4912       IFS="$ac_save_IFS"
4913       test -z "$ac_dir" && ac_dir=.
4914       for ac_exec_ext in '' $ac_executable_extensions; do
4915         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4916           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4917             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4918             break 2
4919           fi
4920         fi
4921       done
4922     done
4923     IFS="$ac_save_IFS"
4924   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4925     ;;
4926 esac
4927 fi
4928 MSGMERGE="$ac_cv_path_MSGMERGE"
4929 if test "$MSGMERGE" != ":"; then
4930   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4931 echo "${ECHO_T}$MSGMERGE" >&6; }
4932 else
4933   { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4935 fi
4936
4937
4938       if test "$GMSGFMT" != ":"; then
4939             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4940        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4941       : ;
4942     else
4943       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4944       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4945 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4946       GMSGFMT=":"
4947     fi
4948   fi
4949
4950       if test "$XGETTEXT" != ":"; then
4951             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4952        (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
4953       : ;
4954     else
4955       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4956 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4957       XGETTEXT=":"
4958     fi
4959         rm -f messages.po
4960   fi
4961
4962   ac_config_commands="$ac_config_commands default-1"
4963
4964
4965 if test -n "$ac_tool_prefix"; then
4966   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_RANLIB+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   if test -n "$RANLIB"; then
4974   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981   for ac_exec_ext in '' $ac_executable_extensions; do
4982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 RANLIB=$ac_cv_prog_RANLIB
4994 if test -n "$RANLIB"; then
4995   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4996 echo "${ECHO_T}$RANLIB" >&6; }
4997 else
4998   { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5000 fi
5001
5002
5003 fi
5004 if test -z "$ac_cv_prog_RANLIB"; then
5005   ac_ct_RANLIB=$RANLIB
5006   # Extract the first word of "ranlib", so it can be a program name with args.
5007 set dummy ranlib; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   if test -n "$ac_ct_RANLIB"; then
5014   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019   IFS=$as_save_IFS
5020   test -z "$as_dir" && as_dir=.
5021   for ac_exec_ext in '' $ac_executable_extensions; do
5022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023     ac_cv_prog_ac_ct_RANLIB="ranlib"
5024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025     break 2
5026   fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5034 if test -n "$ac_ct_RANLIB"; then
5035   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5036 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5037 else
5038   { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042   if test "x$ac_ct_RANLIB" = x; then
5043     RANLIB=":"
5044   else
5045     case $cross_compiling:$ac_tool_warned in
5046 yes:)
5047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5048 whose name does not start with the host triplet.  If you think this
5049 configuration is useful to you, please write to autoconf@gnu.org." >&5
5050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5051 whose name does not start with the host triplet.  If you think this
5052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5053 ac_tool_warned=yes ;;
5054 esac
5055     RANLIB=$ac_ct_RANLIB
5056   fi
5057 else
5058   RANLIB="$ac_cv_prog_RANLIB"
5059 fi
5060
5061
5062         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5063 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5064 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   ac_check_lib_save_LIBS=$LIBS
5068 LIBS="-lcposix  $LIBS"
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h.  */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h.  */
5075
5076 /* Override any GCC internal prototype to avoid an error.
5077    Use char because int might match the return type of a GCC
5078    builtin and then its argument prototype would still apply.  */
5079 #ifdef __cplusplus
5080 extern "C"
5081 #endif
5082 char strerror ();
5083 int
5084 main ()
5085 {
5086 return strerror ();
5087   ;
5088   return 0;
5089 }
5090 _ACEOF
5091 rm -f conftest.$ac_objext conftest$ac_exeext
5092 if { (ac_try="$ac_link"
5093 case "(($ac_try" in
5094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095   *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098   (eval "$ac_link") 2>conftest.er1
5099   ac_status=$?
5100   grep -v '^ *+' conftest.er1 >conftest.err
5101   rm -f conftest.er1
5102   cat conftest.err >&5
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } && {
5105          test -z "$ac_c_werror_flag" ||
5106          test ! -s conftest.err
5107        } && test -s conftest$ac_exeext &&
5108        $as_test_x conftest$ac_exeext; then
5109   ac_cv_lib_cposix_strerror=yes
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114         ac_cv_lib_cposix_strerror=no
5115 fi
5116
5117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5118       conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_check_lib_save_LIBS
5120 fi
5121 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5122 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5123 if test $ac_cv_lib_cposix_strerror = yes; then
5124   LIBS="$LIBS -lcposix"
5125 fi
5126
5127
5128
5129 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5130 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5131 if test "${ac_cv_c_const+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140
5141 int
5142 main ()
5143 {
5144 /* FIXME: Include the comments suggested by Paul. */
5145 #ifndef __cplusplus
5146   /* Ultrix mips cc rejects this.  */
5147   typedef int charset[2];
5148   const charset cs;
5149   /* SunOS 4.1.1 cc rejects this.  */
5150   char const *const *pcpcc;
5151   char **ppc;
5152   /* NEC SVR4.0.2 mips cc rejects this.  */
5153   struct point {int x, y;};
5154   static struct point const zero = {0,0};
5155   /* AIX XL C 1.02.0.0 rejects this.
5156      It does not let you subtract one const X* pointer from another in
5157      an arm of an if-expression whose if-part is not a constant
5158      expression */
5159   const char *g = "string";
5160   pcpcc = &g + (g ? g-g : 0);
5161   /* HPUX 7.0 cc rejects these. */
5162   ++pcpcc;
5163   ppc = (char**) pcpcc;
5164   pcpcc = (char const *const *) ppc;
5165   { /* SCO 3.2v4 cc rejects this.  */
5166     char *t;
5167     char const *s = 0 ? (char *) 0 : (char const *) 0;
5168
5169     *t++ = 0;
5170     if (s) return 0;
5171   }
5172   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5173     int x[] = {25, 17};
5174     const int *foo = &x[0];
5175     ++foo;
5176   }
5177   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5178     typedef const int *iptr;
5179     iptr p = 0;
5180     ++p;
5181   }
5182   { /* AIX XL C 1.02.0.0 rejects this saying
5183        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5184     struct s { int j; const int *ap[3]; };
5185     struct s *b; b->j = 5;
5186   }
5187   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5188     const int foo = 10;
5189     if (!foo) return 0;
5190   }
5191   return !cs[0] && !zero.x;
5192 #endif
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5200 case "(($ac_try" in
5201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202   *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205   (eval "$ac_compile") 2>conftest.er1
5206   ac_status=$?
5207   grep -v '^ *+' conftest.er1 >conftest.err
5208   rm -f conftest.er1
5209   cat conftest.err >&5
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } && {
5212          test -z "$ac_c_werror_flag" ||
5213          test ! -s conftest.err
5214        } && test -s conftest.$ac_objext; then
5215   ac_cv_c_const=yes
5216 else
5217   echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220         ac_cv_c_const=no
5221 fi
5222
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5226 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5227 if test $ac_cv_c_const = no; then
5228
5229 cat >>confdefs.h <<\_ACEOF
5230 #define const
5231 _ACEOF
5232
5233 fi
5234
5235
5236   { echo "$as_me:$LINENO: checking for signed" >&5
5237 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5238 if test "${bh_cv_c_signed+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h.  */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h.  */
5247
5248 int
5249 main ()
5250 {
5251 signed char x;
5252   ;
5253   return 0;
5254 }
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5258 case "(($ac_try" in
5259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260   *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263   (eval "$ac_compile") 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } && {
5270          test -z "$ac_c_werror_flag" ||
5271          test ! -s conftest.err
5272        } && test -s conftest.$ac_objext; then
5273   bh_cv_c_signed=yes
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278         bh_cv_c_signed=no
5279 fi
5280
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 fi
5283 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5284 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5285   if test $bh_cv_c_signed = no; then
5286
5287 cat >>confdefs.h <<\_ACEOF
5288 #define signed
5289 _ACEOF
5290
5291   fi
5292
5293 { echo "$as_me:$LINENO: checking for inline" >&5
5294 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5295 if test "${ac_cv_c_inline+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   ac_cv_c_inline=no
5299 for ac_kw in inline __inline__ __inline; do
5300   cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306 #ifndef __cplusplus
5307 typedef int foo_t;
5308 static $ac_kw foo_t static_foo () {return 0; }
5309 $ac_kw foo_t foo () {return 0; }
5310 #endif
5311
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5315 case "(($ac_try" in
5316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317   *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320   (eval "$ac_compile") 2>conftest.er1
5321   ac_status=$?
5322   grep -v '^ *+' conftest.er1 >conftest.err
5323   rm -f conftest.er1
5324   cat conftest.err >&5
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); } && {
5327          test -z "$ac_c_werror_flag" ||
5328          test ! -s conftest.err
5329        } && test -s conftest.$ac_objext; then
5330   ac_cv_c_inline=$ac_kw
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335
5336 fi
5337
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339   test "$ac_cv_c_inline" != no && break
5340 done
5341
5342 fi
5343 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5344 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5345
5346
5347 case $ac_cv_c_inline in
5348   inline | yes) ;;
5349   *)
5350     case $ac_cv_c_inline in
5351       no) ac_val=;;
5352       *) ac_val=$ac_cv_c_inline;;
5353     esac
5354     cat >>confdefs.h <<_ACEOF
5355 #ifndef __cplusplus
5356 #define inline $ac_val
5357 #endif
5358 _ACEOF
5359     ;;
5360 esac
5361
5362 { echo "$as_me:$LINENO: checking for off_t" >&5
5363 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5364 if test "${ac_cv_type_off_t+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 $ac_includes_default
5374 typedef off_t ac__type_new_;
5375 int
5376 main ()
5377 {
5378 if ((ac__type_new_ *) 0)
5379   return 0;
5380 if (sizeof (ac__type_new_))
5381   return 0;
5382   ;
5383   return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5388 case "(($ac_try" in
5389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390   *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393   (eval "$ac_compile") 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } && {
5400          test -z "$ac_c_werror_flag" ||
5401          test ! -s conftest.err
5402        } && test -s conftest.$ac_objext; then
5403   ac_cv_type_off_t=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408         ac_cv_type_off_t=no
5409 fi
5410
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 fi
5413 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5414 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5415 if test $ac_cv_type_off_t = yes; then
5416   :
5417 else
5418
5419 cat >>confdefs.h <<_ACEOF
5420 #define off_t long int
5421 _ACEOF
5422
5423 fi
5424
5425 { echo "$as_me:$LINENO: checking for size_t" >&5
5426 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5427 if test "${ac_cv_type_size_t+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 $ac_includes_default
5437 typedef size_t ac__type_new_;
5438 int
5439 main ()
5440 {
5441 if ((ac__type_new_ *) 0)
5442   return 0;
5443 if (sizeof (ac__type_new_))
5444   return 0;
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (ac_try="$ac_compile"
5451 case "(($ac_try" in
5452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453   *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456   (eval "$ac_compile") 2>conftest.er1
5457   ac_status=$?
5458   grep -v '^ *+' conftest.er1 >conftest.err
5459   rm -f conftest.er1
5460   cat conftest.err >&5
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } && {
5463          test -z "$ac_c_werror_flag" ||
5464          test ! -s conftest.err
5465        } && test -s conftest.$ac_objext; then
5466   ac_cv_type_size_t=yes
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471         ac_cv_type_size_t=no
5472 fi
5473
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 fi
5476 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5477 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5478 if test $ac_cv_type_size_t = yes; then
5479   :
5480 else
5481
5482 cat >>confdefs.h <<_ACEOF
5483 #define size_t unsigned int
5484 _ACEOF
5485
5486 fi
5487
5488
5489   { echo "$as_me:$LINENO: checking for long long" >&5
5490 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5491 if test "${ac_cv_type_long_long+set}" = set; then
5492   echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494   cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h.  */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h.  */
5500 long long ll = 1LL; int i = 63;
5501 int
5502 main ()
5503 {
5504 long long llmax = (long long) -1;
5505      return ll << i | ll >> i | llmax / ll | llmax % ll;
5506   ;
5507   return 0;
5508 }
5509 _ACEOF
5510 rm -f conftest.$ac_objext conftest$ac_exeext
5511 if { (ac_try="$ac_link"
5512 case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517   (eval "$ac_link") 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } && {
5524          test -z "$ac_c_werror_flag" ||
5525          test ! -s conftest.err
5526        } && test -s conftest$ac_exeext &&
5527        $as_test_x conftest$ac_exeext; then
5528   ac_cv_type_long_long=yes
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533         ac_cv_type_long_long=no
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5537       conftest$ac_exeext conftest.$ac_ext
5538 fi
5539 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5540 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5541   if test $ac_cv_type_long_long = yes; then
5542
5543 cat >>confdefs.h <<\_ACEOF
5544 #define HAVE_LONG_LONG 1
5545 _ACEOF
5546
5547   fi
5548
5549
5550   { echo "$as_me:$LINENO: checking for long double" >&5
5551 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5552 if test "${gt_cv_c_long_double+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   if test "$GCC" = yes; then
5556        gt_cv_c_long_double=yes
5557      else
5558        cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h.  */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h.  */
5564
5565          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5566          long double foo = 0.0;
5567          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5568          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5569
5570 int
5571 main ()
5572 {
5573
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext
5579 if { (ac_try="$ac_compile"
5580 case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_compile") 2>conftest.er1
5586   ac_status=$?
5587   grep -v '^ *+' conftest.er1 >conftest.err
5588   rm -f conftest.er1
5589   cat conftest.err >&5
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); } && {
5592          test -z "$ac_c_werror_flag" ||
5593          test ! -s conftest.err
5594        } && test -s conftest.$ac_objext; then
5595   gt_cv_c_long_double=yes
5596 else
5597   echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600         gt_cv_c_long_double=no
5601 fi
5602
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604      fi
5605 fi
5606 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5607 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5608   if test $gt_cv_c_long_double = yes; then
5609
5610 cat >>confdefs.h <<\_ACEOF
5611 #define HAVE_LONG_DOUBLE 1
5612 _ACEOF
5613
5614   fi
5615
5616
5617   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5618 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5619 if test "${gt_cv_c_wchar_t+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h.  */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h.  */
5628 #include <stddef.h>
5629        wchar_t foo = (wchar_t)'\0';
5630 int
5631 main ()
5632 {
5633
5634   ;
5635   return 0;
5636 }
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (ac_try="$ac_compile"
5640 case "(($ac_try" in
5641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642   *) ac_try_echo=$ac_try;;
5643 esac
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645   (eval "$ac_compile") 2>conftest.er1
5646   ac_status=$?
5647   grep -v '^ *+' conftest.er1 >conftest.err
5648   rm -f conftest.er1
5649   cat conftest.err >&5
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); } && {
5652          test -z "$ac_c_werror_flag" ||
5653          test ! -s conftest.err
5654        } && test -s conftest.$ac_objext; then
5655   gt_cv_c_wchar_t=yes
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660         gt_cv_c_wchar_t=no
5661 fi
5662
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 fi
5665 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5666 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5667   if test $gt_cv_c_wchar_t = yes; then
5668
5669 cat >>confdefs.h <<\_ACEOF
5670 #define HAVE_WCHAR_T 1
5671 _ACEOF
5672
5673   fi
5674
5675
5676   { echo "$as_me:$LINENO: checking for wint_t" >&5
5677 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5678 if test "${gt_cv_c_wint_t+set}" = set; then
5679   echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681   cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h.  */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h.  */
5687 #include <wchar.h>
5688        wint_t foo = (wchar_t)'\0';
5689 int
5690 main ()
5691 {
5692
5693   ;
5694   return 0;
5695 }
5696 _ACEOF
5697 rm -f conftest.$ac_objext
5698 if { (ac_try="$ac_compile"
5699 case "(($ac_try" in
5700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701   *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704   (eval "$ac_compile") 2>conftest.er1
5705   ac_status=$?
5706   grep -v '^ *+' conftest.er1 >conftest.err
5707   rm -f conftest.er1
5708   cat conftest.err >&5
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); } && {
5711          test -z "$ac_c_werror_flag" ||
5712          test ! -s conftest.err
5713        } && test -s conftest.$ac_objext; then
5714   gt_cv_c_wint_t=yes
5715 else
5716   echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719         gt_cv_c_wint_t=no
5720 fi
5721
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 fi
5724 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5725 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5726   if test $gt_cv_c_wint_t = yes; then
5727
5728 cat >>confdefs.h <<\_ACEOF
5729 #define HAVE_WINT_T 1
5730 _ACEOF
5731
5732   fi
5733
5734
5735   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5736 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5737 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746 #include <sys/types.h>
5747 #include <inttypes.h>
5748 int
5749 main ()
5750 {
5751 uintmax_t i = (uintmax_t) -1;
5752   ;
5753   return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5758 case "(($ac_try" in
5759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760   *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763   (eval "$ac_compile") 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } && {
5770          test -z "$ac_c_werror_flag" ||
5771          test ! -s conftest.err
5772        } && test -s conftest.$ac_objext; then
5773   jm_ac_cv_header_inttypes_h=yes
5774 else
5775   echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778         jm_ac_cv_header_inttypes_h=no
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5784 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5785   if test $jm_ac_cv_header_inttypes_h = yes; then
5786
5787 cat >>confdefs.h <<_ACEOF
5788 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5789 _ACEOF
5790
5791   fi
5792
5793
5794   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5795 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5796 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 #include <sys/types.h>
5806 #include <stdint.h>
5807 int
5808 main ()
5809 {
5810 uintmax_t i = (uintmax_t) -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   jm_ac_cv_header_stdint_h=yes
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837         jm_ac_cv_header_stdint_h=no
5838 fi
5839
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5843 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5844   if test $jm_ac_cv_header_stdint_h = yes; then
5845
5846 cat >>confdefs.h <<_ACEOF
5847 #define HAVE_STDINT_H_WITH_UINTMAX 1
5848 _ACEOF
5849
5850   fi
5851
5852
5853
5854
5855   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5856 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5857 if test "${gt_cv_c_intmax_t+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866
5867 #include <stddef.h>
5868 #include <stdlib.h>
5869 #if HAVE_STDINT_H_WITH_UINTMAX
5870 #include <stdint.h>
5871 #endif
5872 #if HAVE_INTTYPES_H_WITH_UINTMAX
5873 #include <inttypes.h>
5874 #endif
5875
5876 int
5877 main ()
5878 {
5879 intmax_t x = -1;
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (ac_try="$ac_compile"
5886 case "(($ac_try" in
5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888   *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891   (eval "$ac_compile") 2>conftest.er1
5892   ac_status=$?
5893   grep -v '^ *+' conftest.er1 >conftest.err
5894   rm -f conftest.er1
5895   cat conftest.err >&5
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } && {
5898          test -z "$ac_c_werror_flag" ||
5899          test ! -s conftest.err
5900        } && test -s conftest.$ac_objext; then
5901   gt_cv_c_intmax_t=yes
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906         gt_cv_c_intmax_t=no
5907 fi
5908
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 fi
5911 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5912 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5913   if test $gt_cv_c_intmax_t = yes; then
5914
5915 cat >>confdefs.h <<\_ACEOF
5916 #define HAVE_INTMAX_T 1
5917 _ACEOF
5918
5919   fi
5920
5921
5922
5923   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5924 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5925 if test "${gt_cv_func_printf_posix+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928
5929       if test "$cross_compiling" = yes; then
5930
5931         cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937
5938 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5939   notposix
5940 #endif
5941
5942 _ACEOF
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944   $EGREP "notposix" >/dev/null 2>&1; then
5945   gt_cv_func_printf_posix="guessing no"
5946 else
5947   gt_cv_func_printf_posix="guessing yes"
5948 fi
5949 rm -f conftest*
5950
5951
5952 else
5953   cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959
5960 #include <stdio.h>
5961 #include <string.h>
5962 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5963    dollar expansion (possibly an autoconf bug).  */
5964 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5965 static char buf[100];
5966 int main ()
5967 {
5968   sprintf (buf, format, 33, 55);
5969   return (strcmp (buf, "55 33") != 0);
5970 }
5971 _ACEOF
5972 rm -f conftest$ac_exeext
5973 if { (ac_try="$ac_link"
5974 case "(($ac_try" in
5975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976   *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979   (eval "$ac_link") 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5983   { (case "(($ac_try" in
5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985   *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988   (eval "$ac_try") 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); }; }; then
5992   gt_cv_func_printf_posix=yes
5993 else
5994   echo "$as_me: program exited with status $ac_status" >&5
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ( exit $ac_status )
5999 gt_cv_func_printf_posix=no
6000 fi
6001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6002 fi
6003
6004
6005
6006 fi
6007 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6008 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
6009   case $gt_cv_func_printf_posix in
6010     *yes)
6011
6012 cat >>confdefs.h <<\_ACEOF
6013 #define HAVE_POSIX_PRINTF 1
6014 _ACEOF
6015
6016       ;;
6017   esac
6018
6019 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6020 # for constant arguments.  Useless!
6021 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6022 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6023 if test "${ac_cv_working_alloca_h+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 #include <alloca.h>
6033 int
6034 main ()
6035 {
6036 char *p = (char *) alloca (2 * sizeof (int));
6037                           if (p) return 0;
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (ac_try="$ac_link"
6044 case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049   (eval "$ac_link") 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } && {
6056          test -z "$ac_c_werror_flag" ||
6057          test ! -s conftest.err
6058        } && test -s conftest$ac_exeext &&
6059        $as_test_x conftest$ac_exeext; then
6060   ac_cv_working_alloca_h=yes
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065         ac_cv_working_alloca_h=no
6066 fi
6067
6068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6069       conftest$ac_exeext conftest.$ac_ext
6070 fi
6071 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6072 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6073 if test $ac_cv_working_alloca_h = yes; then
6074
6075 cat >>confdefs.h <<\_ACEOF
6076 #define HAVE_ALLOCA_H 1
6077 _ACEOF
6078
6079 fi
6080
6081 { echo "$as_me:$LINENO: checking for alloca" >&5
6082 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6083 if test "${ac_cv_func_alloca_works+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092 #ifdef __GNUC__
6093 # define alloca __builtin_alloca
6094 #else
6095 # ifdef _MSC_VER
6096 #  include <malloc.h>
6097 #  define alloca _alloca
6098 # else
6099 #  ifdef HAVE_ALLOCA_H
6100 #   include <alloca.h>
6101 #  else
6102 #   ifdef _AIX
6103  #pragma alloca
6104 #   else
6105 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6106 char *alloca ();
6107 #    endif
6108 #   endif
6109 #  endif
6110 # endif
6111 #endif
6112
6113 int
6114 main ()
6115 {
6116 char *p = (char *) alloca (1);
6117                                     if (p) return 0;
6118   ;
6119   return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (ac_try="$ac_link"
6124 case "(($ac_try" in
6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126   *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129   (eval "$ac_link") 2>conftest.er1
6130   ac_status=$?
6131   grep -v '^ *+' conftest.er1 >conftest.err
6132   rm -f conftest.er1
6133   cat conftest.err >&5
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } && {
6136          test -z "$ac_c_werror_flag" ||
6137          test ! -s conftest.err
6138        } && test -s conftest$ac_exeext &&
6139        $as_test_x conftest$ac_exeext; then
6140   ac_cv_func_alloca_works=yes
6141 else
6142   echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145         ac_cv_func_alloca_works=no
6146 fi
6147
6148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6149       conftest$ac_exeext conftest.$ac_ext
6150 fi
6151 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6152 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6153
6154 if test $ac_cv_func_alloca_works = yes; then
6155
6156 cat >>confdefs.h <<\_ACEOF
6157 #define HAVE_ALLOCA 1
6158 _ACEOF
6159
6160 else
6161   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6162 # that cause trouble.  Some versions do not even contain alloca or
6163 # contain a buggy version.  If you still want to use their alloca,
6164 # use ar to extract alloca.o from them instead of compiling alloca.c.
6165
6166 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6167
6168 cat >>confdefs.h <<\_ACEOF
6169 #define C_ALLOCA 1
6170 _ACEOF
6171
6172
6173 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6174 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6175 if test "${ac_cv_os_cray+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h.  */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h.  */
6184 #if defined CRAY && ! defined CRAY2
6185 webecray
6186 #else
6187 wenotbecray
6188 #endif
6189
6190 _ACEOF
6191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6192   $EGREP "webecray" >/dev/null 2>&1; then
6193   ac_cv_os_cray=yes
6194 else
6195   ac_cv_os_cray=no
6196 fi
6197 rm -f conftest*
6198
6199 fi
6200 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6201 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6202 if test $ac_cv_os_cray = yes; then
6203   for ac_func in _getb67 GETB67 getb67; do
6204     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6218 #define $ac_func innocuous_$ac_func
6219
6220 /* System header to define __stub macros and hopefully few prototypes,
6221     which can conflict with char $ac_func (); below.
6222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6223     <limits.h> exists even on freestanding compilers.  */
6224
6225 #ifdef __STDC__
6226 # include <limits.h>
6227 #else
6228 # include <assert.h>
6229 #endif
6230
6231 #undef $ac_func
6232
6233 /* Override any GCC internal prototype to avoid an error.
6234    Use char because int might match the return type of a GCC
6235    builtin and then its argument prototype would still apply.  */
6236 #ifdef __cplusplus
6237 extern "C"
6238 #endif
6239 char $ac_func ();
6240 /* The GNU C library defines this for functions which it implements
6241     to always fail with ENOSYS.  Some functions are actually named
6242     something starting with __ and the normal name is an alias.  */
6243 #if defined __stub_$ac_func || defined __stub___$ac_func
6244 choke me
6245 #endif
6246
6247 int
6248 main ()
6249 {
6250 return $ac_func ();
6251   ;
6252   return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6257 case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_link") 2>conftest.er1
6263   ac_status=$?
6264   grep -v '^ *+' conftest.er1 >conftest.err
6265   rm -f conftest.er1
6266   cat conftest.err >&5
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); } && {
6269          test -z "$ac_c_werror_flag" ||
6270          test ! -s conftest.err
6271        } && test -s conftest$ac_exeext &&
6272        $as_test_x conftest$ac_exeext; then
6273   eval "$as_ac_var=yes"
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278         eval "$as_ac_var=no"
6279 fi
6280
6281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6282       conftest$ac_exeext conftest.$ac_ext
6283 fi
6284 ac_res=`eval echo '${'$as_ac_var'}'`
6285                { echo "$as_me:$LINENO: result: $ac_res" >&5
6286 echo "${ECHO_T}$ac_res" >&6; }
6287 if test `eval echo '${'$as_ac_var'}'` = yes; then
6288
6289 cat >>confdefs.h <<_ACEOF
6290 #define CRAY_STACKSEG_END $ac_func
6291 _ACEOF
6292
6293     break
6294 fi
6295
6296   done
6297 fi
6298
6299 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6300 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6301 if test "${ac_cv_c_stack_direction+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   if test "$cross_compiling" = yes; then
6305   ac_cv_c_stack_direction=0
6306 else
6307   cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313 $ac_includes_default
6314 int
6315 find_stack_direction ()
6316 {
6317   static char *addr = 0;
6318   auto char dummy;
6319   if (addr == 0)
6320     {
6321       addr = &dummy;
6322       return find_stack_direction ();
6323     }
6324   else
6325     return (&dummy > addr) ? 1 : -1;
6326 }
6327
6328 int
6329 main ()
6330 {
6331   return find_stack_direction () < 0;
6332 }
6333 _ACEOF
6334 rm -f conftest$ac_exeext
6335 if { (ac_try="$ac_link"
6336 case "(($ac_try" in
6337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338   *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341   (eval "$ac_link") 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6345   { (case "(($ac_try" in
6346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347   *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350   (eval "$ac_try") 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; }; then
6354   ac_cv_c_stack_direction=1
6355 else
6356   echo "$as_me: program exited with status $ac_status" >&5
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 ( exit $ac_status )
6361 ac_cv_c_stack_direction=-1
6362 fi
6363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6364 fi
6365
6366
6367 fi
6368 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6369 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6370
6371 cat >>confdefs.h <<_ACEOF
6372 #define STACK_DIRECTION $ac_cv_c_stack_direction
6373 _ACEOF
6374
6375
6376 fi
6377
6378
6379
6380 for ac_header in stdlib.h unistd.h
6381 do
6382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6384   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 fi
6389 ac_res=`eval echo '${'$as_ac_Header'}'`
6390                { echo "$as_me:$LINENO: result: $ac_res" >&5
6391 echo "${ECHO_T}$ac_res" >&6; }
6392 else
6393   # Is the header compilable?
6394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 $ac_includes_default
6403 #include <$ac_header>
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6407 case "(($ac_try" in
6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409   *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412   (eval "$ac_compile") 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } && {
6419          test -z "$ac_c_werror_flag" ||
6420          test ! -s conftest.err
6421        } && test -s conftest.$ac_objext; then
6422   ac_header_compiler=yes
6423 else
6424   echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427         ac_header_compiler=no
6428 fi
6429
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6432 echo "${ECHO_T}$ac_header_compiler" >&6; }
6433
6434 # Is the header present?
6435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443 #include <$ac_header>
6444 _ACEOF
6445 if { (ac_try="$ac_cpp conftest.$ac_ext"
6446 case "(($ac_try" in
6447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448   *) ac_try_echo=$ac_try;;
6449 esac
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6452   ac_status=$?
6453   grep -v '^ *+' conftest.er1 >conftest.err
6454   rm -f conftest.er1
6455   cat conftest.err >&5
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); } >/dev/null && {
6458          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6459          test ! -s conftest.err
6460        }; then
6461   ac_header_preproc=yes
6462 else
6463   echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466   ac_header_preproc=no
6467 fi
6468
6469 rm -f conftest.err conftest.$ac_ext
6470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6471 echo "${ECHO_T}$ac_header_preproc" >&6; }
6472
6473 # So?  What about this header?
6474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6475   yes:no: )
6476     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6480     ac_header_preproc=yes
6481     ;;
6482   no:yes:* )
6483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6485     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6486 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6487     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6489     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6490 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495
6496     ;;
6497 esac
6498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6501   echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503   eval "$as_ac_Header=\$ac_header_preproc"
6504 fi
6505 ac_res=`eval echo '${'$as_ac_Header'}'`
6506                { echo "$as_me:$LINENO: result: $ac_res" >&5
6507 echo "${ECHO_T}$ac_res" >&6; }
6508
6509 fi
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511   cat >>confdefs.h <<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 _ACEOF
6514
6515 fi
6516
6517 done
6518
6519
6520 for ac_func in getpagesize
6521 do
6522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6536 #define $ac_func innocuous_$ac_func
6537
6538 /* System header to define __stub macros and hopefully few prototypes,
6539     which can conflict with char $ac_func (); below.
6540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6541     <limits.h> exists even on freestanding compilers.  */
6542
6543 #ifdef __STDC__
6544 # include <limits.h>
6545 #else
6546 # include <assert.h>
6547 #endif
6548
6549 #undef $ac_func
6550
6551 /* Override any GCC internal prototype to avoid an error.
6552    Use char because int might match the return type of a GCC
6553    builtin and then its argument prototype would still apply.  */
6554 #ifdef __cplusplus
6555 extern "C"
6556 #endif
6557 char $ac_func ();
6558 /* The GNU C library defines this for functions which it implements
6559     to always fail with ENOSYS.  Some functions are actually named
6560     something starting with __ and the normal name is an alias.  */
6561 #if defined __stub_$ac_func || defined __stub___$ac_func
6562 choke me
6563 #endif
6564
6565 int
6566 main ()
6567 {
6568 return $ac_func ();
6569   ;
6570   return 0;
6571 }
6572 _ACEOF
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (ac_try="$ac_link"
6575 case "(($ac_try" in
6576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577   *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580   (eval "$ac_link") 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } && {
6587          test -z "$ac_c_werror_flag" ||
6588          test ! -s conftest.err
6589        } && test -s conftest$ac_exeext &&
6590        $as_test_x conftest$ac_exeext; then
6591   eval "$as_ac_var=yes"
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596         eval "$as_ac_var=no"
6597 fi
6598
6599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6600       conftest$ac_exeext conftest.$ac_ext
6601 fi
6602 ac_res=`eval echo '${'$as_ac_var'}'`
6603                { echo "$as_me:$LINENO: result: $ac_res" >&5
6604 echo "${ECHO_T}$ac_res" >&6; }
6605 if test `eval echo '${'$as_ac_var'}'` = yes; then
6606   cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6608 _ACEOF
6609
6610 fi
6611 done
6612
6613 { echo "$as_me:$LINENO: checking for working mmap" >&5
6614 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6615 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   if test "$cross_compiling" = yes; then
6619   ac_cv_func_mmap_fixed_mapped=no
6620 else
6621   cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627 $ac_includes_default
6628 /* malloc might have been renamed as rpl_malloc. */
6629 #undef malloc
6630
6631 /* Thanks to Mike Haertel and Jim Avera for this test.
6632    Here is a matrix of mmap possibilities:
6633         mmap private not fixed
6634         mmap private fixed at somewhere currently unmapped
6635         mmap private fixed at somewhere already mapped
6636         mmap shared not fixed
6637         mmap shared fixed at somewhere currently unmapped
6638         mmap shared fixed at somewhere already mapped
6639    For private mappings, we should verify that changes cannot be read()
6640    back from the file, nor mmap's back from the file at a different
6641    address.  (There have been systems where private was not correctly
6642    implemented like the infamous i386 svr4.0, and systems where the
6643    VM page cache was not coherent with the file system buffer cache
6644    like early versions of FreeBSD and possibly contemporary NetBSD.)
6645    For shared mappings, we should conversely verify that changes get
6646    propagated back to all the places they're supposed to be.
6647
6648    Grep wants private fixed already mapped.
6649    The main things grep needs to know about mmap are:
6650    * does it exist and is it safe to write into the mmap'd area
6651    * how to use it (BSD variants)  */
6652
6653 #include <fcntl.h>
6654 #include <sys/mman.h>
6655
6656 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6657 char *malloc ();
6658 #endif
6659
6660 /* This mess was copied from the GNU getpagesize.h.  */
6661 #ifndef HAVE_GETPAGESIZE
6662 /* Assume that all systems that can run configure have sys/param.h.  */
6663 # ifndef HAVE_SYS_PARAM_H
6664 #  define HAVE_SYS_PARAM_H 1
6665 # endif
6666
6667 # ifdef _SC_PAGESIZE
6668 #  define getpagesize() sysconf(_SC_PAGESIZE)
6669 # else /* no _SC_PAGESIZE */
6670 #  ifdef HAVE_SYS_PARAM_H
6671 #   include <sys/param.h>
6672 #   ifdef EXEC_PAGESIZE
6673 #    define getpagesize() EXEC_PAGESIZE
6674 #   else /* no EXEC_PAGESIZE */
6675 #    ifdef NBPG
6676 #     define getpagesize() NBPG * CLSIZE
6677 #     ifndef CLSIZE
6678 #      define CLSIZE 1
6679 #     endif /* no CLSIZE */
6680 #    else /* no NBPG */
6681 #     ifdef NBPC
6682 #      define getpagesize() NBPC
6683 #     else /* no NBPC */
6684 #      ifdef PAGESIZE
6685 #       define getpagesize() PAGESIZE
6686 #      endif /* PAGESIZE */
6687 #     endif /* no NBPC */
6688 #    endif /* no NBPG */
6689 #   endif /* no EXEC_PAGESIZE */
6690 #  else /* no HAVE_SYS_PARAM_H */
6691 #   define getpagesize() 8192   /* punt totally */
6692 #  endif /* no HAVE_SYS_PARAM_H */
6693 # endif /* no _SC_PAGESIZE */
6694
6695 #endif /* no HAVE_GETPAGESIZE */
6696
6697 int
6698 main ()
6699 {
6700   char *data, *data2, *data3;
6701   int i, pagesize;
6702   int fd;
6703
6704   pagesize = getpagesize ();
6705
6706   /* First, make a file with some known garbage in it. */
6707   data = (char *) malloc (pagesize);
6708   if (!data)
6709     return 1;
6710   for (i = 0; i < pagesize; ++i)
6711     *(data + i) = rand ();
6712   umask (0);
6713   fd = creat ("conftest.mmap", 0600);
6714   if (fd < 0)
6715     return 1;
6716   if (write (fd, data, pagesize) != pagesize)
6717     return 1;
6718   close (fd);
6719
6720   /* Next, try to mmap the file at a fixed address which already has
6721      something else allocated at it.  If we can, also make sure that
6722      we see the same garbage.  */
6723   fd = open ("conftest.mmap", O_RDWR);
6724   if (fd < 0)
6725     return 1;
6726   data2 = (char *) malloc (2 * pagesize);
6727   if (!data2)
6728     return 1;
6729   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6730   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6731                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6732     return 1;
6733   for (i = 0; i < pagesize; ++i)
6734     if (*(data + i) != *(data2 + i))
6735       return 1;
6736
6737   /* Finally, make sure that changes to the mapped area do not
6738      percolate back to the file as seen by read().  (This is a bug on
6739      some variants of i386 svr4.0.)  */
6740   for (i = 0; i < pagesize; ++i)
6741     *(data2 + i) = *(data2 + i) + 1;
6742   data3 = (char *) malloc (pagesize);
6743   if (!data3)
6744     return 1;
6745   if (read (fd, data3, pagesize) != pagesize)
6746     return 1;
6747   for (i = 0; i < pagesize; ++i)
6748     if (*(data + i) != *(data3 + i))
6749       return 1;
6750   close (fd);
6751   return 0;
6752 }
6753 _ACEOF
6754 rm -f conftest$ac_exeext
6755 if { (ac_try="$ac_link"
6756 case "(($ac_try" in
6757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758   *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761   (eval "$ac_link") 2>&5
6762   ac_status=$?
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6765   { (case "(($ac_try" in
6766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767   *) ac_try_echo=$ac_try;;
6768 esac
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770   (eval "$ac_try") 2>&5
6771   ac_status=$?
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); }; }; then
6774   ac_cv_func_mmap_fixed_mapped=yes
6775 else
6776   echo "$as_me: program exited with status $ac_status" >&5
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 ( exit $ac_status )
6781 ac_cv_func_mmap_fixed_mapped=no
6782 fi
6783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6784 fi
6785
6786
6787 fi
6788 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6789 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6791
6792 cat >>confdefs.h <<\_ACEOF
6793 #define HAVE_MMAP 1
6794 _ACEOF
6795
6796 fi
6797 rm -f conftest.mmap
6798
6799
6800     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6801 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6802 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811
6812 #include <features.h>
6813 #ifdef __GNU_LIBRARY__
6814  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6815   Lucky GNU user
6816  #endif
6817 #endif
6818
6819 _ACEOF
6820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6821   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6822   ac_cv_gnu_library_2_1=yes
6823 else
6824   ac_cv_gnu_library_2_1=no
6825 fi
6826 rm -f conftest*
6827
6828
6829
6830 fi
6831 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6832 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6833
6834     GLIBC21="$ac_cv_gnu_library_2_1"
6835
6836
6837
6838
6839   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6840 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6841 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6842   echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844
6845       if test "$cross_compiling" = yes; then
6846
6847           # Guess based on the CPU.
6848           case "$host_cpu" in
6849             alpha* | i3456786 | m68k | s390*)
6850               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6851             *)
6852               gt_cv_int_divbyzero_sigfpe="guessing no";;
6853           esac
6854
6855 else
6856   cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h.  */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h.  */
6862
6863 #include <stdlib.h>
6864 #include <signal.h>
6865
6866 static void
6867 #ifdef __cplusplus
6868 sigfpe_handler (int sig)
6869 #else
6870 sigfpe_handler (sig) int sig;
6871 #endif
6872 {
6873   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6874   exit (sig != SIGFPE);
6875 }
6876
6877 int x = 1;
6878 int y = 0;
6879 int z;
6880 int nan;
6881
6882 int main ()
6883 {
6884   signal (SIGFPE, sigfpe_handler);
6885 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6886 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6887   signal (SIGTRAP, sigfpe_handler);
6888 #endif
6889 /* Linux/SPARC yields signal SIGILL.  */
6890 #if defined (__sparc__) && defined (__linux__)
6891   signal (SIGILL, sigfpe_handler);
6892 #endif
6893
6894   z = x / y;
6895   nan = y / y;
6896   exit (1);
6897 }
6898
6899 _ACEOF
6900 rm -f 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>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6911   { (case "(($ac_try" in
6912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913   *) ac_try_echo=$ac_try;;
6914 esac
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916   (eval "$ac_try") 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); }; }; then
6920   gt_cv_int_divbyzero_sigfpe=yes
6921 else
6922   echo "$as_me: program exited with status $ac_status" >&5
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 ( exit $ac_status )
6927 gt_cv_int_divbyzero_sigfpe=no
6928 fi
6929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6930 fi
6931
6932
6933
6934 fi
6935 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6936 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6937   case "$gt_cv_int_divbyzero_sigfpe" in
6938     *yes) value=1;;
6939     *) value=0;;
6940   esac
6941
6942 cat >>confdefs.h <<_ACEOF
6943 #define INTDIV0_RAISES_SIGFPE $value
6944 _ACEOF
6945
6946
6947
6948   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6949 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6950 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 unsigned long long ull = 1ULL; int i = 63;
6960 int
6961 main ()
6962 {
6963 unsigned long long ullmax = (unsigned long long) -1;
6964      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (ac_try="$ac_link"
6971 case "(($ac_try" in
6972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973   *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976   (eval "$ac_link") 2>conftest.er1
6977   ac_status=$?
6978   grep -v '^ *+' conftest.er1 >conftest.err
6979   rm -f conftest.er1
6980   cat conftest.err >&5
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); } && {
6983          test -z "$ac_c_werror_flag" ||
6984          test ! -s conftest.err
6985        } && test -s conftest$ac_exeext &&
6986        $as_test_x conftest$ac_exeext; then
6987   ac_cv_type_unsigned_long_long=yes
6988 else
6989   echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992         ac_cv_type_unsigned_long_long=no
6993 fi
6994
6995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6996       conftest$ac_exeext conftest.$ac_ext
6997 fi
6998 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6999 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7000   if test $ac_cv_type_unsigned_long_long = yes; then
7001
7002 cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_UNSIGNED_LONG_LONG 1
7004 _ACEOF
7005
7006   fi
7007
7008
7009
7010
7011   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7012
7013     test $ac_cv_type_unsigned_long_long = yes \
7014       && ac_type='unsigned long long' \
7015       || ac_type='unsigned long'
7016
7017 cat >>confdefs.h <<_ACEOF
7018 #define uintmax_t $ac_type
7019 _ACEOF
7020
7021   else
7022
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_UINTMAX_T 1
7025 _ACEOF
7026
7027   fi
7028
7029
7030   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7031 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7032 if test "${gt_cv_header_inttypes_h+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035
7036     cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <sys/types.h>
7043 #include <inttypes.h>
7044 int
7045 main ()
7046 {
7047
7048   ;
7049   return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7054 case "(($ac_try" in
7055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056   *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059   (eval "$ac_compile") 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } && {
7066          test -z "$ac_c_werror_flag" ||
7067          test ! -s conftest.err
7068        } && test -s conftest.$ac_objext; then
7069   gt_cv_header_inttypes_h=yes
7070 else
7071   echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074         gt_cv_header_inttypes_h=no
7075 fi
7076
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078
7079 fi
7080 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7081 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7082   if test $gt_cv_header_inttypes_h = yes; then
7083
7084 cat >>confdefs.h <<_ACEOF
7085 #define HAVE_INTTYPES_H 1
7086 _ACEOF
7087
7088   fi
7089
7090
7091
7092   if test $gt_cv_header_inttypes_h = yes; then
7093     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7094 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7095 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098
7099         cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105 #include <inttypes.h>
7106 #ifdef PRId32
7107 char *p = PRId32;
7108 #endif
7109
7110 int
7111 main ()
7112 {
7113
7114   ;
7115   return 0;
7116 }
7117 _ACEOF
7118 rm -f conftest.$ac_objext
7119 if { (ac_try="$ac_compile"
7120 case "(($ac_try" in
7121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122   *) ac_try_echo=$ac_try;;
7123 esac
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125   (eval "$ac_compile") 2>conftest.er1
7126   ac_status=$?
7127   grep -v '^ *+' conftest.er1 >conftest.err
7128   rm -f conftest.er1
7129   cat conftest.err >&5
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); } && {
7132          test -z "$ac_c_werror_flag" ||
7133          test ! -s conftest.err
7134        } && test -s conftest.$ac_objext; then
7135   gt_cv_inttypes_pri_broken=no
7136 else
7137   echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140         gt_cv_inttypes_pri_broken=yes
7141 fi
7142
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144
7145 fi
7146 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7147 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7148   fi
7149   if test "$gt_cv_inttypes_pri_broken" = yes; then
7150
7151 cat >>confdefs.h <<_ACEOF
7152 #define PRI_MACROS_BROKEN 1
7153 _ACEOF
7154
7155   fi
7156
7157
7158
7159 for ac_header in stdint.h
7160 do
7161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7163   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 fi
7168 ac_res=`eval echo '${'$as_ac_Header'}'`
7169                { echo "$as_me:$LINENO: result: $ac_res" >&5
7170 echo "${ECHO_T}$ac_res" >&6; }
7171 else
7172   # Is the header compilable?
7173 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h.  */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h.  */
7181 $ac_includes_default
7182 #include <$ac_header>
7183 _ACEOF
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7186 case "(($ac_try" in
7187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188   *) ac_try_echo=$ac_try;;
7189 esac
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191   (eval "$ac_compile") 2>conftest.er1
7192   ac_status=$?
7193   grep -v '^ *+' conftest.er1 >conftest.err
7194   rm -f conftest.er1
7195   cat conftest.err >&5
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } && {
7198          test -z "$ac_c_werror_flag" ||
7199          test ! -s conftest.err
7200        } && test -s conftest.$ac_objext; then
7201   ac_header_compiler=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206         ac_header_compiler=no
7207 fi
7208
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7211 echo "${ECHO_T}$ac_header_compiler" >&6; }
7212
7213 # Is the header present?
7214 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222 #include <$ac_header>
7223 _ACEOF
7224 if { (ac_try="$ac_cpp conftest.$ac_ext"
7225 case "(($ac_try" in
7226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227   *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } >/dev/null && {
7237          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7238          test ! -s conftest.err
7239        }; then
7240   ac_header_preproc=yes
7241 else
7242   echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7244
7245   ac_header_preproc=no
7246 fi
7247
7248 rm -f conftest.err conftest.$ac_ext
7249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7250 echo "${ECHO_T}$ac_header_preproc" >&6; }
7251
7252 # So?  What about this header?
7253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7254   yes:no: )
7255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7259     ac_header_preproc=yes
7260     ;;
7261   no:yes:* )
7262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7274
7275     ;;
7276 esac
7277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280   echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282   eval "$as_ac_Header=\$ac_header_preproc"
7283 fi
7284 ac_res=`eval echo '${'$as_ac_Header'}'`
7285                { echo "$as_me:$LINENO: result: $ac_res" >&5
7286 echo "${ECHO_T}$ac_res" >&6; }
7287
7288 fi
7289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7290   cat >>confdefs.h <<_ACEOF
7291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7292 _ACEOF
7293
7294 fi
7295
7296 done
7297
7298     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7299 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7300   result=
7301   cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307
7308 #include <limits.h>
7309 #if HAVE_STDINT_H
7310 #include <stdint.h>
7311 #endif
7312 #ifdef SIZE_MAX
7313 Found it
7314 #endif
7315
7316 _ACEOF
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318   $EGREP "Found it" >/dev/null 2>&1; then
7319   result=yes
7320 fi
7321 rm -f conftest*
7322
7323   if test -z "$result"; then
7324                     if test "$cross_compiling" = yes; then
7325   # Depending upon the size, compute the lo and hi bounds.
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 #include <stddef.h>
7333 int
7334 main ()
7335 {
7336 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7337 test_array [0] = 0
7338
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7345 case "(($ac_try" in
7346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347   *) ac_try_echo=$ac_try;;
7348 esac
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350   (eval "$ac_compile") 2>conftest.er1
7351   ac_status=$?
7352   grep -v '^ *+' conftest.er1 >conftest.err
7353   rm -f conftest.er1
7354   cat conftest.err >&5
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); } && {
7357          test -z "$ac_c_werror_flag" ||
7358          test ! -s conftest.err
7359        } && test -s conftest.$ac_objext; then
7360   ac_lo=0 ac_mid=0
7361   while :; do
7362     cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368 #include <stddef.h>
7369 int
7370 main ()
7371 {
7372 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7373 test_array [0] = 0
7374
7375   ;
7376   return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext
7380 if { (ac_try="$ac_compile"
7381 case "(($ac_try" in
7382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383   *) ac_try_echo=$ac_try;;
7384 esac
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386   (eval "$ac_compile") 2>conftest.er1
7387   ac_status=$?
7388   grep -v '^ *+' conftest.er1 >conftest.err
7389   rm -f conftest.er1
7390   cat conftest.err >&5
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); } && {
7393          test -z "$ac_c_werror_flag" ||
7394          test ! -s conftest.err
7395        } && test -s conftest.$ac_objext; then
7396   ac_hi=$ac_mid; break
7397 else
7398   echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401         ac_lo=`expr $ac_mid + 1`
7402                         if test $ac_lo -le $ac_mid; then
7403                           ac_lo= ac_hi=
7404                           break
7405                         fi
7406                         ac_mid=`expr 2 '*' $ac_mid + 1`
7407 fi
7408
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410   done
7411 else
7412   echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415         cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h.  */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h.  */
7421 #include <stddef.h>
7422 int
7423 main ()
7424 {
7425 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7426 test_array [0] = 0
7427
7428   ;
7429   return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7434 case "(($ac_try" in
7435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436   *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439   (eval "$ac_compile") 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } && {
7446          test -z "$ac_c_werror_flag" ||
7447          test ! -s conftest.err
7448        } && test -s conftest.$ac_objext; then
7449   ac_hi=-1 ac_mid=-1
7450   while :; do
7451     cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 #include <stddef.h>
7458 int
7459 main ()
7460 {
7461 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7462 test_array [0] = 0
7463
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472   *) ac_try_echo=$ac_try;;
7473 esac
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475   (eval "$ac_compile") 2>conftest.er1
7476   ac_status=$?
7477   grep -v '^ *+' conftest.er1 >conftest.err
7478   rm -f conftest.er1
7479   cat conftest.err >&5
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); } && {
7482          test -z "$ac_c_werror_flag" ||
7483          test ! -s conftest.err
7484        } && test -s conftest.$ac_objext; then
7485   ac_lo=$ac_mid; break
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490         ac_hi=`expr '(' $ac_mid ')' - 1`
7491                         if test $ac_mid -le $ac_hi; then
7492                           ac_lo= ac_hi=
7493                           break
7494                         fi
7495                         ac_mid=`expr 2 '*' $ac_mid`
7496 fi
7497
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499   done
7500 else
7501   echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7503
7504         ac_lo= ac_hi=
7505 fi
7506
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 fi
7509
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 # Binary search between lo and hi bounds.
7512 while test "x$ac_lo" != "x$ac_hi"; do
7513   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7514   cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520 #include <stddef.h>
7521 int
7522 main ()
7523 {
7524 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7525 test_array [0] = 0
7526
7527   ;
7528   return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535   *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538   (eval "$ac_compile") 2>conftest.er1
7539   ac_status=$?
7540   grep -v '^ *+' conftest.er1 >conftest.err
7541   rm -f conftest.er1
7542   cat conftest.err >&5
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); } && {
7545          test -z "$ac_c_werror_flag" ||
7546          test ! -s conftest.err
7547        } && test -s conftest.$ac_objext; then
7548   ac_hi=$ac_mid
7549 else
7550   echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553         ac_lo=`expr '(' $ac_mid ')' + 1`
7554 fi
7555
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 done
7558 case $ac_lo in
7559 ?*) res_hi=$ac_lo;;
7560 '') result=? ;;
7561 esac
7562 else
7563   cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h.  */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h.  */
7569 #include <stddef.h>
7570 static long int longval () { return ~(size_t)0 / 10; }
7571 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7572 #include <stdio.h>
7573 #include <stdlib.h>
7574 int
7575 main ()
7576 {
7577
7578   FILE *f = fopen ("conftest.val", "w");
7579   if (! f)
7580     return 1;
7581   if ((~(size_t)0 / 10) < 0)
7582     {
7583       long int i = longval ();
7584       if (i != (~(size_t)0 / 10))
7585         return 1;
7586       fprintf (f, "%ld\n", i);
7587     }
7588   else
7589     {
7590       unsigned long int i = ulongval ();
7591       if (i != (~(size_t)0 / 10))
7592         return 1;
7593       fprintf (f, "%lu\n", i);
7594     }
7595   return ferror (f) || fclose (f) != 0;
7596
7597   ;
7598   return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest$ac_exeext
7602 if { (ac_try="$ac_link"
7603 case "(($ac_try" in
7604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605   *) ac_try_echo=$ac_try;;
7606 esac
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608   (eval "$ac_link") 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7612   { (case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617   (eval "$ac_try") 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); }; }; then
7621   res_hi=`cat conftest.val`
7622 else
7623   echo "$as_me: program exited with status $ac_status" >&5
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7626
7627 ( exit $ac_status )
7628 result=?
7629 fi
7630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7631 fi
7632 rm -f conftest.val
7633
7634     if test "$cross_compiling" = yes; then
7635   # Depending upon the size, compute the lo and hi bounds.
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h.  */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h.  */
7642 #include <stddef.h>
7643 int
7644 main ()
7645 {
7646 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7647 test_array [0] = 0
7648
7649   ;
7650   return 0;
7651 }
7652 _ACEOF
7653 rm -f conftest.$ac_objext
7654 if { (ac_try="$ac_compile"
7655 case "(($ac_try" in
7656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657   *) ac_try_echo=$ac_try;;
7658 esac
7659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660   (eval "$ac_compile") 2>conftest.er1
7661   ac_status=$?
7662   grep -v '^ *+' conftest.er1 >conftest.err
7663   rm -f conftest.er1
7664   cat conftest.err >&5
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); } && {
7667          test -z "$ac_c_werror_flag" ||
7668          test ! -s conftest.err
7669        } && test -s conftest.$ac_objext; then
7670   ac_lo=0 ac_mid=0
7671   while :; do
7672     cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 #include <stddef.h>
7679 int
7680 main ()
7681 {
7682 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7683 test_array [0] = 0
7684
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7691 case "(($ac_try" in
7692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693   *) ac_try_echo=$ac_try;;
7694 esac
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696   (eval "$ac_compile") 2>conftest.er1
7697   ac_status=$?
7698   grep -v '^ *+' conftest.er1 >conftest.err
7699   rm -f conftest.er1
7700   cat conftest.err >&5
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); } && {
7703          test -z "$ac_c_werror_flag" ||
7704          test ! -s conftest.err
7705        } && test -s conftest.$ac_objext; then
7706   ac_hi=$ac_mid; break
7707 else
7708   echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711         ac_lo=`expr $ac_mid + 1`
7712                         if test $ac_lo -le $ac_mid; then
7713                           ac_lo= ac_hi=
7714                           break
7715                         fi
7716                         ac_mid=`expr 2 '*' $ac_mid + 1`
7717 fi
7718
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720   done
7721 else
7722   echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725         cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h.  */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h.  */
7731 #include <stddef.h>
7732 int
7733 main ()
7734 {
7735 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7736 test_array [0] = 0
7737
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 rm -f conftest.$ac_objext
7743 if { (ac_try="$ac_compile"
7744 case "(($ac_try" in
7745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746   *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749   (eval "$ac_compile") 2>conftest.er1
7750   ac_status=$?
7751   grep -v '^ *+' conftest.er1 >conftest.err
7752   rm -f conftest.er1
7753   cat conftest.err >&5
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); } && {
7756          test -z "$ac_c_werror_flag" ||
7757          test ! -s conftest.err
7758        } && test -s conftest.$ac_objext; then
7759   ac_hi=-1 ac_mid=-1
7760   while :; do
7761     cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767 #include <stddef.h>
7768 int
7769 main ()
7770 {
7771 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7772 test_array [0] = 0
7773
7774   ;
7775   return 0;
7776 }
7777 _ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (ac_try="$ac_compile"
7780 case "(($ac_try" in
7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782   *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785   (eval "$ac_compile") 2>conftest.er1
7786   ac_status=$?
7787   grep -v '^ *+' conftest.er1 >conftest.err
7788   rm -f conftest.er1
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } && {
7792          test -z "$ac_c_werror_flag" ||
7793          test ! -s conftest.err
7794        } && test -s conftest.$ac_objext; then
7795   ac_lo=$ac_mid; break
7796 else
7797   echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7799
7800         ac_hi=`expr '(' $ac_mid ')' - 1`
7801                         if test $ac_mid -le $ac_hi; then
7802                           ac_lo= ac_hi=
7803                           break
7804                         fi
7805                         ac_mid=`expr 2 '*' $ac_mid`
7806 fi
7807
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809   done
7810 else
7811   echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814         ac_lo= ac_hi=
7815 fi
7816
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 fi
7819
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 # Binary search between lo and hi bounds.
7822 while test "x$ac_lo" != "x$ac_hi"; do
7823   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7824   cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h.  */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h.  */
7830 #include <stddef.h>
7831 int
7832 main ()
7833 {
7834 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7835 test_array [0] = 0
7836
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7843 case "(($ac_try" in
7844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845   *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848   (eval "$ac_compile") 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } && {
7855          test -z "$ac_c_werror_flag" ||
7856          test ! -s conftest.err
7857        } && test -s conftest.$ac_objext; then
7858   ac_hi=$ac_mid
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863         ac_lo=`expr '(' $ac_mid ')' + 1`
7864 fi
7865
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 done
7868 case $ac_lo in
7869 ?*) res_lo=$ac_lo;;
7870 '') result=? ;;
7871 esac
7872 else
7873   cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h.  */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h.  */
7879 #include <stddef.h>
7880 static long int longval () { return ~(size_t)0 % 10; }
7881 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7882 #include <stdio.h>
7883 #include <stdlib.h>
7884 int
7885 main ()
7886 {
7887
7888   FILE *f = fopen ("conftest.val", "w");
7889   if (! f)
7890     return 1;
7891   if ((~(size_t)0 % 10) < 0)
7892     {
7893       long int i = longval ();
7894       if (i != (~(size_t)0 % 10))
7895         return 1;
7896       fprintf (f, "%ld\n", i);
7897     }
7898   else
7899     {
7900       unsigned long int i = ulongval ();
7901       if (i != (~(size_t)0 % 10))
7902         return 1;
7903       fprintf (f, "%lu\n", i);
7904     }
7905   return ferror (f) || fclose (f) != 0;
7906
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest$ac_exeext
7912 if { (ac_try="$ac_link"
7913 case "(($ac_try" in
7914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915   *) ac_try_echo=$ac_try;;
7916 esac
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918   (eval "$ac_link") 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7922   { (case "(($ac_try" in
7923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924   *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927   (eval "$ac_try") 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; }; then
7931   res_lo=`cat conftest.val`
7932 else
7933   echo "$as_me: program exited with status $ac_status" >&5
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937 ( exit $ac_status )
7938 result=?
7939 fi
7940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7941 fi
7942 rm -f conftest.val
7943
7944     if test "$cross_compiling" = yes; then
7945   # Depending upon the size, compute the lo and hi bounds.
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 #include <stddef.h>
7953 int
7954 main ()
7955 {
7956 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7957 test_array [0] = 0
7958
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext
7964 if { (ac_try="$ac_compile"
7965 case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970   (eval "$ac_compile") 2>conftest.er1
7971   ac_status=$?
7972   grep -v '^ *+' conftest.er1 >conftest.err
7973   rm -f conftest.er1
7974   cat conftest.err >&5
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } && {
7977          test -z "$ac_c_werror_flag" ||
7978          test ! -s conftest.err
7979        } && test -s conftest.$ac_objext; then
7980   ac_lo=0 ac_mid=0
7981   while :; do
7982     cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988 #include <stddef.h>
7989 int
7990 main ()
7991 {
7992 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7993 test_array [0] = 0
7994
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8001 case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006   (eval "$ac_compile") 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
8010   cat conftest.err >&5
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } && {
8013          test -z "$ac_c_werror_flag" ||
8014          test ! -s conftest.err
8015        } && test -s conftest.$ac_objext; then
8016   ac_hi=$ac_mid; break
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021         ac_lo=`expr $ac_mid + 1`
8022                         if test $ac_lo -le $ac_mid; then
8023                           ac_lo= ac_hi=
8024                           break
8025                         fi
8026                         ac_mid=`expr 2 '*' $ac_mid + 1`
8027 fi
8028
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030   done
8031 else
8032   echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035         cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 #include <stddef.h>
8042 int
8043 main ()
8044 {
8045 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8046 test_array [0] = 0
8047
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (ac_try="$ac_compile"
8054 case "(($ac_try" in
8055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056   *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059   (eval "$ac_compile") 2>conftest.er1
8060   ac_status=$?
8061   grep -v '^ *+' conftest.er1 >conftest.err
8062   rm -f conftest.er1
8063   cat conftest.err >&5
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); } && {
8066          test -z "$ac_c_werror_flag" ||
8067          test ! -s conftest.err
8068        } && test -s conftest.$ac_objext; then
8069   ac_hi=-1 ac_mid=-1
8070   while :; do
8071     cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h.  */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h.  */
8077 #include <stddef.h>
8078 int
8079 main ()
8080 {
8081 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8082 test_array [0] = 0
8083
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8090 case "(($ac_try" in
8091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092   *) ac_try_echo=$ac_try;;
8093 esac
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095   (eval "$ac_compile") 2>conftest.er1
8096   ac_status=$?
8097   grep -v '^ *+' conftest.er1 >conftest.err
8098   rm -f conftest.er1
8099   cat conftest.err >&5
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); } && {
8102          test -z "$ac_c_werror_flag" ||
8103          test ! -s conftest.err
8104        } && test -s conftest.$ac_objext; then
8105   ac_lo=$ac_mid; break
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110         ac_hi=`expr '(' $ac_mid ')' - 1`
8111                         if test $ac_mid -le $ac_hi; then
8112                           ac_lo= ac_hi=
8113                           break
8114                         fi
8115                         ac_mid=`expr 2 '*' $ac_mid`
8116 fi
8117
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119   done
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124         ac_lo= ac_hi=
8125 fi
8126
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 fi
8129
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 # Binary search between lo and hi bounds.
8132 while test "x$ac_lo" != "x$ac_hi"; do
8133   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 #include <stddef.h>
8141 int
8142 main ()
8143 {
8144 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8145 test_array [0] = 0
8146
8147   ;
8148   return 0;
8149 }
8150 _ACEOF
8151 rm -f conftest.$ac_objext
8152 if { (ac_try="$ac_compile"
8153 case "(($ac_try" in
8154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155   *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158   (eval "$ac_compile") 2>conftest.er1
8159   ac_status=$?
8160   grep -v '^ *+' conftest.er1 >conftest.err
8161   rm -f conftest.er1
8162   cat conftest.err >&5
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } && {
8165          test -z "$ac_c_werror_flag" ||
8166          test ! -s conftest.err
8167        } && test -s conftest.$ac_objext; then
8168   ac_hi=$ac_mid
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173         ac_lo=`expr '(' $ac_mid ')' + 1`
8174 fi
8175
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 done
8178 case $ac_lo in
8179 ?*) fits_in_uint=$ac_lo;;
8180 '') result=? ;;
8181 esac
8182 else
8183   cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189 #include <stddef.h>
8190 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8191 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8192 #include <stdio.h>
8193 #include <stdlib.h>
8194 int
8195 main ()
8196 {
8197
8198   FILE *f = fopen ("conftest.val", "w");
8199   if (! f)
8200     return 1;
8201   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8202     {
8203       long int i = longval ();
8204       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8205         return 1;
8206       fprintf (f, "%ld\n", i);
8207     }
8208   else
8209     {
8210       unsigned long int i = ulongval ();
8211       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8212         return 1;
8213       fprintf (f, "%lu\n", i);
8214     }
8215   return ferror (f) || fclose (f) != 0;
8216
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest$ac_exeext
8222 if { (ac_try="$ac_link"
8223 case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228   (eval "$ac_link") 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8232   { (case "(($ac_try" in
8233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234   *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237   (eval "$ac_try") 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); }; }; then
8241   fits_in_uint=`cat conftest.val`
8242 else
8243   echo "$as_me: program exited with status $ac_status" >&5
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 ( exit $ac_status )
8248 result=?
8249 fi
8250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 rm -f conftest.val
8253
8254     if test "$fits_in_uint" = 1; then
8255                   cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261 #include <stddef.h>
8262         extern size_t foo;
8263         extern unsigned long foo;
8264
8265 int
8266 main ()
8267 {
8268
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (ac_try="$ac_compile"
8275 case "(($ac_try" in
8276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277   *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280   (eval "$ac_compile") 2>conftest.er1
8281   ac_status=$?
8282   grep -v '^ *+' conftest.er1 >conftest.err
8283   rm -f conftest.er1
8284   cat conftest.err >&5
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); } && {
8287          test -z "$ac_c_werror_flag" ||
8288          test ! -s conftest.err
8289        } && test -s conftest.$ac_objext; then
8290   fits_in_uint=0
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295
8296 fi
8297
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299     fi
8300     if test -z "$result"; then
8301       if test "$fits_in_uint" = 1; then
8302         result="$res_hi$res_lo"U
8303       else
8304         result="$res_hi$res_lo"UL
8305       fi
8306     else
8307             result='~(size_t)0'
8308     fi
8309   fi
8310   { echo "$as_me:$LINENO: result: $result" >&5
8311 echo "${ECHO_T}$result" >&6; }
8312   if test "$result" != yes; then
8313
8314 cat >>confdefs.h <<_ACEOF
8315 #define SIZE_MAX $result
8316 _ACEOF
8317
8318   fi
8319
8320
8321
8322
8323 for ac_header in stdint.h
8324 do
8325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8327   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8330   echo $ECHO_N "(cached) $ECHO_C" >&6
8331 fi
8332 ac_res=`eval echo '${'$as_ac_Header'}'`
8333                { echo "$as_me:$LINENO: result: $ac_res" >&5
8334 echo "${ECHO_T}$ac_res" >&6; }
8335 else
8336   # Is the header compilable?
8337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h.  */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h.  */
8345 $ac_includes_default
8346 #include <$ac_header>
8347 _ACEOF
8348 rm -f conftest.$ac_objext
8349 if { (ac_try="$ac_compile"
8350 case "(($ac_try" in
8351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352   *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355   (eval "$ac_compile") 2>conftest.er1
8356   ac_status=$?
8357   grep -v '^ *+' conftest.er1 >conftest.err
8358   rm -f conftest.er1
8359   cat conftest.err >&5
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } && {
8362          test -z "$ac_c_werror_flag" ||
8363          test ! -s conftest.err
8364        } && test -s conftest.$ac_objext; then
8365   ac_header_compiler=yes
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370         ac_header_compiler=no
8371 fi
8372
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8375 echo "${ECHO_T}$ac_header_compiler" >&6; }
8376
8377 # Is the header present?
8378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386 #include <$ac_header>
8387 _ACEOF
8388 if { (ac_try="$ac_cpp conftest.$ac_ext"
8389 case "(($ac_try" in
8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391   *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8395   ac_status=$?
8396   grep -v '^ *+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } >/dev/null && {
8401          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8402          test ! -s conftest.err
8403        }; then
8404   ac_header_preproc=yes
8405 else
8406   echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409   ac_header_preproc=no
8410 fi
8411
8412 rm -f conftest.err conftest.$ac_ext
8413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8414 echo "${ECHO_T}$ac_header_preproc" >&6; }
8415
8416 # So?  What about this header?
8417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8418   yes:no: )
8419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8423     ac_header_preproc=yes
8424     ;;
8425   no:yes:* )
8426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8438
8439     ;;
8440 esac
8441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   eval "$as_ac_Header=\$ac_header_preproc"
8447 fi
8448 ac_res=`eval echo '${'$as_ac_Header'}'`
8449                { echo "$as_me:$LINENO: result: $ac_res" >&5
8450 echo "${ECHO_T}$ac_res" >&6; }
8451
8452 fi
8453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8454   cat >>confdefs.h <<_ACEOF
8455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8456 _ACEOF
8457
8458 fi
8459
8460 done
8461
8462
8463
8464       if test "X$prefix" = "XNONE"; then
8465     acl_final_prefix="$ac_default_prefix"
8466   else
8467     acl_final_prefix="$prefix"
8468   fi
8469   if test "X$exec_prefix" = "XNONE"; then
8470     acl_final_exec_prefix='${prefix}'
8471   else
8472     acl_final_exec_prefix="$exec_prefix"
8473   fi
8474   acl_save_prefix="$prefix"
8475   prefix="$acl_final_prefix"
8476   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8477   prefix="$acl_save_prefix"
8478
8479
8480 # Check whether --with-gnu-ld was given.
8481 if test "${with_gnu_ld+set}" = set; then
8482   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8483 else
8484   with_gnu_ld=no
8485 fi
8486
8487 # Prepare PATH_SEPARATOR.
8488 # The user is always right.
8489 if test "${PATH_SEPARATOR+set}" != set; then
8490   echo "#! /bin/sh" >conf$$.sh
8491   echo  "exit 0"   >>conf$$.sh
8492   chmod +x conf$$.sh
8493   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8494     PATH_SEPARATOR=';'
8495   else
8496     PATH_SEPARATOR=:
8497   fi
8498   rm -f conf$$.sh
8499 fi
8500 ac_prog=ld
8501 if test "$GCC" = yes; then
8502   # Check if gcc -print-prog-name=ld gives a path.
8503   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8504 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8505   case $host in
8506   *-*-mingw*)
8507     # gcc leaves a trailing carriage return which upsets mingw
8508     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8509   *)
8510     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8511   esac
8512   case $ac_prog in
8513     # Accept absolute paths.
8514     [\\/]* | [A-Za-z]:[\\/]*)
8515       re_direlt='/[^/][^/]*/\.\./'
8516       # Canonicalize the path of ld
8517       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8518       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8519         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8520       done
8521       test -z "$LD" && LD="$ac_prog"
8522       ;;
8523   "")
8524     # If it fails, then pretend we aren't using GCC.
8525     ac_prog=ld
8526     ;;
8527   *)
8528     # If it is relative, then search for the first ld in PATH.
8529     with_gnu_ld=unknown
8530     ;;
8531   esac
8532 elif test "$with_gnu_ld" = yes; then
8533   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8534 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8535 else
8536   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8537 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8538 fi
8539 if test "${acl_cv_path_LD+set}" = set; then
8540   echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542   if test -z "$LD"; then
8543   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8544   for ac_dir in $PATH; do
8545     test -z "$ac_dir" && ac_dir=.
8546     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8547       acl_cv_path_LD="$ac_dir/$ac_prog"
8548       # Check to see if the program is GNU ld.  I'd rather use --version,
8549       # but apparently some GNU ld's only accept -v.
8550       # Break only if it was the GNU/non-GNU ld that we prefer.
8551       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8552       *GNU* | *'with BFD'*)
8553         test "$with_gnu_ld" != no && break ;;
8554       *)
8555         test "$with_gnu_ld" != yes && break ;;
8556       esac
8557     fi
8558   done
8559   IFS="$ac_save_ifs"
8560 else
8561   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8562 fi
8563 fi
8564
8565 LD="$acl_cv_path_LD"
8566 if test -n "$LD"; then
8567   { echo "$as_me:$LINENO: result: $LD" >&5
8568 echo "${ECHO_T}$LD" >&6; }
8569 else
8570   { echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6; }
8572 fi
8573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8575    { (exit 1); exit 1; }; }
8576 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8578 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8582 case `$LD -v 2>&1 </dev/null` in
8583 *GNU* | *'with BFD'*)
8584   acl_cv_prog_gnu_ld=yes ;;
8585 *)
8586   acl_cv_prog_gnu_ld=no ;;
8587 esac
8588 fi
8589 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8590 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8591 with_gnu_ld=$acl_cv_prog_gnu_ld
8592
8593
8594
8595                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8596 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8597 if test "${acl_cv_rpath+set}" = set; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600
8601     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8602     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8603     . ./conftest.sh
8604     rm -f ./conftest.sh
8605     acl_cv_rpath=done
8606
8607 fi
8608 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8609 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8610   wl="$acl_cv_wl"
8611   libext="$acl_cv_libext"
8612   shlibext="$acl_cv_shlibext"
8613   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8614   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8615   hardcode_direct="$acl_cv_hardcode_direct"
8616   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8617     # Check whether --enable-rpath was given.
8618 if test "${enable_rpath+set}" = set; then
8619   enableval=$enable_rpath; :
8620 else
8621   enable_rpath=yes
8622 fi
8623
8624
8625
8626
8627
8628
8629
8630
8631     use_additional=yes
8632
8633   acl_save_prefix="$prefix"
8634   prefix="$acl_final_prefix"
8635   acl_save_exec_prefix="$exec_prefix"
8636   exec_prefix="$acl_final_exec_prefix"
8637
8638     eval additional_includedir=\"$includedir\"
8639     eval additional_libdir=\"$libdir\"
8640
8641   exec_prefix="$acl_save_exec_prefix"
8642   prefix="$acl_save_prefix"
8643
8644
8645 # Check whether --with-libiconv-prefix was given.
8646 if test "${with_libiconv_prefix+set}" = set; then
8647   withval=$with_libiconv_prefix;
8648     if test "X$withval" = "Xno"; then
8649       use_additional=no
8650     else
8651       if test "X$withval" = "X"; then
8652
8653   acl_save_prefix="$prefix"
8654   prefix="$acl_final_prefix"
8655   acl_save_exec_prefix="$exec_prefix"
8656   exec_prefix="$acl_final_exec_prefix"
8657
8658           eval additional_includedir=\"$includedir\"
8659           eval additional_libdir=\"$libdir\"
8660
8661   exec_prefix="$acl_save_exec_prefix"
8662   prefix="$acl_save_prefix"
8663
8664       else
8665         additional_includedir="$withval/include"
8666         additional_libdir="$withval/lib"
8667       fi
8668     fi
8669
8670 fi
8671
8672       LIBICONV=
8673   LTLIBICONV=
8674   INCICONV=
8675   rpathdirs=
8676   ltrpathdirs=
8677   names_already_handled=
8678   names_next_round='iconv '
8679   while test -n "$names_next_round"; do
8680     names_this_round="$names_next_round"
8681     names_next_round=
8682     for name in $names_this_round; do
8683       already_handled=
8684       for n in $names_already_handled; do
8685         if test "$n" = "$name"; then
8686           already_handled=yes
8687           break
8688         fi
8689       done
8690       if test -z "$already_handled"; then
8691         names_already_handled="$names_already_handled $name"
8692                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8693         eval value=\"\$HAVE_LIB$uppername\"
8694         if test -n "$value"; then
8695           if test "$value" = yes; then
8696             eval value=\"\$LIB$uppername\"
8697             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8698             eval value=\"\$LTLIB$uppername\"
8699             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8700           else
8701                                     :
8702           fi
8703         else
8704                               found_dir=
8705           found_la=
8706           found_so=
8707           found_a=
8708           if test $use_additional = yes; then
8709             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8710               found_dir="$additional_libdir"
8711               found_so="$additional_libdir/lib$name.$shlibext"
8712               if test -f "$additional_libdir/lib$name.la"; then
8713                 found_la="$additional_libdir/lib$name.la"
8714               fi
8715             else
8716               if test -f "$additional_libdir/lib$name.$libext"; then
8717                 found_dir="$additional_libdir"
8718                 found_a="$additional_libdir/lib$name.$libext"
8719                 if test -f "$additional_libdir/lib$name.la"; then
8720                   found_la="$additional_libdir/lib$name.la"
8721                 fi
8722               fi
8723             fi
8724           fi
8725           if test "X$found_dir" = "X"; then
8726             for x in $LDFLAGS $LTLIBICONV; do
8727
8728   acl_save_prefix="$prefix"
8729   prefix="$acl_final_prefix"
8730   acl_save_exec_prefix="$exec_prefix"
8731   exec_prefix="$acl_final_exec_prefix"
8732   eval x=\"$x\"
8733   exec_prefix="$acl_save_exec_prefix"
8734   prefix="$acl_save_prefix"
8735
8736               case "$x" in
8737                 -L*)
8738                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8739                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8740                     found_dir="$dir"
8741                     found_so="$dir/lib$name.$shlibext"
8742                     if test -f "$dir/lib$name.la"; then
8743                       found_la="$dir/lib$name.la"
8744                     fi
8745                   else
8746                     if test -f "$dir/lib$name.$libext"; then
8747                       found_dir="$dir"
8748                       found_a="$dir/lib$name.$libext"
8749                       if test -f "$dir/lib$name.la"; then
8750                         found_la="$dir/lib$name.la"
8751                       fi
8752                     fi
8753                   fi
8754                   ;;
8755               esac
8756               if test "X$found_dir" != "X"; then
8757                 break
8758               fi
8759             done
8760           fi
8761           if test "X$found_dir" != "X"; then
8762                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8763             if test "X$found_so" != "X"; then
8764                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8765                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8766               else
8767                                                                                 haveit=
8768                 for x in $ltrpathdirs; do
8769                   if test "X$x" = "X$found_dir"; then
8770                     haveit=yes
8771                     break
8772                   fi
8773                 done
8774                 if test -z "$haveit"; then
8775                   ltrpathdirs="$ltrpathdirs $found_dir"
8776                 fi
8777                                 if test "$hardcode_direct" = yes; then
8778                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8779                 else
8780                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8781                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8782                                                             haveit=
8783                     for x in $rpathdirs; do
8784                       if test "X$x" = "X$found_dir"; then
8785                         haveit=yes
8786                         break
8787                       fi
8788                     done
8789                     if test -z "$haveit"; then
8790                       rpathdirs="$rpathdirs $found_dir"
8791                     fi
8792                   else
8793                                                                                 haveit=
8794                     for x in $LDFLAGS $LIBICONV; do
8795
8796   acl_save_prefix="$prefix"
8797   prefix="$acl_final_prefix"
8798   acl_save_exec_prefix="$exec_prefix"
8799   exec_prefix="$acl_final_exec_prefix"
8800   eval x=\"$x\"
8801   exec_prefix="$acl_save_exec_prefix"
8802   prefix="$acl_save_prefix"
8803
8804                       if test "X$x" = "X-L$found_dir"; then
8805                         haveit=yes
8806                         break
8807                       fi
8808                     done
8809                     if test -z "$haveit"; then
8810                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8811                     fi
8812                     if test "$hardcode_minus_L" != no; then
8813                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8814                     else
8815                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8816                     fi
8817                   fi
8818                 fi
8819               fi
8820             else
8821               if test "X$found_a" != "X"; then
8822                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8823               else
8824                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8825               fi
8826             fi
8827                         additional_includedir=
8828             case "$found_dir" in
8829               */lib | */lib/)
8830                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8831                 additional_includedir="$basedir/include"
8832                 ;;
8833             esac
8834             if test "X$additional_includedir" != "X"; then
8835                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8836                 haveit=
8837                 if test "X$additional_includedir" = "X/usr/local/include"; then
8838                   if test -n "$GCC"; then
8839                     case $host_os in
8840                       linux*) haveit=yes;;
8841                     esac
8842                   fi
8843                 fi
8844                 if test -z "$haveit"; then
8845                   for x in $CPPFLAGS $INCICONV; do
8846
8847   acl_save_prefix="$prefix"
8848   prefix="$acl_final_prefix"
8849   acl_save_exec_prefix="$exec_prefix"
8850   exec_prefix="$acl_final_exec_prefix"
8851   eval x=\"$x\"
8852   exec_prefix="$acl_save_exec_prefix"
8853   prefix="$acl_save_prefix"
8854
8855                     if test "X$x" = "X-I$additional_includedir"; then
8856                       haveit=yes
8857                       break
8858                     fi
8859                   done
8860                   if test -z "$haveit"; then
8861                     if test -d "$additional_includedir"; then
8862                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8863                     fi
8864                   fi
8865                 fi
8866               fi
8867             fi
8868                         if test -n "$found_la"; then
8869                                                         save_libdir="$libdir"
8870               case "$found_la" in
8871                 */* | *\\*) . "$found_la" ;;
8872                 *) . "./$found_la" ;;
8873               esac
8874               libdir="$save_libdir"
8875                             for dep in $dependency_libs; do
8876                 case "$dep" in
8877                   -L*)
8878                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8879                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8880                       haveit=
8881                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8882                         if test -n "$GCC"; then
8883                           case $host_os in
8884                             linux*) haveit=yes;;
8885                           esac
8886                         fi
8887                       fi
8888                       if test -z "$haveit"; then
8889                         haveit=
8890                         for x in $LDFLAGS $LIBICONV; do
8891
8892   acl_save_prefix="$prefix"
8893   prefix="$acl_final_prefix"
8894   acl_save_exec_prefix="$exec_prefix"
8895   exec_prefix="$acl_final_exec_prefix"
8896   eval x=\"$x\"
8897   exec_prefix="$acl_save_exec_prefix"
8898   prefix="$acl_save_prefix"
8899
8900                           if test "X$x" = "X-L$additional_libdir"; then
8901                             haveit=yes
8902                             break
8903                           fi
8904                         done
8905                         if test -z "$haveit"; then
8906                           if test -d "$additional_libdir"; then
8907                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8908                           fi
8909                         fi
8910                         haveit=
8911                         for x in $LDFLAGS $LTLIBICONV; do
8912
8913   acl_save_prefix="$prefix"
8914   prefix="$acl_final_prefix"
8915   acl_save_exec_prefix="$exec_prefix"
8916   exec_prefix="$acl_final_exec_prefix"
8917   eval x=\"$x\"
8918   exec_prefix="$acl_save_exec_prefix"
8919   prefix="$acl_save_prefix"
8920
8921                           if test "X$x" = "X-L$additional_libdir"; then
8922                             haveit=yes
8923                             break
8924                           fi
8925                         done
8926                         if test -z "$haveit"; then
8927                           if test -d "$additional_libdir"; then
8928                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8929                           fi
8930                         fi
8931                       fi
8932                     fi
8933                     ;;
8934                   -R*)
8935                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8936                     if test "$enable_rpath" != no; then
8937                                                                   haveit=
8938                       for x in $rpathdirs; do
8939                         if test "X$x" = "X$dir"; then
8940                           haveit=yes
8941                           break
8942                         fi
8943                       done
8944                       if test -z "$haveit"; then
8945                         rpathdirs="$rpathdirs $dir"
8946                       fi
8947                                                                   haveit=
8948                       for x in $ltrpathdirs; do
8949                         if test "X$x" = "X$dir"; then
8950                           haveit=yes
8951                           break
8952                         fi
8953                       done
8954                       if test -z "$haveit"; then
8955                         ltrpathdirs="$ltrpathdirs $dir"
8956                       fi
8957                     fi
8958                     ;;
8959                   -l*)
8960                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8961                     ;;
8962                   *.la)
8963                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8964                     ;;
8965                   *)
8966                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8967                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8968                     ;;
8969                 esac
8970               done
8971             fi
8972           else
8973                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8974             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8975           fi
8976         fi
8977       fi
8978     done
8979   done
8980   if test "X$rpathdirs" != "X"; then
8981     if test -n "$hardcode_libdir_separator"; then
8982                         alldirs=
8983       for found_dir in $rpathdirs; do
8984         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8985       done
8986             acl_save_libdir="$libdir"
8987       libdir="$alldirs"
8988       eval flag=\"$hardcode_libdir_flag_spec\"
8989       libdir="$acl_save_libdir"
8990       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8991     else
8992             for found_dir in $rpathdirs; do
8993         acl_save_libdir="$libdir"
8994         libdir="$found_dir"
8995         eval flag=\"$hardcode_libdir_flag_spec\"
8996         libdir="$acl_save_libdir"
8997         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8998       done
8999     fi
9000   fi
9001   if test "X$ltrpathdirs" != "X"; then
9002             for found_dir in $ltrpathdirs; do
9003       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9004     done
9005   fi
9006
9007
9008
9009
9010
9011
9012
9013
9014   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9015 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9016 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025 $ac_includes_default
9026 typedef ptrdiff_t ac__type_new_;
9027 int
9028 main ()
9029 {
9030 if ((ac__type_new_ *) 0)
9031   return 0;
9032 if (sizeof (ac__type_new_))
9033   return 0;
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext
9039 if { (ac_try="$ac_compile"
9040 case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_compile") 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } && {
9052          test -z "$ac_c_werror_flag" ||
9053          test ! -s conftest.err
9054        } && test -s conftest.$ac_objext; then
9055   ac_cv_type_ptrdiff_t=yes
9056 else
9057   echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060         ac_cv_type_ptrdiff_t=no
9061 fi
9062
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 fi
9065 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9066 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9067 if test $ac_cv_type_ptrdiff_t = yes; then
9068   :
9069 else
9070
9071 cat >>confdefs.h <<\_ACEOF
9072 #define ptrdiff_t long
9073 _ACEOF
9074
9075
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9089 stdlib.h string.h unistd.h sys/param.h
9090 do
9091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9093   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 fi
9098 ac_res=`eval echo '${'$as_ac_Header'}'`
9099                { echo "$as_me:$LINENO: result: $ac_res" >&5
9100 echo "${ECHO_T}$ac_res" >&6; }
9101 else
9102   # Is the header compilable?
9103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h.  */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h.  */
9111 $ac_includes_default
9112 #include <$ac_header>
9113 _ACEOF
9114 rm -f conftest.$ac_objext
9115 if { (ac_try="$ac_compile"
9116 case "(($ac_try" in
9117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118   *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121   (eval "$ac_compile") 2>conftest.er1
9122   ac_status=$?
9123   grep -v '^ *+' conftest.er1 >conftest.err
9124   rm -f conftest.er1
9125   cat conftest.err >&5
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } && {
9128          test -z "$ac_c_werror_flag" ||
9129          test ! -s conftest.err
9130        } && test -s conftest.$ac_objext; then
9131   ac_header_compiler=yes
9132 else
9133   echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136         ac_header_compiler=no
9137 fi
9138
9139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9141 echo "${ECHO_T}$ac_header_compiler" >&6; }
9142
9143 # Is the header present?
9144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h.  */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h.  */
9152 #include <$ac_header>
9153 _ACEOF
9154 if { (ac_try="$ac_cpp conftest.$ac_ext"
9155 case "(($ac_try" in
9156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157   *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9161   ac_status=$?
9162   grep -v '^ *+' conftest.er1 >conftest.err
9163   rm -f conftest.er1
9164   cat conftest.err >&5
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); } >/dev/null && {
9167          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9168          test ! -s conftest.err
9169        }; then
9170   ac_header_preproc=yes
9171 else
9172   echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175   ac_header_preproc=no
9176 fi
9177
9178 rm -f conftest.err conftest.$ac_ext
9179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9180 echo "${ECHO_T}$ac_header_preproc" >&6; }
9181
9182 # So?  What about this header?
9183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9184   yes:no: )
9185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9189     ac_header_preproc=yes
9190     ;;
9191   no:yes:* )
9192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9204
9205     ;;
9206 esac
9207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   eval "$as_ac_Header=\$ac_header_preproc"
9213 fi
9214 ac_res=`eval echo '${'$as_ac_Header'}'`
9215                { echo "$as_me:$LINENO: result: $ac_res" >&5
9216 echo "${ECHO_T}$ac_res" >&6; }
9217
9218 fi
9219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9220   cat >>confdefs.h <<_ACEOF
9221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9222 _ACEOF
9223
9224 fi
9225
9226 done
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9252 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9253 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9254 __fsetlocking
9255 do
9256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9260   echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262   cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9270 #define $ac_func innocuous_$ac_func
9271
9272 /* System header to define __stub macros and hopefully few prototypes,
9273     which can conflict with char $ac_func (); below.
9274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9275     <limits.h> exists even on freestanding compilers.  */
9276
9277 #ifdef __STDC__
9278 # include <limits.h>
9279 #else
9280 # include <assert.h>
9281 #endif
9282
9283 #undef $ac_func
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286    Use char because int might match the return type of a GCC
9287    builtin and then its argument prototype would still apply.  */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char $ac_func ();
9292 /* The GNU C library defines this for functions which it implements
9293     to always fail with ENOSYS.  Some functions are actually named
9294     something starting with __ and the normal name is an alias.  */
9295 #if defined __stub_$ac_func || defined __stub___$ac_func
9296 choke me
9297 #endif
9298
9299 int
9300 main ()
9301 {
9302 return $ac_func ();
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (ac_try="$ac_link"
9309 case "(($ac_try" in
9310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311   *) ac_try_echo=$ac_try;;
9312 esac
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314   (eval "$ac_link") 2>conftest.er1
9315   ac_status=$?
9316   grep -v '^ *+' conftest.er1 >conftest.err
9317   rm -f conftest.er1
9318   cat conftest.err >&5
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); } && {
9321          test -z "$ac_c_werror_flag" ||
9322          test ! -s conftest.err
9323        } && test -s conftest$ac_exeext &&
9324        $as_test_x conftest$ac_exeext; then
9325   eval "$as_ac_var=yes"
9326 else
9327   echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330         eval "$as_ac_var=no"
9331 fi
9332
9333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9334       conftest$ac_exeext conftest.$ac_ext
9335 fi
9336 ac_res=`eval echo '${'$as_ac_var'}'`
9337                { echo "$as_me:$LINENO: result: $ac_res" >&5
9338 echo "${ECHO_T}$ac_res" >&6; }
9339 if test `eval echo '${'$as_ac_var'}'` = yes; then
9340   cat >>confdefs.h <<_ACEOF
9341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9342 _ACEOF
9343
9344 fi
9345 done
9346
9347
9348
9349   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9350 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9351 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 #include <stdio.h>
9361 int
9362 main ()
9363 {
9364
9365 #ifndef _snprintf
9366   char *p = (char *) _snprintf;
9367 #endif
9368
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (ac_try="$ac_compile"
9375 case "(($ac_try" in
9376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377   *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380   (eval "$ac_compile") 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } && {
9387          test -z "$ac_c_werror_flag" ||
9388          test ! -s conftest.err
9389        } && test -s conftest.$ac_objext; then
9390   ac_cv_have_decl__snprintf=yes
9391 else
9392   echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9394
9395         ac_cv_have_decl__snprintf=no
9396 fi
9397
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 fi
9400 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9401 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9402   if test $ac_cv_have_decl__snprintf = yes; then
9403     gt_value=1
9404   else
9405     gt_value=0
9406   fi
9407
9408 cat >>confdefs.h <<_ACEOF
9409 #define HAVE_DECL__SNPRINTF $gt_value
9410 _ACEOF
9411
9412
9413
9414   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9415 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9416 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h.  */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h.  */
9425 #include <stdio.h>
9426 int
9427 main ()
9428 {
9429
9430 #ifndef _snwprintf
9431   char *p = (char *) _snwprintf;
9432 #endif
9433
9434   ;
9435   return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext
9439 if { (ac_try="$ac_compile"
9440 case "(($ac_try" in
9441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442   *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445   (eval "$ac_compile") 2>conftest.er1
9446   ac_status=$?
9447   grep -v '^ *+' conftest.er1 >conftest.err
9448   rm -f conftest.er1
9449   cat conftest.err >&5
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); } && {
9452          test -z "$ac_c_werror_flag" ||
9453          test ! -s conftest.err
9454        } && test -s conftest.$ac_objext; then
9455   ac_cv_have_decl__snwprintf=yes
9456 else
9457   echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9459
9460         ac_cv_have_decl__snwprintf=no
9461 fi
9462
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 fi
9465 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9466 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9467   if test $ac_cv_have_decl__snwprintf = yes; then
9468     gt_value=1
9469   else
9470     gt_value=0
9471   fi
9472
9473 cat >>confdefs.h <<_ACEOF
9474 #define HAVE_DECL__SNWPRINTF $gt_value
9475 _ACEOF
9476
9477
9478
9479
9480   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9481 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9482 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h.  */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h.  */
9491 #include <stdio.h>
9492 int
9493 main ()
9494 {
9495
9496 #ifndef feof_unlocked
9497   char *p = (char *) feof_unlocked;
9498 #endif
9499
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext
9505 if { (ac_try="$ac_compile"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_compile") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && {
9518          test -z "$ac_c_werror_flag" ||
9519          test ! -s conftest.err
9520        } && test -s conftest.$ac_objext; then
9521   ac_cv_have_decl_feof_unlocked=yes
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526         ac_cv_have_decl_feof_unlocked=no
9527 fi
9528
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530 fi
9531 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9532 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9533   if test $ac_cv_have_decl_feof_unlocked = yes; then
9534     gt_value=1
9535   else
9536     gt_value=0
9537   fi
9538
9539 cat >>confdefs.h <<_ACEOF
9540 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9541 _ACEOF
9542
9543
9544
9545   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9546 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9547 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9548   echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550   cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556 #include <stdio.h>
9557 int
9558 main ()
9559 {
9560
9561 #ifndef fgets_unlocked
9562   char *p = (char *) fgets_unlocked;
9563 #endif
9564
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext
9570 if { (ac_try="$ac_compile"
9571 case "(($ac_try" in
9572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573   *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576   (eval "$ac_compile") 2>conftest.er1
9577   ac_status=$?
9578   grep -v '^ *+' conftest.er1 >conftest.err
9579   rm -f conftest.er1
9580   cat conftest.err >&5
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); } && {
9583          test -z "$ac_c_werror_flag" ||
9584          test ! -s conftest.err
9585        } && test -s conftest.$ac_objext; then
9586   ac_cv_have_decl_fgets_unlocked=yes
9587 else
9588   echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591         ac_cv_have_decl_fgets_unlocked=no
9592 fi
9593
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 fi
9596 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9597 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9598   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9599     gt_value=1
9600   else
9601     gt_value=0
9602   fi
9603
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9606 _ACEOF
9607
9608
9609
9610   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9611 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9612 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615   cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621 #include <stdio.h>
9622 int
9623 main ()
9624 {
9625
9626 #ifndef getc_unlocked
9627   char *p = (char *) getc_unlocked;
9628 #endif
9629
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext
9635 if { (ac_try="$ac_compile"
9636 case "(($ac_try" in
9637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638   *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641   (eval "$ac_compile") 2>conftest.er1
9642   ac_status=$?
9643   grep -v '^ *+' conftest.er1 >conftest.err
9644   rm -f conftest.er1
9645   cat conftest.err >&5
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } && {
9648          test -z "$ac_c_werror_flag" ||
9649          test ! -s conftest.err
9650        } && test -s conftest.$ac_objext; then
9651   ac_cv_have_decl_getc_unlocked=yes
9652 else
9653   echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656         ac_cv_have_decl_getc_unlocked=no
9657 fi
9658
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 fi
9661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9662 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9663   if test $ac_cv_have_decl_getc_unlocked = yes; then
9664     gt_value=1
9665   else
9666     gt_value=0
9667   fi
9668
9669 cat >>confdefs.h <<_ACEOF
9670 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9671 _ACEOF
9672
9673
9674
9675   case $gt_cv_func_printf_posix in
9676     *yes) HAVE_POSIX_PRINTF=1 ;;
9677     *) HAVE_POSIX_PRINTF=0 ;;
9678   esac
9679
9680   if test "$ac_cv_func_asprintf" = yes; then
9681     HAVE_ASPRINTF=1
9682   else
9683     HAVE_ASPRINTF=0
9684   fi
9685
9686   if test "$ac_cv_func_snprintf" = yes; then
9687     HAVE_SNPRINTF=1
9688   else
9689     HAVE_SNPRINTF=0
9690   fi
9691
9692   if test "$ac_cv_func_wprintf" = yes; then
9693     HAVE_WPRINTF=1
9694   else
9695     HAVE_WPRINTF=0
9696   fi
9697
9698
9699
9700
9701
9702
9703
9704           am_save_CPPFLAGS="$CPPFLAGS"
9705
9706   for element in $INCICONV; do
9707     haveit=
9708     for x in $CPPFLAGS; do
9709
9710   acl_save_prefix="$prefix"
9711   prefix="$acl_final_prefix"
9712   acl_save_exec_prefix="$exec_prefix"
9713   exec_prefix="$acl_final_exec_prefix"
9714   eval x=\"$x\"
9715   exec_prefix="$acl_save_exec_prefix"
9716   prefix="$acl_save_prefix"
9717
9718       if test "X$x" = "X$element"; then
9719         haveit=yes
9720         break
9721       fi
9722     done
9723     if test -z "$haveit"; then
9724       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9725     fi
9726   done
9727
9728
9729   { echo "$as_me:$LINENO: checking for iconv" >&5
9730 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9731 if test "${am_cv_func_iconv+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734
9735     am_cv_func_iconv="no, consider installing GNU libiconv"
9736     am_cv_lib_iconv=no
9737     cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 #include <stdlib.h>
9744 #include <iconv.h>
9745 int
9746 main ()
9747 {
9748 iconv_t cd = iconv_open("","");
9749        iconv(cd,NULL,NULL,NULL,NULL);
9750        iconv_close(cd);
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9757 case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_link") 2>conftest.er1
9763   ac_status=$?
9764   grep -v '^ *+' conftest.er1 >conftest.err
9765   rm -f conftest.er1
9766   cat conftest.err >&5
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); } && {
9769          test -z "$ac_c_werror_flag" ||
9770          test ! -s conftest.err
9771        } && test -s conftest$ac_exeext &&
9772        $as_test_x conftest$ac_exeext; then
9773   am_cv_func_iconv=yes
9774 else
9775   echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778
9779 fi
9780
9781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9782       conftest$ac_exeext conftest.$ac_ext
9783     if test "$am_cv_func_iconv" != yes; then
9784       am_save_LIBS="$LIBS"
9785       LIBS="$LIBS $LIBICONV"
9786       cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 #include <stdlib.h>
9793 #include <iconv.h>
9794 int
9795 main ()
9796 {
9797 iconv_t cd = iconv_open("","");
9798          iconv(cd,NULL,NULL,NULL,NULL);
9799          iconv_close(cd);
9800   ;
9801   return 0;
9802 }
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9806 case "(($ac_try" in
9807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808   *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811   (eval "$ac_link") 2>conftest.er1
9812   ac_status=$?
9813   grep -v '^ *+' conftest.er1 >conftest.err
9814   rm -f conftest.er1
9815   cat conftest.err >&5
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } && {
9818          test -z "$ac_c_werror_flag" ||
9819          test ! -s conftest.err
9820        } && test -s conftest$ac_exeext &&
9821        $as_test_x conftest$ac_exeext; then
9822   am_cv_lib_iconv=yes
9823         am_cv_func_iconv=yes
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828
9829 fi
9830
9831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9832       conftest$ac_exeext conftest.$ac_ext
9833       LIBS="$am_save_LIBS"
9834     fi
9835
9836 fi
9837 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9838 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9839   if test "$am_cv_func_iconv" = yes; then
9840
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_ICONV 1
9843 _ACEOF
9844
9845   fi
9846   if test "$am_cv_lib_iconv" = yes; then
9847     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9848 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9849     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9850 echo "${ECHO_T}$LIBICONV" >&6; }
9851   else
9852             CPPFLAGS="$am_save_CPPFLAGS"
9853     LIBICONV=
9854     LTLIBICONV=
9855   fi
9856
9857
9858
9859   if test "$am_cv_func_iconv" = yes; then
9860     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9861 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9862     if test "${am_cv_proto_iconv+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865
9866       cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h.  */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h.  */
9872
9873 #include <stdlib.h>
9874 #include <iconv.h>
9875 extern
9876 #ifdef __cplusplus
9877 "C"
9878 #endif
9879 #if defined(__STDC__) || defined(__cplusplus)
9880 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9881 #else
9882 size_t iconv();
9883 #endif
9884
9885 int
9886 main ()
9887 {
9888
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893 rm -f conftest.$ac_objext
9894 if { (ac_try="$ac_compile"
9895 case "(($ac_try" in
9896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897   *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900   (eval "$ac_compile") 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } && {
9907          test -z "$ac_c_werror_flag" ||
9908          test ! -s conftest.err
9909        } && test -s conftest.$ac_objext; then
9910   am_cv_proto_iconv_arg1=""
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915         am_cv_proto_iconv_arg1="const"
9916 fi
9917
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919       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);"
9920 fi
9921
9922     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9923     { echo "$as_me:$LINENO: result: ${ac_t:-
9924          }$am_cv_proto_iconv" >&5
9925 echo "${ECHO_T}${ac_t:-
9926          }$am_cv_proto_iconv" >&6; }
9927
9928 cat >>confdefs.h <<_ACEOF
9929 #define ICONV_CONST $am_cv_proto_iconv_arg1
9930 _ACEOF
9931
9932   fi
9933
9934
9935   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9936 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9937 if test "${am_cv_langinfo_codeset+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h.  */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h.  */
9946 #include <langinfo.h>
9947 int
9948 main ()
9949 {
9950 char* cs = nl_langinfo(CODESET);
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9957 case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_link") 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } && {
9969          test -z "$ac_c_werror_flag" ||
9970          test ! -s conftest.err
9971        } && test -s conftest$ac_exeext &&
9972        $as_test_x conftest$ac_exeext; then
9973   am_cv_langinfo_codeset=yes
9974 else
9975   echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978         am_cv_langinfo_codeset=no
9979 fi
9980
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982       conftest$ac_exeext conftest.$ac_ext
9983
9984 fi
9985 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9986 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9987   if test $am_cv_langinfo_codeset = yes; then
9988
9989 cat >>confdefs.h <<\_ACEOF
9990 #define HAVE_LANGINFO_CODESET 1
9991 _ACEOF
9992
9993   fi
9994
9995   if test $ac_cv_header_locale_h = yes; then
9996
9997   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9998 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9999 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002   cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h.  */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h.  */
10008 #include <locale.h>
10009 int
10010 main ()
10011 {
10012 return LC_MESSAGES
10013   ;
10014   return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021   *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024   (eval "$ac_link") 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } && {
10031          test -z "$ac_c_werror_flag" ||
10032          test ! -s conftest.err
10033        } && test -s conftest$ac_exeext &&
10034        $as_test_x conftest$ac_exeext; then
10035   am_cv_val_LC_MESSAGES=yes
10036 else
10037   echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040         am_cv_val_LC_MESSAGES=no
10041 fi
10042
10043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044       conftest$ac_exeext conftest.$ac_ext
10045 fi
10046 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10047 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10048   if test $am_cv_val_LC_MESSAGES = yes; then
10049
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_LC_MESSAGES 1
10052 _ACEOF
10053
10054   fi
10055
10056   fi
10057
10058                       for ac_prog in bison
10059 do
10060   # Extract the first word of "$ac_prog", so it can be a program name with args.
10061 set dummy $ac_prog; ac_word=$2
10062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10064 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10065   echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067   if test -n "$INTLBISON"; then
10068   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10069 else
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10072 do
10073   IFS=$as_save_IFS
10074   test -z "$as_dir" && as_dir=.
10075   for ac_exec_ext in '' $ac_executable_extensions; do
10076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077     ac_cv_prog_INTLBISON="$ac_prog"
10078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10079     break 2
10080   fi
10081 done
10082 done
10083 IFS=$as_save_IFS
10084
10085 fi
10086 fi
10087 INTLBISON=$ac_cv_prog_INTLBISON
10088 if test -n "$INTLBISON"; then
10089   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10090 echo "${ECHO_T}$INTLBISON" >&6; }
10091 else
10092   { echo "$as_me:$LINENO: result: no" >&5
10093 echo "${ECHO_T}no" >&6; }
10094 fi
10095
10096
10097   test -n "$INTLBISON" && break
10098 done
10099
10100   if test -z "$INTLBISON"; then
10101     ac_verc_fail=yes
10102   else
10103         { echo "$as_me:$LINENO: checking version of bison" >&5
10104 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10105     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10106     case $ac_prog_version in
10107       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10108       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10109          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10110       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10111     esac
10112     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10113 echo "${ECHO_T}$ac_prog_version" >&6; }
10114   fi
10115   if test $ac_verc_fail = yes; then
10116     INTLBISON=:
10117   fi
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10135 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10136     # Check whether --enable-nls was given.
10137 if test "${enable_nls+set}" = set; then
10138   enableval=$enable_nls; USE_NLS=$enableval
10139 else
10140   USE_NLS=yes
10141 fi
10142
10143   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10144 echo "${ECHO_T}$USE_NLS" >&6; }
10145
10146
10147
10148
10149     BUILD_INCLUDED_LIBINTL=no
10150     USE_INCLUDED_LIBINTL=no
10151
10152   LIBINTL=
10153   LTLIBINTL=
10154   POSUB=
10155
10156     if test "$USE_NLS" = "yes"; then
10157     gt_use_preinstalled_gnugettext=no
10158
10159       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10160 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10161
10162 # Check whether --with-included-gettext was given.
10163 if test "${with_included_gettext+set}" = set; then
10164   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10165 else
10166   nls_cv_force_use_gnu_gettext=no
10167 fi
10168
10169       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10170 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10171
10172       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10173       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10174
10175
10176
10177
10178
10179
10180         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10181 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10182 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10183   echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185   cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h.  */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h.  */
10191 #include <libintl.h>
10192 extern int _nl_msg_cat_cntr;
10193 extern int *_nl_domain_bindings;
10194 int
10195 main ()
10196 {
10197 bindtextdomain ("", "");
10198 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10199   ;
10200   return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_link") 2>conftest.er1
10211   ac_status=$?
10212   grep -v '^ *+' conftest.er1 >conftest.err
10213   rm -f conftest.er1
10214   cat conftest.err >&5
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); } && {
10217          test -z "$ac_c_werror_flag" ||
10218          test ! -s conftest.err
10219        } && test -s conftest$ac_exeext &&
10220        $as_test_x conftest$ac_exeext; then
10221   gt_cv_func_gnugettext1_libc=yes
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226         gt_cv_func_gnugettext1_libc=no
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230       conftest$ac_exeext conftest.$ac_ext
10231 fi
10232 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10233 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10234
10235         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10236
10237
10238
10239     use_additional=yes
10240
10241   acl_save_prefix="$prefix"
10242   prefix="$acl_final_prefix"
10243   acl_save_exec_prefix="$exec_prefix"
10244   exec_prefix="$acl_final_exec_prefix"
10245
10246     eval additional_includedir=\"$includedir\"
10247     eval additional_libdir=\"$libdir\"
10248
10249   exec_prefix="$acl_save_exec_prefix"
10250   prefix="$acl_save_prefix"
10251
10252
10253 # Check whether --with-libintl-prefix was given.
10254 if test "${with_libintl_prefix+set}" = set; then
10255   withval=$with_libintl_prefix;
10256     if test "X$withval" = "Xno"; then
10257       use_additional=no
10258     else
10259       if test "X$withval" = "X"; then
10260
10261   acl_save_prefix="$prefix"
10262   prefix="$acl_final_prefix"
10263   acl_save_exec_prefix="$exec_prefix"
10264   exec_prefix="$acl_final_exec_prefix"
10265
10266           eval additional_includedir=\"$includedir\"
10267           eval additional_libdir=\"$libdir\"
10268
10269   exec_prefix="$acl_save_exec_prefix"
10270   prefix="$acl_save_prefix"
10271
10272       else
10273         additional_includedir="$withval/include"
10274         additional_libdir="$withval/lib"
10275       fi
10276     fi
10277
10278 fi
10279
10280       LIBINTL=
10281   LTLIBINTL=
10282   INCINTL=
10283   rpathdirs=
10284   ltrpathdirs=
10285   names_already_handled=
10286   names_next_round='intl '
10287   while test -n "$names_next_round"; do
10288     names_this_round="$names_next_round"
10289     names_next_round=
10290     for name in $names_this_round; do
10291       already_handled=
10292       for n in $names_already_handled; do
10293         if test "$n" = "$name"; then
10294           already_handled=yes
10295           break
10296         fi
10297       done
10298       if test -z "$already_handled"; then
10299         names_already_handled="$names_already_handled $name"
10300                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10301         eval value=\"\$HAVE_LIB$uppername\"
10302         if test -n "$value"; then
10303           if test "$value" = yes; then
10304             eval value=\"\$LIB$uppername\"
10305             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10306             eval value=\"\$LTLIB$uppername\"
10307             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10308           else
10309                                     :
10310           fi
10311         else
10312                               found_dir=
10313           found_la=
10314           found_so=
10315           found_a=
10316           if test $use_additional = yes; then
10317             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10318               found_dir="$additional_libdir"
10319               found_so="$additional_libdir/lib$name.$shlibext"
10320               if test -f "$additional_libdir/lib$name.la"; then
10321                 found_la="$additional_libdir/lib$name.la"
10322               fi
10323             else
10324               if test -f "$additional_libdir/lib$name.$libext"; then
10325                 found_dir="$additional_libdir"
10326                 found_a="$additional_libdir/lib$name.$libext"
10327                 if test -f "$additional_libdir/lib$name.la"; then
10328                   found_la="$additional_libdir/lib$name.la"
10329                 fi
10330               fi
10331             fi
10332           fi
10333           if test "X$found_dir" = "X"; then
10334             for x in $LDFLAGS $LTLIBINTL; do
10335
10336   acl_save_prefix="$prefix"
10337   prefix="$acl_final_prefix"
10338   acl_save_exec_prefix="$exec_prefix"
10339   exec_prefix="$acl_final_exec_prefix"
10340   eval x=\"$x\"
10341   exec_prefix="$acl_save_exec_prefix"
10342   prefix="$acl_save_prefix"
10343
10344               case "$x" in
10345                 -L*)
10346                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10347                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10348                     found_dir="$dir"
10349                     found_so="$dir/lib$name.$shlibext"
10350                     if test -f "$dir/lib$name.la"; then
10351                       found_la="$dir/lib$name.la"
10352                     fi
10353                   else
10354                     if test -f "$dir/lib$name.$libext"; then
10355                       found_dir="$dir"
10356                       found_a="$dir/lib$name.$libext"
10357                       if test -f "$dir/lib$name.la"; then
10358                         found_la="$dir/lib$name.la"
10359                       fi
10360                     fi
10361                   fi
10362                   ;;
10363               esac
10364               if test "X$found_dir" != "X"; then
10365                 break
10366               fi
10367             done
10368           fi
10369           if test "X$found_dir" != "X"; then
10370                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10371             if test "X$found_so" != "X"; then
10372                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10373                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10374               else
10375                                                                                 haveit=
10376                 for x in $ltrpathdirs; do
10377                   if test "X$x" = "X$found_dir"; then
10378                     haveit=yes
10379                     break
10380                   fi
10381                 done
10382                 if test -z "$haveit"; then
10383                   ltrpathdirs="$ltrpathdirs $found_dir"
10384                 fi
10385                                 if test "$hardcode_direct" = yes; then
10386                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10387                 else
10388                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10389                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10390                                                             haveit=
10391                     for x in $rpathdirs; do
10392                       if test "X$x" = "X$found_dir"; then
10393                         haveit=yes
10394                         break
10395                       fi
10396                     done
10397                     if test -z "$haveit"; then
10398                       rpathdirs="$rpathdirs $found_dir"
10399                     fi
10400                   else
10401                                                                                 haveit=
10402                     for x in $LDFLAGS $LIBINTL; do
10403
10404   acl_save_prefix="$prefix"
10405   prefix="$acl_final_prefix"
10406   acl_save_exec_prefix="$exec_prefix"
10407   exec_prefix="$acl_final_exec_prefix"
10408   eval x=\"$x\"
10409   exec_prefix="$acl_save_exec_prefix"
10410   prefix="$acl_save_prefix"
10411
10412                       if test "X$x" = "X-L$found_dir"; then
10413                         haveit=yes
10414                         break
10415                       fi
10416                     done
10417                     if test -z "$haveit"; then
10418                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10419                     fi
10420                     if test "$hardcode_minus_L" != no; then
10421                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10422                     else
10423                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10424                     fi
10425                   fi
10426                 fi
10427               fi
10428             else
10429               if test "X$found_a" != "X"; then
10430                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10431               else
10432                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10433               fi
10434             fi
10435                         additional_includedir=
10436             case "$found_dir" in
10437               */lib | */lib/)
10438                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10439                 additional_includedir="$basedir/include"
10440                 ;;
10441             esac
10442             if test "X$additional_includedir" != "X"; then
10443                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10444                 haveit=
10445                 if test "X$additional_includedir" = "X/usr/local/include"; then
10446                   if test -n "$GCC"; then
10447                     case $host_os in
10448                       linux*) haveit=yes;;
10449                     esac
10450                   fi
10451                 fi
10452                 if test -z "$haveit"; then
10453                   for x in $CPPFLAGS $INCINTL; do
10454
10455   acl_save_prefix="$prefix"
10456   prefix="$acl_final_prefix"
10457   acl_save_exec_prefix="$exec_prefix"
10458   exec_prefix="$acl_final_exec_prefix"
10459   eval x=\"$x\"
10460   exec_prefix="$acl_save_exec_prefix"
10461   prefix="$acl_save_prefix"
10462
10463                     if test "X$x" = "X-I$additional_includedir"; then
10464                       haveit=yes
10465                       break
10466                     fi
10467                   done
10468                   if test -z "$haveit"; then
10469                     if test -d "$additional_includedir"; then
10470                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10471                     fi
10472                   fi
10473                 fi
10474               fi
10475             fi
10476                         if test -n "$found_la"; then
10477                                                         save_libdir="$libdir"
10478               case "$found_la" in
10479                 */* | *\\*) . "$found_la" ;;
10480                 *) . "./$found_la" ;;
10481               esac
10482               libdir="$save_libdir"
10483                             for dep in $dependency_libs; do
10484                 case "$dep" in
10485                   -L*)
10486                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10487                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10488                       haveit=
10489                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10490                         if test -n "$GCC"; then
10491                           case $host_os in
10492                             linux*) haveit=yes;;
10493                           esac
10494                         fi
10495                       fi
10496                       if test -z "$haveit"; then
10497                         haveit=
10498                         for x in $LDFLAGS $LIBINTL; do
10499
10500   acl_save_prefix="$prefix"
10501   prefix="$acl_final_prefix"
10502   acl_save_exec_prefix="$exec_prefix"
10503   exec_prefix="$acl_final_exec_prefix"
10504   eval x=\"$x\"
10505   exec_prefix="$acl_save_exec_prefix"
10506   prefix="$acl_save_prefix"
10507
10508                           if test "X$x" = "X-L$additional_libdir"; then
10509                             haveit=yes
10510                             break
10511                           fi
10512                         done
10513                         if test -z "$haveit"; then
10514                           if test -d "$additional_libdir"; then
10515                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10516                           fi
10517                         fi
10518                         haveit=
10519                         for x in $LDFLAGS $LTLIBINTL; do
10520
10521   acl_save_prefix="$prefix"
10522   prefix="$acl_final_prefix"
10523   acl_save_exec_prefix="$exec_prefix"
10524   exec_prefix="$acl_final_exec_prefix"
10525   eval x=\"$x\"
10526   exec_prefix="$acl_save_exec_prefix"
10527   prefix="$acl_save_prefix"
10528
10529                           if test "X$x" = "X-L$additional_libdir"; then
10530                             haveit=yes
10531                             break
10532                           fi
10533                         done
10534                         if test -z "$haveit"; then
10535                           if test -d "$additional_libdir"; then
10536                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10537                           fi
10538                         fi
10539                       fi
10540                     fi
10541                     ;;
10542                   -R*)
10543                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10544                     if test "$enable_rpath" != no; then
10545                                                                   haveit=
10546                       for x in $rpathdirs; do
10547                         if test "X$x" = "X$dir"; then
10548                           haveit=yes
10549                           break
10550                         fi
10551                       done
10552                       if test -z "$haveit"; then
10553                         rpathdirs="$rpathdirs $dir"
10554                       fi
10555                                                                   haveit=
10556                       for x in $ltrpathdirs; do
10557                         if test "X$x" = "X$dir"; then
10558                           haveit=yes
10559                           break
10560                         fi
10561                       done
10562                       if test -z "$haveit"; then
10563                         ltrpathdirs="$ltrpathdirs $dir"
10564                       fi
10565                     fi
10566                     ;;
10567                   -l*)
10568                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10569                     ;;
10570                   *.la)
10571                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10572                     ;;
10573                   *)
10574                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10575                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10576                     ;;
10577                 esac
10578               done
10579             fi
10580           else
10581                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10582             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10583           fi
10584         fi
10585       fi
10586     done
10587   done
10588   if test "X$rpathdirs" != "X"; then
10589     if test -n "$hardcode_libdir_separator"; then
10590                         alldirs=
10591       for found_dir in $rpathdirs; do
10592         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10593       done
10594             acl_save_libdir="$libdir"
10595       libdir="$alldirs"
10596       eval flag=\"$hardcode_libdir_flag_spec\"
10597       libdir="$acl_save_libdir"
10598       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10599     else
10600             for found_dir in $rpathdirs; do
10601         acl_save_libdir="$libdir"
10602         libdir="$found_dir"
10603         eval flag=\"$hardcode_libdir_flag_spec\"
10604         libdir="$acl_save_libdir"
10605         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10606       done
10607     fi
10608   fi
10609   if test "X$ltrpathdirs" != "X"; then
10610             for found_dir in $ltrpathdirs; do
10611       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10612     done
10613   fi
10614
10615           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10616 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10617 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10618   echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620   gt_save_CPPFLAGS="$CPPFLAGS"
10621             CPPFLAGS="$CPPFLAGS $INCINTL"
10622             gt_save_LIBS="$LIBS"
10623             LIBS="$LIBS $LIBINTL"
10624                         cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630 #include <libintl.h>
10631 extern int _nl_msg_cat_cntr;
10632 extern
10633 #ifdef __cplusplus
10634 "C"
10635 #endif
10636 const char *_nl_expand_alias ();
10637 int
10638 main ()
10639 {
10640 bindtextdomain ("", "");
10641 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (ac_try="$ac_link"
10648 case "(($ac_try" in
10649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650   *) ac_try_echo=$ac_try;;
10651 esac
10652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653   (eval "$ac_link") 2>conftest.er1
10654   ac_status=$?
10655   grep -v '^ *+' conftest.er1 >conftest.err
10656   rm -f conftest.er1
10657   cat conftest.err >&5
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); } && {
10660          test -z "$ac_c_werror_flag" ||
10661          test ! -s conftest.err
10662        } && test -s conftest$ac_exeext &&
10663        $as_test_x conftest$ac_exeext; then
10664   gt_cv_func_gnugettext1_libintl=yes
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669         gt_cv_func_gnugettext1_libintl=no
10670 fi
10671
10672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10673       conftest$ac_exeext conftest.$ac_ext
10674                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10675               LIBS="$LIBS $LIBICONV"
10676               cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h.  */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h.  */
10682 #include <libintl.h>
10683 extern int _nl_msg_cat_cntr;
10684 extern
10685 #ifdef __cplusplus
10686 "C"
10687 #endif
10688 const char *_nl_expand_alias ();
10689 int
10690 main ()
10691 {
10692 bindtextdomain ("", "");
10693 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10694   ;
10695   return 0;
10696 }
10697 _ACEOF
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (ac_try="$ac_link"
10700 case "(($ac_try" in
10701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702   *) ac_try_echo=$ac_try;;
10703 esac
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705   (eval "$ac_link") 2>conftest.er1
10706   ac_status=$?
10707   grep -v '^ *+' conftest.er1 >conftest.err
10708   rm -f conftest.er1
10709   cat conftest.err >&5
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } && {
10712          test -z "$ac_c_werror_flag" ||
10713          test ! -s conftest.err
10714        } && test -s conftest$ac_exeext &&
10715        $as_test_x conftest$ac_exeext; then
10716   LIBINTL="$LIBINTL $LIBICONV"
10717                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10718                 gt_cv_func_gnugettext1_libintl=yes
10719
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724
10725 fi
10726
10727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728       conftest$ac_exeext conftest.$ac_ext
10729             fi
10730             CPPFLAGS="$gt_save_CPPFLAGS"
10731             LIBS="$gt_save_LIBS"
10732 fi
10733 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10734 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10735         fi
10736
10737                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10738            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10739                 && test "$PACKAGE" != gettext-runtime \
10740                 && test "$PACKAGE" != gettext-tools; }; then
10741           gt_use_preinstalled_gnugettext=yes
10742         else
10743                     LIBINTL=
10744           LTLIBINTL=
10745           INCINTL=
10746         fi
10747
10748
10749         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10750                               nls_cv_use_gnu_gettext=yes
10751         fi
10752       fi
10753
10754       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10755                 BUILD_INCLUDED_LIBINTL=yes
10756         USE_INCLUDED_LIBINTL=yes
10757         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10758         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10759         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10760       fi
10761
10762       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10763          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10764                 CATOBJEXT=.gmo
10765       fi
10766
10767
10768     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10769        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10770
10771 cat >>confdefs.h <<\_ACEOF
10772 #define ENABLE_NLS 1
10773 _ACEOF
10774
10775     else
10776       USE_NLS=no
10777     fi
10778   fi
10779
10780   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10781 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10782   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10783 echo "${ECHO_T}$USE_NLS" >&6; }
10784   if test "$USE_NLS" = "yes"; then
10785     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10786 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10787     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10788       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10789         gt_source="external libintl"
10790       else
10791         gt_source="libc"
10792       fi
10793     else
10794       gt_source="included intl directory"
10795     fi
10796     { echo "$as_me:$LINENO: result: $gt_source" >&5
10797 echo "${ECHO_T}$gt_source" >&6; }
10798   fi
10799
10800   if test "$USE_NLS" = "yes"; then
10801
10802     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10803       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10804         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10805 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10806         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10807 echo "${ECHO_T}$LIBINTL" >&6; }
10808
10809   for element in $INCINTL; do
10810     haveit=
10811     for x in $CPPFLAGS; do
10812
10813   acl_save_prefix="$prefix"
10814   prefix="$acl_final_prefix"
10815   acl_save_exec_prefix="$exec_prefix"
10816   exec_prefix="$acl_final_exec_prefix"
10817   eval x=\"$x\"
10818   exec_prefix="$acl_save_exec_prefix"
10819   prefix="$acl_save_prefix"
10820
10821       if test "X$x" = "X$element"; then
10822         haveit=yes
10823         break
10824       fi
10825     done
10826     if test -z "$haveit"; then
10827       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10828     fi
10829   done
10830
10831       fi
10832
10833
10834 cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_GETTEXT 1
10836 _ACEOF
10837
10838
10839 cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_DCGETTEXT 1
10841 _ACEOF
10842
10843     fi
10844
10845         POSUB=po
10846   fi
10847
10848
10849             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10850       BUILD_INCLUDED_LIBINTL=yes
10851     fi
10852
10853
10854
10855
10856
10857         nls_cv_header_intl=
10858     nls_cv_header_libgt=
10859
10860         DATADIRNAME=share
10861
10862
10863         INSTOBJEXT=.mo
10864
10865
10866         GENCAT=gencat
10867
10868
10869         if test "$USE_INCLUDED_LIBINTL" = yes; then
10870       INTLOBJS="\$(GETTOBJS)"
10871     fi
10872
10873
10874         INTL_LIBTOOL_SUFFIX_PREFIX=
10875
10876
10877
10878     INTLLIBS="$LIBINTL"
10879
10880
10881
10882
10883
10884
10885
10886 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10887 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10888 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10889 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   cat >conftest.make <<\_ACEOF
10893 SHELL = /bin/sh
10894 all:
10895         @echo '@@@%%%=$(MAKE)=@@@%%%'
10896 _ACEOF
10897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10898 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10899   *@@@%%%=?*=@@@%%%*)
10900     eval ac_cv_prog_make_${ac_make}_set=yes;;
10901   *)
10902     eval ac_cv_prog_make_${ac_make}_set=no;;
10903 esac
10904 rm -f conftest.make
10905 fi
10906 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10907   { echo "$as_me:$LINENO: result: yes" >&5
10908 echo "${ECHO_T}yes" >&6; }
10909   SET_MAKE=
10910 else
10911   { echo "$as_me:$LINENO: result: no" >&5
10912 echo "${ECHO_T}no" >&6; }
10913   SET_MAKE="MAKE=${MAKE-make}"
10914 fi
10915
10916 # Extract the first word of "ln", so it can be a program name with args.
10917 set dummy ln; ac_word=$2
10918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10920 if test "${ac_cv_path_LN+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   case $LN in
10924   [\\/]* | ?:[\\/]*)
10925   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10926   ;;
10927   *)
10928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929 for as_dir in $PATH
10930 do
10931   IFS=$as_save_IFS
10932   test -z "$as_dir" && as_dir=.
10933   for ac_exec_ext in '' $ac_executable_extensions; do
10934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10935     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10937     break 2
10938   fi
10939 done
10940 done
10941 IFS=$as_save_IFS
10942
10943   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10944   ;;
10945 esac
10946 fi
10947 LN=$ac_cv_path_LN
10948 if test -n "$LN"; then
10949   { echo "$as_me:$LINENO: result: $LN" >&5
10950 echo "${ECHO_T}$LN" >&6; }
10951 else
10952   { echo "$as_me:$LINENO: result: no" >&5
10953 echo "${ECHO_T}no" >&6; }
10954 fi
10955
10956
10957 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10959 LN_S=$as_ln_s
10960 if test "$LN_S" = "ln -s"; then
10961   { echo "$as_me:$LINENO: result: yes" >&5
10962 echo "${ECHO_T}yes" >&6; }
10963 else
10964   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10965 echo "${ECHO_T}no, using $LN_S" >&6; }
10966 fi
10967
10968 # Extract the first word of "mv", so it can be a program name with args.
10969 set dummy mv; ac_word=$2
10970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10972 if test "${ac_cv_path_MV+set}" = set; then
10973   echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975   case $MV in
10976   [\\/]* | ?:[\\/]*)
10977   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10978   ;;
10979   *)
10980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983   IFS=$as_save_IFS
10984   test -z "$as_dir" && as_dir=.
10985   for ac_exec_ext in '' $ac_executable_extensions; do
10986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10989     break 2
10990   fi
10991 done
10992 done
10993 IFS=$as_save_IFS
10994
10995   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10996   ;;
10997 esac
10998 fi
10999 MV=$ac_cv_path_MV
11000 if test -n "$MV"; then
11001   { echo "$as_me:$LINENO: result: $MV" >&5
11002 echo "${ECHO_T}$MV" >&6; }
11003 else
11004   { echo "$as_me:$LINENO: result: no" >&5
11005 echo "${ECHO_T}no" >&6; }
11006 fi
11007
11008
11009 # Extract the first word of "cp", so it can be a program name with args.
11010 set dummy cp; ac_word=$2
11011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11013 if test "${ac_cv_path_CP+set}" = set; then
11014   echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016   case $CP in
11017   [\\/]* | ?:[\\/]*)
11018   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11019   ;;
11020   *)
11021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11023 do
11024   IFS=$as_save_IFS
11025   test -z "$as_dir" && as_dir=.
11026   for ac_exec_ext in '' $ac_executable_extensions; do
11027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11028     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11030     break 2
11031   fi
11032 done
11033 done
11034 IFS=$as_save_IFS
11035
11036   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11037   ;;
11038 esac
11039 fi
11040 CP=$ac_cv_path_CP
11041 if test -n "$CP"; then
11042   { echo "$as_me:$LINENO: result: $CP" >&5
11043 echo "${ECHO_T}$CP" >&6; }
11044 else
11045   { echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6; }
11047 fi
11048
11049
11050 # Extract the first word of "rm", so it can be a program name with args.
11051 set dummy rm; ac_word=$2
11052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11054 if test "${ac_cv_path_RM+set}" = set; then
11055   echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057   case $RM in
11058   [\\/]* | ?:[\\/]*)
11059   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11060   ;;
11061   *)
11062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11064 do
11065   IFS=$as_save_IFS
11066   test -z "$as_dir" && as_dir=.
11067   for ac_exec_ext in '' $ac_executable_extensions; do
11068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11069     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11071     break 2
11072   fi
11073 done
11074 done
11075 IFS=$as_save_IFS
11076
11077   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11078   ;;
11079 esac
11080 fi
11081 RM=$ac_cv_path_RM
11082 if test -n "$RM"; then
11083   { echo "$as_me:$LINENO: result: $RM" >&5
11084 echo "${ECHO_T}$RM" >&6; }
11085 else
11086   { echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6; }
11088 fi
11089
11090
11091 # Extract the first word of "chmod", so it can be a program name with args.
11092 set dummy chmod; ac_word=$2
11093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11095 if test "${ac_cv_path_CHMOD+set}" = set; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098   case $CHMOD in
11099   [\\/]* | ?:[\\/]*)
11100   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11101   ;;
11102   *)
11103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11105 do
11106   IFS=$as_save_IFS
11107   test -z "$as_dir" && as_dir=.
11108   for ac_exec_ext in '' $ac_executable_extensions; do
11109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11112     break 2
11113   fi
11114 done
11115 done
11116 IFS=$as_save_IFS
11117
11118   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11119   ;;
11120 esac
11121 fi
11122 CHMOD=$ac_cv_path_CHMOD
11123 if test -n "$CHMOD"; then
11124   { echo "$as_me:$LINENO: result: $CHMOD" >&5
11125 echo "${ECHO_T}$CHMOD" >&6; }
11126 else
11127   { echo "$as_me:$LINENO: result: no" >&5
11128 echo "${ECHO_T}no" >&6; }
11129 fi
11130
11131
11132 for ac_prog in gawk mawk nawk awk
11133 do
11134   # Extract the first word of "$ac_prog", so it can be a program name with args.
11135 set dummy $ac_prog; ac_word=$2
11136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11138 if test "${ac_cv_prog_AWK+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   if test -n "$AWK"; then
11142   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11143 else
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11146 do
11147   IFS=$as_save_IFS
11148   test -z "$as_dir" && as_dir=.
11149   for ac_exec_ext in '' $ac_executable_extensions; do
11150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11151     ac_cv_prog_AWK="$ac_prog"
11152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11153     break 2
11154   fi
11155 done
11156 done
11157 IFS=$as_save_IFS
11158
11159 fi
11160 fi
11161 AWK=$ac_cv_prog_AWK
11162 if test -n "$AWK"; then
11163   { echo "$as_me:$LINENO: result: $AWK" >&5
11164 echo "${ECHO_T}$AWK" >&6; }
11165 else
11166   { echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6; }
11168 fi
11169
11170
11171   test -n "$AWK" && break
11172 done
11173
11174 { echo "$as_me:$LINENO: checking for egrep" >&5
11175 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11176 if test "${ac_cv_path_EGREP+set}" = set; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11180    then ac_cv_path_EGREP="$GREP -E"
11181    else
11182      # Extract the first word of "egrep" to use in msg output
11183 if test -z "$EGREP"; then
11184 set dummy egrep; ac_prog_name=$2
11185 if test "${ac_cv_path_EGREP+set}" = set; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188   ac_path_EGREP_found=false
11189 # Loop through the user's path and test for each of PROGNAME-LIST
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11192 do
11193   IFS=$as_save_IFS
11194   test -z "$as_dir" && as_dir=.
11195   for ac_prog in egrep; do
11196   for ac_exec_ext in '' $ac_executable_extensions; do
11197     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11198     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11199     # Check for GNU ac_path_EGREP and select it if it is found.
11200   # Check for GNU $ac_path_EGREP
11201 case `"$ac_path_EGREP" --version 2>&1` in
11202 *GNU*)
11203   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11204 *)
11205   ac_count=0
11206   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11207   while :
11208   do
11209     cat "conftest.in" "conftest.in" >"conftest.tmp"
11210     mv "conftest.tmp" "conftest.in"
11211     cp "conftest.in" "conftest.nl"
11212     echo 'EGREP' >> "conftest.nl"
11213     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11214     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11215     ac_count=`expr $ac_count + 1`
11216     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11217       # Best one so far, save it but keep looking for a better one
11218       ac_cv_path_EGREP="$ac_path_EGREP"
11219       ac_path_EGREP_max=$ac_count
11220     fi
11221     # 10*(2^10) chars as input seems more than enough
11222     test $ac_count -gt 10 && break
11223   done
11224   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11225 esac
11226
11227
11228     $ac_path_EGREP_found && break 3
11229   done
11230 done
11231
11232 done
11233 IFS=$as_save_IFS
11234
11235
11236 fi
11237
11238 EGREP="$ac_cv_path_EGREP"
11239 if test -z "$EGREP"; then
11240   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11241 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11242    { (exit 1); exit 1; }; }
11243 fi
11244
11245 else
11246   ac_cv_path_EGREP=$EGREP
11247 fi
11248
11249
11250    fi
11251 fi
11252 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11253 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11254  EGREP="$ac_cv_path_EGREP"
11255
11256
11257 # Extract the first word of "sed", so it can be a program name with args.
11258 set dummy sed; ac_word=$2
11259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11261 if test "${ac_cv_path_SED+set}" = set; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264   case $SED in
11265   [\\/]* | ?:[\\/]*)
11266   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11267   ;;
11268   *)
11269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272   IFS=$as_save_IFS
11273   test -z "$as_dir" && as_dir=.
11274   for ac_exec_ext in '' $ac_executable_extensions; do
11275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278     break 2
11279   fi
11280 done
11281 done
11282 IFS=$as_save_IFS
11283
11284   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11285   ;;
11286 esac
11287 fi
11288 SED=$ac_cv_path_SED
11289 if test -n "$SED"; then
11290   { echo "$as_me:$LINENO: result: $SED" >&5
11291 echo "${ECHO_T}$SED" >&6; }
11292 else
11293   { echo "$as_me:$LINENO: result: no" >&5
11294 echo "${ECHO_T}no" >&6; }
11295 fi
11296
11297
11298 # Extract the first word of "perl", so it can be a program name with args.
11299 set dummy perl; ac_word=$2
11300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11302 if test "${ac_cv_path_PERL+set}" = set; then
11303   echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305   case $PERL in
11306   [\\/]* | ?:[\\/]*)
11307   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11308   ;;
11309   *)
11310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313   IFS=$as_save_IFS
11314   test -z "$as_dir" && as_dir=.
11315   for ac_exec_ext in '' $ac_executable_extensions; do
11316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11319     break 2
11320   fi
11321 done
11322 done
11323 IFS=$as_save_IFS
11324
11325   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11326   ;;
11327 esac
11328 fi
11329 PERL=$ac_cv_path_PERL
11330 if test -n "$PERL"; then
11331   { echo "$as_me:$LINENO: result: $PERL" >&5
11332 echo "${ECHO_T}$PERL" >&6; }
11333 else
11334   { echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6; }
11336 fi
11337
11338
11339 # Extract the first word of "ldconfig", so it can be a program name with args.
11340 set dummy ldconfig; ac_word=$2
11341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11343 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   case $LDCONFIG in
11347   [\\/]* | ?:[\\/]*)
11348   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11349   ;;
11350   *)
11351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354   IFS=$as_save_IFS
11355   test -z "$as_dir" && as_dir=.
11356   for ac_exec_ext in '' $ac_executable_extensions; do
11357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360     break 2
11361   fi
11362 done
11363 done
11364 IFS=$as_save_IFS
11365
11366   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11367   ;;
11368 esac
11369 fi
11370 LDCONFIG=$ac_cv_path_LDCONFIG
11371 if test -n "$LDCONFIG"; then
11372   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11373 echo "${ECHO_T}$LDCONFIG" >&6; }
11374 else
11375   { echo "$as_me:$LINENO: result: no" >&5
11376 echo "${ECHO_T}no" >&6; }
11377 fi
11378
11379
11380 if test -n "$ac_tool_prefix"; then
11381   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11382 set dummy ${ac_tool_prefix}ar; ac_word=$2
11383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11385 if test "${ac_cv_prog_AR+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   if test -n "$AR"; then
11389   ac_cv_prog_AR="$AR" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396   for ac_exec_ext in '' $ac_executable_extensions; do
11397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398     ac_cv_prog_AR="${ac_tool_prefix}ar"
11399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 AR=$ac_cv_prog_AR
11409 if test -n "$AR"; then
11410   { echo "$as_me:$LINENO: result: $AR" >&5
11411 echo "${ECHO_T}$AR" >&6; }
11412 else
11413   { echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6; }
11415 fi
11416
11417
11418 fi
11419 if test -z "$ac_cv_prog_AR"; then
11420   ac_ct_AR=$AR
11421   # Extract the first word of "ar", so it can be a program name with args.
11422 set dummy ar; ac_word=$2
11423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11425 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   if test -n "$ac_ct_AR"; then
11429   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11430 else
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11433 do
11434   IFS=$as_save_IFS
11435   test -z "$as_dir" && as_dir=.
11436   for ac_exec_ext in '' $ac_executable_extensions; do
11437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11438     ac_cv_prog_ac_ct_AR="ar"
11439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11440     break 2
11441   fi
11442 done
11443 done
11444 IFS=$as_save_IFS
11445
11446 fi
11447 fi
11448 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11449 if test -n "$ac_ct_AR"; then
11450   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11451 echo "${ECHO_T}$ac_ct_AR" >&6; }
11452 else
11453   { echo "$as_me:$LINENO: result: no" >&5
11454 echo "${ECHO_T}no" >&6; }
11455 fi
11456
11457   if test "x$ac_ct_AR" = x; then
11458     AR="ar"
11459   else
11460     case $cross_compiling:$ac_tool_warned in
11461 yes:)
11462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11463 whose name does not start with the host triplet.  If you think this
11464 configuration is useful to you, please write to autoconf@gnu.org." >&5
11465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11466 whose name does not start with the host triplet.  If you think this
11467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11468 ac_tool_warned=yes ;;
11469 esac
11470     AR=$ac_ct_AR
11471   fi
11472 else
11473   AR="$ac_cv_prog_AR"
11474 fi
11475
11476 if test -n "$ac_tool_prefix"; then
11477   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11481 if test "${ac_cv_prog_RANLIB+set}" = set; then
11482   echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484   if test -n "$RANLIB"; then
11485   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11486 else
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11489 do
11490   IFS=$as_save_IFS
11491   test -z "$as_dir" && as_dir=.
11492   for ac_exec_ext in '' $ac_executable_extensions; do
11493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11496     break 2
11497   fi
11498 done
11499 done
11500 IFS=$as_save_IFS
11501
11502 fi
11503 fi
11504 RANLIB=$ac_cv_prog_RANLIB
11505 if test -n "$RANLIB"; then
11506   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11507 echo "${ECHO_T}$RANLIB" >&6; }
11508 else
11509   { echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6; }
11511 fi
11512
11513
11514 fi
11515 if test -z "$ac_cv_prog_RANLIB"; then
11516   ac_ct_RANLIB=$RANLIB
11517   # Extract the first word of "ranlib", so it can be a program name with args.
11518 set dummy ranlib; ac_word=$2
11519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   if test -n "$ac_ct_RANLIB"; then
11525   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11526 else
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11529 do
11530   IFS=$as_save_IFS
11531   test -z "$as_dir" && as_dir=.
11532   for ac_exec_ext in '' $ac_executable_extensions; do
11533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11534     ac_cv_prog_ac_ct_RANLIB="ranlib"
11535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11536     break 2
11537   fi
11538 done
11539 done
11540 IFS=$as_save_IFS
11541
11542 fi
11543 fi
11544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11545 if test -n "$ac_ct_RANLIB"; then
11546   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11547 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11548 else
11549   { echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6; }
11551 fi
11552
11553   if test "x$ac_ct_RANLIB" = x; then
11554     RANLIB=":"
11555   else
11556     case $cross_compiling:$ac_tool_warned in
11557 yes:)
11558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11559 whose name does not start with the host triplet.  If you think this
11560 configuration is useful to you, please write to autoconf@gnu.org." >&5
11561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11562 whose name does not start with the host triplet.  If you think this
11563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11564 ac_tool_warned=yes ;;
11565 esac
11566     RANLIB=$ac_ct_RANLIB
11567   fi
11568 else
11569   RANLIB="$ac_cv_prog_RANLIB"
11570 fi
11571
11572 if test -n "$ac_tool_prefix"; then
11573   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11574 set dummy ${ac_tool_prefix}strip; ac_word=$2
11575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11577 if test "${ac_cv_prog_STRIP+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   if test -n "$STRIP"; then
11581   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586   IFS=$as_save_IFS
11587   test -z "$as_dir" && as_dir=.
11588   for ac_exec_ext in '' $ac_executable_extensions; do
11589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592     break 2
11593   fi
11594 done
11595 done
11596 IFS=$as_save_IFS
11597
11598 fi
11599 fi
11600 STRIP=$ac_cv_prog_STRIP
11601 if test -n "$STRIP"; then
11602   { echo "$as_me:$LINENO: result: $STRIP" >&5
11603 echo "${ECHO_T}$STRIP" >&6; }
11604 else
11605   { echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6; }
11607 fi
11608
11609
11610 fi
11611 if test -z "$ac_cv_prog_STRIP"; then
11612   ac_ct_STRIP=$STRIP
11613   # Extract the first word of "strip", so it can be a program name with args.
11614 set dummy strip; ac_word=$2
11615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11617 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   if test -n "$ac_ct_STRIP"; then
11621   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11622 else
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11625 do
11626   IFS=$as_save_IFS
11627   test -z "$as_dir" && as_dir=.
11628   for ac_exec_ext in '' $ac_executable_extensions; do
11629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630     ac_cv_prog_ac_ct_STRIP="strip"
11631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632     break 2
11633   fi
11634 done
11635 done
11636 IFS=$as_save_IFS
11637
11638 fi
11639 fi
11640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11641 if test -n "$ac_ct_STRIP"; then
11642   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11643 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11644 else
11645   { echo "$as_me:$LINENO: result: no" >&5
11646 echo "${ECHO_T}no" >&6; }
11647 fi
11648
11649   if test "x$ac_ct_STRIP" = x; then
11650     STRIP=":"
11651   else
11652     case $cross_compiling:$ac_tool_warned in
11653 yes:)
11654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11655 whose name does not start with the host triplet.  If you think this
11656 configuration is useful to you, please write to autoconf@gnu.org." >&5
11657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11658 whose name does not start with the host triplet.  If you think this
11659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11660 ac_tool_warned=yes ;;
11661 esac
11662     STRIP=$ac_ct_STRIP
11663   fi
11664 else
11665   STRIP="$ac_cv_prog_STRIP"
11666 fi
11667
11668 # Extract the first word of "makeinfo", so it can be a program name with args.
11669 set dummy makeinfo; ac_word=$2
11670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11672 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11673   echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675   if test -n "$MAKEINFO"; then
11676   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11677 else
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11680 do
11681   IFS=$as_save_IFS
11682   test -z "$as_dir" && as_dir=.
11683   for ac_exec_ext in '' $ac_executable_extensions; do
11684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11685     ac_cv_prog_MAKEINFO="makeinfo"
11686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11687     break 2
11688   fi
11689 done
11690 done
11691 IFS=$as_save_IFS
11692
11693 fi
11694 fi
11695 MAKEINFO=$ac_cv_prog_MAKEINFO
11696 if test -n "$MAKEINFO"; then
11697   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11698 echo "${ECHO_T}$MAKEINFO" >&6; }
11699 else
11700   { echo "$as_me:$LINENO: result: no" >&5
11701 echo "${ECHO_T}no" >&6; }
11702 fi
11703
11704
11705 if test "_$MAKEINFO" = "_"; then
11706     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11707 else
11708     case "$MAKEINFO" in
11709       */missing.*)
11710         { echo "$as_me:$LINENO: WARNING:
11711 *** Makeinfo is missing. Info documentation will not be built." >&5
11712 echo "$as_me: WARNING:
11713 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11714         ;;
11715       *)
11716         ;;
11717     esac
11718 fi
11719
11720 # Find a good install program.  We prefer a C program (faster),
11721 # so one script is as good as another.  But avoid the broken or
11722 # incompatible versions:
11723 # SysV /etc/install, /usr/sbin/install
11724 # SunOS /usr/etc/install
11725 # IRIX /sbin/install
11726 # AIX /bin/install
11727 # AmigaOS /C/install, which installs bootblocks on floppy discs
11728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11731 # OS/2's system install, which has a completely different semantic
11732 # ./install, which can be erroneously created by make from ./install.sh.
11733 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11734 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11735 if test -z "$INSTALL"; then
11736 if test "${ac_cv_path_install+set}" = set; then
11737   echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11741 do
11742   IFS=$as_save_IFS
11743   test -z "$as_dir" && as_dir=.
11744   # Account for people who put trailing slashes in PATH elements.
11745 case $as_dir/ in
11746   ./ | .// | /cC/* | \
11747   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11748   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11749   /usr/ucb/* ) ;;
11750   *)
11751     # OSF1 and SCO ODT 3.0 have their own names for install.
11752     # Don't use installbsd from OSF since it installs stuff as root
11753     # by default.
11754     for ac_prog in ginstall scoinst install; do
11755       for ac_exec_ext in '' $ac_executable_extensions; do
11756         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11757           if test $ac_prog = install &&
11758             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11759             # AIX install.  It has an incompatible calling convention.
11760             :
11761           elif test $ac_prog = install &&
11762             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11763             # program-specific install script used by HP pwplus--don't use.
11764             :
11765           else
11766             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11767             break 3
11768           fi
11769         fi
11770       done
11771     done
11772     ;;
11773 esac
11774 done
11775 IFS=$as_save_IFS
11776
11777
11778 fi
11779   if test "${ac_cv_path_install+set}" = set; then
11780     INSTALL=$ac_cv_path_install
11781   else
11782     # As a last resort, use the slow shell script.  Don't cache a
11783     # value for INSTALL within a source directory, because that will
11784     # break other packages using the cache if that directory is
11785     # removed, or if the value is a relative name.
11786     INSTALL=$ac_install_sh
11787   fi
11788 fi
11789 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11790 echo "${ECHO_T}$INSTALL" >&6; }
11791
11792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11793 # It thinks the first close brace ends the variable substitution.
11794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11795
11796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11797
11798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11799
11800 # See if we need a separate native compiler.
11801 if test $cross_compiling = no; then
11802   BUILD_CC="$CC"
11803
11804 else
11805   for ac_prog in gcc cc
11806 do
11807   # Extract the first word of "$ac_prog", so it can be a program name with args.
11808 set dummy $ac_prog; ac_word=$2
11809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11811 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   if test -n "$BUILD_CC"; then
11815   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11816 else
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11819 do
11820   IFS=$as_save_IFS
11821   test -z "$as_dir" && as_dir=.
11822   for ac_exec_ext in '' $ac_executable_extensions; do
11823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824     ac_cv_prog_BUILD_CC="$ac_prog"
11825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11826     break 2
11827   fi
11828 done
11829 done
11830 IFS=$as_save_IFS
11831
11832 fi
11833 fi
11834 BUILD_CC=$ac_cv_prog_BUILD_CC
11835 if test -n "$BUILD_CC"; then
11836   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11837 echo "${ECHO_T}$BUILD_CC" >&6; }
11838 else
11839   { echo "$as_me:$LINENO: result: no" >&5
11840 echo "${ECHO_T}no" >&6; }
11841 fi
11842
11843
11844   test -n "$BUILD_CC" && break
11845 done
11846
11847 fi
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11886 do
11887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11889   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 fi
11894 ac_res=`eval echo '${'$as_ac_Header'}'`
11895                { echo "$as_me:$LINENO: result: $ac_res" >&5
11896 echo "${ECHO_T}$ac_res" >&6; }
11897 else
11898   # Is the header compilable?
11899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907 $ac_includes_default
11908 #include <$ac_header>
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917   (eval "$ac_compile") 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } && {
11924          test -z "$ac_c_werror_flag" ||
11925          test ! -s conftest.err
11926        } && test -s conftest.$ac_objext; then
11927   ac_header_compiler=yes
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932         ac_header_compiler=no
11933 fi
11934
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6; }
11938
11939 # Is the header present?
11940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948 #include <$ac_header>
11949 _ACEOF
11950 if { (ac_try="$ac_cpp conftest.$ac_ext"
11951 case "(($ac_try" in
11952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953   *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11957   ac_status=$?
11958   grep -v '^ *+' conftest.er1 >conftest.err
11959   rm -f conftest.er1
11960   cat conftest.err >&5
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); } >/dev/null && {
11963          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11964          test ! -s conftest.err
11965        }; then
11966   ac_header_preproc=yes
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971   ac_header_preproc=no
11972 fi
11973
11974 rm -f conftest.err conftest.$ac_ext
11975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11976 echo "${ECHO_T}$ac_header_preproc" >&6; }
11977
11978 # So?  What about this header?
11979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11980   yes:no: )
11981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11985     ac_header_preproc=yes
11986     ;;
11987   no:yes:* )
11988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11990     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11991 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11992     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11994     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11995 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11998     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12000
12001     ;;
12002 esac
12003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   eval "$as_ac_Header=\$ac_header_preproc"
12009 fi
12010 ac_res=`eval echo '${'$as_ac_Header'}'`
12011                { echo "$as_me:$LINENO: result: $ac_res" >&5
12012 echo "${ECHO_T}$ac_res" >&6; }
12013
12014 fi
12015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12016   cat >>confdefs.h <<_ACEOF
12017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12018 _ACEOF
12019
12020 fi
12021
12022 done
12023
12024
12025
12026 for ac_header in sys/disk.h sys/mount.h
12027 do
12028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12032   echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034   cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040
12041 #if HAVE_SYS_QUEUE_H
12042 #include <sys/queue.h>
12043 #endif
12044
12045
12046 #include <$ac_header>
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (ac_try="$ac_compile"
12050 case "(($ac_try" in
12051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052   *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055   (eval "$ac_compile") 2>conftest.er1
12056   ac_status=$?
12057   grep -v '^ *+' conftest.er1 >conftest.err
12058   rm -f conftest.er1
12059   cat conftest.err >&5
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } && {
12062          test -z "$ac_c_werror_flag" ||
12063          test ! -s conftest.err
12064        } && test -s conftest.$ac_objext; then
12065   eval "$as_ac_Header=yes"
12066 else
12067   echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12069
12070         eval "$as_ac_Header=no"
12071 fi
12072
12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074 fi
12075 ac_res=`eval echo '${'$as_ac_Header'}'`
12076                { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12079   cat >>confdefs.h <<_ACEOF
12080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12081 _ACEOF
12082
12083 fi
12084
12085 done
12086
12087
12088 for ac_header in net/if.h
12089 do
12090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h.  */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h.  */
12102
12103 #if HAVE_SYS_TYPES_H
12104 #include <sys/types.h>
12105 #endif
12106 #if HAVE_SYS_SOCKET
12107 #include <sys/socket.h>
12108 #endif
12109
12110
12111 #include <$ac_header>
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (ac_try="$ac_compile"
12115 case "(($ac_try" in
12116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117   *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120   (eval "$ac_compile") 2>conftest.er1
12121   ac_status=$?
12122   grep -v '^ *+' conftest.er1 >conftest.err
12123   rm -f conftest.er1
12124   cat conftest.err >&5
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); } && {
12127          test -z "$ac_c_werror_flag" ||
12128          test ! -s conftest.err
12129        } && test -s conftest.$ac_objext; then
12130   eval "$as_ac_Header=yes"
12131 else
12132   echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135         eval "$as_ac_Header=no"
12136 fi
12137
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 fi
12140 ac_res=`eval echo '${'$as_ac_Header'}'`
12141                { echo "$as_me:$LINENO: result: $ac_res" >&5
12142 echo "${ECHO_T}$ac_res" >&6; }
12143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12144   cat >>confdefs.h <<_ACEOF
12145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146 _ACEOF
12147
12148 fi
12149
12150 done
12151
12152
12153 for ac_func in vprintf
12154 do
12155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12159   echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161   cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12169 #define $ac_func innocuous_$ac_func
12170
12171 /* System header to define __stub macros and hopefully few prototypes,
12172     which can conflict with char $ac_func (); below.
12173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12174     <limits.h> exists even on freestanding compilers.  */
12175
12176 #ifdef __STDC__
12177 # include <limits.h>
12178 #else
12179 # include <assert.h>
12180 #endif
12181
12182 #undef $ac_func
12183
12184 /* Override any GCC internal prototype to avoid an error.
12185    Use char because int might match the return type of a GCC
12186    builtin and then its argument prototype would still apply.  */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char $ac_func ();
12191 /* The GNU C library defines this for functions which it implements
12192     to always fail with ENOSYS.  Some functions are actually named
12193     something starting with __ and the normal name is an alias.  */
12194 #if defined __stub_$ac_func || defined __stub___$ac_func
12195 choke me
12196 #endif
12197
12198 int
12199 main ()
12200 {
12201 return $ac_func ();
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_link") 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } && {
12220          test -z "$ac_c_werror_flag" ||
12221          test ! -s conftest.err
12222        } && test -s conftest$ac_exeext &&
12223        $as_test_x conftest$ac_exeext; then
12224   eval "$as_ac_var=yes"
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229         eval "$as_ac_var=no"
12230 fi
12231
12232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12233       conftest$ac_exeext conftest.$ac_ext
12234 fi
12235 ac_res=`eval echo '${'$as_ac_var'}'`
12236                { echo "$as_me:$LINENO: result: $ac_res" >&5
12237 echo "${ECHO_T}$ac_res" >&6; }
12238 if test `eval echo '${'$as_ac_var'}'` = yes; then
12239   cat >>confdefs.h <<_ACEOF
12240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12241 _ACEOF
12242
12243 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12244 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12245 if test "${ac_cv_func__doprnt+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12256 #define _doprnt innocuous__doprnt
12257
12258 /* System header to define __stub macros and hopefully few prototypes,
12259     which can conflict with char _doprnt (); below.
12260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12261     <limits.h> exists even on freestanding compilers.  */
12262
12263 #ifdef __STDC__
12264 # include <limits.h>
12265 #else
12266 # include <assert.h>
12267 #endif
12268
12269 #undef _doprnt
12270
12271 /* Override any GCC internal prototype to avoid an error.
12272    Use char because int might match the return type of a GCC
12273    builtin and then its argument prototype would still apply.  */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char _doprnt ();
12278 /* The GNU C library defines this for functions which it implements
12279     to always fail with ENOSYS.  Some functions are actually named
12280     something starting with __ and the normal name is an alias.  */
12281 #if defined __stub__doprnt || defined __stub____doprnt
12282 choke me
12283 #endif
12284
12285 int
12286 main ()
12287 {
12288 return _doprnt ();
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_link") 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } && {
12307          test -z "$ac_c_werror_flag" ||
12308          test ! -s conftest.err
12309        } && test -s conftest$ac_exeext &&
12310        $as_test_x conftest$ac_exeext; then
12311   ac_cv_func__doprnt=yes
12312 else
12313   echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316         ac_cv_func__doprnt=no
12317 fi
12318
12319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12320       conftest$ac_exeext conftest.$ac_ext
12321 fi
12322 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12323 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12324 if test $ac_cv_func__doprnt = yes; then
12325
12326 cat >>confdefs.h <<\_ACEOF
12327 #define HAVE_DOPRNT 1
12328 _ACEOF
12329
12330 fi
12331
12332 fi
12333 done
12334
12335
12336 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12337 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12338 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 #include <dirent.h>
12348
12349 int
12350 main ()
12351 {
12352 static struct dirent ac_aggr;
12353 if (ac_aggr.d_reclen)
12354 return 0;
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (ac_try="$ac_compile"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366   (eval "$ac_compile") 2>conftest.er1
12367   ac_status=$?
12368   grep -v '^ *+' conftest.er1 >conftest.err
12369   rm -f conftest.er1
12370   cat conftest.err >&5
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } && {
12373          test -z "$ac_c_werror_flag" ||
12374          test ! -s conftest.err
12375        } && test -s conftest.$ac_objext; then
12376   ac_cv_member_struct_dirent_d_reclen=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381         cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h.  */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h.  */
12387 #include <dirent.h>
12388
12389 int
12390 main ()
12391 {
12392 static struct dirent ac_aggr;
12393 if (sizeof ac_aggr.d_reclen)
12394 return 0;
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (ac_try="$ac_compile"
12401 case "(($ac_try" in
12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403   *) ac_try_echo=$ac_try;;
12404 esac
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406   (eval "$ac_compile") 2>conftest.er1
12407   ac_status=$?
12408   grep -v '^ *+' conftest.er1 >conftest.err
12409   rm -f conftest.er1
12410   cat conftest.err >&5
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); } && {
12413          test -z "$ac_c_werror_flag" ||
12414          test ! -s conftest.err
12415        } && test -s conftest.$ac_objext; then
12416   ac_cv_member_struct_dirent_d_reclen=yes
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421         ac_cv_member_struct_dirent_d_reclen=no
12422 fi
12423
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 fi
12426
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 fi
12429 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12430 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12431 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12432   cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_RECLEN_DIRENT 1
12434 _ACEOF
12435
12436 fi
12437
12438 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12439 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12440 if test "${ac_cv_type_ssize_t+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h.  */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h.  */
12449 #include <sys/types.h>
12450
12451 typedef ssize_t ac__type_new_;
12452 int
12453 main ()
12454 {
12455 if ((ac__type_new_ *) 0)
12456   return 0;
12457 if (sizeof (ac__type_new_))
12458   return 0;
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext
12464 if { (ac_try="$ac_compile"
12465 case "(($ac_try" in
12466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467   *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470   (eval "$ac_compile") 2>conftest.er1
12471   ac_status=$?
12472   grep -v '^ *+' conftest.er1 >conftest.err
12473   rm -f conftest.er1
12474   cat conftest.err >&5
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } && {
12477          test -z "$ac_c_werror_flag" ||
12478          test ! -s conftest.err
12479        } && test -s conftest.$ac_objext; then
12480   ac_cv_type_ssize_t=yes
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485         ac_cv_type_ssize_t=no
12486 fi
12487
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 fi
12490 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12491 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12492 if test $ac_cv_type_ssize_t = yes; then
12493   cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_TYPE_SSIZE_T 1
12495 _ACEOF
12496
12497 fi
12498
12499 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12500 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12501 if test "${ac_cv_have_decl_llseek+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h.  */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h.  */
12510 #include <unistd.h>
12511
12512 int
12513 main ()
12514 {
12515 #ifndef llseek
12516   (void) llseek;
12517 #endif
12518
12519   ;
12520   return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext
12524 if { (ac_try="$ac_compile"
12525 case "(($ac_try" in
12526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527   *) ac_try_echo=$ac_try;;
12528 esac
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530   (eval "$ac_compile") 2>conftest.er1
12531   ac_status=$?
12532   grep -v '^ *+' conftest.er1 >conftest.err
12533   rm -f conftest.er1
12534   cat conftest.err >&5
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } && {
12537          test -z "$ac_c_werror_flag" ||
12538          test ! -s conftest.err
12539        } && test -s conftest.$ac_objext; then
12540   ac_cv_have_decl_llseek=yes
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545         ac_cv_have_decl_llseek=no
12546 fi
12547
12548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12549 fi
12550 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12551 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12552 if test $ac_cv_have_decl_llseek = yes; then
12553   cat >>confdefs.h <<\_ACEOF
12554 #define HAVE_LLSEEK_PROTOTYPE 1
12555 _ACEOF
12556
12557 fi
12558
12559 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12560 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12561 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570 #define _LARGEFILE_SOURCE
12571                  #define _LARGEFILE64_SOURCE
12572                  #include <unistd.h>
12573
12574 int
12575 main ()
12576 {
12577 #ifndef lseek64
12578   (void) lseek64;
12579 #endif
12580
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_compile") 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } && {
12599          test -z "$ac_c_werror_flag" ||
12600          test ! -s conftest.err
12601        } && test -s conftest.$ac_objext; then
12602   ac_cv_have_decl_lseek64=yes
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12606
12607         ac_cv_have_decl_lseek64=no
12608 fi
12609
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 fi
12612 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12613 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12614 if test $ac_cv_have_decl_lseek64 = yes; then
12615   cat >>confdefs.h <<\_ACEOF
12616 #define HAVE_LSEEK64_PROTOTYPE 1
12617 _ACEOF
12618
12619 fi
12620
12621 { echo "$as_me:$LINENO: checking for short" >&5
12622 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12623 if test "${ac_cv_type_short+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h.  */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h.  */
12632 $ac_includes_default
12633 typedef short ac__type_new_;
12634 int
12635 main ()
12636 {
12637 if ((ac__type_new_ *) 0)
12638   return 0;
12639 if (sizeof (ac__type_new_))
12640   return 0;
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649   *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652   (eval "$ac_compile") 2>conftest.er1
12653   ac_status=$?
12654   grep -v '^ *+' conftest.er1 >conftest.err
12655   rm -f conftest.er1
12656   cat conftest.err >&5
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } && {
12659          test -z "$ac_c_werror_flag" ||
12660          test ! -s conftest.err
12661        } && test -s conftest.$ac_objext; then
12662   ac_cv_type_short=yes
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667         ac_cv_type_short=no
12668 fi
12669
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 fi
12672 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12673 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12674
12675 # The cast to long int works around a bug in the HP C Compiler
12676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12678 # This bug is HP SR number 8606223364.
12679 { echo "$as_me:$LINENO: checking size of short" >&5
12680 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12681 if test "${ac_cv_sizeof_short+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   if test "$cross_compiling" = yes; then
12685   # Depending upon the size, compute the lo and hi bounds.
12686 cat >conftest.$ac_ext <<_ACEOF
12687 /* confdefs.h.  */
12688 _ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h.  */
12692 $ac_includes_default
12693    typedef short ac__type_sizeof_;
12694 int
12695 main ()
12696 {
12697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12698 test_array [0] = 0
12699
12700   ;
12701   return 0;
12702 }
12703 _ACEOF
12704 rm -f conftest.$ac_objext
12705 if { (ac_try="$ac_compile"
12706 case "(($ac_try" in
12707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708   *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711   (eval "$ac_compile") 2>conftest.er1
12712   ac_status=$?
12713   grep -v '^ *+' conftest.er1 >conftest.err
12714   rm -f conftest.er1
12715   cat conftest.err >&5
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); } && {
12718          test -z "$ac_c_werror_flag" ||
12719          test ! -s conftest.err
12720        } && test -s conftest.$ac_objext; then
12721   ac_lo=0 ac_mid=0
12722   while :; do
12723     cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h.  */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h.  */
12729 $ac_includes_default
12730    typedef short ac__type_sizeof_;
12731 int
12732 main ()
12733 {
12734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12735 test_array [0] = 0
12736
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 rm -f conftest.$ac_objext
12742 if { (ac_try="$ac_compile"
12743 case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748   (eval "$ac_compile") 2>conftest.er1
12749   ac_status=$?
12750   grep -v '^ *+' conftest.er1 >conftest.err
12751   rm -f conftest.er1
12752   cat conftest.err >&5
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } && {
12755          test -z "$ac_c_werror_flag" ||
12756          test ! -s conftest.err
12757        } && test -s conftest.$ac_objext; then
12758   ac_hi=$ac_mid; break
12759 else
12760   echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763         ac_lo=`expr $ac_mid + 1`
12764                         if test $ac_lo -le $ac_mid; then
12765                           ac_lo= ac_hi=
12766                           break
12767                         fi
12768                         ac_mid=`expr 2 '*' $ac_mid + 1`
12769 fi
12770
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772   done
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777         cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783 $ac_includes_default
12784    typedef short ac__type_sizeof_;
12785 int
12786 main ()
12787 {
12788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12789 test_array [0] = 0
12790
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 rm -f conftest.$ac_objext
12796 if { (ac_try="$ac_compile"
12797 case "(($ac_try" in
12798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799   *) ac_try_echo=$ac_try;;
12800 esac
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802   (eval "$ac_compile") 2>conftest.er1
12803   ac_status=$?
12804   grep -v '^ *+' conftest.er1 >conftest.err
12805   rm -f conftest.er1
12806   cat conftest.err >&5
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } && {
12809          test -z "$ac_c_werror_flag" ||
12810          test ! -s conftest.err
12811        } && test -s conftest.$ac_objext; then
12812   ac_hi=-1 ac_mid=-1
12813   while :; do
12814     cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h.  */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h.  */
12820 $ac_includes_default
12821    typedef short ac__type_sizeof_;
12822 int
12823 main ()
12824 {
12825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12826 test_array [0] = 0
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 rm -f conftest.$ac_objext
12833 if { (ac_try="$ac_compile"
12834 case "(($ac_try" in
12835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836   *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839   (eval "$ac_compile") 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } && {
12846          test -z "$ac_c_werror_flag" ||
12847          test ! -s conftest.err
12848        } && test -s conftest.$ac_objext; then
12849   ac_lo=$ac_mid; break
12850 else
12851   echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12853
12854         ac_hi=`expr '(' $ac_mid ')' - 1`
12855                         if test $ac_mid -le $ac_hi; then
12856                           ac_lo= ac_hi=
12857                           break
12858                         fi
12859                         ac_mid=`expr 2 '*' $ac_mid`
12860 fi
12861
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863   done
12864 else
12865   echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868         ac_lo= ac_hi=
12869 fi
12870
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 fi
12873
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 # Binary search between lo and hi bounds.
12876 while test "x$ac_lo" != "x$ac_hi"; do
12877   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12878   cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h.  */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h.  */
12884 $ac_includes_default
12885    typedef short ac__type_sizeof_;
12886 int
12887 main ()
12888 {
12889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12890 test_array [0] = 0
12891
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 rm -f conftest.$ac_objext
12897 if { (ac_try="$ac_compile"
12898 case "(($ac_try" in
12899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900   *) ac_try_echo=$ac_try;;
12901 esac
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903   (eval "$ac_compile") 2>conftest.er1
12904   ac_status=$?
12905   grep -v '^ *+' conftest.er1 >conftest.err
12906   rm -f conftest.er1
12907   cat conftest.err >&5
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); } && {
12910          test -z "$ac_c_werror_flag" ||
12911          test ! -s conftest.err
12912        } && test -s conftest.$ac_objext; then
12913   ac_hi=$ac_mid
12914 else
12915   echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918         ac_lo=`expr '(' $ac_mid ')' + 1`
12919 fi
12920
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 done
12923 case $ac_lo in
12924 ?*) ac_cv_sizeof_short=$ac_lo;;
12925 '') if test "$ac_cv_type_short" = yes; then
12926      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12927 See \`config.log' for more details." >&5
12928 echo "$as_me: error: cannot compute sizeof (short)
12929 See \`config.log' for more details." >&2;}
12930    { (exit 77); exit 77; }; }
12931    else
12932      ac_cv_sizeof_short=0
12933    fi ;;
12934 esac
12935 else
12936   cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h.  */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h.  */
12942 $ac_includes_default
12943    typedef short ac__type_sizeof_;
12944 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12945 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12946 #include <stdio.h>
12947 #include <stdlib.h>
12948 int
12949 main ()
12950 {
12951
12952   FILE *f = fopen ("conftest.val", "w");
12953   if (! f)
12954     return 1;
12955   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12956     {
12957       long int i = longval ();
12958       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12959         return 1;
12960       fprintf (f, "%ld\n", i);
12961     }
12962   else
12963     {
12964       unsigned long int i = ulongval ();
12965       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12966         return 1;
12967       fprintf (f, "%lu\n", i);
12968     }
12969   return ferror (f) || fclose (f) != 0;
12970
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 rm -f conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982   (eval "$ac_link") 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12986   { (case "(($ac_try" in
12987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988   *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991   (eval "$ac_try") 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; }; then
12995   ac_cv_sizeof_short=`cat conftest.val`
12996 else
12997   echo "$as_me: program exited with status $ac_status" >&5
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 ( exit $ac_status )
13002 if test "$ac_cv_type_short" = yes; then
13003      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13004 See \`config.log' for more details." >&5
13005 echo "$as_me: error: cannot compute sizeof (short)
13006 See \`config.log' for more details." >&2;}
13007    { (exit 77); exit 77; }; }
13008    else
13009      ac_cv_sizeof_short=0
13010    fi
13011 fi
13012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13013 fi
13014 rm -f conftest.val
13015 fi
13016 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13017 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13018
13019
13020
13021 cat >>confdefs.h <<_ACEOF
13022 #define SIZEOF_SHORT $ac_cv_sizeof_short
13023 _ACEOF
13024
13025
13026 { echo "$as_me:$LINENO: checking for int" >&5
13027 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13028 if test "${ac_cv_type_int+set}" = set; then
13029   echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031   cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h.  */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h.  */
13037 $ac_includes_default
13038 typedef int ac__type_new_;
13039 int
13040 main ()
13041 {
13042 if ((ac__type_new_ *) 0)
13043   return 0;
13044 if (sizeof (ac__type_new_))
13045   return 0;
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 rm -f conftest.$ac_objext
13051 if { (ac_try="$ac_compile"
13052 case "(($ac_try" in
13053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054   *) ac_try_echo=$ac_try;;
13055 esac
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057   (eval "$ac_compile") 2>conftest.er1
13058   ac_status=$?
13059   grep -v '^ *+' conftest.er1 >conftest.err
13060   rm -f conftest.er1
13061   cat conftest.err >&5
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } && {
13064          test -z "$ac_c_werror_flag" ||
13065          test ! -s conftest.err
13066        } && test -s conftest.$ac_objext; then
13067   ac_cv_type_int=yes
13068 else
13069   echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13071
13072         ac_cv_type_int=no
13073 fi
13074
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 fi
13077 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13078 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13079
13080 # The cast to long int works around a bug in the HP C Compiler
13081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13083 # This bug is HP SR number 8606223364.
13084 { echo "$as_me:$LINENO: checking size of int" >&5
13085 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13086 if test "${ac_cv_sizeof_int+set}" = set; then
13087   echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089   if test "$cross_compiling" = yes; then
13090   # Depending upon the size, compute the lo and hi bounds.
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h.  */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h.  */
13097 $ac_includes_default
13098    typedef int ac__type_sizeof_;
13099 int
13100 main ()
13101 {
13102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13103 test_array [0] = 0
13104
13105   ;
13106   return 0;
13107 }
13108 _ACEOF
13109 rm -f conftest.$ac_objext
13110 if { (ac_try="$ac_compile"
13111 case "(($ac_try" in
13112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113   *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116   (eval "$ac_compile") 2>conftest.er1
13117   ac_status=$?
13118   grep -v '^ *+' conftest.er1 >conftest.err
13119   rm -f conftest.er1
13120   cat conftest.err >&5
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); } && {
13123          test -z "$ac_c_werror_flag" ||
13124          test ! -s conftest.err
13125        } && test -s conftest.$ac_objext; then
13126   ac_lo=0 ac_mid=0
13127   while :; do
13128     cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134 $ac_includes_default
13135    typedef int ac__type_sizeof_;
13136 int
13137 main ()
13138 {
13139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13140 test_array [0] = 0
13141
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext
13147 if { (ac_try="$ac_compile"
13148 case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_compile") 2>conftest.er1
13154   ac_status=$?
13155   grep -v '^ *+' conftest.er1 >conftest.err
13156   rm -f conftest.er1
13157   cat conftest.err >&5
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); } && {
13160          test -z "$ac_c_werror_flag" ||
13161          test ! -s conftest.err
13162        } && test -s conftest.$ac_objext; then
13163   ac_hi=$ac_mid; break
13164 else
13165   echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13167
13168         ac_lo=`expr $ac_mid + 1`
13169                         if test $ac_lo -le $ac_mid; then
13170                           ac_lo= ac_hi=
13171                           break
13172                         fi
13173                         ac_mid=`expr 2 '*' $ac_mid + 1`
13174 fi
13175
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177   done
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182         cat >conftest.$ac_ext <<_ACEOF
13183 /* confdefs.h.  */
13184 _ACEOF
13185 cat confdefs.h >>conftest.$ac_ext
13186 cat >>conftest.$ac_ext <<_ACEOF
13187 /* end confdefs.h.  */
13188 $ac_includes_default
13189    typedef int ac__type_sizeof_;
13190 int
13191 main ()
13192 {
13193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13194 test_array [0] = 0
13195
13196   ;
13197   return 0;
13198 }
13199 _ACEOF
13200 rm -f conftest.$ac_objext
13201 if { (ac_try="$ac_compile"
13202 case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207   (eval "$ac_compile") 2>conftest.er1
13208   ac_status=$?
13209   grep -v '^ *+' conftest.er1 >conftest.err
13210   rm -f conftest.er1
13211   cat conftest.err >&5
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); } && {
13214          test -z "$ac_c_werror_flag" ||
13215          test ! -s conftest.err
13216        } && test -s conftest.$ac_objext; then
13217   ac_hi=-1 ac_mid=-1
13218   while :; do
13219     cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225 $ac_includes_default
13226    typedef int ac__type_sizeof_;
13227 int
13228 main ()
13229 {
13230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13231 test_array [0] = 0
13232
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext
13238 if { (ac_try="$ac_compile"
13239 case "(($ac_try" in
13240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241   *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244   (eval "$ac_compile") 2>conftest.er1
13245   ac_status=$?
13246   grep -v '^ *+' conftest.er1 >conftest.err
13247   rm -f conftest.er1
13248   cat conftest.err >&5
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } && {
13251          test -z "$ac_c_werror_flag" ||
13252          test ! -s conftest.err
13253        } && test -s conftest.$ac_objext; then
13254   ac_lo=$ac_mid; break
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259         ac_hi=`expr '(' $ac_mid ')' - 1`
13260                         if test $ac_mid -le $ac_hi; then
13261                           ac_lo= ac_hi=
13262                           break
13263                         fi
13264                         ac_mid=`expr 2 '*' $ac_mid`
13265 fi
13266
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268   done
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273         ac_lo= ac_hi=
13274 fi
13275
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 fi
13278
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 # Binary search between lo and hi bounds.
13281 while test "x$ac_lo" != "x$ac_hi"; do
13282   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13283   cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h.  */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h.  */
13289 $ac_includes_default
13290    typedef int ac__type_sizeof_;
13291 int
13292 main ()
13293 {
13294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13295 test_array [0] = 0
13296
13297   ;
13298   return 0;
13299 }
13300 _ACEOF
13301 rm -f conftest.$ac_objext
13302 if { (ac_try="$ac_compile"
13303 case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_compile") 2>conftest.er1
13309   ac_status=$?
13310   grep -v '^ *+' conftest.er1 >conftest.err
13311   rm -f conftest.er1
13312   cat conftest.err >&5
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } && {
13315          test -z "$ac_c_werror_flag" ||
13316          test ! -s conftest.err
13317        } && test -s conftest.$ac_objext; then
13318   ac_hi=$ac_mid
13319 else
13320   echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13322
13323         ac_lo=`expr '(' $ac_mid ')' + 1`
13324 fi
13325
13326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 done
13328 case $ac_lo in
13329 ?*) ac_cv_sizeof_int=$ac_lo;;
13330 '') if test "$ac_cv_type_int" = yes; then
13331      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13332 See \`config.log' for more details." >&5
13333 echo "$as_me: error: cannot compute sizeof (int)
13334 See \`config.log' for more details." >&2;}
13335    { (exit 77); exit 77; }; }
13336    else
13337      ac_cv_sizeof_int=0
13338    fi ;;
13339 esac
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 $ac_includes_default
13348    typedef int ac__type_sizeof_;
13349 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13350 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13351 #include <stdio.h>
13352 #include <stdlib.h>
13353 int
13354 main ()
13355 {
13356
13357   FILE *f = fopen ("conftest.val", "w");
13358   if (! f)
13359     return 1;
13360   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13361     {
13362       long int i = longval ();
13363       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13364         return 1;
13365       fprintf (f, "%ld\n", i);
13366     }
13367   else
13368     {
13369       unsigned long int i = ulongval ();
13370       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13371         return 1;
13372       fprintf (f, "%lu\n", i);
13373     }
13374   return ferror (f) || fclose (f) != 0;
13375
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_link") 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13391   { (case "(($ac_try" in
13392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393   *) ac_try_echo=$ac_try;;
13394 esac
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396   (eval "$ac_try") 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_cv_sizeof_int=`cat conftest.val`
13401 else
13402   echo "$as_me: program exited with status $ac_status" >&5
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ( exit $ac_status )
13407 if test "$ac_cv_type_int" = yes; then
13408      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13409 See \`config.log' for more details." >&5
13410 echo "$as_me: error: cannot compute sizeof (int)
13411 See \`config.log' for more details." >&2;}
13412    { (exit 77); exit 77; }; }
13413    else
13414      ac_cv_sizeof_int=0
13415    fi
13416 fi
13417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13418 fi
13419 rm -f conftest.val
13420 fi
13421 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13422 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13423
13424
13425
13426 cat >>confdefs.h <<_ACEOF
13427 #define SIZEOF_INT $ac_cv_sizeof_int
13428 _ACEOF
13429
13430
13431 { echo "$as_me:$LINENO: checking for long" >&5
13432 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13433 if test "${ac_cv_type_long+set}" = set; then
13434   echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436   cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442 $ac_includes_default
13443 typedef long ac__type_new_;
13444 int
13445 main ()
13446 {
13447 if ((ac__type_new_ *) 0)
13448   return 0;
13449 if (sizeof (ac__type_new_))
13450   return 0;
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext
13456 if { (ac_try="$ac_compile"
13457 case "(($ac_try" in
13458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459   *) ac_try_echo=$ac_try;;
13460 esac
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462   (eval "$ac_compile") 2>conftest.er1
13463   ac_status=$?
13464   grep -v '^ *+' conftest.er1 >conftest.err
13465   rm -f conftest.er1
13466   cat conftest.err >&5
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); } && {
13469          test -z "$ac_c_werror_flag" ||
13470          test ! -s conftest.err
13471        } && test -s conftest.$ac_objext; then
13472   ac_cv_type_long=yes
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477         ac_cv_type_long=no
13478 fi
13479
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 fi
13482 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13483 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13484
13485 # The cast to long int works around a bug in the HP C Compiler
13486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13488 # This bug is HP SR number 8606223364.
13489 { echo "$as_me:$LINENO: checking size of long" >&5
13490 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13491 if test "${ac_cv_sizeof_long+set}" = set; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494   if test "$cross_compiling" = yes; then
13495   # Depending upon the size, compute the lo and hi bounds.
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 $ac_includes_default
13503    typedef long ac__type_sizeof_;
13504 int
13505 main ()
13506 {
13507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13508 test_array [0] = 0
13509
13510   ;
13511   return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext
13515 if { (ac_try="$ac_compile"
13516 case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_compile") 2>conftest.er1
13522   ac_status=$?
13523   grep -v '^ *+' conftest.er1 >conftest.err
13524   rm -f conftest.er1
13525   cat conftest.err >&5
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); } && {
13528          test -z "$ac_c_werror_flag" ||
13529          test ! -s conftest.err
13530        } && test -s conftest.$ac_objext; then
13531   ac_lo=0 ac_mid=0
13532   while :; do
13533     cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h.  */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h.  */
13539 $ac_includes_default
13540    typedef long ac__type_sizeof_;
13541 int
13542 main ()
13543 {
13544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13545 test_array [0] = 0
13546
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext
13552 if { (ac_try="$ac_compile"
13553 case "(($ac_try" in
13554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555   *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558   (eval "$ac_compile") 2>conftest.er1
13559   ac_status=$?
13560   grep -v '^ *+' conftest.er1 >conftest.err
13561   rm -f conftest.er1
13562   cat conftest.err >&5
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); } && {
13565          test -z "$ac_c_werror_flag" ||
13566          test ! -s conftest.err
13567        } && test -s conftest.$ac_objext; then
13568   ac_hi=$ac_mid; break
13569 else
13570   echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13572
13573         ac_lo=`expr $ac_mid + 1`
13574                         if test $ac_lo -le $ac_mid; then
13575                           ac_lo= ac_hi=
13576                           break
13577                         fi
13578                         ac_mid=`expr 2 '*' $ac_mid + 1`
13579 fi
13580
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582   done
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587         cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h.  */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h.  */
13593 $ac_includes_default
13594    typedef long ac__type_sizeof_;
13595 int
13596 main ()
13597 {
13598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13599 test_array [0] = 0
13600
13601   ;
13602   return 0;
13603 }
13604 _ACEOF
13605 rm -f conftest.$ac_objext
13606 if { (ac_try="$ac_compile"
13607 case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612   (eval "$ac_compile") 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } && {
13619          test -z "$ac_c_werror_flag" ||
13620          test ! -s conftest.err
13621        } && test -s conftest.$ac_objext; then
13622   ac_hi=-1 ac_mid=-1
13623   while :; do
13624     cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h.  */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h.  */
13630 $ac_includes_default
13631    typedef long ac__type_sizeof_;
13632 int
13633 main ()
13634 {
13635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13636 test_array [0] = 0
13637
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_compile") 2>conftest.er1
13650   ac_status=$?
13651   grep -v '^ *+' conftest.er1 >conftest.err
13652   rm -f conftest.er1
13653   cat conftest.err >&5
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); } && {
13656          test -z "$ac_c_werror_flag" ||
13657          test ! -s conftest.err
13658        } && test -s conftest.$ac_objext; then
13659   ac_lo=$ac_mid; break
13660 else
13661   echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13663
13664         ac_hi=`expr '(' $ac_mid ')' - 1`
13665                         if test $ac_mid -le $ac_hi; then
13666                           ac_lo= ac_hi=
13667                           break
13668                         fi
13669                         ac_mid=`expr 2 '*' $ac_mid`
13670 fi
13671
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673   done
13674 else
13675   echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13677
13678         ac_lo= ac_hi=
13679 fi
13680
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 fi
13683
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 # Binary search between lo and hi bounds.
13686 while test "x$ac_lo" != "x$ac_hi"; do
13687   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13688   cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h.  */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h.  */
13694 $ac_includes_default
13695    typedef long ac__type_sizeof_;
13696 int
13697 main ()
13698 {
13699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13700 test_array [0] = 0
13701
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (ac_try="$ac_compile"
13708 case "(($ac_try" in
13709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710   *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713   (eval "$ac_compile") 2>conftest.er1
13714   ac_status=$?
13715   grep -v '^ *+' conftest.er1 >conftest.err
13716   rm -f conftest.er1
13717   cat conftest.err >&5
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } && {
13720          test -z "$ac_c_werror_flag" ||
13721          test ! -s conftest.err
13722        } && test -s conftest.$ac_objext; then
13723   ac_hi=$ac_mid
13724 else
13725   echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13727
13728         ac_lo=`expr '(' $ac_mid ')' + 1`
13729 fi
13730
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 done
13733 case $ac_lo in
13734 ?*) ac_cv_sizeof_long=$ac_lo;;
13735 '') if test "$ac_cv_type_long" = yes; then
13736      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13737 See \`config.log' for more details." >&5
13738 echo "$as_me: error: cannot compute sizeof (long)
13739 See \`config.log' for more details." >&2;}
13740    { (exit 77); exit 77; }; }
13741    else
13742      ac_cv_sizeof_long=0
13743    fi ;;
13744 esac
13745 else
13746   cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h.  */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h.  */
13752 $ac_includes_default
13753    typedef long ac__type_sizeof_;
13754 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13755 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13756 #include <stdio.h>
13757 #include <stdlib.h>
13758 int
13759 main ()
13760 {
13761
13762   FILE *f = fopen ("conftest.val", "w");
13763   if (! f)
13764     return 1;
13765   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13766     {
13767       long int i = longval ();
13768       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13769         return 1;
13770       fprintf (f, "%ld\n", i);
13771     }
13772   else
13773     {
13774       unsigned long int i = ulongval ();
13775       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13776         return 1;
13777       fprintf (f, "%lu\n", i);
13778     }
13779   return ferror (f) || fclose (f) != 0;
13780
13781   ;
13782   return 0;
13783 }
13784 _ACEOF
13785 rm -f conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792   (eval "$ac_link") 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13796   { (case "(($ac_try" in
13797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798   *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801   (eval "$ac_try") 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; }; then
13805   ac_cv_sizeof_long=`cat conftest.val`
13806 else
13807   echo "$as_me: program exited with status $ac_status" >&5
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 ( exit $ac_status )
13812 if test "$ac_cv_type_long" = yes; then
13813      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13814 See \`config.log' for more details." >&5
13815 echo "$as_me: error: cannot compute sizeof (long)
13816 See \`config.log' for more details." >&2;}
13817    { (exit 77); exit 77; }; }
13818    else
13819      ac_cv_sizeof_long=0
13820    fi
13821 fi
13822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13823 fi
13824 rm -f conftest.val
13825 fi
13826 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13827 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13828
13829
13830
13831 cat >>confdefs.h <<_ACEOF
13832 #define SIZEOF_LONG $ac_cv_sizeof_long
13833 _ACEOF
13834
13835
13836 { echo "$as_me:$LINENO: checking for long long" >&5
13837 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13838 if test "${ac_cv_type_long_long+set}" = set; then
13839   echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841   cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h.  */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h.  */
13847 $ac_includes_default
13848 typedef long long ac__type_new_;
13849 int
13850 main ()
13851 {
13852 if ((ac__type_new_ *) 0)
13853   return 0;
13854 if (sizeof (ac__type_new_))
13855   return 0;
13856   ;
13857   return 0;
13858 }
13859 _ACEOF
13860 rm -f conftest.$ac_objext
13861 if { (ac_try="$ac_compile"
13862 case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867   (eval "$ac_compile") 2>conftest.er1
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
13871   cat conftest.err >&5
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } && {
13874          test -z "$ac_c_werror_flag" ||
13875          test ! -s conftest.err
13876        } && test -s conftest.$ac_objext; then
13877   ac_cv_type_long_long=yes
13878 else
13879   echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882         ac_cv_type_long_long=no
13883 fi
13884
13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886 fi
13887 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13888 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13889
13890 # The cast to long int works around a bug in the HP C Compiler
13891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13893 # This bug is HP SR number 8606223364.
13894 { echo "$as_me:$LINENO: checking size of long long" >&5
13895 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13896 if test "${ac_cv_sizeof_long_long+set}" = set; then
13897   echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899   if test "$cross_compiling" = yes; then
13900   # Depending upon the size, compute the lo and hi bounds.
13901 cat >conftest.$ac_ext <<_ACEOF
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907 $ac_includes_default
13908    typedef long long ac__type_sizeof_;
13909 int
13910 main ()
13911 {
13912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13913 test_array [0] = 0
13914
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_compile") 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } && {
13933          test -z "$ac_c_werror_flag" ||
13934          test ! -s conftest.err
13935        } && test -s conftest.$ac_objext; then
13936   ac_lo=0 ac_mid=0
13937   while :; do
13938     cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h.  */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h.  */
13944 $ac_includes_default
13945    typedef long long ac__type_sizeof_;
13946 int
13947 main ()
13948 {
13949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13950 test_array [0] = 0
13951
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (ac_try="$ac_compile"
13958 case "(($ac_try" in
13959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960   *) ac_try_echo=$ac_try;;
13961 esac
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963   (eval "$ac_compile") 2>conftest.er1
13964   ac_status=$?
13965   grep -v '^ *+' conftest.er1 >conftest.err
13966   rm -f conftest.er1
13967   cat conftest.err >&5
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); } && {
13970          test -z "$ac_c_werror_flag" ||
13971          test ! -s conftest.err
13972        } && test -s conftest.$ac_objext; then
13973   ac_hi=$ac_mid; break
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978         ac_lo=`expr $ac_mid + 1`
13979                         if test $ac_lo -le $ac_mid; then
13980                           ac_lo= ac_hi=
13981                           break
13982                         fi
13983                         ac_mid=`expr 2 '*' $ac_mid + 1`
13984 fi
13985
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987   done
13988 else
13989   echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992         cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h.  */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h.  */
13998 $ac_includes_default
13999    typedef long long ac__type_sizeof_;
14000 int
14001 main ()
14002 {
14003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14004 test_array [0] = 0
14005
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (ac_try="$ac_compile"
14012 case "(($ac_try" in
14013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014   *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017   (eval "$ac_compile") 2>conftest.er1
14018   ac_status=$?
14019   grep -v '^ *+' conftest.er1 >conftest.err
14020   rm -f conftest.er1
14021   cat conftest.err >&5
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } && {
14024          test -z "$ac_c_werror_flag" ||
14025          test ! -s conftest.err
14026        } && test -s conftest.$ac_objext; then
14027   ac_hi=-1 ac_mid=-1
14028   while :; do
14029     cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h.  */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h.  */
14035 $ac_includes_default
14036    typedef long long ac__type_sizeof_;
14037 int
14038 main ()
14039 {
14040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14041 test_array [0] = 0
14042
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest.$ac_objext
14048 if { (ac_try="$ac_compile"
14049 case "(($ac_try" in
14050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051   *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054   (eval "$ac_compile") 2>conftest.er1
14055   ac_status=$?
14056   grep -v '^ *+' conftest.er1 >conftest.err
14057   rm -f conftest.er1
14058   cat conftest.err >&5
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); } && {
14061          test -z "$ac_c_werror_flag" ||
14062          test ! -s conftest.err
14063        } && test -s conftest.$ac_objext; then
14064   ac_lo=$ac_mid; break
14065 else
14066   echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069         ac_hi=`expr '(' $ac_mid ')' - 1`
14070                         if test $ac_mid -le $ac_hi; then
14071                           ac_lo= ac_hi=
14072                           break
14073                         fi
14074                         ac_mid=`expr 2 '*' $ac_mid`
14075 fi
14076
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078   done
14079 else
14080   echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083         ac_lo= ac_hi=
14084 fi
14085
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 fi
14088
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 # Binary search between lo and hi bounds.
14091 while test "x$ac_lo" != "x$ac_hi"; do
14092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14093   cat >conftest.$ac_ext <<_ACEOF
14094 /* confdefs.h.  */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h.  */
14099 $ac_includes_default
14100    typedef long long ac__type_sizeof_;
14101 int
14102 main ()
14103 {
14104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14105 test_array [0] = 0
14106
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext
14112 if { (ac_try="$ac_compile"
14113 case "(($ac_try" in
14114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115   *) ac_try_echo=$ac_try;;
14116 esac
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118   (eval "$ac_compile") 2>conftest.er1
14119   ac_status=$?
14120   grep -v '^ *+' conftest.er1 >conftest.err
14121   rm -f conftest.er1
14122   cat conftest.err >&5
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } && {
14125          test -z "$ac_c_werror_flag" ||
14126          test ! -s conftest.err
14127        } && test -s conftest.$ac_objext; then
14128   ac_hi=$ac_mid
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133         ac_lo=`expr '(' $ac_mid ')' + 1`
14134 fi
14135
14136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14137 done
14138 case $ac_lo in
14139 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14140 '') if test "$ac_cv_type_long_long" = yes; then
14141      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14142 See \`config.log' for more details." >&5
14143 echo "$as_me: error: cannot compute sizeof (long long)
14144 See \`config.log' for more details." >&2;}
14145    { (exit 77); exit 77; }; }
14146    else
14147      ac_cv_sizeof_long_long=0
14148    fi ;;
14149 esac
14150 else
14151   cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157 $ac_includes_default
14158    typedef long long ac__type_sizeof_;
14159 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14160 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14161 #include <stdio.h>
14162 #include <stdlib.h>
14163 int
14164 main ()
14165 {
14166
14167   FILE *f = fopen ("conftest.val", "w");
14168   if (! f)
14169     return 1;
14170   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14171     {
14172       long int i = longval ();
14173       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14174         return 1;
14175       fprintf (f, "%ld\n", i);
14176     }
14177   else
14178     {
14179       unsigned long int i = ulongval ();
14180       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14181         return 1;
14182       fprintf (f, "%lu\n", i);
14183     }
14184   return ferror (f) || fclose (f) != 0;
14185
14186   ;
14187   return 0;
14188 }
14189 _ACEOF
14190 rm -f conftest$ac_exeext
14191 if { (ac_try="$ac_link"
14192 case "(($ac_try" in
14193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194   *) ac_try_echo=$ac_try;;
14195 esac
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197   (eval "$ac_link") 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14201   { (case "(($ac_try" in
14202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203   *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206   (eval "$ac_try") 2>&5
14207   ac_status=$?
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); }; }; then
14210   ac_cv_sizeof_long_long=`cat conftest.val`
14211 else
14212   echo "$as_me: program exited with status $ac_status" >&5
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216 ( exit $ac_status )
14217 if test "$ac_cv_type_long_long" = yes; then
14218      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14219 See \`config.log' for more details." >&5
14220 echo "$as_me: error: cannot compute sizeof (long long)
14221 See \`config.log' for more details." >&2;}
14222    { (exit 77); exit 77; }; }
14223    else
14224      ac_cv_sizeof_long_long=0
14225    fi
14226 fi
14227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14228 fi
14229 rm -f conftest.val
14230 fi
14231 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14232 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14233
14234
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14238 _ACEOF
14239
14240
14241 SIZEOF_SHORT=$ac_cv_sizeof_short
14242 SIZEOF_INT=$ac_cv_sizeof_int
14243 SIZEOF_LONG=$ac_cv_sizeof_long
14244 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14245
14246
14247
14248
14249 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14250 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14251 if test "${ac_cv_c_bigendian+set}" = set; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254   # See if sys/param.h defines the BYTE_ORDER macro.
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h.  */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h.  */
14261 #include <sys/types.h>
14262 #include <sys/param.h>
14263
14264 int
14265 main ()
14266 {
14267 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14268         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14269  bogus endian macros
14270 #endif
14271
14272   ;
14273   return 0;
14274 }
14275 _ACEOF
14276 rm -f conftest.$ac_objext
14277 if { (ac_try="$ac_compile"
14278 case "(($ac_try" in
14279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280   *) ac_try_echo=$ac_try;;
14281 esac
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283   (eval "$ac_compile") 2>conftest.er1
14284   ac_status=$?
14285   grep -v '^ *+' conftest.er1 >conftest.err
14286   rm -f conftest.er1
14287   cat conftest.err >&5
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); } && {
14290          test -z "$ac_c_werror_flag" ||
14291          test ! -s conftest.err
14292        } && test -s conftest.$ac_objext; then
14293   # It does; now see whether it defined to BIG_ENDIAN or not.
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300 #include <sys/types.h>
14301 #include <sys/param.h>
14302
14303 int
14304 main ()
14305 {
14306 #if BYTE_ORDER != BIG_ENDIAN
14307  not big endian
14308 #endif
14309
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext
14315 if { (ac_try="$ac_compile"
14316 case "(($ac_try" in
14317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318   *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321   (eval "$ac_compile") 2>conftest.er1
14322   ac_status=$?
14323   grep -v '^ *+' conftest.er1 >conftest.err
14324   rm -f conftest.er1
14325   cat conftest.err >&5
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); } && {
14328          test -z "$ac_c_werror_flag" ||
14329          test ! -s conftest.err
14330        } && test -s conftest.$ac_objext; then
14331   ac_cv_c_bigendian=yes
14332 else
14333   echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336         ac_cv_c_bigendian=no
14337 fi
14338
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344         # It does not; compile a test program.
14345 if test "$cross_compiling" = yes; then
14346   # try to guess the endianness by grepping values into an object file
14347   ac_cv_c_bigendian=unknown
14348   cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h.  */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h.  */
14354 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14355 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14357 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14358 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14360 int
14361 main ()
14362 {
14363  _ascii (); _ebcdic ();
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
14370 case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_compile") 2>conftest.er1
14376   ac_status=$?
14377   grep -v '^ *+' conftest.er1 >conftest.err
14378   rm -f conftest.er1
14379   cat conftest.err >&5
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } && {
14382          test -z "$ac_c_werror_flag" ||
14383          test ! -s conftest.err
14384        } && test -s conftest.$ac_objext; then
14385   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14386   ac_cv_c_bigendian=yes
14387 fi
14388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14389   if test "$ac_cv_c_bigendian" = unknown; then
14390     ac_cv_c_bigendian=no
14391   else
14392     # finding both strings is unlikely to happen, but who knows?
14393     ac_cv_c_bigendian=unknown
14394   fi
14395 fi
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400
14401 fi
14402
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 else
14405   cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h.  */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h.  */
14411 $ac_includes_default
14412 int
14413 main ()
14414 {
14415
14416   /* Are we little or big endian?  From Harbison&Steele.  */
14417   union
14418   {
14419     long int l;
14420     char c[sizeof (long int)];
14421   } u;
14422   u.l = 1;
14423   return u.c[sizeof (long int) - 1] == 1;
14424
14425   ;
14426   return 0;
14427 }
14428 _ACEOF
14429 rm -f conftest$ac_exeext
14430 if { (ac_try="$ac_link"
14431 case "(($ac_try" in
14432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433   *) ac_try_echo=$ac_try;;
14434 esac
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436   (eval "$ac_link") 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14440   { (case "(($ac_try" in
14441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442   *) ac_try_echo=$ac_try;;
14443 esac
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445   (eval "$ac_try") 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449   ac_cv_c_bigendian=no
14450 else
14451   echo "$as_me: program exited with status $ac_status" >&5
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455 ( exit $ac_status )
14456 ac_cv_c_bigendian=yes
14457 fi
14458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14459 fi
14460
14461
14462 fi
14463
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 fi
14466 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14467 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14468 case $ac_cv_c_bigendian in
14469   yes)
14470
14471 cat >>confdefs.h <<\_ACEOF
14472 #define WORDS_BIGENDIAN 1
14473 _ACEOF
14474  ;;
14475   no)
14476      ;;
14477   *)
14478     { { echo "$as_me:$LINENO: error: unknown endianness
14479 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14480 echo "$as_me: error: unknown endianness
14481 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14482    { (exit 1); exit 1; }; } ;;
14483 esac
14484
14485 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14486 ASM_TYPES_HEADER=./asm_types.h
14487
14488 echo "/* These defines are needed for the public ext2fs.h header file */" \
14489      > public_config.h
14490 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14491   uniq tmp_config.$$ >> public_config.h
14492 else
14493   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14494 fi
14495 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14496   uniq tmp_config.$$ >> public_config.h
14497 else
14498   echo "#undef WORDS_BIGENDIAN" >> public_config.h
14499 fi
14500 rm -f tmp_config.$$
14501 PUBLIC_CONFIG_HEADER=./public_config.h
14502
14503
14504 for ac_header in inttypes.h
14505 do
14506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14508   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511   echo $ECHO_N "(cached) $ECHO_C" >&6
14512 fi
14513 ac_res=`eval echo '${'$as_ac_Header'}'`
14514                { echo "$as_me:$LINENO: result: $ac_res" >&5
14515 echo "${ECHO_T}$ac_res" >&6; }
14516 else
14517   # Is the header compilable?
14518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h.  */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h.  */
14526 $ac_includes_default
14527 #include <$ac_header>
14528 _ACEOF
14529 rm -f conftest.$ac_objext
14530 if { (ac_try="$ac_compile"
14531 case "(($ac_try" in
14532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533   *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536   (eval "$ac_compile") 2>conftest.er1
14537   ac_status=$?
14538   grep -v '^ *+' conftest.er1 >conftest.err
14539   rm -f conftest.er1
14540   cat conftest.err >&5
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); } && {
14543          test -z "$ac_c_werror_flag" ||
14544          test ! -s conftest.err
14545        } && test -s conftest.$ac_objext; then
14546   ac_header_compiler=yes
14547 else
14548   echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14550
14551         ac_header_compiler=no
14552 fi
14553
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14556 echo "${ECHO_T}$ac_header_compiler" >&6; }
14557
14558 # Is the header present?
14559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14561 cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h.  */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h.  */
14567 #include <$ac_header>
14568 _ACEOF
14569 if { (ac_try="$ac_cpp conftest.$ac_ext"
14570 case "(($ac_try" in
14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572   *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14576   ac_status=$?
14577   grep -v '^ *+' conftest.er1 >conftest.err
14578   rm -f conftest.er1
14579   cat conftest.err >&5
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); } >/dev/null && {
14582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14583          test ! -s conftest.err
14584        }; then
14585   ac_header_preproc=yes
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590   ac_header_preproc=no
14591 fi
14592
14593 rm -f conftest.err conftest.$ac_ext
14594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14595 echo "${ECHO_T}$ac_header_preproc" >&6; }
14596
14597 # So?  What about this header?
14598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14599   yes:no: )
14600     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14604     ac_header_preproc=yes
14605     ;;
14606   no:yes:* )
14607     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14609     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14610 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14611     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14613     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14614 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14617     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14619
14620     ;;
14621 esac
14622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627   eval "$as_ac_Header=\$ac_header_preproc"
14628 fi
14629 ac_res=`eval echo '${'$as_ac_Header'}'`
14630                { echo "$as_me:$LINENO: result: $ac_res" >&5
14631 echo "${ECHO_T}$ac_res" >&6; }
14632
14633 fi
14634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14635   cat >>confdefs.h <<_ACEOF
14636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14637 _ACEOF
14638
14639 fi
14640
14641 done
14642
14643 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14644 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14645 if test "${ac_cv_type_intptr_t+set}" = set; then
14646   echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648   cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 $ac_includes_default
14655 typedef intptr_t ac__type_new_;
14656 int
14657 main ()
14658 {
14659 if ((ac__type_new_ *) 0)
14660   return 0;
14661 if (sizeof (ac__type_new_))
14662   return 0;
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671   *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674   (eval "$ac_compile") 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } && {
14681          test -z "$ac_c_werror_flag" ||
14682          test ! -s conftest.err
14683        } && test -s conftest.$ac_objext; then
14684   ac_cv_type_intptr_t=yes
14685 else
14686   echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689         ac_cv_type_intptr_t=no
14690 fi
14691
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 fi
14694 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14695 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14696 if test $ac_cv_type_intptr_t = yes; then
14697
14698 cat >>confdefs.h <<_ACEOF
14699 #define HAVE_INTPTR_T 1
14700 _ACEOF
14701
14702
14703 fi
14704
14705 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14706 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14707 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14708   echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710   cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h.  */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h.  */
14716 #include <sys/stat.h>
14717 int
14718 main ()
14719 {
14720 struct stat stat; stat.st_flags = 0;
14721   ;
14722   return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732   (eval "$ac_compile") 2>conftest.er1
14733   ac_status=$?
14734   grep -v '^ *+' conftest.er1 >conftest.err
14735   rm -f conftest.er1
14736   cat conftest.err >&5
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); } && {
14739          test -z "$ac_c_werror_flag" ||
14740          test ! -s conftest.err
14741        } && test -s conftest.$ac_objext; then
14742   e2fsprogs_cv_struct_st_flags=yes
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747         e2fsprogs_cv_struct_st_flags=no
14748 fi
14749
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751 fi
14752
14753 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14754 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14755 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14756   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14757 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14758   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767 #include <sys/stat.h>
14768 int
14769 main ()
14770 {
14771 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14772   ;
14773   return 0;
14774 }
14775 _ACEOF
14776 rm -f conftest.$ac_objext
14777 if { (ac_try="$ac_compile"
14778 case "(($ac_try" in
14779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780   *) ac_try_echo=$ac_try;;
14781 esac
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783   (eval "$ac_compile") 2>conftest.er1
14784   ac_status=$?
14785   grep -v '^ *+' conftest.er1 >conftest.err
14786   rm -f conftest.er1
14787   cat conftest.err >&5
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); } && {
14790          test -z "$ac_c_werror_flag" ||
14791          test ! -s conftest.err
14792        } && test -s conftest.$ac_objext; then
14793   e2fsprogs_cv_struct_st_flags_immut=yes
14794 else
14795   echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798         e2fsprogs_cv_struct_st_flags_immut=no
14799 fi
14800
14801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802 fi
14803
14804   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14805 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14806   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14807           cat >>confdefs.h <<\_ACEOF
14808 #define HAVE_STAT_FLAGS 1
14809 _ACEOF
14810
14811   fi
14812 fi
14813 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14814 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14815 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14816   echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818   cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824 #include <sys/types.h>
14825          #include <sys/socket.h>
14826
14827 int
14828 main ()
14829 {
14830 static struct sockaddr ac_aggr;
14831 if (ac_aggr.sa_len)
14832 return 0;
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (ac_try="$ac_compile"
14839 case "(($ac_try" in
14840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841   *) ac_try_echo=$ac_try;;
14842 esac
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844   (eval "$ac_compile") 2>conftest.er1
14845   ac_status=$?
14846   grep -v '^ *+' conftest.er1 >conftest.err
14847   rm -f conftest.er1
14848   cat conftest.err >&5
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); } && {
14851          test -z "$ac_c_werror_flag" ||
14852          test ! -s conftest.err
14853        } && test -s conftest.$ac_objext; then
14854   ac_cv_member_struct_sockaddr_sa_len=yes
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859         cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h.  */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h.  */
14865 #include <sys/types.h>
14866          #include <sys/socket.h>
14867
14868 int
14869 main ()
14870 {
14871 static struct sockaddr ac_aggr;
14872 if (sizeof ac_aggr.sa_len)
14873 return 0;
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_compile") 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && {
14892          test -z "$ac_c_werror_flag" ||
14893          test ! -s conftest.err
14894        } && test -s conftest.$ac_objext; then
14895   ac_cv_member_struct_sockaddr_sa_len=yes
14896 else
14897   echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900         ac_cv_member_struct_sockaddr_sa_len=no
14901 fi
14902
14903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14904 fi
14905
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14907 fi
14908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14909 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14910 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14911
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_SA_LEN 1
14914 _ACEOF
14915
14916 fi
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
14950 do
14951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   cat >conftest.$ac_ext <<_ACEOF
14958 /* confdefs.h.  */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h.  */
14963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14965 #define $ac_func innocuous_$ac_func
14966
14967 /* System header to define __stub macros and hopefully few prototypes,
14968     which can conflict with char $ac_func (); below.
14969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14970     <limits.h> exists even on freestanding compilers.  */
14971
14972 #ifdef __STDC__
14973 # include <limits.h>
14974 #else
14975 # include <assert.h>
14976 #endif
14977
14978 #undef $ac_func
14979
14980 /* Override any GCC internal prototype to avoid an error.
14981    Use char because int might match the return type of a GCC
14982    builtin and then its argument prototype would still apply.  */
14983 #ifdef __cplusplus
14984 extern "C"
14985 #endif
14986 char $ac_func ();
14987 /* The GNU C library defines this for functions which it implements
14988     to always fail with ENOSYS.  Some functions are actually named
14989     something starting with __ and the normal name is an alias.  */
14990 #if defined __stub_$ac_func || defined __stub___$ac_func
14991 choke me
14992 #endif
14993
14994 int
14995 main ()
14996 {
14997 return $ac_func ();
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (ac_try="$ac_link"
15004 case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009   (eval "$ac_link") 2>conftest.er1
15010   ac_status=$?
15011   grep -v '^ *+' conftest.er1 >conftest.err
15012   rm -f conftest.er1
15013   cat conftest.err >&5
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } && {
15016          test -z "$ac_c_werror_flag" ||
15017          test ! -s conftest.err
15018        } && test -s conftest$ac_exeext &&
15019        $as_test_x conftest$ac_exeext; then
15020   eval "$as_ac_var=yes"
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025         eval "$as_ac_var=no"
15026 fi
15027
15028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15029       conftest$ac_exeext conftest.$ac_ext
15030 fi
15031 ac_res=`eval echo '${'$as_ac_var'}'`
15032                { echo "$as_me:$LINENO: result: $ac_res" >&5
15033 echo "${ECHO_T}$ac_res" >&6; }
15034 if test `eval echo '${'$as_ac_var'}'` = yes; then
15035   cat >>confdefs.h <<_ACEOF
15036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15037 _ACEOF
15038
15039 fi
15040 done
15041
15042 SOCKET_LIB=''
15043 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15044 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15045 if test "${ac_cv_lib_socket_socket+set}" = set; then
15046   echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048   ac_check_lib_save_LIBS=$LIBS
15049 LIBS="-lsocket  $LIBS"
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h.  */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h.  */
15056
15057 /* Override any GCC internal prototype to avoid an error.
15058    Use char because int might match the return type of a GCC
15059    builtin and then its argument prototype would still apply.  */
15060 #ifdef __cplusplus
15061 extern "C"
15062 #endif
15063 char socket ();
15064 int
15065 main ()
15066 {
15067 return socket ();
15068   ;
15069   return 0;
15070 }
15071 _ACEOF
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076   *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079   (eval "$ac_link") 2>conftest.er1
15080   ac_status=$?
15081   grep -v '^ *+' conftest.er1 >conftest.err
15082   rm -f conftest.er1
15083   cat conftest.err >&5
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); } && {
15086          test -z "$ac_c_werror_flag" ||
15087          test ! -s conftest.err
15088        } && test -s conftest$ac_exeext &&
15089        $as_test_x conftest$ac_exeext; then
15090   ac_cv_lib_socket_socket=yes
15091 else
15092   echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15094
15095         ac_cv_lib_socket_socket=no
15096 fi
15097
15098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15099       conftest$ac_exeext conftest.$ac_ext
15100 LIBS=$ac_check_lib_save_LIBS
15101 fi
15102 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15103 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15104 if test $ac_cv_lib_socket_socket = yes; then
15105   SOCKET_LIB=-lsocket
15106 fi
15107
15108
15109 DLOPEN_LIB=''
15110 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15113   echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115   ac_check_lib_save_LIBS=$LIBS
15116 LIBS="-ldl  $LIBS"
15117 cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123
15124 /* Override any GCC internal prototype to avoid an error.
15125    Use char because int might match the return type of a GCC
15126    builtin and then its argument prototype would still apply.  */
15127 #ifdef __cplusplus
15128 extern "C"
15129 #endif
15130 char dlopen ();
15131 int
15132 main ()
15133 {
15134 return dlopen ();
15135   ;
15136   return 0;
15137 }
15138 _ACEOF
15139 rm -f conftest.$ac_objext conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143   *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146   (eval "$ac_link") 2>conftest.er1
15147   ac_status=$?
15148   grep -v '^ *+' conftest.er1 >conftest.err
15149   rm -f conftest.er1
15150   cat conftest.err >&5
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); } && {
15153          test -z "$ac_c_werror_flag" ||
15154          test ! -s conftest.err
15155        } && test -s conftest$ac_exeext &&
15156        $as_test_x conftest$ac_exeext; then
15157   ac_cv_lib_dl_dlopen=yes
15158 else
15159   echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162         ac_cv_lib_dl_dlopen=no
15163 fi
15164
15165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166       conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS
15168 fi
15169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15170 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15171 if test $ac_cv_lib_dl_dlopen = yes; then
15172   DLOPEN_LIB=-ldl
15173 cat >>confdefs.h <<\_ACEOF
15174 #define HAVE_DLOPEN 1
15175 _ACEOF
15176
15177 fi
15178
15179
15180 { echo "$as_me:$LINENO: checking for optreset" >&5
15181 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15182 if test "${ac_cv_have_optreset+set}" = set; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h.  */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h.  */
15191 #include <unistd.h>
15192
15193 _ACEOF
15194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15195   $EGREP "optreset" >/dev/null 2>&1; then
15196   ac_cv_have_optreset=yes
15197 else
15198   ac_cv_have_optreset=no
15199 fi
15200 rm -f conftest*
15201
15202 fi
15203 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15204 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15205 if test $ac_cv_have_optreset = yes; then
15206   cat >>confdefs.h <<\_ACEOF
15207 #define HAVE_OPTRESET 1
15208 _ACEOF
15209
15210 fi
15211 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15212 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15213 if diff -u $0 $0 > /dev/null 2>&1 ; then
15214    UNI_DIFF_OPTS=-u
15215 else
15216    UNI_DIFF_OPTS=-c
15217 fi
15218 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15219 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15220
15221 case "$host_os" in
15222 linux*)
15223         cat >>confdefs.h <<\_ACEOF
15224 #define HAVE_EXT2_IOCTLS 1
15225 _ACEOF
15226
15227         ;;
15228 esac
15229 LINUX_CMT="#"
15230 CYGWIN_CMT="#"
15231 UNIX_CMT=
15232 case "$host_os" in
15233 linux*)
15234         LINUX_CMT=
15235         ;;
15236 cygwin)
15237         CYGWIN_CMT=
15238         UNIX_CMT="#"
15239         ;;
15240 esac
15241
15242
15243
15244 case "$host_os" in
15245 linux* | gnu* | k*bsd*-gnu)
15246         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15247                 root_prefix="";
15248                 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15249 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15250         fi
15251         ;;
15252 esac
15253 case "$host_os" in
15254 linux* | gnu* | k*bsd*-gnu)
15255         if test "$prefix" = NONE ; then
15256                 prefix="/usr";
15257                 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15258 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15259                 if test "$mandir" = '${prefix}/man' ; then
15260                         { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15261 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15262                         mandir=/usr/share/man
15263                 fi
15264         fi
15265 ;;
15266 esac
15267 if test "$root_prefix" = NONE ; then
15268         if test "$prefix" = NONE ; then
15269                 root_prefix="$ac_default_prefix"
15270         else
15271                 root_prefix="$prefix"
15272         fi
15273         root_bindir=$bindir
15274         root_sbindir=$sbindir
15275         root_libdir=$libdir
15276         root_sysconfdir=$sysconfdir
15277 else
15278         root_bindir='${root_prefix}/bin'
15279         root_sbindir='${root_prefix}/sbin'
15280         root_libdir='${root_prefix}/lib'
15281         root_sysconfdir='${root_prefix}/etc'
15282 fi
15283 if test "$bindir" != '${exec_prefix}/bin'; then
15284     root_bindir=$bindir
15285     { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15286 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15287 fi
15288 if test "$sbindir" != '${exec_prefix}/sbin'; then
15289     root_sbindir=$sbindir
15290     { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15291 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15292 fi
15293 if test "$libdir" != '${exec_prefix}/lib'; then
15294     root_libdir=$libdir
15295     { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15296 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15297 fi
15298 if test "$sysconfdir" != '${prefix}/etc'; then
15299     root_sysconfdir=$sysconfdir
15300     { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15301 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15302 fi
15303
15304
15305
15306
15307
15308 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15309 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15310 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15314 cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320 #include <stdio.h>
15321 int
15322 main ()
15323 {
15324 fflush(stdout);
15325   ;
15326   return 0;
15327 }
15328 _ACEOF
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (ac_try="$ac_link"
15331 case "(($ac_try" in
15332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333   *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336   (eval "$ac_link") 2>conftest.er1
15337   ac_status=$?
15338   grep -v '^ *+' conftest.er1 >conftest.err
15339   rm -f conftest.er1
15340   cat conftest.err >&5
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); } && {
15343          test -z "$ac_c_werror_flag" ||
15344          test ! -s conftest.err
15345        } && test -s conftest$ac_exeext &&
15346        $as_test_x conftest$ac_exeext; then
15347   ac_cv_e2fsprogs_use_static=yes
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352         ac_cv_e2fsprogs_use_static=no
15353 fi
15354
15355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15356       conftest$ac_exeext conftest.$ac_ext
15357 LDFLAGS=$SAVE_LDFLAGS
15358 fi
15359
15360 case "$host_os" in
15361 solaris2.*)
15362         ac_cv_e2fsprogs_use_static=no
15363 ;;
15364 esac
15365 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15366 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15367 LDFLAG_STATIC=
15368 if test $ac_cv_e2fsprogs_use_static = yes; then
15369         LDFLAG_STATIC=-static
15370 fi
15371
15372 case "$host_os" in
15373 darwin*)
15374         { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15375 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15376         cat >>confdefs.h <<\_ACEOF
15377 #define _INTL_REDIRECT_MACROS 1
15378 _ACEOF
15379
15380         ;;
15381 esac
15382 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15383 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15384
15385
15386 if test "$cross_compiling" = yes ; then
15387   DO_TEST_SUITE=
15388 else
15389   DO_TEST_SUITE=check
15390 fi
15391
15392 INTL_FLAGS=
15393 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15394         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15395 fi
15396
15397 if test $cross_compiling = no; then
15398    BUILD_CFLAGS="$CFLAGS"
15399    BUILD_LDFLAGS="$LDFLAGS"
15400 else
15401    BUILD_CFLAGS=
15402    BUILD_LDFLAGS=
15403 fi
15404
15405
15406 test -d lib || mkdir lib
15407 test -d include || mkdir include
15408 test -d include/linux || mkdir include/linux
15409 test -d include/asm || mkdir include/asm
15410 for i in MCONFIG Makefile e2fsprogs.spec \
15411         util/Makefile util/subst.conf util/gen-tarball \
15412         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15413         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15414         lib/uuid/Makefile lib/uuid/uuid_types.h \
15415         lib/blkid/Makefile lib/blkid/blkid_types.h \
15416         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15417         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15418         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15419         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15420         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15421         if test -d `dirname ${srcdir}/$i` ; then
15422                 outlist="$outlist $i"
15423         fi
15424 done
15425 ac_config_files="$ac_config_files $outlist"
15426
15427 cat >confcache <<\_ACEOF
15428 # This file is a shell script that caches the results of configure
15429 # tests run on this system so they can be shared between configure
15430 # scripts and configure runs, see configure's option --config-cache.
15431 # It is not useful on other systems.  If it contains results you don't
15432 # want to keep, you may remove or edit it.
15433 #
15434 # config.status only pays attention to the cache file if you give it
15435 # the --recheck option to rerun configure.
15436 #
15437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15439 # following values.
15440
15441 _ACEOF
15442
15443 # The following way of writing the cache mishandles newlines in values,
15444 # but we know of no workaround that is simple, portable, and efficient.
15445 # So, we kill variables containing newlines.
15446 # Ultrix sh set writes to stderr and can't be redirected directly,
15447 # and sets the high bit in the cache file unless we assign to the vars.
15448 (
15449   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15450     eval ac_val=\$$ac_var
15451     case $ac_val in #(
15452     *${as_nl}*)
15453       case $ac_var in #(
15454       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15455 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15456       esac
15457       case $ac_var in #(
15458       _ | IFS | as_nl) ;; #(
15459       *) $as_unset $ac_var ;;
15460       esac ;;
15461     esac
15462   done
15463
15464   (set) 2>&1 |
15465     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15466     *${as_nl}ac_space=\ *)
15467       # `set' does not quote correctly, so add quotes (double-quote
15468       # substitution turns \\\\ into \\, and sed turns \\ into \).
15469       sed -n \
15470         "s/'/'\\\\''/g;
15471           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15472       ;; #(
15473     *)
15474       # `set' quotes correctly as required by POSIX, so do not add quotes.
15475       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15476       ;;
15477     esac |
15478     sort
15479 ) |
15480   sed '
15481      /^ac_cv_env_/b end
15482      t clear
15483      :clear
15484      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15485      t end
15486      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15487      :end' >>confcache
15488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15489   if test -w "$cache_file"; then
15490     test "x$cache_file" != "x/dev/null" &&
15491       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15492 echo "$as_me: updating cache $cache_file" >&6;}
15493     cat confcache >$cache_file
15494   else
15495     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15496 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15497   fi
15498 fi
15499 rm -f confcache
15500
15501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15502 # Let make expand exec_prefix.
15503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15504
15505 # Transform confdefs.h into DEFS.
15506 # Protect against shell expansion while executing Makefile rules.
15507 # Protect against Makefile macro expansion.
15508 #
15509 # If the first sed substitution is executed (which looks for macros that
15510 # take arguments), then branch to the quote section.  Otherwise,
15511 # look for a macro that doesn't take arguments.
15512 ac_script='
15513 t clear
15514 :clear
15515 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15516 t quote
15517 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15518 t quote
15519 b any
15520 :quote
15521 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15522 s/\[/\\&/g
15523 s/\]/\\&/g
15524 s/\$/$$/g
15525 H
15526 :any
15527 ${
15528         g
15529         s/^\n//
15530         s/\n/ /g
15531         p
15532 }
15533 '
15534 DEFS=`sed -n "$ac_script" confdefs.h`
15535
15536
15537 ac_libobjs=
15538 ac_ltlibobjs=
15539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15540   # 1. Remove the extension, and $U if already installed.
15541   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15542   ac_i=`echo "$ac_i" | sed "$ac_script"`
15543   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15544   #    will be set to the directory where LIBOBJS objects are built.
15545   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15546   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15547 done
15548 LIBOBJS=$ac_libobjs
15549
15550 LTLIBOBJS=$ac_ltlibobjs
15551
15552
15553
15554 : ${CONFIG_STATUS=./config.status}
15555 ac_clean_files_save=$ac_clean_files
15556 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15557 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15558 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15559 cat >$CONFIG_STATUS <<_ACEOF
15560 #! $SHELL
15561 # Generated by $as_me.
15562 # Run this file to recreate the current configuration.
15563 # Compiler output produced by configure, useful for debugging
15564 # configure, is in config.log if it exists.
15565
15566 debug=false
15567 ac_cs_recheck=false
15568 ac_cs_silent=false
15569 SHELL=\${CONFIG_SHELL-$SHELL}
15570 _ACEOF
15571
15572 cat >>$CONFIG_STATUS <<\_ACEOF
15573 ## --------------------- ##
15574 ## M4sh Initialization.  ##
15575 ## --------------------- ##
15576
15577 # Be more Bourne compatible
15578 DUALCASE=1; export DUALCASE # for MKS sh
15579 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15580   emulate sh
15581   NULLCMD=:
15582   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15583   # is contrary to our usage.  Disable this feature.
15584   alias -g '${1+"$@"}'='"$@"'
15585   setopt NO_GLOB_SUBST
15586 else
15587   case `(set -o) 2>/dev/null` in
15588   *posix*) set -o posix ;;
15589 esac
15590
15591 fi
15592
15593
15594
15595
15596 # PATH needs CR
15597 # Avoid depending upon Character Ranges.
15598 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15599 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15600 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15601 as_cr_digits='0123456789'
15602 as_cr_alnum=$as_cr_Letters$as_cr_digits
15603
15604 # The user is always right.
15605 if test "${PATH_SEPARATOR+set}" != set; then
15606   echo "#! /bin/sh" >conf$$.sh
15607   echo  "exit 0"   >>conf$$.sh
15608   chmod +x conf$$.sh
15609   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15610     PATH_SEPARATOR=';'
15611   else
15612     PATH_SEPARATOR=:
15613   fi
15614   rm -f conf$$.sh
15615 fi
15616
15617 # Support unset when possible.
15618 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15619   as_unset=unset
15620 else
15621   as_unset=false
15622 fi
15623
15624
15625 # IFS
15626 # We need space, tab and new line, in precisely that order.  Quoting is
15627 # there to prevent editors from complaining about space-tab.
15628 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15629 # splitting by setting IFS to empty value.)
15630 as_nl='
15631 '
15632 IFS=" ""        $as_nl"
15633
15634 # Find who we are.  Look in the path if we contain no directory separator.
15635 case $0 in
15636   *[\\/]* ) as_myself=$0 ;;
15637   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15639 do
15640   IFS=$as_save_IFS
15641   test -z "$as_dir" && as_dir=.
15642   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15643 done
15644 IFS=$as_save_IFS
15645
15646      ;;
15647 esac
15648 # We did not find ourselves, most probably we were run as `sh COMMAND'
15649 # in which case we are not to be found in the path.
15650 if test "x$as_myself" = x; then
15651   as_myself=$0
15652 fi
15653 if test ! -f "$as_myself"; then
15654   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15655   { (exit 1); exit 1; }
15656 fi
15657
15658 # Work around bugs in pre-3.0 UWIN ksh.
15659 for as_var in ENV MAIL MAILPATH
15660 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15661 done
15662 PS1='$ '
15663 PS2='> '
15664 PS4='+ '
15665
15666 # NLS nuisances.
15667 for as_var in \
15668   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15669   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15670   LC_TELEPHONE LC_TIME
15671 do
15672   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15673     eval $as_var=C; export $as_var
15674   else
15675     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15676   fi
15677 done
15678
15679 # Required to use basename.
15680 if expr a : '\(a\)' >/dev/null 2>&1 &&
15681    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15682   as_expr=expr
15683 else
15684   as_expr=false
15685 fi
15686
15687 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15688   as_basename=basename
15689 else
15690   as_basename=false
15691 fi
15692
15693
15694 # Name of the executable.
15695 as_me=`$as_basename -- "$0" ||
15696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15697          X"$0" : 'X\(//\)$' \| \
15698          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15699 echo X/"$0" |
15700     sed '/^.*\/\([^/][^/]*\)\/*$/{
15701             s//\1/
15702             q
15703           }
15704           /^X\/\(\/\/\)$/{
15705             s//\1/
15706             q
15707           }
15708           /^X\/\(\/\).*/{
15709             s//\1/
15710             q
15711           }
15712           s/.*/./; q'`
15713
15714 # CDPATH.
15715 $as_unset CDPATH
15716
15717
15718
15719   as_lineno_1=$LINENO
15720   as_lineno_2=$LINENO
15721   test "x$as_lineno_1" != "x$as_lineno_2" &&
15722   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15723
15724   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15725   # uniformly replaced by the line number.  The first 'sed' inserts a
15726   # line-number line after each line using $LINENO; the second 'sed'
15727   # does the real work.  The second script uses 'N' to pair each
15728   # line-number line with the line containing $LINENO, and appends
15729   # trailing '-' during substitution so that $LINENO is not a special
15730   # case at line end.
15731   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15732   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15733   # E. McMahon (1931-1989) for sed's syntax.  :-)
15734   sed -n '
15735     p
15736     /[$]LINENO/=
15737   ' <$as_myself |
15738     sed '
15739       s/[$]LINENO.*/&-/
15740       t lineno
15741       b
15742       :lineno
15743       N
15744       :loop
15745       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15746       t loop
15747       s/-\n.*//
15748     ' >$as_me.lineno &&
15749   chmod +x "$as_me.lineno" ||
15750     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15751    { (exit 1); exit 1; }; }
15752
15753   # Don't try to exec as it changes $[0], causing all sort of problems
15754   # (the dirname of $[0] is not the place where we might find the
15755   # original and so on.  Autoconf is especially sensitive to this).
15756   . "./$as_me.lineno"
15757   # Exit status is that of the last command.
15758   exit
15759 }
15760
15761
15762 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15763   as_dirname=dirname
15764 else
15765   as_dirname=false
15766 fi
15767
15768 ECHO_C= ECHO_N= ECHO_T=
15769 case `echo -n x` in
15770 -n*)
15771   case `echo 'x\c'` in
15772   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15773   *)   ECHO_C='\c';;
15774   esac;;
15775 *)
15776   ECHO_N='-n';;
15777 esac
15778
15779 if expr a : '\(a\)' >/dev/null 2>&1 &&
15780    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15781   as_expr=expr
15782 else
15783   as_expr=false
15784 fi
15785
15786 rm -f conf$$ conf$$.exe conf$$.file
15787 if test -d conf$$.dir; then
15788   rm -f conf$$.dir/conf$$.file
15789 else
15790   rm -f conf$$.dir
15791   mkdir conf$$.dir
15792 fi
15793 echo >conf$$.file
15794 if ln -s conf$$.file conf$$ 2>/dev/null; then
15795   as_ln_s='ln -s'
15796   # ... but there are two gotchas:
15797   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15798   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15799   # In both cases, we have to default to `cp -p'.
15800   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15801     as_ln_s='cp -p'
15802 elif ln conf$$.file conf$$ 2>/dev/null; then
15803   as_ln_s=ln
15804 else
15805   as_ln_s='cp -p'
15806 fi
15807 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15808 rmdir conf$$.dir 2>/dev/null
15809
15810 if mkdir -p . 2>/dev/null; then
15811   as_mkdir_p=:
15812 else
15813   test -d ./-p && rmdir ./-p
15814   as_mkdir_p=false
15815 fi
15816
15817 if test -x / >/dev/null 2>&1; then
15818   as_test_x='test -x'
15819 else
15820   if ls -dL / >/dev/null 2>&1; then
15821     as_ls_L_option=L
15822   else
15823     as_ls_L_option=
15824   fi
15825   as_test_x='
15826     eval sh -c '\''
15827       if test -d "$1"; then
15828         test -d "$1/.";
15829       else
15830         case $1 in
15831         -*)set "./$1";;
15832         esac;
15833         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15834         ???[sx]*):;;*)false;;esac;fi
15835     '\'' sh
15836   '
15837 fi
15838 as_executable_p=$as_test_x
15839
15840 # Sed expression to map a string onto a valid CPP name.
15841 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15842
15843 # Sed expression to map a string onto a valid variable name.
15844 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15845
15846
15847 exec 6>&1
15848
15849 # Save the log message, to keep $[0] and so on meaningful, and to
15850 # report actual input values of CONFIG_FILES etc. instead of their
15851 # values after options handling.
15852 ac_log="
15853 This file was extended by $as_me, which was
15854 generated by GNU Autoconf 2.61.  Invocation command line was
15855
15856   CONFIG_FILES    = $CONFIG_FILES
15857   CONFIG_HEADERS  = $CONFIG_HEADERS
15858   CONFIG_LINKS    = $CONFIG_LINKS
15859   CONFIG_COMMANDS = $CONFIG_COMMANDS
15860   $ $0 $@
15861
15862 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15863 "
15864
15865 _ACEOF
15866
15867 cat >>$CONFIG_STATUS <<_ACEOF
15868 # Files that config.status was made for.
15869 config_files="$ac_config_files"
15870 config_commands="$ac_config_commands"
15871
15872 _ACEOF
15873
15874 cat >>$CONFIG_STATUS <<\_ACEOF
15875 ac_cs_usage="\
15876 \`$as_me' instantiates files from templates according to the
15877 current configuration.
15878
15879 Usage: $0 [OPTIONS] [FILE]...
15880
15881   -h, --help       print this help, then exit
15882   -V, --version    print version number and configuration settings, then exit
15883   -q, --quiet      do not print progress messages
15884   -d, --debug      don't remove temporary files
15885       --recheck    update $as_me by reconfiguring in the same conditions
15886   --file=FILE[:TEMPLATE]
15887                    instantiate the configuration file FILE
15888
15889 Configuration files:
15890 $config_files
15891
15892 Configuration commands:
15893 $config_commands
15894
15895 Report bugs to <bug-autoconf@gnu.org>."
15896
15897 _ACEOF
15898 cat >>$CONFIG_STATUS <<_ACEOF
15899 ac_cs_version="\\
15900 config.status
15901 configured by $0, generated by GNU Autoconf 2.61,
15902   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15903
15904 Copyright (C) 2006 Free Software Foundation, Inc.
15905 This config.status script is free software; the Free Software Foundation
15906 gives unlimited permission to copy, distribute and modify it."
15907
15908 ac_pwd='$ac_pwd'
15909 srcdir='$srcdir'
15910 INSTALL='$INSTALL'
15911 _ACEOF
15912
15913 cat >>$CONFIG_STATUS <<\_ACEOF
15914 # If no file are specified by the user, then we need to provide default
15915 # value.  By we need to know if files were specified by the user.
15916 ac_need_defaults=:
15917 while test $# != 0
15918 do
15919   case $1 in
15920   --*=*)
15921     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15922     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15923     ac_shift=:
15924     ;;
15925   *)
15926     ac_option=$1
15927     ac_optarg=$2
15928     ac_shift=shift
15929     ;;
15930   esac
15931
15932   case $ac_option in
15933   # Handling of the options.
15934   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15935     ac_cs_recheck=: ;;
15936   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15937     echo "$ac_cs_version"; exit ;;
15938   --debug | --debu | --deb | --de | --d | -d )
15939     debug=: ;;
15940   --file | --fil | --fi | --f )
15941     $ac_shift
15942     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15943     ac_need_defaults=false;;
15944   --he | --h |  --help | --hel | -h )
15945     echo "$ac_cs_usage"; exit ;;
15946   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15947   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15948     ac_cs_silent=: ;;
15949
15950   # This is an error.
15951   -*) { echo "$as_me: error: unrecognized option: $1
15952 Try \`$0 --help' for more information." >&2
15953    { (exit 1); exit 1; }; } ;;
15954
15955   *) ac_config_targets="$ac_config_targets $1"
15956      ac_need_defaults=false ;;
15957
15958   esac
15959   shift
15960 done
15961
15962 ac_configure_extra_args=
15963
15964 if $ac_cs_silent; then
15965   exec 6>/dev/null
15966   ac_configure_extra_args="$ac_configure_extra_args --silent"
15967 fi
15968
15969 _ACEOF
15970 cat >>$CONFIG_STATUS <<_ACEOF
15971 if \$ac_cs_recheck; then
15972   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15973   CONFIG_SHELL=$SHELL
15974   export CONFIG_SHELL
15975   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15976 fi
15977
15978 _ACEOF
15979 cat >>$CONFIG_STATUS <<\_ACEOF
15980 exec 5>>config.log
15981 {
15982   echo
15983   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15984 ## Running $as_me. ##
15985 _ASBOX
15986   echo "$ac_log"
15987 } >&5
15988
15989 _ACEOF
15990 cat >>$CONFIG_STATUS <<_ACEOF
15991 #
15992 # INIT-COMMANDS
15993 #
15994 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15995     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15996     # from automake.
15997     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15998     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15999     LINGUAS="${LINGUAS-%UNSET%}"
16000
16001
16002 _ACEOF
16003
16004 cat >>$CONFIG_STATUS <<\_ACEOF
16005
16006 # Handling of arguments.
16007 for ac_config_target in $ac_config_targets
16008 do
16009   case $ac_config_target in
16010     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16011     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16012
16013   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16014 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16015    { (exit 1); exit 1; }; };;
16016   esac
16017 done
16018
16019
16020 # If the user did not use the arguments to specify the items to instantiate,
16021 # then the envvar interface is used.  Set only those that are not.
16022 # We use the long form for the default assignment because of an extremely
16023 # bizarre bug on SunOS 4.1.3.
16024 if $ac_need_defaults; then
16025   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16026   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16027 fi
16028
16029 # Have a temporary directory for convenience.  Make it in the build tree
16030 # simply because there is no reason against having it here, and in addition,
16031 # creating and moving files from /tmp can sometimes cause problems.
16032 # Hook for its removal unless debugging.
16033 # Note that there is a small window in which the directory will not be cleaned:
16034 # after its creation but before its name has been assigned to `$tmp'.
16035 $debug ||
16036 {
16037   tmp=
16038   trap 'exit_status=$?
16039   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16040 ' 0
16041   trap '{ (exit 1); exit 1; }' 1 2 13 15
16042 }
16043 # Create a (secure) tmp directory for tmp files.
16044
16045 {
16046   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16047   test -n "$tmp" && test -d "$tmp"
16048 }  ||
16049 {
16050   tmp=./conf$$-$RANDOM
16051   (umask 077 && mkdir "$tmp")
16052 } ||
16053 {
16054    echo "$me: cannot create a temporary directory in ." >&2
16055    { (exit 1); exit 1; }
16056 }
16057
16058 #
16059 # Set up the sed scripts for CONFIG_FILES section.
16060 #
16061
16062 # No need to generate the scripts if there are no CONFIG_FILES.
16063 # This happens for instance when ./config.status config.h
16064 if test -n "$CONFIG_FILES"; then
16065
16066 _ACEOF
16067
16068 # Create sed commands to just substitute file output variables.
16069
16070 # Remaining file output variables are in a fragment that also has non-file
16071 # output varibles.
16072
16073
16074
16075 ac_delim='%!_!# '
16076 for ac_last_try in false false false false false :; do
16077   cat >conf$$subs.sed <<_ACEOF
16078 SHELL!$SHELL$ac_delim
16079 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16080 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16081 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16082 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16083 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16084 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16085 exec_prefix!$exec_prefix$ac_delim
16086 prefix!$prefix$ac_delim
16087 program_transform_name!$program_transform_name$ac_delim
16088 bindir!$bindir$ac_delim
16089 sbindir!$sbindir$ac_delim
16090 libexecdir!$libexecdir$ac_delim
16091 datarootdir!$datarootdir$ac_delim
16092 datadir!$datadir$ac_delim
16093 sysconfdir!$sysconfdir$ac_delim
16094 sharedstatedir!$sharedstatedir$ac_delim
16095 localstatedir!$localstatedir$ac_delim
16096 includedir!$includedir$ac_delim
16097 oldincludedir!$oldincludedir$ac_delim
16098 docdir!$docdir$ac_delim
16099 infodir!$infodir$ac_delim
16100 htmldir!$htmldir$ac_delim
16101 dvidir!$dvidir$ac_delim
16102 pdfdir!$pdfdir$ac_delim
16103 psdir!$psdir$ac_delim
16104 libdir!$libdir$ac_delim
16105 localedir!$localedir$ac_delim
16106 mandir!$mandir$ac_delim
16107 DEFS!$DEFS$ac_delim
16108 ECHO_C!$ECHO_C$ac_delim
16109 ECHO_N!$ECHO_N$ac_delim
16110 ECHO_T!$ECHO_T$ac_delim
16111 LIBS!$LIBS$ac_delim
16112 build_alias!$build_alias$ac_delim
16113 host_alias!$host_alias$ac_delim
16114 target_alias!$target_alias$ac_delim
16115 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16116 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16117 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16118 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16119 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16120 build!$build$ac_delim
16121 build_cpu!$build_cpu$ac_delim
16122 build_vendor!$build_vendor$ac_delim
16123 build_os!$build_os$ac_delim
16124 host!$host$ac_delim
16125 host_cpu!$host_cpu$ac_delim
16126 host_vendor!$host_vendor$ac_delim
16127 host_os!$host_os$ac_delim
16128 CC!$CC$ac_delim
16129 CFLAGS!$CFLAGS$ac_delim
16130 LDFLAGS!$LDFLAGS$ac_delim
16131 CPPFLAGS!$CPPFLAGS$ac_delim
16132 ac_ct_CC!$ac_ct_CC$ac_delim
16133 EXEEXT!$EXEEXT$ac_delim
16134 OBJEXT!$OBJEXT$ac_delim
16135 CPP!$CPP$ac_delim
16136 LD!$LD$ac_delim
16137 GREP!$GREP$ac_delim
16138 EGREP!$EGREP$ac_delim
16139 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16140 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16141 HTREE_CMT!$HTREE_CMT$ac_delim
16142 ELF_CMT!$ELF_CMT$ac_delim
16143 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16144 PROFILE_CMT!$PROFILE_CMT$ac_delim
16145 CHECKER_CMT!$CHECKER_CMT$ac_delim
16146 LIB_EXT!$LIB_EXT$ac_delim
16147 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16148 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16149 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16150 IMAGER_CMT!$IMAGER_CMT$ac_delim
16151 _ACEOF
16152
16153   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16154     break
16155   elif $ac_last_try; then
16156     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16158    { (exit 1); exit 1; }; }
16159   else
16160     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16161   fi
16162 done
16163
16164 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16165 if test -n "$ac_eof"; then
16166   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16167   ac_eof=`expr $ac_eof + 1`
16168 fi
16169
16170 cat >>$CONFIG_STATUS <<_ACEOF
16171 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16173 /^[      ]*@MCONFIG@[    ]*$/{
16174 r $MCONFIG
16175 d
16176 }
16177 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16178 r $MAKEFILE_ELF
16179 d
16180 }
16181 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16182 r $MAKEFILE_BSDLIB
16183 d
16184 }
16185 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16186 r $MAKEFILE_PROFILE
16187 d
16188 }
16189 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16190 r $MAKEFILE_CHECKER
16191 d
16192 }
16193 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16194 r $MAKEFILE_LIBRARY
16195 d
16196 }
16197 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16198 r $ASM_TYPES_HEADER
16199 d
16200 }
16201 /^[      ]*@PUBLIC_CONFIG_HEADER@[       ]*$/{
16202 r $PUBLIC_CONFIG_HEADER
16203 d
16204 }
16205 _ACEOF
16206 sed '
16207 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16208 s/^/s,@/; s/!/@,|#_!!_#|/
16209 :n
16210 t n
16211 s/'"$ac_delim"'$/,g/; t
16212 s/$/\\/; p
16213 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16214 ' >>$CONFIG_STATUS <conf$$subs.sed
16215 rm -f conf$$subs.sed
16216 cat >>$CONFIG_STATUS <<_ACEOF
16217 CEOF$ac_eof
16218 _ACEOF
16219
16220
16221 ac_delim='%!_!# '
16222 for ac_last_try in false false false false false :; do
16223   cat >conf$$subs.sed <<_ACEOF
16224 RESIZER_CMT!$RESIZER_CMT$ac_delim
16225 FSCK_PROG!$FSCK_PROG$ac_delim
16226 FSCK_MAN!$FSCK_MAN$ac_delim
16227 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16228 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16229 PKG_CONFIG!$PKG_CONFIG$ac_delim
16230 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16231 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16232 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16233 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16234 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16235 UUIDD_CMT!$UUIDD_CMT$ac_delim
16236 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16237 PACKAGE!$PACKAGE$ac_delim
16238 VERSION!$VERSION$ac_delim
16239 SET_MAKE!$SET_MAKE$ac_delim
16240 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16241 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16242 INSTALL_DATA!$INSTALL_DATA$ac_delim
16243 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16244 USE_NLS!$USE_NLS$ac_delim
16245 MSGFMT!$MSGFMT$ac_delim
16246 GMSGFMT!$GMSGFMT$ac_delim
16247 XGETTEXT!$XGETTEXT$ac_delim
16248 MSGMERGE!$MSGMERGE$ac_delim
16249 RANLIB!$RANLIB$ac_delim
16250 ALLOCA!$ALLOCA$ac_delim
16251 GLIBC21!$GLIBC21$ac_delim
16252 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16253 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16254 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16255 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16256 LIBICONV!$LIBICONV$ac_delim
16257 LTLIBICONV!$LTLIBICONV$ac_delim
16258 INTLBISON!$INTLBISON$ac_delim
16259 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16260 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16261 CATOBJEXT!$CATOBJEXT$ac_delim
16262 DATADIRNAME!$DATADIRNAME$ac_delim
16263 INSTOBJEXT!$INSTOBJEXT$ac_delim
16264 GENCAT!$GENCAT$ac_delim
16265 INTLOBJS!$INTLOBJS$ac_delim
16266 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16267 INTLLIBS!$INTLLIBS$ac_delim
16268 LIBINTL!$LIBINTL$ac_delim
16269 LTLIBINTL!$LTLIBINTL$ac_delim
16270 POSUB!$POSUB$ac_delim
16271 BINARY_TYPE!$BINARY_TYPE$ac_delim
16272 LN!$LN$ac_delim
16273 LN_S!$LN_S$ac_delim
16274 MV!$MV$ac_delim
16275 CP!$CP$ac_delim
16276 RM!$RM$ac_delim
16277 CHMOD!$CHMOD$ac_delim
16278 AWK!$AWK$ac_delim
16279 SED!$SED$ac_delim
16280 PERL!$PERL$ac_delim
16281 LDCONFIG!$LDCONFIG$ac_delim
16282 AR!$AR$ac_delim
16283 STRIP!$STRIP$ac_delim
16284 MAKEINFO!$MAKEINFO$ac_delim
16285 BUILD_CC!$BUILD_CC$ac_delim
16286 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16287 SIZEOF_INT!$SIZEOF_INT$ac_delim
16288 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16289 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16290 SOCKET_LIB!$SOCKET_LIB$ac_delim
16291 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16292 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16293 LINUX_CMT!$LINUX_CMT$ac_delim
16294 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16295 UNIX_CMT!$UNIX_CMT$ac_delim
16296 root_prefix!$root_prefix$ac_delim
16297 root_bindir!$root_bindir$ac_delim
16298 root_sbindir!$root_sbindir$ac_delim
16299 root_libdir!$root_libdir$ac_delim
16300 root_sysconfdir!$root_sysconfdir$ac_delim
16301 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16302 SS_DIR!$SS_DIR$ac_delim
16303 ET_DIR!$ET_DIR$ac_delim
16304 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16305 INTL_FLAGS!$INTL_FLAGS$ac_delim
16306 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16307 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16308 LIBOBJS!$LIBOBJS$ac_delim
16309 LTLIBOBJS!$LTLIBOBJS$ac_delim
16310 _ACEOF
16311
16312   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
16313     break
16314   elif $ac_last_try; then
16315     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16316 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16317    { (exit 1); exit 1; }; }
16318   else
16319     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16320   fi
16321 done
16322
16323 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16324 if test -n "$ac_eof"; then
16325   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16326   ac_eof=`expr $ac_eof + 1`
16327 fi
16328
16329 cat >>$CONFIG_STATUS <<_ACEOF
16330 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16332 _ACEOF
16333 sed '
16334 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16335 s/^/s,@/; s/!/@,|#_!!_#|/
16336 :n
16337 t n
16338 s/'"$ac_delim"'$/,g/; t
16339 s/$/\\/; p
16340 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16341 ' >>$CONFIG_STATUS <conf$$subs.sed
16342 rm -f conf$$subs.sed
16343 cat >>$CONFIG_STATUS <<_ACEOF
16344 :end
16345 s/|#_!!_#|//g
16346 CEOF$ac_eof
16347 _ACEOF
16348
16349
16350 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16351 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16352 # trailing colons and then remove the whole line if VPATH becomes empty
16353 # (actually we leave an empty line to preserve line numbers).
16354 if test "x$srcdir" = x.; then
16355   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16356 s/:*\$(srcdir):*/:/
16357 s/:*\${srcdir}:*/:/
16358 s/:*@srcdir@:*/:/
16359 s/^\([^=]*=[     ]*\):*/\1/
16360 s/:*$//
16361 s/^[^=]*=[       ]*$//
16362 }'
16363 fi
16364
16365 cat >>$CONFIG_STATUS <<\_ACEOF
16366 fi # test -n "$CONFIG_FILES"
16367
16368
16369 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16370 do
16371   case $ac_tag in
16372   :[FHLC]) ac_mode=$ac_tag; continue;;
16373   esac
16374   case $ac_mode$ac_tag in
16375   :[FHL]*:*);;
16376   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16377 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16378    { (exit 1); exit 1; }; };;
16379   :[FH]-) ac_tag=-:-;;
16380   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16381   esac
16382   ac_save_IFS=$IFS
16383   IFS=:
16384   set x $ac_tag
16385   IFS=$ac_save_IFS
16386   shift
16387   ac_file=$1
16388   shift
16389
16390   case $ac_mode in
16391   :L) ac_source=$1;;
16392   :[FH])
16393     ac_file_inputs=
16394     for ac_f
16395     do
16396       case $ac_f in
16397       -) ac_f="$tmp/stdin";;
16398       *) # Look for the file first in the build tree, then in the source tree
16399          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16400          # because $ac_f cannot contain `:'.
16401          test -f "$ac_f" ||
16402            case $ac_f in
16403            [\\/$]*) false;;
16404            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16405            esac ||
16406            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16407 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16408    { (exit 1); exit 1; }; };;
16409       esac
16410       ac_file_inputs="$ac_file_inputs $ac_f"
16411     done
16412
16413     # Let's still pretend it is `configure' which instantiates (i.e., don't
16414     # use $as_me), people would be surprised to read:
16415     #    /* config.h.  Generated by config.status.  */
16416     configure_input="Generated from "`IFS=:
16417           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16418     if test x"$ac_file" != x-; then
16419       configure_input="$ac_file.  $configure_input"
16420       { echo "$as_me:$LINENO: creating $ac_file" >&5
16421 echo "$as_me: creating $ac_file" >&6;}
16422     fi
16423
16424     case $ac_tag in
16425     *:-:* | *:-) cat >"$tmp/stdin";;
16426     esac
16427     ;;
16428   esac
16429
16430   ac_dir=`$as_dirname -- "$ac_file" ||
16431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16432          X"$ac_file" : 'X\(//\)[^/]' \| \
16433          X"$ac_file" : 'X\(//\)$' \| \
16434          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16435 echo X"$ac_file" |
16436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16437             s//\1/
16438             q
16439           }
16440           /^X\(\/\/\)[^/].*/{
16441             s//\1/
16442             q
16443           }
16444           /^X\(\/\/\)$/{
16445             s//\1/
16446             q
16447           }
16448           /^X\(\/\).*/{
16449             s//\1/
16450             q
16451           }
16452           s/.*/./; q'`
16453   { as_dir="$ac_dir"
16454   case $as_dir in #(
16455   -*) as_dir=./$as_dir;;
16456   esac
16457   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16458     as_dirs=
16459     while :; do
16460       case $as_dir in #(
16461       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16462       *) as_qdir=$as_dir;;
16463       esac
16464       as_dirs="'$as_qdir' $as_dirs"
16465       as_dir=`$as_dirname -- "$as_dir" ||
16466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16467          X"$as_dir" : 'X\(//\)[^/]' \| \
16468          X"$as_dir" : 'X\(//\)$' \| \
16469          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16470 echo X"$as_dir" |
16471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16472             s//\1/
16473             q
16474           }
16475           /^X\(\/\/\)[^/].*/{
16476             s//\1/
16477             q
16478           }
16479           /^X\(\/\/\)$/{
16480             s//\1/
16481             q
16482           }
16483           /^X\(\/\).*/{
16484             s//\1/
16485             q
16486           }
16487           s/.*/./; q'`
16488       test -d "$as_dir" && break
16489     done
16490     test -z "$as_dirs" || eval "mkdir $as_dirs"
16491   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16492 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16493    { (exit 1); exit 1; }; }; }
16494   ac_builddir=.
16495
16496 case "$ac_dir" in
16497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16498 *)
16499   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16500   # A ".." for each directory in $ac_dir_suffix.
16501   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16502   case $ac_top_builddir_sub in
16503   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16504   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16505   esac ;;
16506 esac
16507 ac_abs_top_builddir=$ac_pwd
16508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16509 # for backward compatibility:
16510 ac_top_builddir=$ac_top_build_prefix
16511
16512 case $srcdir in
16513   .)  # We are building in place.
16514     ac_srcdir=.
16515     ac_top_srcdir=$ac_top_builddir_sub
16516     ac_abs_top_srcdir=$ac_pwd ;;
16517   [\\/]* | ?:[\\/]* )  # Absolute name.
16518     ac_srcdir=$srcdir$ac_dir_suffix;
16519     ac_top_srcdir=$srcdir
16520     ac_abs_top_srcdir=$srcdir ;;
16521   *) # Relative name.
16522     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16523     ac_top_srcdir=$ac_top_build_prefix$srcdir
16524     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16525 esac
16526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16527
16528
16529   case $ac_mode in
16530   :F)
16531   #
16532   # CONFIG_FILE
16533   #
16534
16535   case $INSTALL in
16536   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16537   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16538   esac
16539 _ACEOF
16540
16541 cat >>$CONFIG_STATUS <<\_ACEOF
16542 # If the template does not know about datarootdir, expand it.
16543 # FIXME: This hack should be removed a few years after 2.60.
16544 ac_datarootdir_hack=; ac_datarootdir_seen=
16545
16546 case `sed -n '/datarootdir/ {
16547   p
16548   q
16549 }
16550 /@datadir@/p
16551 /@docdir@/p
16552 /@infodir@/p
16553 /@localedir@/p
16554 /@mandir@/p
16555 ' $ac_file_inputs` in
16556 *datarootdir*) ac_datarootdir_seen=yes;;
16557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16558   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16559 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16560 _ACEOF
16561 cat >>$CONFIG_STATUS <<_ACEOF
16562   ac_datarootdir_hack='
16563   s&@datadir@&$datadir&g
16564   s&@docdir@&$docdir&g
16565   s&@infodir@&$infodir&g
16566   s&@localedir@&$localedir&g
16567   s&@mandir@&$mandir&g
16568     s&\\\${datarootdir}&$datarootdir&g' ;;
16569 esac
16570 _ACEOF
16571
16572 # Neutralize VPATH when `$srcdir' = `.'.
16573 # Shell code in configure.ac might set extrasub.
16574 # FIXME: do we really want to maintain this feature?
16575 cat >>$CONFIG_STATUS <<_ACEOF
16576   sed "$ac_vpsub
16577 $extrasub
16578 _ACEOF
16579 cat >>$CONFIG_STATUS <<\_ACEOF
16580 :t
16581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16582 s&@configure_input@&$configure_input&;t t
16583 s&@top_builddir@&$ac_top_builddir_sub&;t t
16584 s&@srcdir@&$ac_srcdir&;t t
16585 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16586 s&@top_srcdir@&$ac_top_srcdir&;t t
16587 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16588 s&@builddir@&$ac_builddir&;t t
16589 s&@abs_builddir@&$ac_abs_builddir&;t t
16590 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16591 s&@INSTALL@&$ac_INSTALL&;t t
16592 $ac_datarootdir_hack
16593 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16594
16595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16596   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16597   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16598   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16599 which seems to be undefined.  Please make sure it is defined." >&5
16600 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16601 which seems to be undefined.  Please make sure it is defined." >&2;}
16602
16603   rm -f "$tmp/stdin"
16604   case $ac_file in
16605   -) cat "$tmp/out"; rm -f "$tmp/out";;
16606   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16607   esac
16608  ;;
16609
16610
16611   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16612 echo "$as_me: executing $ac_file commands" >&6;}
16613  ;;
16614   esac
16615
16616
16617   case $ac_file$ac_mode in
16618     "default-1":C)
16619     for ac_file in $CONFIG_FILES; do
16620       # Support "outfile[:infile[:infile...]]"
16621       case "$ac_file" in
16622         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16623       esac
16624       # PO directories have a Makefile.in generated from Makefile.in.in.
16625       case "$ac_file" in */Makefile.in)
16626         # Adjust a relative srcdir.
16627         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16628         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16629         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16630         # In autoconf-2.13 it is called $ac_given_srcdir.
16631         # In autoconf-2.50 it is called $srcdir.
16632         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16633         case "$ac_given_srcdir" in
16634           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16635           /*) top_srcdir="$ac_given_srcdir" ;;
16636           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16637         esac
16638         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16639           rm -f "$ac_dir/POTFILES"
16640           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16641           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16642           POMAKEFILEDEPS="POTFILES.in"
16643           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16644           # on $ac_dir but don't depend on user-specified configuration
16645           # parameters.
16646           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16647             # The LINGUAS file contains the set of available languages.
16648             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16649               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16650             fi
16651             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16652             # Hide the ALL_LINGUAS assigment from automake.
16653             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16654             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16655           else
16656             # The set of available languages was given in configure.in.
16657             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16658           fi
16659           # Compute POFILES
16660           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16661           # Compute UPDATEPOFILES
16662           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16663           # Compute DUMMYPOFILES
16664           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16665           # Compute GMOFILES
16666           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16667           case "$ac_given_srcdir" in
16668             .) srcdirpre= ;;
16669             *) srcdirpre='$(srcdir)/' ;;
16670           esac
16671           POFILES=
16672           UPDATEPOFILES=
16673           DUMMYPOFILES=
16674           GMOFILES=
16675           for lang in $ALL_LINGUAS; do
16676             POFILES="$POFILES $srcdirpre$lang.po"
16677             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16678             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16679             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16680           done
16681           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16682           # environment variable.
16683           INST_LINGUAS=
16684           if test -n "$ALL_LINGUAS"; then
16685             for presentlang in $ALL_LINGUAS; do
16686               useit=no
16687               if test "%UNSET%" != "$LINGUAS"; then
16688                 desiredlanguages="$LINGUAS"
16689               else
16690                 desiredlanguages="$ALL_LINGUAS"
16691               fi
16692               for desiredlang in $desiredlanguages; do
16693                 # Use the presentlang catalog if desiredlang is
16694                 #   a. equal to presentlang, or
16695                 #   b. a variant of presentlang (because in this case,
16696                 #      presentlang can be used as a fallback for messages
16697                 #      which are not translated in the desiredlang catalog).
16698                 case "$desiredlang" in
16699                   "$presentlang"*) useit=yes;;
16700                 esac
16701               done
16702               if test $useit = yes; then
16703                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16704               fi
16705             done
16706           fi
16707           CATALOGS=
16708           if test -n "$INST_LINGUAS"; then
16709             for lang in $INST_LINGUAS; do
16710               CATALOGS="$CATALOGS $lang.gmo"
16711             done
16712           fi
16713           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16714           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"
16715           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16716             if test -f "$f"; then
16717               case "$f" in
16718                 *.orig | *.bak | *~) ;;
16719                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16720               esac
16721             fi
16722           done
16723         fi
16724         ;;
16725       esac
16726     done ;;
16727
16728   esac
16729 done # for ac_tag
16730
16731
16732 { (exit 0); exit 0; }
16733 _ACEOF
16734 chmod +x $CONFIG_STATUS
16735 ac_clean_files=$ac_clean_files_save
16736
16737
16738 # configure is writing to config.log, and then calls config.status.
16739 # config.status does its own redirection, appending to config.log.
16740 # Unfortunately, on DOS this fails, as config.log is still kept open
16741 # by configure, so config.status won't be able to write to it; its
16742 # output is simply discarded.  So we exec the FD to /dev/null,
16743 # effectively closing config.log, so it can be properly (re)opened and
16744 # appended to by config.status.  When coming back to configure, we
16745 # need to make the FD available again.
16746 if test "$no_create" != yes; then
16747   ac_cs_success=:
16748   ac_config_status_args=
16749   test "$silent" = yes &&
16750     ac_config_status_args="$ac_config_status_args --quiet"
16751   exec 5>/dev/null
16752   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16753   exec 5>>config.log
16754   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16755   # would make configure fail if this is the last instruction.
16756   $ac_cs_success || { (exit 1); exit 1; }
16757 fi
16758
16759 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16760