OSDN Git Service

mke2fs: get device topology values from blkid
[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.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="version.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 BUILD_LDFLAGS
641 BUILD_CFLAGS
642 INTL_FLAGS
643 DO_TEST_SUITE
644 ET_DIR
645 SS_DIR
646 LDFLAG_STATIC
647 root_sysconfdir
648 root_libdir
649 root_sbindir
650 root_bindir
651 root_prefix
652 UNIX_CMT
653 CYGWIN_CMT
654 LINUX_CMT
655 UNI_DIFF_OPTS
656 SEM_INIT_LIB
657 DLOPEN_LIB
658 SOCKET_LIB
659 SIZEOF_LONG_LONG
660 SIZEOF_LONG
661 SIZEOF_INT
662 SIZEOF_SHORT
663 BUILD_CC
664 MAKEINFO
665 STRIP
666 AR
667 LDCONFIG
668 PERL
669 SED
670 AWK
671 CHMOD
672 RM
673 CP
674 MV
675 LN_S
676 LN
677 ifNotGNUmake
678 ifGNUmake
679 BINARY_TYPE
680 POSUB
681 LTLIBINTL
682 LIBINTL
683 INTLLIBS
684 INTL_LIBTOOL_SUFFIX_PREFIX
685 INTLOBJS
686 GENCAT
687 INSTOBJEXT
688 DATADIRNAME
689 CATOBJEXT
690 USE_INCLUDED_LIBINTL
691 BUILD_INCLUDED_LIBINTL
692 INTLBISON
693 LTLIBICONV
694 LIBICONV
695 HAVE_WPRINTF
696 HAVE_SNPRINTF
697 HAVE_ASPRINTF
698 HAVE_POSIX_PRINTF
699 GLIBC21
700 ALLOCA
701 RANLIB
702 MSGMERGE
703 XGETTEXT
704 GMSGFMT
705 MSGFMT
706 USE_NLS
707 MKINSTALLDIRS
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 SET_MAKE
712 VERSION
713 PACKAGE
714 GETTEXT_PACKAGE
715 UUIDD_CMT
716 E2INITRD_MAN
717 E2INITRD_PROG
718 FSCK_MAN
719 FSCK_PROG
720 RESIZER_CMT
721 IMAGER_CMT
722 DEBUGFS_CMT
723 BLKID_CMT
724 DEPPROFILED_LIBBLKID
725 PROFILED_LIBBLKID
726 DEPSTATIC_LIBBLKID
727 STATIC_LIBBLKID
728 DEPLIBBLKID
729 LIBBLKID
730 UUID_CMT
731 DEPPROFILED_LIBUUID
732 PROFILED_LIBUUID
733 DEPSTATIC_LIBUUID
734 STATIC_LIBUUID
735 DEPLIBUUID
736 LIBUUID
737 PKG_CONFIG
738 TEST_IO_CMT
739 PRIVATE_LIBS_CMT
740 LDFLAG_DYNAMIC
741 PROFILED_LIB_EXT
742 STATIC_LIB_EXT
743 LIB_EXT
744 CHECKER_CMT
745 PROFILE_CMT
746 BSDLIB_CMT
747 ELF_CMT
748 HTREE_CMT
749 Q
750 E
751 MAINTAINER_CMT
752 LINUX_INCLUDE
753 EGREP
754 GREP
755 CPP
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 E2FSPROGS_PKGVER
772 E2FSPROGS_VERSION
773 E2FSPROGS_DAY
774 E2FSPROGS_MONTH
775 E2FSPROGS_YEAR
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files='MCONFIG
814 MAKEFILE_ELF
815 MAKEFILE_BSDLIB
816 MAKEFILE_PROFILE
817 MAKEFILE_CHECKER
818 MAKEFILE_LIBRARY
819 ASM_TYPES_HEADER
820 PUBLIC_CONFIG_HEADER'
821 ac_user_opts='
822 enable_option_checking
823 with_diet_libc
824 with_cc
825 with_ccopts
826 with_ldopts
827 with_root_prefix
828 enable_maintainer_mode
829 enable_verbose_makecmds
830 enable_compression
831 enable_htree
832 enable_elf_shlibs
833 enable_bsd_shlibs
834 enable_profile
835 enable_checker
836 enable_jbd_debug
837 enable_blkid_debug
838 enable_testio_debug
839 enable_libuuid
840 enable_libblkid
841 enable_debugfs
842 enable_imager
843 enable_resizer
844 enable_fsck
845 enable_e2initrd_helper
846 enable_tls
847 enable_uuidd
848 enable_nls
849 with_gnu_ld
850 enable_rpath
851 with_libiconv_prefix
852 with_included_gettext
853 with_libintl_prefix
854 '
855       ac_precious_vars='build_alias
856 host_alias
857 target_alias
858 CC
859 CFLAGS
860 LDFLAGS
861 LIBS
862 CPPFLAGS
863 CPP
864 PKG_CONFIG'
865
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919   # If the previous option needs an argument, assign it.
920   if test -n "$ac_prev"; then
921     eval $ac_prev=\$ac_option
922     ac_prev=
923     continue
924   fi
925
926   case $ac_option in
927   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928   *)    ac_optarg=yes ;;
929   esac
930
931   # Accept the important Cygnus configure options, so we can diagnose typos.
932
933   case $ac_dashdash$ac_option in
934   --)
935     ac_dashdash=yes ;;
936
937   -bindir | --bindir | --bindi | --bind | --bin | --bi)
938     ac_prev=bindir ;;
939   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940     bindir=$ac_optarg ;;
941
942   -build | --build | --buil | --bui | --bu)
943     ac_prev=build_alias ;;
944   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945     build_alias=$ac_optarg ;;
946
947   -cache-file | --cache-file | --cache-fil | --cache-fi \
948   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949     ac_prev=cache_file ;;
950   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952     cache_file=$ac_optarg ;;
953
954   --config-cache | -C)
955     cache_file=config.cache ;;
956
957   -datadir | --datadir | --datadi | --datad)
958     ac_prev=datadir ;;
959   -datadir=* | --datadir=* | --datadi=* | --datad=*)
960     datadir=$ac_optarg ;;
961
962   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963   | --dataroo | --dataro | --datar)
964     ac_prev=datarootdir ;;
965   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967     datarootdir=$ac_optarg ;;
968
969   -disable-* | --disable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
974    { (exit 1); exit 1; }; }
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=no ;;
985
986   -docdir | --docdir | --docdi | --doc | --do)
987     ac_prev=docdir ;;
988   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989     docdir=$ac_optarg ;;
990
991   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992     ac_prev=dvidir ;;
993   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994     dvidir=$ac_optarg ;;
995
996   -enable-* | --enable-*)
997     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1001    { (exit 1); exit 1; }; }
1002     ac_useropt_orig=$ac_useropt
1003     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004     case $ac_user_opts in
1005       *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009          ac_unrecognized_sep=', ';;
1010     esac
1011     eval enable_$ac_useropt=\$ac_optarg ;;
1012
1013   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015   | --exec | --exe | --ex)
1016     ac_prev=exec_prefix ;;
1017   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019   | --exec=* | --exe=* | --ex=*)
1020     exec_prefix=$ac_optarg ;;
1021
1022   -gas | --gas | --ga | --g)
1023     # Obsolete; use --with-gas.
1024     with_gas=yes ;;
1025
1026   -help | --help | --hel | --he | -h)
1027     ac_init_help=long ;;
1028   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029     ac_init_help=recursive ;;
1030   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031     ac_init_help=short ;;
1032
1033   -host | --host | --hos | --ho)
1034     ac_prev=host_alias ;;
1035   -host=* | --host=* | --hos=* | --ho=*)
1036     host_alias=$ac_optarg ;;
1037
1038   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039     ac_prev=htmldir ;;
1040   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041   | --ht=*)
1042     htmldir=$ac_optarg ;;
1043
1044   -includedir | --includedir | --includedi | --included | --include \
1045   | --includ | --inclu | --incl | --inc)
1046     ac_prev=includedir ;;
1047   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048   | --includ=* | --inclu=* | --incl=* | --inc=*)
1049     includedir=$ac_optarg ;;
1050
1051   -infodir | --infodir | --infodi | --infod | --info | --inf)
1052     ac_prev=infodir ;;
1053   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054     infodir=$ac_optarg ;;
1055
1056   -libdir | --libdir | --libdi | --libd)
1057     ac_prev=libdir ;;
1058   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059     libdir=$ac_optarg ;;
1060
1061   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062   | --libexe | --libex | --libe)
1063     ac_prev=libexecdir ;;
1064   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065   | --libexe=* | --libex=* | --libe=*)
1066     libexecdir=$ac_optarg ;;
1067
1068   -localedir | --localedir | --localedi | --localed | --locale)
1069     ac_prev=localedir ;;
1070   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071     localedir=$ac_optarg ;;
1072
1073   -localstatedir | --localstatedir | --localstatedi | --localstated \
1074   | --localstate | --localstat | --localsta | --localst | --locals)
1075     ac_prev=localstatedir ;;
1076   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078     localstatedir=$ac_optarg ;;
1079
1080   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081     ac_prev=mandir ;;
1082   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083     mandir=$ac_optarg ;;
1084
1085   -nfp | --nfp | --nf)
1086     # Obsolete; use --without-fp.
1087     with_fp=no ;;
1088
1089   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090   | --no-cr | --no-c | -n)
1091     no_create=yes ;;
1092
1093   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095     no_recursion=yes ;;
1096
1097   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099   | --oldin | --oldi | --old | --ol | --o)
1100     ac_prev=oldincludedir ;;
1101   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104     oldincludedir=$ac_optarg ;;
1105
1106   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107     ac_prev=prefix ;;
1108   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109     prefix=$ac_optarg ;;
1110
1111   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112   | --program-pre | --program-pr | --program-p)
1113     ac_prev=program_prefix ;;
1114   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116     program_prefix=$ac_optarg ;;
1117
1118   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119   | --program-suf | --program-su | --program-s)
1120     ac_prev=program_suffix ;;
1121   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123     program_suffix=$ac_optarg ;;
1124
1125   -program-transform-name | --program-transform-name \
1126   | --program-transform-nam | --program-transform-na \
1127   | --program-transform-n | --program-transform- \
1128   | --program-transform | --program-transfor \
1129   | --program-transfo | --program-transf \
1130   | --program-trans | --program-tran \
1131   | --progr-tra | --program-tr | --program-t)
1132     ac_prev=program_transform_name ;;
1133   -program-transform-name=* | --program-transform-name=* \
1134   | --program-transform-nam=* | --program-transform-na=* \
1135   | --program-transform-n=* | --program-transform-=* \
1136   | --program-transform=* | --program-transfor=* \
1137   | --program-transfo=* | --program-transf=* \
1138   | --program-trans=* | --program-tran=* \
1139   | --progr-tra=* | --program-tr=* | --program-t=*)
1140     program_transform_name=$ac_optarg ;;
1141
1142   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143     ac_prev=pdfdir ;;
1144   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145     pdfdir=$ac_optarg ;;
1146
1147   -psdir | --psdir | --psdi | --psd | --ps)
1148     ac_prev=psdir ;;
1149   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150     psdir=$ac_optarg ;;
1151
1152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153   | -silent | --silent | --silen | --sile | --sil)
1154     silent=yes ;;
1155
1156   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157     ac_prev=sbindir ;;
1158   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159   | --sbi=* | --sb=*)
1160     sbindir=$ac_optarg ;;
1161
1162   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164   | --sharedst | --shareds | --shared | --share | --shar \
1165   | --sha | --sh)
1166     ac_prev=sharedstatedir ;;
1167   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170   | --sha=* | --sh=*)
1171     sharedstatedir=$ac_optarg ;;
1172
1173   -site | --site | --sit)
1174     ac_prev=site ;;
1175   -site=* | --site=* | --sit=*)
1176     site=$ac_optarg ;;
1177
1178   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179     ac_prev=srcdir ;;
1180   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181     srcdir=$ac_optarg ;;
1182
1183   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184   | --syscon | --sysco | --sysc | --sys | --sy)
1185     ac_prev=sysconfdir ;;
1186   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188     sysconfdir=$ac_optarg ;;
1189
1190   -target | --target | --targe | --targ | --tar | --ta | --t)
1191     ac_prev=target_alias ;;
1192   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193     target_alias=$ac_optarg ;;
1194
1195   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196     verbose=yes ;;
1197
1198   -version | --version | --versio | --versi | --vers | -V)
1199     ac_init_version=: ;;
1200
1201   -with-* | --with-*)
1202     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203     # Reject names that are not valid shell variable names.
1204     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1206    { (exit 1); exit 1; }; }
1207     ac_useropt_orig=$ac_useropt
1208     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209     case $ac_user_opts in
1210       *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214          ac_unrecognized_sep=', ';;
1215     esac
1216     eval with_$ac_useropt=\$ac_optarg ;;
1217
1218   -without-* | --without-*)
1219     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=no ;;
1234
1235   --x)
1236     # Obsolete; use --with-x.
1237     with_x=yes ;;
1238
1239   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240   | --x-incl | --x-inc | --x-in | --x-i)
1241     ac_prev=x_includes ;;
1242   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244     x_includes=$ac_optarg ;;
1245
1246   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248     ac_prev=x_libraries ;;
1249   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251     x_libraries=$ac_optarg ;;
1252
1253   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1254 Try \`$0 --help' for more information." >&2
1255    { (exit 1); exit 1; }; }
1256     ;;
1257
1258   *=*)
1259     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263    { (exit 1); exit 1; }; }
1264     eval $ac_envvar=\$ac_optarg
1265     export $ac_envvar ;;
1266
1267   *)
1268     # FIXME: should be removed in autoconf 3.0.
1269     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273     ;;
1274
1275   esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1281    { (exit 1); exit 1; }; }
1282 fi
1283
1284 if test -n "$ac_unrecognized_opts"; then
1285   case $enable_option_checking in
1286     no) ;;
1287     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1288    { (exit 1); exit 1; }; } ;;
1289     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290   esac
1291 fi
1292
1293 # Check all directory arguments for consistency.
1294 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295                 datadir sysconfdir sharedstatedir localstatedir includedir \
1296                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297                 libdir localedir mandir
1298 do
1299   eval ac_val=\$$ac_var
1300   # Remove trailing slashes.
1301   case $ac_val in
1302     */ )
1303       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304       eval $ac_var=\$ac_val;;
1305   esac
1306   # Be sure to have absolute directory names.
1307   case $ac_val in
1308     [\\/$]* | ?:[\\/]* )  continue;;
1309     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310   esac
1311   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312    { (exit 1); exit 1; }; }
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324   if test "x$build_alias" = x; then
1325     cross_compiling=maybe
1326     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327     If a cross compiler is detected then cross compile mode will be used." >&2
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1343    { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1346    { (exit 1); exit 1; }; }
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351   ac_srcdir_defaulted=yes
1352   # Try the directory containing this script, then the parent directory.
1353   ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355          X"$as_myself" : 'X\(//\)[^/]' \| \
1356          X"$as_myself" : 'X\(//\)$' \| \
1357          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)[^/].*/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\).*/{
1372             s//\1/
1373             q
1374           }
1375           s/.*/./; q'`
1376   srcdir=$ac_confdir
1377   if test ! -r "$srcdir/$ac_unique_file"; then
1378     srcdir=..
1379   fi
1380 else
1381   ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386    { (exit 1); exit 1; }; }
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1391    { (exit 1); exit 1; }; }
1392         pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395   srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_env_${ac_var}_value=\$${ac_var}
1406   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414   # Omit some internal or obsolete options to make the list less imposing.
1415   # This message is too long to be a string in the A/UX 3.1 sh.
1416   cat <<_ACEOF
1417 \`configure' configures this package to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427   -h, --help              display this help and exit
1428       --help=short        display options specific to this package
1429       --help=recursive    display the short help of all the included packages
1430   -V, --version           display version information and exit
1431   -q, --quiet, --silent   do not print \`checking...' messages
1432       --cache-file=FILE   cache test results in FILE [disabled]
1433   -C, --config-cache      alias for \`--cache-file=config.cache'
1434   -n, --no-create         do not create output files
1435       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438   --prefix=PREFIX         install architecture-independent files in PREFIX
1439                           [$ac_default_prefix]
1440   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                           [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451   --bindir=DIR            user executables [EPREFIX/bin]
1452   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1453   --libexecdir=DIR        program executables [EPREFIX/libexec]
1454   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1455   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1456   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1457   --libdir=DIR            object code libraries [EPREFIX/lib]
1458   --includedir=DIR        C header files [PREFIX/include]
1459   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1460   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1461   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1462   --infodir=DIR           info documentation [DATAROOTDIR/info]
1463   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1464   --mandir=DIR            man documentation [DATAROOTDIR/man]
1465   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1466   --htmldir=DIR           html documentation [DOCDIR]
1467   --dvidir=DIR            dvi documentation [DOCDIR]
1468   --pdfdir=DIR            pdf documentation [DOCDIR]
1469   --psdir=DIR             ps documentation [DOCDIR]
1470 _ACEOF
1471
1472   cat <<\_ACEOF
1473
1474 System types:
1475   --build=BUILD     configure for building on BUILD [guessed]
1476   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-option-checking  ignore unrecognized --enable/--with options
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --enable-maintainer-mode enable makefile rules useful for maintainers
1489   --enable-verbose-makecmds  enable verbose make command output
1490   --enable-compression    enable EXPERIMENTAL compression support
1491   --enable-htree          enable EXPERIMENTAL htree directory support
1492   --enable-elf-shlibs     select ELF shared libraries
1493   --enable-bsd-shlibs     select BSD shared libraries
1494   --enable-profile        build profiling libraries
1495   --enable-checker        build checker libraries
1496   --enable-jbd-debug      enable journal debugging
1497   --enable-blkid-debug    enable blkid debugging
1498   --disable-testio-debug  disable the use of the test I/O manager for debugging
1499   --disable-libuuid       do not build private uuid library
1500   --disable-libblkid      do not build private blkid library
1501   --disable-debugfs       disable support of debugfs program
1502   --disable-imager        disable support of e2image program
1503   --disable-resizer       disable support of e2resize program
1504   --enable-fsck           build fsck wrapper program
1505   --enable-e2initrd-helper build e2initrd-helper program
1506   --disable-tls           disable use of thread local support
1507   --disable-uuidd         disable building the uuid daemon
1508   --disable-nls           do not use Native Language Support
1509   --disable-rpath         do not hardcode runtime library paths
1510
1511 Optional Packages:
1512   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1513   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1514   --with-diet-libc        use diet libc
1515   --with-cc               no longer supported, use CC= instead
1516   --with-ccopts           no longer supported, use CFLAGS= instead
1517   --with-ldopts           no longer supported, use LDFLAGS= instead
1518   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1519   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1520   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1521   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1522   --with-included-gettext use the GNU gettext library included here
1523   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1524   --without-libintl-prefix     don't search for libintl in includedir and libdir
1525
1526 Some influential environment variables:
1527   CC          C compiler command
1528   CFLAGS      C compiler flags
1529   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1530               nonstandard directory <lib dir>
1531   LIBS        libraries to pass to the linker, e.g. -l<library>
1532   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533               you have headers in a nonstandard directory <include dir>
1534   CPP         C preprocessor
1535   PKG_CONFIG  path to pkg-config utility
1536
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1539
1540 _ACEOF
1541 ac_status=$?
1542 fi
1543
1544 if test "$ac_init_help" = "recursive"; then
1545   # If there are subdirs, report their specific --help.
1546   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547     test -d "$ac_dir" ||
1548       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549       continue
1550     ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556   # A ".." for each directory in $ac_dir_suffix.
1557   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558   case $ac_top_builddir_sub in
1559   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561   esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569   .)  # We are building in place.
1570     ac_srcdir=.
1571     ac_top_srcdir=$ac_top_builddir_sub
1572     ac_abs_top_srcdir=$ac_pwd ;;
1573   [\\/]* | ?:[\\/]* )  # Absolute name.
1574     ac_srcdir=$srcdir$ac_dir_suffix;
1575     ac_top_srcdir=$srcdir
1576     ac_abs_top_srcdir=$srcdir ;;
1577   *) # Relative name.
1578     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579     ac_top_srcdir=$ac_top_build_prefix$srcdir
1580     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584     cd "$ac_dir" || { ac_status=$?; continue; }
1585     # Check for guested configure.
1586     if test -f "$ac_srcdir/configure.gnu"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589     elif test -f "$ac_srcdir/configure"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure" --help=recursive
1592     else
1593       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594     fi || ac_status=$?
1595     cd "$ac_pwd" || { ac_status=$?; break; }
1596   done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601   cat <<\_ACEOF
1602 configure
1603 generated by GNU Autoconf 2.63
1604
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610   exit
1611 fi
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1615
1616 It was created by $as_me, which was
1617 generated by GNU Autoconf 2.63.  Invocation command line was
1618
1619   $ $0 $@
1620
1621 _ACEOF
1622 exec 5>>config.log
1623 {
1624 cat <<_ASUNAME
1625 ## --------- ##
1626 ## Platform. ##
1627 ## --------- ##
1628
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1637
1638 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1639 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1642 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1643 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1644 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1645
1646 _ASUNAME
1647
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651   IFS=$as_save_IFS
1652   test -z "$as_dir" && as_dir=.
1653   $as_echo "PATH: $as_dir"
1654 done
1655 IFS=$as_save_IFS
1656
1657 } >&5
1658
1659 cat >&5 <<_ACEOF
1660
1661
1662 ## ----------- ##
1663 ## Core tests. ##
1664 ## ----------- ##
1665
1666 _ACEOF
1667
1668
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_configure_args=
1675 ac_configure_args0=
1676 ac_configure_args1=
1677 ac_must_keep_next=false
1678 for ac_pass in 1 2
1679 do
1680   for ac_arg
1681   do
1682     case $ac_arg in
1683     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685     | -silent | --silent | --silen | --sile | --sil)
1686       continue ;;
1687     *\'*)
1688       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689     esac
1690     case $ac_pass in
1691     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692     2)
1693       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694       if test $ac_must_keep_next = true; then
1695         ac_must_keep_next=false # Got value, back to normal.
1696       else
1697         case $ac_arg in
1698           *=* | --config-cache | -C | -disable-* | --disable-* \
1699           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701           | -with-* | --with-* | -without-* | --without-* | --x)
1702             case "$ac_configure_args0 " in
1703               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704             esac
1705             ;;
1706           -* ) ac_must_keep_next=true ;;
1707         esac
1708       fi
1709       ac_configure_args="$ac_configure_args '$ac_arg'"
1710       ;;
1711     esac
1712   done
1713 done
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log.  We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723   # Save into config.log some information that might help in debugging.
1724   {
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1731 _ASBOX
1732     echo
1733     # The following way of writing the cache mishandles newlines in values,
1734 (
1735   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736     eval ac_val=\$$ac_var
1737     case $ac_val in #(
1738     *${as_nl}*)
1739       case $ac_var in #(
1740       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1742       esac
1743       case $ac_var in #(
1744       _ | IFS | as_nl) ;; #(
1745       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1746       *) $as_unset $ac_var ;;
1747       esac ;;
1748     esac
1749   done
1750   (set) 2>&1 |
1751     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752     *${as_nl}ac_space=\ *)
1753       sed -n \
1754         "s/'\''/'\''\\\\'\'''\''/g;
1755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756       ;; #(
1757     *)
1758       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759       ;;
1760     esac |
1761     sort
1762 )
1763     echo
1764
1765     cat <<\_ASBOX
1766 ## ----------------- ##
1767 ## Output variables. ##
1768 ## ----------------- ##
1769 _ASBOX
1770     echo
1771     for ac_var in $ac_subst_vars
1772     do
1773       eval ac_val=\$$ac_var
1774       case $ac_val in
1775       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776       esac
1777       $as_echo "$ac_var='\''$ac_val'\''"
1778     done | sort
1779     echo
1780
1781     if test -n "$ac_subst_files"; then
1782       cat <<\_ASBOX
1783 ## ------------------- ##
1784 ## File substitutions. ##
1785 ## ------------------- ##
1786 _ASBOX
1787       echo
1788       for ac_var in $ac_subst_files
1789       do
1790         eval ac_val=\$$ac_var
1791         case $ac_val in
1792         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793         esac
1794         $as_echo "$ac_var='\''$ac_val'\''"
1795       done | sort
1796       echo
1797     fi
1798
1799     if test -s confdefs.h; then
1800       cat <<\_ASBOX
1801 ## ----------- ##
1802 ## confdefs.h. ##
1803 ## ----------- ##
1804 _ASBOX
1805       echo
1806       cat confdefs.h
1807       echo
1808     fi
1809     test "$ac_signal" != 0 &&
1810       $as_echo "$as_me: caught signal $ac_signal"
1811     $as_echo "$as_me: exit $exit_status"
1812   } >&5
1813   rm -f core *.core core.conftest.* &&
1814     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815     exit $exit_status
1816 ' 0
1817 for ac_signal in 1 2 13 15; do
1818   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 done
1820 ac_signal=0
1821
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1824
1825 # Predefined preprocessor variables.
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_NAME "$PACKAGE_NAME"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_STRING "$PACKAGE_STRING"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 _ACEOF
1850
1851
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer an explicitly selected file to automatically selected ones.
1854 ac_site_file1=NONE
1855 ac_site_file2=NONE
1856 if test -n "$CONFIG_SITE"; then
1857   ac_site_file1=$CONFIG_SITE
1858 elif test "x$prefix" != xNONE; then
1859   ac_site_file1=$prefix/share/config.site
1860   ac_site_file2=$prefix/etc/config.site
1861 else
1862   ac_site_file1=$ac_default_prefix/share/config.site
1863   ac_site_file2=$ac_default_prefix/etc/config.site
1864 fi
1865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1866 do
1867   test "x$ac_site_file" = xNONE && continue
1868   if test -r "$ac_site_file"; then
1869     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1871     sed 's/^/| /' "$ac_site_file" >&5
1872     . "$ac_site_file"
1873   fi
1874 done
1875
1876 if test -r "$cache_file"; then
1877   # Some versions of bash will fail to source /dev/null (special
1878   # files actually), so we avoid doing that.
1879   if test -f "$cache_file"; then
1880     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1881 $as_echo "$as_me: loading cache $cache_file" >&6;}
1882     case $cache_file in
1883       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884       *)                      . "./$cache_file";;
1885     esac
1886   fi
1887 else
1888   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1889 $as_echo "$as_me: creating cache $cache_file" >&6;}
1890   >$cache_file
1891 fi
1892
1893 # Check that the precious variables saved in the cache have kept the same
1894 # value.
1895 ac_cache_corrupted=false
1896 for ac_var in $ac_precious_vars; do
1897   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1898   eval ac_new_set=\$ac_env_${ac_var}_set
1899   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1900   eval ac_new_val=\$ac_env_${ac_var}_value
1901   case $ac_old_set,$ac_new_set in
1902     set,)
1903       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1904 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1905       ac_cache_corrupted=: ;;
1906     ,set)
1907       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1908 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1909       ac_cache_corrupted=: ;;
1910     ,);;
1911     *)
1912       if test "x$ac_old_val" != "x$ac_new_val"; then
1913         # differences in whitespace do not lead to failure.
1914         ac_old_val_w=`echo x $ac_old_val`
1915         ac_new_val_w=`echo x $ac_new_val`
1916         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1917           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1918 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1919           ac_cache_corrupted=:
1920         else
1921           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1922 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1923           eval $ac_var=\$ac_old_val
1924         fi
1925         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1926 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1927         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1928 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1929       fi;;
1930   esac
1931   # Pass precious variables to config.status.
1932   if test "$ac_new_set" = set; then
1933     case $ac_new_val in
1934     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1935     *) ac_arg=$ac_var=$ac_new_val ;;
1936     esac
1937     case " $ac_configure_args " in
1938       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1939       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1940     esac
1941   fi
1942 done
1943 if $ac_cache_corrupted; then
1944   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1946   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1947 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1948   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1949 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974
1975
1976
1977 ac_aux_dir=
1978 for ac_dir in config "$srcdir"/config; do
1979   if test -f "$ac_dir/install-sh"; then
1980     ac_aux_dir=$ac_dir
1981     ac_install_sh="$ac_aux_dir/install-sh -c"
1982     break
1983   elif test -f "$ac_dir/install.sh"; then
1984     ac_aux_dir=$ac_dir
1985     ac_install_sh="$ac_aux_dir/install.sh -c"
1986     break
1987   elif test -f "$ac_dir/shtool"; then
1988     ac_aux_dir=$ac_dir
1989     ac_install_sh="$ac_aux_dir/shtool install -c"
1990     break
1991   fi
1992 done
1993 if test -z "$ac_aux_dir"; then
1994   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1995 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 # These three variables are undocumented and unsupported,
2000 # and are intended to be withdrawn in a future Autoconf release.
2001 # They can cause serious problems if a builder's source tree is in a directory
2002 # whose full name contains unusual characters.
2003 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2004 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2005 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2006
2007
2008 MCONFIG=./MCONFIG
2009
2010 BINARY_TYPE=bin
2011 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2012         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2013 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2014         | tr \" " "`
2015 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2016 MONTH=`echo $DATE | awk -F- '{print $2}'`
2017 YEAR=`echo $DATE | awk -F- '{print $3}'`
2018
2019 if expr $YEAR ">" 1900 > /dev/null ; then
2020         E2FSPROGS_YEAR=$YEAR
2021 elif expr $YEAR ">" 90 >/dev/null ; then
2022         E2FSPROGS_YEAR=19$YEAR
2023 else
2024         E2FSPROGS_YEAR=20$YEAR
2025 fi
2026
2027 case $MONTH in
2028 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2029 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2030 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2031 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2032 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2033 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2034 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2035 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2036 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2037 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2038 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2039 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2040 *)      { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2041 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2042 esac
2043
2044 base_ver=`echo $E2FSPROGS_VERSION | \
2045                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2046
2047 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2048
2049 case $E2FSPROGS_VERSION in
2050 *-WIP|pre-*)
2051         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2052         ;;
2053 *)
2054         E2FSPROGS_PKGVER="$base_ver"
2055         ;;
2056 esac
2057
2058 unset DATE MONTH YEAR base_ver pre_vers date_spec
2059 { $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2060 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2061 { $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2062 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2063
2064
2065
2066
2067
2068 # Make sure we can run config.sub.
2069 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2070   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2071 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2072    { (exit 1); exit 1; }; }
2073
2074 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2075 $as_echo_n "checking build system type... " >&6; }
2076 if test "${ac_cv_build+set}" = set; then
2077   $as_echo_n "(cached) " >&6
2078 else
2079   ac_build_alias=$build_alias
2080 test "x$ac_build_alias" = x &&
2081   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2082 test "x$ac_build_alias" = x &&
2083   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2084 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2085    { (exit 1); exit 1; }; }
2086 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2087   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2088 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2089    { (exit 1); exit 1; }; }
2090
2091 fi
2092 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2093 $as_echo "$ac_cv_build" >&6; }
2094 case $ac_cv_build in
2095 *-*-*) ;;
2096 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2097 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2098    { (exit 1); exit 1; }; };;
2099 esac
2100 build=$ac_cv_build
2101 ac_save_IFS=$IFS; IFS='-'
2102 set x $ac_cv_build
2103 shift
2104 build_cpu=$1
2105 build_vendor=$2
2106 shift; shift
2107 # Remember, the first character of IFS is used to create $*,
2108 # except with old shells:
2109 build_os=$*
2110 IFS=$ac_save_IFS
2111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2112
2113
2114 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2115 $as_echo_n "checking host system type... " >&6; }
2116 if test "${ac_cv_host+set}" = set; then
2117   $as_echo_n "(cached) " >&6
2118 else
2119   if test "x$host_alias" = x; then
2120   ac_cv_host=$ac_cv_build
2121 else
2122   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2123     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2124 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2125    { (exit 1); exit 1; }; }
2126 fi
2127
2128 fi
2129 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2130 $as_echo "$ac_cv_host" >&6; }
2131 case $ac_cv_host in
2132 *-*-*) ;;
2133 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2134 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2135    { (exit 1); exit 1; }; };;
2136 esac
2137 host=$ac_cv_host
2138 ac_save_IFS=$IFS; IFS='-'
2139 set x $ac_cv_host
2140 shift
2141 host_cpu=$1
2142 host_vendor=$2
2143 shift; shift
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2146 host_os=$*
2147 IFS=$ac_save_IFS
2148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2149
2150
2151 WITH_DIET_LIBC=
2152
2153 # Check whether --with-diet-libc was given.
2154 if test "${with_diet_libc+set}" = set; then
2155   withval=$with_diet_libc; CC="diet cc -nostdinc"
2156 WITH_DIET_LIBC=yes
2157 { $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2158 $as_echo "CC=$CC" >&6; }
2159 fi
2160
2161 # Check whether --with-cc was given.
2162 if test "${with_cc+set}" = set; then
2163   withval=$with_cc; { { $as_echo "$as_me:$LINENO: error: --with-cc no longer supported; use CC= instead" >&5
2164 $as_echo "$as_me: error: --with-cc no longer supported; use CC= instead" >&2;}
2165    { (exit 1); exit 1; }; }
2166 fi
2167
2168
2169 # Check whether --with-ccopts was given.
2170 if test "${with_ccopts+set}" = set; then
2171   withval=$with_ccopts; { { $as_echo "$as_me:$LINENO: error: --with-ccopts no longer supported; use CFLAGS= instead" >&5
2172 $as_echo "$as_me: error: --with-ccopts no longer supported; use CFLAGS= instead" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176
2177 # Check whether --with-ldopts was given.
2178 if test "${with_ldopts+set}" = set; then
2179   withval=$with_ldopts; { { $as_echo "$as_me:$LINENO: error: --with-ldopts no longer supported; use LDFLAGS= instead" >&5
2180 $as_echo "$as_me: error: --with-ldopts no longer supported; use LDFLAGS= instead" >&2;}
2181    { (exit 1); exit 1; }; }
2182 fi
2183
2184 ac_ext=c
2185 ac_cpp='$CPP $CPPFLAGS'
2186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189 if test -n "$ac_tool_prefix"; then
2190   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if test "${ac_cv_prog_CC+set}" = set; then
2195   $as_echo_n "(cached) " >&6
2196 else
2197   if test -n "$CC"; then
2198   ac_cv_prog_CC="$CC" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   for ac_exec_ext in '' $ac_executable_extensions; do
2206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2214
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2220 $as_echo "$CC" >&6; }
2221 else
2222   { $as_echo "$as_me:$LINENO: result: no" >&5
2223 $as_echo "no" >&6; }
2224 fi
2225
2226
2227 fi
2228 if test -z "$ac_cv_prog_CC"; then
2229   ac_ct_CC=$CC
2230   # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 $as_echo_n "checking for $ac_word... " >&6; }
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235   $as_echo_n "(cached) " >&6
2236 else
2237   if test -n "$ac_ct_CC"; then
2238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247     ac_cv_prog_ac_ct_CC="gcc"
2248     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253 IFS=$as_save_IFS
2254
2255 fi
2256 fi
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 $as_echo "$ac_ct_CC" >&6; }
2261 else
2262   { $as_echo "$as_me:$LINENO: result: no" >&5
2263 $as_echo "no" >&6; }
2264 fi
2265
2266   if test "x$ac_ct_CC" = x; then
2267     CC=""
2268   else
2269     case $cross_compiling:$ac_tool_warned in
2270 yes:)
2271 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2273 ac_tool_warned=yes ;;
2274 esac
2275     CC=$ac_ct_CC
2276   fi
2277 else
2278   CC="$ac_cv_prog_CC"
2279 fi
2280
2281 if test -z "$CC"; then
2282           if test -n "$ac_tool_prefix"; then
2283     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}cc; ac_word=$2
2285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   $as_echo_n "(cached) " >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300     ac_cv_prog_CC="${ac_tool_prefix}cc"
2301     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309 fi
2310 CC=$ac_cv_prog_CC
2311 if test -n "$CC"; then
2312   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2313 $as_echo "$CC" >&6; }
2314 else
2315   { $as_echo "$as_me:$LINENO: result: no" >&5
2316 $as_echo "no" >&6; }
2317 fi
2318
2319
2320   fi
2321 fi
2322 if test -z "$CC"; then
2323   # Extract the first word of "cc", so it can be a program name with args.
2324 set dummy cc; ac_word=$2
2325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328   $as_echo_n "(cached) " >&6
2329 else
2330   if test -n "$CC"; then
2331   ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333   ac_prog_rejected=no
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337   IFS=$as_save_IFS
2338   test -z "$as_dir" && as_dir=.
2339   for ac_exec_ext in '' $ac_executable_extensions; do
2340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2342        ac_prog_rejected=yes
2343        continue
2344      fi
2345     ac_cv_prog_CC="cc"
2346     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347     break 2
2348   fi
2349 done
2350 done
2351 IFS=$as_save_IFS
2352
2353 if test $ac_prog_rejected = yes; then
2354   # We found a bogon in the path, so make sure we never use it.
2355   set dummy $ac_cv_prog_CC
2356   shift
2357   if test $# != 0; then
2358     # We chose a different compiler from the bogus one.
2359     # However, it has the same basename, so the bogon will be chosen
2360     # first if we set CC to just the basename; use the full file name.
2361     shift
2362     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2363   fi
2364 fi
2365 fi
2366 fi
2367 CC=$ac_cv_prog_CC
2368 if test -n "$CC"; then
2369   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2370 $as_echo "$CC" >&6; }
2371 else
2372   { $as_echo "$as_me:$LINENO: result: no" >&5
2373 $as_echo "no" >&6; }
2374 fi
2375
2376
2377 fi
2378 if test -z "$CC"; then
2379   if test -n "$ac_tool_prefix"; then
2380   for ac_prog in cl.exe
2381   do
2382     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if test "${ac_cv_prog_CC+set}" = set; then
2387   $as_echo_n "(cached) " >&6
2388 else
2389   if test -n "$CC"; then
2390   ac_cv_prog_CC="$CC" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395   IFS=$as_save_IFS
2396   test -z "$as_dir" && as_dir=.
2397   for ac_exec_ext in '' $ac_executable_extensions; do
2398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2400     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401     break 2
2402   fi
2403 done
2404 done
2405 IFS=$as_save_IFS
2406
2407 fi
2408 fi
2409 CC=$ac_cv_prog_CC
2410 if test -n "$CC"; then
2411   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2412 $as_echo "$CC" >&6; }
2413 else
2414   { $as_echo "$as_me:$LINENO: result: no" >&5
2415 $as_echo "no" >&6; }
2416 fi
2417
2418
2419     test -n "$CC" && break
2420   done
2421 fi
2422 if test -z "$CC"; then
2423   ac_ct_CC=$CC
2424   for ac_prog in cl.exe
2425 do
2426   # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431   $as_echo_n "(cached) " >&6
2432 else
2433   if test -n "$ac_ct_CC"; then
2434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443     ac_cv_prog_ac_ct_CC="$ac_prog"
2444     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 $as_echo "$ac_ct_CC" >&6; }
2457 else
2458   { $as_echo "$as_me:$LINENO: result: no" >&5
2459 $as_echo "no" >&6; }
2460 fi
2461
2462
2463   test -n "$ac_ct_CC" && break
2464 done
2465
2466   if test "x$ac_ct_CC" = x; then
2467     CC=""
2468   else
2469     case $cross_compiling:$ac_tool_warned in
2470 yes:)
2471 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2473 ac_tool_warned=yes ;;
2474 esac
2475     CC=$ac_ct_CC
2476   fi
2477 fi
2478
2479 fi
2480
2481
2482 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details." >&5
2486 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }; }
2489
2490 # Provide some information about the compiler.
2491 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2492 set X $ac_compile
2493 ac_compiler=$2
2494 { (ac_try="$ac_compiler --version >&5"
2495 case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2500 $as_echo "$ac_try_echo") >&5
2501   (eval "$ac_compiler --version >&5") 2>&5
2502   ac_status=$?
2503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }
2505 { (ac_try="$ac_compiler -v >&5"
2506 case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2511 $as_echo "$ac_try_echo") >&5
2512   (eval "$ac_compiler -v >&5") 2>&5
2513   ac_status=$?
2514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }
2516 { (ac_try="$ac_compiler -V >&5"
2517 case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2522 $as_echo "$ac_try_echo") >&5
2523   (eval "$ac_compiler -V >&5") 2>&5
2524   ac_status=$?
2525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }
2527
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 ac_clean_files_save=$ac_clean_files
2544 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2545 # Try to create an executable without -o first, disregard a.out.
2546 # It will help us diagnose broken compilers, and finding out an intuition
2547 # of exeext.
2548 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2549 $as_echo_n "checking for C compiler default output file name... " >&6; }
2550 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2551
2552 # The possible output files:
2553 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2554
2555 ac_rmfiles=
2556 for ac_file in $ac_files
2557 do
2558   case $ac_file in
2559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2560     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2561   esac
2562 done
2563 rm -f $ac_rmfiles
2564
2565 if { (ac_try="$ac_link_default"
2566 case "(($ac_try" in
2567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568   *) ac_try_echo=$ac_try;;
2569 esac
2570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2571 $as_echo "$ac_try_echo") >&5
2572   (eval "$ac_link_default") 2>&5
2573   ac_status=$?
2574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; then
2576   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2577 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2578 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2579 # so that the user can short-circuit this test for compilers unknown to
2580 # Autoconf.
2581 for ac_file in $ac_files ''
2582 do
2583   test -f "$ac_file" || continue
2584   case $ac_file in
2585     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2586         ;;
2587     [ab].out )
2588         # We found the default executable, but exeext='' is most
2589         # certainly right.
2590         break;;
2591     *.* )
2592         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2593         then :; else
2594            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2595         fi
2596         # We set ac_cv_exeext here because the later test for it is not
2597         # safe: cross compilers may not add the suffix if given an `-o'
2598         # argument, so we may need to know it at that point already.
2599         # Even if this section looks crufty: it has the advantage of
2600         # actually working.
2601         break;;
2602     * )
2603         break;;
2604   esac
2605 done
2606 test "$ac_cv_exeext" = no && ac_cv_exeext=
2607
2608 else
2609   ac_file=''
2610 fi
2611
2612 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2613 $as_echo "$ac_file" >&6; }
2614 if test -z "$ac_file"; then
2615   $as_echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2621 See \`config.log' for more details." >&5
2622 $as_echo "$as_me: error: C compiler cannot create executables
2623 See \`config.log' for more details." >&2;}
2624    { (exit 77); exit 77; }; }; }
2625 fi
2626
2627 ac_exeext=$ac_cv_exeext
2628
2629 # Check that the compiler produces executables we can run.  If not, either
2630 # the compiler is broken, or we cross compile.
2631 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2632 $as_echo_n "checking whether the C compiler works... " >&6; }
2633 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2634 # If not cross compiling, check that we can run a simple program.
2635 if test "$cross_compiling" != yes; then
2636   if { ac_try='./$ac_file'
2637   { (case "(($ac_try" in
2638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639   *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2642 $as_echo "$ac_try_echo") >&5
2643   (eval "$ac_try") 2>&5
2644   ac_status=$?
2645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; }; then
2647     cross_compiling=no
2648   else
2649     if test "$cross_compiling" = maybe; then
2650         cross_compiling=yes
2651     else
2652         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2655 If you meant to cross compile, use \`--host'.
2656 See \`config.log' for more details." >&5
2657 $as_echo "$as_me: error: cannot run C compiled programs.
2658 If you meant to cross compile, use \`--host'.
2659 See \`config.log' for more details." >&2;}
2660    { (exit 1); exit 1; }; }; }
2661     fi
2662   fi
2663 fi
2664 { $as_echo "$as_me:$LINENO: result: yes" >&5
2665 $as_echo "yes" >&6; }
2666
2667 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2668 ac_clean_files=$ac_clean_files_save
2669 # Check that the compiler produces executables we can run.  If not, either
2670 # the compiler is broken, or we cross compile.
2671 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2672 $as_echo_n "checking whether we are cross compiling... " >&6; }
2673 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2674 $as_echo "$cross_compiling" >&6; }
2675
2676 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2677 $as_echo_n "checking for suffix of executables... " >&6; }
2678 if { (ac_try="$ac_link"
2679 case "(($ac_try" in
2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681   *) ac_try_echo=$ac_try;;
2682 esac
2683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2684 $as_echo "$ac_try_echo") >&5
2685   (eval "$ac_link") 2>&5
2686   ac_status=$?
2687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; then
2689   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2690 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2691 # work properly (i.e., refer to `conftest.exe'), while it won't with
2692 # `rm'.
2693 for ac_file in conftest.exe conftest conftest.*; do
2694   test -f "$ac_file" || continue
2695   case $ac_file in
2696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2697     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2698           break;;
2699     * ) break;;
2700   esac
2701 done
2702 else
2703   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2706 See \`config.log' for more details." >&5
2707 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2708 See \`config.log' for more details." >&2;}
2709    { (exit 1); exit 1; }; }; }
2710 fi
2711
2712 rm -f conftest$ac_cv_exeext
2713 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2714 $as_echo "$ac_cv_exeext" >&6; }
2715
2716 rm -f conftest.$ac_ext
2717 EXEEXT=$ac_cv_exeext
2718 ac_exeext=$EXEEXT
2719 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2720 $as_echo_n "checking for suffix of object files... " >&6; }
2721 if test "${ac_cv_objext+set}" = set; then
2722   $as_echo_n "(cached) " >&6
2723 else
2724   cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730
2731 int
2732 main ()
2733 {
2734
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.o conftest.obj
2740 if { (ac_try="$ac_compile"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2746 $as_echo "$ac_try_echo") >&5
2747   (eval "$ac_compile") 2>&5
2748   ac_status=$?
2749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; then
2751   for ac_file in conftest.o conftest.obj conftest.*; do
2752   test -f "$ac_file" || continue;
2753   case $ac_file in
2754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2755     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2756        break;;
2757   esac
2758 done
2759 else
2760   $as_echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2766 See \`config.log' for more details." >&5
2767 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2768 See \`config.log' for more details." >&2;}
2769    { (exit 1); exit 1; }; }; }
2770 fi
2771
2772 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2773 fi
2774 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2775 $as_echo "$ac_cv_objext" >&6; }
2776 OBJEXT=$ac_cv_objext
2777 ac_objext=$OBJEXT
2778 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2779 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2780 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2781   $as_echo_n "(cached) " >&6
2782 else
2783   cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h.  */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h.  */
2789
2790 int
2791 main ()
2792 {
2793 #ifndef __GNUC__
2794        choke me
2795 #endif
2796
2797   ;
2798   return 0;
2799 }
2800 _ACEOF
2801 rm -f conftest.$ac_objext
2802 if { (ac_try="$ac_compile"
2803 case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808 $as_echo "$ac_try_echo") >&5
2809   (eval "$ac_compile") 2>conftest.er1
2810   ac_status=$?
2811   grep -v '^ *+' conftest.er1 >conftest.err
2812   rm -f conftest.er1
2813   cat conftest.err >&5
2814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); } && {
2816          test -z "$ac_c_werror_flag" ||
2817          test ! -s conftest.err
2818        } && test -s conftest.$ac_objext; then
2819   ac_compiler_gnu=yes
2820 else
2821   $as_echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824         ac_compiler_gnu=no
2825 fi
2826
2827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2829
2830 fi
2831 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2833 if test $ac_compiler_gnu = yes; then
2834   GCC=yes
2835 else
2836   GCC=
2837 fi
2838 ac_test_CFLAGS=${CFLAGS+set}
2839 ac_save_CFLAGS=$CFLAGS
2840 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2842 if test "${ac_cv_prog_cc_g+set}" = set; then
2843   $as_echo_n "(cached) " >&6
2844 else
2845   ac_save_c_werror_flag=$ac_c_werror_flag
2846    ac_c_werror_flag=yes
2847    ac_cv_prog_cc_g=no
2848    CFLAGS="-g"
2849    cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h.  */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h.  */
2855
2856 int
2857 main ()
2858 {
2859
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2866 case "(($ac_try" in
2867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868   *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872   (eval "$ac_compile") 2>conftest.er1
2873   ac_status=$?
2874   grep -v '^ *+' conftest.er1 >conftest.err
2875   rm -f conftest.er1
2876   cat conftest.err >&5
2877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); } && {
2879          test -z "$ac_c_werror_flag" ||
2880          test ! -s conftest.err
2881        } && test -s conftest.$ac_objext; then
2882   ac_cv_prog_cc_g=yes
2883 else
2884   $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2886
2887         CFLAGS=""
2888       cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2910 $as_echo "$ac_try_echo") >&5
2911   (eval "$ac_compile") 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } && {
2918          test -z "$ac_c_werror_flag" ||
2919          test ! -s conftest.err
2920        } && test -s conftest.$ac_objext; then
2921   :
2922 else
2923   $as_echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926         ac_c_werror_flag=$ac_save_c_werror_flag
2927          CFLAGS="-g"
2928          cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934
2935 int
2936 main ()
2937 {
2938
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950 $as_echo "$ac_try_echo") >&5
2951   (eval "$ac_compile") 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } && {
2958          test -z "$ac_c_werror_flag" ||
2959          test ! -s conftest.err
2960        } && test -s conftest.$ac_objext; then
2961   ac_cv_prog_cc_g=yes
2962 else
2963   $as_echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966
2967 fi
2968
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 fi
2974
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976    ac_c_werror_flag=$ac_save_c_werror_flag
2977 fi
2978 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2979 $as_echo "$ac_cv_prog_cc_g" >&6; }
2980 if test "$ac_test_CFLAGS" = set; then
2981   CFLAGS=$ac_save_CFLAGS
2982 elif test $ac_cv_prog_cc_g = yes; then
2983   if test "$GCC" = yes; then
2984     CFLAGS="-g -O2"
2985   else
2986     CFLAGS="-g"
2987   fi
2988 else
2989   if test "$GCC" = yes; then
2990     CFLAGS="-O2"
2991   else
2992     CFLAGS=
2993   fi
2994 fi
2995 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2997 if test "${ac_cv_prog_cc_c89+set}" = set; then
2998   $as_echo_n "(cached) " >&6
2999 else
3000   ac_cv_prog_cc_c89=no
3001 ac_save_CC=$CC
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008 #include <stdarg.h>
3009 #include <stdio.h>
3010 #include <sys/types.h>
3011 #include <sys/stat.h>
3012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3013 struct buf { int x; };
3014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3015 static char *e (p, i)
3016      char **p;
3017      int i;
3018 {
3019   return p[i];
3020 }
3021 static char *f (char * (*g) (char **, int), char **p, ...)
3022 {
3023   char *s;
3024   va_list v;
3025   va_start (v,p);
3026   s = g (p, va_arg (v,int));
3027   va_end (v);
3028   return s;
3029 }
3030
3031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3032    function prototypes and stuff, but not '\xHH' hex character constants.
3033    These don't provoke an error unfortunately, instead are silently treated
3034    as 'x'.  The following induces an error, until -std is added to get
3035    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3036    array size at least.  It's necessary to write '\x00'==0 to get something
3037    that's true only with -std.  */
3038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3039
3040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3041    inside strings and character constants.  */
3042 #define FOO(x) 'x'
3043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3044
3045 int test (int i, double x);
3046 struct s1 {int (*f) (int a);};
3047 struct s2 {int (*f) (double a);};
3048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3049 int argc;
3050 char **argv;
3051 int
3052 main ()
3053 {
3054 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3055   ;
3056   return 0;
3057 }
3058 _ACEOF
3059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3060         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3061 do
3062   CC="$ac_save_CC $ac_arg"
3063   rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3070 $as_echo "$ac_try_echo") >&5
3071   (eval "$ac_compile") 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } && {
3078          test -z "$ac_c_werror_flag" ||
3079          test ! -s conftest.err
3080        } && test -s conftest.$ac_objext; then
3081   ac_cv_prog_cc_c89=$ac_arg
3082 else
3083   $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086
3087 fi
3088
3089 rm -f core conftest.err conftest.$ac_objext
3090   test "x$ac_cv_prog_cc_c89" != "xno" && break
3091 done
3092 rm -f conftest.$ac_ext
3093 CC=$ac_save_CC
3094
3095 fi
3096 # AC_CACHE_VAL
3097 case "x$ac_cv_prog_cc_c89" in
3098   x)
3099     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3100 $as_echo "none needed" >&6; } ;;
3101   xno)
3102     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3103 $as_echo "unsupported" >&6; } ;;
3104   *)
3105     CC="$CC $ac_cv_prog_cc_c89"
3106     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3108 esac
3109
3110
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3124 # On Suns, sometimes $CPP names a directory.
3125 if test -n "$CPP" && test -d "$CPP"; then
3126   CPP=
3127 fi
3128 if test -z "$CPP"; then
3129   if test "${ac_cv_prog_CPP+set}" = set; then
3130   $as_echo_n "(cached) " >&6
3131 else
3132       # Double quotes because CPP needs to be expanded
3133     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3134     do
3135       ac_preproc_ok=false
3136 for ac_c_preproc_warn_flag in '' yes
3137 do
3138   # Use a header file that comes with gcc, so configuring glibc
3139   # with a fresh cross-compiler works.
3140   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3141   # <limits.h> exists even on freestanding compilers.
3142   # On the NeXT, cc -E runs the code through the compiler's parser,
3143   # not just through cpp. "Syntax error" is here to catch this case.
3144   cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150 #ifdef __STDC__
3151 # include <limits.h>
3152 #else
3153 # include <assert.h>
3154 #endif
3155                      Syntax error
3156 _ACEOF
3157 if { (ac_try="$ac_cpp conftest.$ac_ext"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163 $as_echo "$ac_try_echo") >&5
3164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } >/dev/null && {
3171          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3172          test ! -s conftest.err
3173        }; then
3174   :
3175 else
3176   $as_echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179   # Broken: fails on valid input.
3180 continue
3181 fi
3182
3183 rm -f conftest.err conftest.$ac_ext
3184
3185   # OK, works on sane cases.  Now check whether nonexistent headers
3186   # can be detected and how.
3187   cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193 #include <ac_nonexistent.h>
3194 _ACEOF
3195 if { (ac_try="$ac_cpp conftest.$ac_ext"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201 $as_echo "$ac_try_echo") >&5
3202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } >/dev/null && {
3209          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3210          test ! -s conftest.err
3211        }; then
3212   # Broken: success on invalid input.
3213 continue
3214 else
3215   $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218   # Passes both tests.
3219 ac_preproc_ok=:
3220 break
3221 fi
3222
3223 rm -f conftest.err conftest.$ac_ext
3224
3225 done
3226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3227 rm -f conftest.err conftest.$ac_ext
3228 if $ac_preproc_ok; then
3229   break
3230 fi
3231
3232     done
3233     ac_cv_prog_CPP=$CPP
3234
3235 fi
3236   CPP=$ac_cv_prog_CPP
3237 else
3238   ac_cv_prog_CPP=$CPP
3239 fi
3240 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3241 $as_echo "$CPP" >&6; }
3242 ac_preproc_ok=false
3243 for ac_c_preproc_warn_flag in '' yes
3244 do
3245   # Use a header file that comes with gcc, so configuring glibc
3246   # with a fresh cross-compiler works.
3247   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248   # <limits.h> exists even on freestanding compilers.
3249   # On the NeXT, cc -E runs the code through the compiler's parser,
3250   # not just through cpp. "Syntax error" is here to catch this case.
3251   cat >conftest.$ac_ext <<_ACEOF
3252 /* confdefs.h.  */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h.  */
3257 #ifdef __STDC__
3258 # include <limits.h>
3259 #else
3260 # include <assert.h>
3261 #endif
3262                      Syntax error
3263 _ACEOF
3264 if { (ac_try="$ac_cpp conftest.$ac_ext"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3272   ac_status=$?
3273   grep -v '^ *+' conftest.er1 >conftest.err
3274   rm -f conftest.er1
3275   cat conftest.err >&5
3276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); } >/dev/null && {
3278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3279          test ! -s conftest.err
3280        }; then
3281   :
3282 else
3283   $as_echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286   # Broken: fails on valid input.
3287 continue
3288 fi
3289
3290 rm -f conftest.err conftest.$ac_ext
3291
3292   # OK, works on sane cases.  Now check whether nonexistent headers
3293   # can be detected and how.
3294   cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h.  */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h.  */
3300 #include <ac_nonexistent.h>
3301 _ACEOF
3302 if { (ac_try="$ac_cpp conftest.$ac_ext"
3303 case "(($ac_try" in
3304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305   *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3308 $as_echo "$ac_try_echo") >&5
3309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } >/dev/null && {
3316          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3317          test ! -s conftest.err
3318        }; then
3319   # Broken: success on invalid input.
3320 continue
3321 else
3322   $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325   # Passes both tests.
3326 ac_preproc_ok=:
3327 break
3328 fi
3329
3330 rm -f conftest.err conftest.$ac_ext
3331
3332 done
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3336   :
3337 else
3338   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3341 See \`config.log' for more details." >&5
3342 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3343 See \`config.log' for more details." >&2;}
3344    { (exit 1); exit 1; }; }; }
3345 fi
3346
3347 ac_ext=c
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352
3353
3354
3355 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3356 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3357 if test "${ac_cv_path_GREP+set}" = set; then
3358   $as_echo_n "(cached) " >&6
3359 else
3360   if test -z "$GREP"; then
3361   ac_path_GREP_found=false
3362   # Loop through the user's path and test for each of PROGNAME-LIST
3363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368   for ac_prog in grep ggrep; do
3369     for ac_exec_ext in '' $ac_executable_extensions; do
3370       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3371       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3372 # Check for GNU ac_path_GREP and select it if it is found.
3373   # Check for GNU $ac_path_GREP
3374 case `"$ac_path_GREP" --version 2>&1` in
3375 *GNU*)
3376   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3377 *)
3378   ac_count=0
3379   $as_echo_n 0123456789 >"conftest.in"
3380   while :
3381   do
3382     cat "conftest.in" "conftest.in" >"conftest.tmp"
3383     mv "conftest.tmp" "conftest.in"
3384     cp "conftest.in" "conftest.nl"
3385     $as_echo 'GREP' >> "conftest.nl"
3386     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388     ac_count=`expr $ac_count + 1`
3389     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3390       # Best one so far, save it but keep looking for a better one
3391       ac_cv_path_GREP="$ac_path_GREP"
3392       ac_path_GREP_max=$ac_count
3393     fi
3394     # 10*(2^10) chars as input seems more than enough
3395     test $ac_count -gt 10 && break
3396   done
3397   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3398 esac
3399
3400       $ac_path_GREP_found && break 3
3401     done
3402   done
3403 done
3404 IFS=$as_save_IFS
3405   if test -z "$ac_cv_path_GREP"; then
3406     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3407 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3408    { (exit 1); exit 1; }; }
3409   fi
3410 else
3411   ac_cv_path_GREP=$GREP
3412 fi
3413
3414 fi
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3416 $as_echo "$ac_cv_path_GREP" >&6; }
3417  GREP="$ac_cv_path_GREP"
3418
3419
3420 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3421 $as_echo_n "checking for egrep... " >&6; }
3422 if test "${ac_cv_path_EGREP+set}" = set; then
3423   $as_echo_n "(cached) " >&6
3424 else
3425   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3426    then ac_cv_path_EGREP="$GREP -E"
3427    else
3428      if test -z "$EGREP"; then
3429   ac_path_EGREP_found=false
3430   # Loop through the user's path and test for each of PROGNAME-LIST
3431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436   for ac_prog in egrep; do
3437     for ac_exec_ext in '' $ac_executable_extensions; do
3438       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3439       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3440 # Check for GNU ac_path_EGREP and select it if it is found.
3441   # Check for GNU $ac_path_EGREP
3442 case `"$ac_path_EGREP" --version 2>&1` in
3443 *GNU*)
3444   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3445 *)
3446   ac_count=0
3447   $as_echo_n 0123456789 >"conftest.in"
3448   while :
3449   do
3450     cat "conftest.in" "conftest.in" >"conftest.tmp"
3451     mv "conftest.tmp" "conftest.in"
3452     cp "conftest.in" "conftest.nl"
3453     $as_echo 'EGREP' >> "conftest.nl"
3454     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3455     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3456     ac_count=`expr $ac_count + 1`
3457     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3458       # Best one so far, save it but keep looking for a better one
3459       ac_cv_path_EGREP="$ac_path_EGREP"
3460       ac_path_EGREP_max=$ac_count
3461     fi
3462     # 10*(2^10) chars as input seems more than enough
3463     test $ac_count -gt 10 && break
3464   done
3465   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3466 esac
3467
3468       $ac_path_EGREP_found && break 3
3469     done
3470   done
3471 done
3472 IFS=$as_save_IFS
3473   if test -z "$ac_cv_path_EGREP"; then
3474     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3475 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3476    { (exit 1); exit 1; }; }
3477   fi
3478 else
3479   ac_cv_path_EGREP=$EGREP
3480 fi
3481
3482    fi
3483 fi
3484 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3485 $as_echo "$ac_cv_path_EGREP" >&6; }
3486  EGREP="$ac_cv_path_EGREP"
3487
3488
3489 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3490 $as_echo_n "checking for ANSI C header files... " >&6; }
3491 if test "${ac_cv_header_stdc+set}" = set; then
3492   $as_echo_n "(cached) " >&6
3493 else
3494   cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 #include <stdlib.h>
3501 #include <stdarg.h>
3502 #include <string.h>
3503 #include <float.h>
3504
3505 int
3506 main ()
3507 {
3508
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520 $as_echo "$ac_try_echo") >&5
3521   (eval "$ac_compile") 2>conftest.er1
3522   ac_status=$?
3523   grep -v '^ *+' conftest.er1 >conftest.err
3524   rm -f conftest.er1
3525   cat conftest.err >&5
3526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); } && {
3528          test -z "$ac_c_werror_flag" ||
3529          test ! -s conftest.err
3530        } && test -s conftest.$ac_objext; then
3531   ac_cv_header_stdc=yes
3532 else
3533   $as_echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536         ac_cv_header_stdc=no
3537 fi
3538
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540
3541 if test $ac_cv_header_stdc = yes; then
3542   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3543   cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549 #include <string.h>
3550
3551 _ACEOF
3552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553   $EGREP "memchr" >/dev/null 2>&1; then
3554   :
3555 else
3556   ac_cv_header_stdc=no
3557 fi
3558 rm -f conftest*
3559
3560 fi
3561
3562 if test $ac_cv_header_stdc = yes; then
3563   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3564   cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570 #include <stdlib.h>
3571
3572 _ACEOF
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574   $EGREP "free" >/dev/null 2>&1; then
3575   :
3576 else
3577   ac_cv_header_stdc=no
3578 fi
3579 rm -f conftest*
3580
3581 fi
3582
3583 if test $ac_cv_header_stdc = yes; then
3584   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3585   if test "$cross_compiling" = yes; then
3586   :
3587 else
3588   cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 #include <ctype.h>
3595 #include <stdlib.h>
3596 #if ((' ' & 0x0FF) == 0x020)
3597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599 #else
3600 # define ISLOWER(c) \
3601                    (('a' <= (c) && (c) <= 'i') \
3602                      || ('j' <= (c) && (c) <= 'r') \
3603                      || ('s' <= (c) && (c) <= 'z'))
3604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3605 #endif
3606
3607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3608 int
3609 main ()
3610 {
3611   int i;
3612   for (i = 0; i < 256; i++)
3613     if (XOR (islower (i), ISLOWER (i))
3614         || toupper (i) != TOUPPER (i))
3615       return 2;
3616   return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest$ac_exeext
3620 if { (ac_try="$ac_link"
3621 case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3626 $as_echo "$ac_try_echo") >&5
3627   (eval "$ac_link") 2>&5
3628   ac_status=$?
3629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3631   { (case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636 $as_echo "$ac_try_echo") >&5
3637   (eval "$ac_try") 2>&5
3638   ac_status=$?
3639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; }; then
3641   :
3642 else
3643   $as_echo "$as_me: program exited with status $ac_status" >&5
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 ( exit $ac_status )
3648 ac_cv_header_stdc=no
3649 fi
3650 rm -rf conftest.dSYM
3651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3652 fi
3653
3654
3655 fi
3656 fi
3657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3658 $as_echo "$ac_cv_header_stdc" >&6; }
3659 if test $ac_cv_header_stdc = yes; then
3660
3661 cat >>confdefs.h <<\_ACEOF
3662 #define STDC_HEADERS 1
3663 _ACEOF
3664
3665 fi
3666
3667 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3678                   inttypes.h stdint.h unistd.h
3679 do
3680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3682 $as_echo_n "checking for $ac_header... " >&6; }
3683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3684   $as_echo_n "(cached) " >&6
3685 else
3686   cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692 $ac_includes_default
3693
3694 #include <$ac_header>
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704   (eval "$ac_compile") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && {
3711          test -z "$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        } && test -s conftest.$ac_objext; then
3714   eval "$as_ac_Header=yes"
3715 else
3716   $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719         eval "$as_ac_Header=no"
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724 ac_res=`eval 'as_val=${'$as_ac_Header'}
3725                  $as_echo "$as_val"'`
3726                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3727 $as_echo "$ac_res" >&6; }
3728 as_val=`eval 'as_val=${'$as_ac_Header'}
3729                  $as_echo "$as_val"'`
3730    if test "x$as_val" = x""yes; then
3731   cat >>confdefs.h <<_ACEOF
3732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3733 _ACEOF
3734
3735 fi
3736
3737 done
3738
3739
3740 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3741   { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3742 $as_echo_n "checking for linux/fs.h... " >&6; }
3743 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3744   $as_echo_n "(cached) " >&6
3745 fi
3746 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3747 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3748 else
3749   # Is the header compilable?
3750 { $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3751 $as_echo_n "checking linux/fs.h usability... " >&6; }
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h.  */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h.  */
3758 $ac_includes_default
3759 #include <linux/fs.h>
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3763 case "(($ac_try" in
3764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765   *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769   (eval "$ac_compile") 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } && {
3776          test -z "$ac_c_werror_flag" ||
3777          test ! -s conftest.err
3778        } && test -s conftest.$ac_objext; then
3779   ac_header_compiler=yes
3780 else
3781   $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784         ac_header_compiler=no
3785 fi
3786
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3789 $as_echo "$ac_header_compiler" >&6; }
3790
3791 # Is the header present?
3792 { $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3793 $as_echo_n "checking linux/fs.h presence... " >&6; }
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h.  */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h.  */
3800 #include <linux/fs.h>
3801 _ACEOF
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808 $as_echo "$ac_try_echo") >&5
3809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } >/dev/null && {
3816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817          test ! -s conftest.err
3818        }; then
3819   ac_header_preproc=yes
3820 else
3821   $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824   ac_header_preproc=no
3825 fi
3826
3827 rm -f conftest.err conftest.$ac_ext
3828 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3829 $as_echo "$ac_header_preproc" >&6; }
3830
3831 # So?  What about this header?
3832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3833   yes:no: )
3834     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3835 $as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3836     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3837 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3838     ac_header_preproc=yes
3839     ;;
3840   no:yes:* )
3841     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3842 $as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3843     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3844 $as_echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3845     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3846 $as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3847     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3848 $as_echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3849     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3850 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3851     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3852 $as_echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3853
3854     ;;
3855 esac
3856 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3857 $as_echo_n "checking for linux/fs.h... " >&6; }
3858 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3859   $as_echo_n "(cached) " >&6
3860 else
3861   ac_cv_header_linux_fs_h=$ac_header_preproc
3862 fi
3863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3864 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3865
3866 fi
3867 if test "x$ac_cv_header_linux_fs_h" = x""yes; then
3868   linux_headers=yes
3869 else
3870   linux_headers=no
3871 fi
3872
3873
3874 if test "$linux_headers" != yes; then
3875   LINUX_INCLUDE='-I$(top_builddir)/include'
3876 fi
3877
3878 { $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3879 $as_echo_n "checking for additional special compiler flags... " >&6; }
3880 if test "$GCC" = yes
3881 then
3882     case "$host_cpu" in
3883         alpha)          addcflags="-mieee" ;;
3884     esac
3885 fi
3886 if test "x$addcflags" != x
3887 then
3888     { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3889 $as_echo "$addcflags" >&6; }
3890     CFLAGS="$addcflags $CFLAGS"
3891 else
3892     { $as_echo "$as_me:$LINENO: result: (none)" >&5
3893 $as_echo "(none)" >&6; }
3894 fi
3895 LIB_EXT=.a
3896 STATIC_LIB_EXT=.a
3897 PROFILED_LIB_EXT=.a
3898
3899 # Check whether --with-root-prefix was given.
3900 if test "${with_root_prefix+set}" = set; then
3901   withval=$with_root_prefix; root_prefix=$withval
3902 else
3903   root_prefix=NONE
3904 fi
3905 # Check whether --enable-maintainer-mode was given.
3906 if test "${enable_maintainer_mode+set}" = set; then
3907   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3908 then
3909         MAINTAINER_CMT=#
3910         { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3911 $as_echo "Disabling maintainer mode" >&6; }
3912 else
3913         MAINTAINER_CMT=
3914         { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3915 $as_echo "Enabling maintainer mode" >&6; }
3916 fi
3917
3918 else
3919   MAINTAINER_CMT=#
3920 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3921 $as_echo "Disabling maintainer mode by default" >&6; }
3922
3923 fi
3924
3925
3926 # Check whether --enable-verbose-makecmds was given.
3927 if test "${enable_verbose_makecmds+set}" = set; then
3928   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
3929 then
3930         { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3931 $as_echo "Disabling verbose make commands" >&6; }
3932         E=@echo
3933         Q=@
3934 else
3935         { $as_echo "$as_me:$LINENO: result: Enabling verbose make commands" >&5
3936 $as_echo "Enabling verbose make commands" >&6; }
3937         E=@\\#
3938         Q=
3939 fi
3940
3941 else
3942   { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3943 $as_echo "Disabling verbose make commands" >&6; }
3944 E=@echo
3945 Q=@
3946
3947 fi
3948
3949
3950
3951 # Check whether --enable-compression was given.
3952 if test "${enable_compression+set}" = set; then
3953   enableval=$enable_compression; if test "$enableval" = "no"
3954 then
3955         { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3956 $as_echo "Disabling compression support" >&6; }
3957 else
3958         cat >>confdefs.h <<\_ACEOF
3959 #define ENABLE_COMPRESSION 1
3960 _ACEOF
3961
3962         { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3963 $as_echo "Enabling compression support" >&6; }
3964         { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3965 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
3966 fi
3967
3968 else
3969   { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3970 $as_echo "Disabling compression support by default" >&6; }
3971
3972 fi
3973
3974 # Check whether --enable-htree was given.
3975 if test "${enable_htree+set}" = set; then
3976   enableval=$enable_htree; if test "$enableval" = "no"
3977 then
3978         HTREE_CMT=#
3979         { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3980 $as_echo "Disabling htree directory support" >&6; }
3981 else
3982         HTREE_CMT=
3983         cat >>confdefs.h <<\_ACEOF
3984 #define ENABLE_HTREE 1
3985 _ACEOF
3986
3987         { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3988 $as_echo "Enabling htree directory support" >&6; }
3989 fi
3990
3991 else
3992   HTREE_CMT=
3993 cat >>confdefs.h <<\_ACEOF
3994 #define ENABLE_HTREE 1
3995 _ACEOF
3996
3997 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3998 $as_echo "Enabling htree directory support by default" >&6; }
3999
4000 fi
4001
4002
4003 E2_PKG_CONFIG_STATIC=--static
4004 LDFLAG_DYNAMIC=
4005 PRIVATE_LIBS_CMT=
4006 # Check whether --enable-elf-shlibs was given.
4007 if test "${enable_elf_shlibs+set}" = set; then
4008   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4009 then
4010         ELF_CMT=#
4011         MAKEFILE_ELF=/dev/null
4012         { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4013 $as_echo "Disabling ELF shared libraries" >&6; }
4014 else
4015         E2_PKG_CONFIG_STATIC=
4016         ELF_CMT=
4017         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4018         case "$host_os" in
4019         solaris2.*)
4020                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4021         ;;
4022         esac
4023         BINARY_TYPE=elfbin
4024         LIB_EXT=.so
4025         PRIVATE_LIBS_CMT=#
4026         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4027         { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4028 $as_echo "Enabling ELF shared libraries" >&6; }
4029 fi
4030
4031 else
4032   MAKEFILE_ELF=/dev/null
4033 ELF_CMT=#
4034 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4035 $as_echo "Disabling ELF shared libraries by default" >&6; }
4036
4037 fi
4038
4039
4040
4041 # Check whether --enable-bsd-shlibs was given.
4042 if test "${enable_bsd_shlibs+set}" = set; then
4043   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4044 then
4045         BSDLIB_CMT=#
4046         MAKEFILE_BSDLIB=/dev/null
4047         { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4048 $as_echo "Disabling BSD shared libraries" >&6; }
4049 else
4050         E2_PKG_CONFIG_STATIC=
4051         BSDLIB_CMT=
4052         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4053         LIB_EXT=.so
4054         case "$host_os" in
4055         darwin*)
4056                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4057                 LIB_EXT=.dylib
4058         ;;
4059         esac
4060         { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4061 $as_echo "Enabling BSD shared libraries" >&6; }
4062 fi
4063
4064 else
4065   MAKEFILE_BSDLIB=/dev/null
4066 BSDLIB_CMT=#
4067 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4068 $as_echo "Disabling BSD shared libraries by default" >&6; }
4069
4070 fi
4071
4072
4073
4074 # Check whether --enable-profile was given.
4075 if test "${enable_profile+set}" = set; then
4076   enableval=$enable_profile; if test "$enableval" = "no"
4077 then
4078         PROFILE_CMT=#
4079         MAKEFILE_PROFILE=/dev/null
4080         { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4081 $as_echo "Disabling profiling libraries" >&6; }
4082 else
4083         PROFILE_CMT=
4084         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4085         PROFILED_LIB_EXT=_p.a
4086         { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4087 $as_echo "Building profiling libraries" >&6; }
4088 fi
4089
4090 else
4091   PROFILE_CMT=#
4092 MAKEFILE_PROFILE=/dev/null
4093 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4094 $as_echo "Disabling profiling libraries by default" >&6; }
4095
4096 fi
4097
4098
4099
4100 # Check whether --enable-checker was given.
4101 if test "${enable_checker+set}" = set; then
4102   enableval=$enable_checker; if test "$enableval" = "no"
4103 then
4104         CHECKER_CMT=#
4105         MAKEFILE_CHECKER=/dev/null
4106         { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4107 $as_echo "Disabling checker libraries" >&6; }
4108 else
4109         CHECKER_CMT=
4110         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4111         { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4112 $as_echo "Building checker libraries" >&6; }
4113 fi
4114
4115 else
4116   CHECKER_CMT=#
4117 MAKEFILE_CHECKER=/dev/null
4118 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4119 $as_echo "Disabling checker libraries by default" >&6; }
4120
4121 fi
4122
4123
4124
4125
4126
4127
4128
4129
4130 # Check whether --enable-jbd-debug was given.
4131 if test "${enable_jbd_debug+set}" = set; then
4132   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4133 then
4134         { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4135 $as_echo "Disabling journal debugging" >&6; }
4136 else
4137         cat >>confdefs.h <<\_ACEOF
4138 #define CONFIG_JBD_DEBUG 1
4139 _ACEOF
4140
4141         { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4142 $as_echo "Enabling journal debugging" >&6; }
4143 fi
4144
4145 else
4146   { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4147 $as_echo "Disabling journal debugging by default" >&6; }
4148
4149 fi
4150
4151 # Check whether --enable-blkid-debug was given.
4152 if test "${enable_blkid_debug+set}" = set; then
4153   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4154 then
4155         { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4156 $as_echo "Disabling blkid debugging" >&6; }
4157 else
4158         cat >>confdefs.h <<\_ACEOF
4159 #define CONFIG_BLKID_DEBUG 1
4160 _ACEOF
4161
4162         { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4163 $as_echo "Enabling blkid debugging" >&6; }
4164 fi
4165
4166 else
4167   { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4168 $as_echo "Disabling blkid debugging by default" >&6; }
4169
4170 fi
4171
4172 # Check whether --enable-testio-debug was given.
4173 if test "${enable_testio_debug+set}" = set; then
4174   enableval=$enable_testio_debug; if test "$enableval" = "no"
4175 then
4176         { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4177 $as_echo "Disabling testio debugging" >&6; }
4178         TEST_IO_CMT="#"
4179 else
4180         TEST_IO_CMT=
4181         cat >>confdefs.h <<\_ACEOF
4182 #define CONFIG_TESTIO_DEBUG 1
4183 _ACEOF
4184
4185         { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4186 $as_echo "Enabling testio debugging" >&6; }
4187 fi
4188
4189 else
4190   { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4191 $as_echo "Enabling testio debugging by default" >&6; }
4192 cat >>confdefs.h <<\_ACEOF
4193 #define CONFIG_TESTIO_DEBUG 1
4194 _ACEOF
4195
4196 TEST_IO_CMT=
4197
4198 fi
4199
4200
4201
4202
4203 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4204         if test -n "$ac_tool_prefix"; then
4205   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4210   $as_echo_n "(cached) " >&6
4211 else
4212   case $PKG_CONFIG in
4213   [\\/]* | ?:[\\/]*)
4214   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4215   ;;
4216   *)
4217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222   for ac_exec_ext in '' $ac_executable_extensions; do
4223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4225     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229 done
4230 IFS=$as_save_IFS
4231
4232   ;;
4233 esac
4234 fi
4235 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4236 if test -n "$PKG_CONFIG"; then
4237   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4238 $as_echo "$PKG_CONFIG" >&6; }
4239 else
4240   { $as_echo "$as_me:$LINENO: result: no" >&5
4241 $as_echo "no" >&6; }
4242 fi
4243
4244
4245 fi
4246 if test -z "$ac_cv_path_PKG_CONFIG"; then
4247   ac_pt_PKG_CONFIG=$PKG_CONFIG
4248   # Extract the first word of "pkg-config", so it can be a program name with args.
4249 set dummy pkg-config; ac_word=$2
4250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4253   $as_echo_n "(cached) " >&6
4254 else
4255   case $ac_pt_PKG_CONFIG in
4256   [\\/]* | ?:[\\/]*)
4257   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4258   ;;
4259   *)
4260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265   for ac_exec_ext in '' $ac_executable_extensions; do
4266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4268     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269     break 2
4270   fi
4271 done
4272 done
4273 IFS=$as_save_IFS
4274
4275   ;;
4276 esac
4277 fi
4278 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4279 if test -n "$ac_pt_PKG_CONFIG"; then
4280   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4281 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4282 else
4283   { $as_echo "$as_me:$LINENO: result: no" >&5
4284 $as_echo "no" >&6; }
4285 fi
4286
4287   if test "x$ac_pt_PKG_CONFIG" = x; then
4288     PKG_CONFIG=""
4289   else
4290     case $cross_compiling:$ac_tool_warned in
4291 yes:)
4292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294 ac_tool_warned=yes ;;
4295 esac
4296     PKG_CONFIG=$ac_pt_PKG_CONFIG
4297   fi
4298 else
4299   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4300 fi
4301
4302 fi
4303 if test -n "$PKG_CONFIG"; then
4304         _pkg_min_version=0.9.0
4305         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4306 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4307         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4308                 { $as_echo "$as_me:$LINENO: result: yes" >&5
4309 $as_echo "yes" >&6; }
4310         else
4311                 { $as_echo "$as_me:$LINENO: result: no" >&5
4312 $as_echo "no" >&6; }
4313                 PKG_CONFIG=""
4314         fi
4315
4316 fi
4317 LIBUUID=
4318 DEPLIBUUID=
4319 STATIC_LIBUUID=
4320 DEPSTATIC_LIBUUID=
4321 PROFILED_LIBUUID=
4322 DEPPROFILED_LIBUUID=
4323 UUID_CMT=
4324 # Check whether --enable-libuuid was given.
4325 if test "${enable_libuuid+set}" = set; then
4326   enableval=$enable_libuuid; if test "$enableval" = "no"
4327 then
4328         if test -z "$PKG_CONFIG"; then
4329                 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4330 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4331    { (exit 1); exit 1; }; }
4332         fi
4333
4334         { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4335 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4336 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4337   $as_echo_n "(cached) " >&6
4338 else
4339   ac_check_lib_save_LIBS=$LIBS
4340 LIBS="-luuid $LIBUUID $LIBS"
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347
4348 /* Override any GCC internal prototype to avoid an error.
4349    Use char because int might match the return type of a GCC
4350    builtin and then its argument prototype would still apply.  */
4351 #ifdef __cplusplus
4352 extern "C"
4353 #endif
4354 char uuid_generate ();
4355 int
4356 main ()
4357 {
4358 return uuid_generate ();
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4365 case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371   (eval "$ac_link") 2>conftest.er1
4372   ac_status=$?
4373   grep -v '^ *+' conftest.er1 >conftest.err
4374   rm -f conftest.er1
4375   cat conftest.err >&5
4376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } && {
4378          test -z "$ac_c_werror_flag" ||
4379          test ! -s conftest.err
4380        } && test -s conftest$ac_exeext && {
4381          test "$cross_compiling" = yes ||
4382          $as_test_x conftest$ac_exeext
4383        }; then
4384   ac_cv_lib_uuid_uuid_generate=yes
4385 else
4386   $as_echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389         ac_cv_lib_uuid_uuid_generate=no
4390 fi
4391
4392 rm -rf conftest.dSYM
4393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4394       conftest$ac_exeext conftest.$ac_ext
4395 LIBS=$ac_check_lib_save_LIBS
4396 fi
4397 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4398 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4399 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4400   LIBUUID=`$PKG_CONFIG --libs uuid`;
4401                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4402 else
4403   { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4404 $as_echo "$as_me: error: external uuid library not found" >&2;}
4405    { (exit 1); exit 1; }; }
4406 fi
4407
4408         UUID_CMT=#
4409         { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4410 $as_echo "Disabling private uuid library" >&6; }
4411 else
4412         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4413         DEPLIBUUID=$LIBUUID
4414         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4415         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4416         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4417         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4418         { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5
4419 $as_echo "Enabling private uuid library" >&6; }
4420 fi
4421
4422 else
4423   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4424 DEPLIBUUID=$LIBUUID
4425 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4426 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4427 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4428 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4429 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5
4430 $as_echo "Enabling private uuid library by default" >&6; }
4431
4432 fi
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4444         if test -n "$ac_tool_prefix"; then
4445   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4450   $as_echo_n "(cached) " >&6
4451 else
4452   case $PKG_CONFIG in
4453   [\\/]* | ?:[\\/]*)
4454   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4455   ;;
4456   *)
4457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4465     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472   ;;
4473 esac
4474 fi
4475 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4476 if test -n "$PKG_CONFIG"; then
4477   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4478 $as_echo "$PKG_CONFIG" >&6; }
4479 else
4480   { $as_echo "$as_me:$LINENO: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485 fi
4486 if test -z "$ac_cv_path_PKG_CONFIG"; then
4487   ac_pt_PKG_CONFIG=$PKG_CONFIG
4488   # Extract the first word of "pkg-config", so it can be a program name with args.
4489 set dummy pkg-config; ac_word=$2
4490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4493   $as_echo_n "(cached) " >&6
4494 else
4495   case $ac_pt_PKG_CONFIG in
4496   [\\/]* | ?:[\\/]*)
4497   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4498   ;;
4499   *)
4500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505   for ac_exec_ext in '' $ac_executable_extensions; do
4506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4508     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515   ;;
4516 esac
4517 fi
4518 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4519 if test -n "$ac_pt_PKG_CONFIG"; then
4520   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4521 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4522 else
4523   { $as_echo "$as_me:$LINENO: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526
4527   if test "x$ac_pt_PKG_CONFIG" = x; then
4528     PKG_CONFIG=""
4529   else
4530     case $cross_compiling:$ac_tool_warned in
4531 yes:)
4532 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534 ac_tool_warned=yes ;;
4535 esac
4536     PKG_CONFIG=$ac_pt_PKG_CONFIG
4537   fi
4538 else
4539   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4540 fi
4541
4542 fi
4543 if test -n "$PKG_CONFIG"; then
4544         _pkg_min_version=0.9.0
4545         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4546 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4547         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4548                 { $as_echo "$as_me:$LINENO: result: yes" >&5
4549 $as_echo "yes" >&6; }
4550         else
4551                 { $as_echo "$as_me:$LINENO: result: no" >&5
4552 $as_echo "no" >&6; }
4553                 PKG_CONFIG=""
4554         fi
4555
4556 fi
4557 LIBBLKID=
4558 DEPLIBBLKID=
4559 STATIC_LIBBLKID=
4560 DEPSTATIC_LIBBLKID=
4561 PROFILED_LIBBLKID=
4562 DEPPROFILED_LIBBLKID=
4563 BLKID_CMT=
4564 # Check whether --enable-libblkid was given.
4565 if test "${enable_libblkid+set}" = set; then
4566   enableval=$enable_libblkid; if test "$enableval" = "no"
4567 then
4568         if test -z "$PKG_CONFIG"; then
4569                 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4570 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4571    { (exit 1); exit 1; }; }
4572         fi
4573
4574         { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4575 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
4576 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
4577   $as_echo_n "(cached) " >&6
4578 else
4579   ac_check_lib_save_LIBS=$LIBS
4580 LIBS="-lblkid $LIBBLKID $LIBS"
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587
4588 /* Override any GCC internal prototype to avoid an error.
4589    Use char because int might match the return type of a GCC
4590    builtin and then its argument prototype would still apply.  */
4591 #ifdef __cplusplus
4592 extern "C"
4593 #endif
4594 char blkid_get_cache ();
4595 int
4596 main ()
4597 {
4598 return blkid_get_cache ();
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4605 case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4610 $as_echo "$ac_try_echo") >&5
4611   (eval "$ac_link") 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } && {
4618          test -z "$ac_c_werror_flag" ||
4619          test ! -s conftest.err
4620        } && test -s conftest$ac_exeext && {
4621          test "$cross_compiling" = yes ||
4622          $as_test_x conftest$ac_exeext
4623        }; then
4624   ac_cv_lib_blkid_blkid_get_cache=yes
4625 else
4626   $as_echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629         ac_cv_lib_blkid_blkid_get_cache=no
4630 fi
4631
4632 rm -rf conftest.dSYM
4633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4634       conftest$ac_exeext conftest.$ac_ext
4635 LIBS=$ac_check_lib_save_LIBS
4636 fi
4637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4638 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4639 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
4640   LIBBLKID=`$PKG_CONFIG --libs blkid`;
4641                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4642 else
4643   { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4644 $as_echo "$as_me: error: external blkid library not found" >&2;}
4645    { (exit 1); exit 1; }; }
4646 fi
4647
4648         BLKID_CMT=#
4649         { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4650 $as_echo "Disabling private blkid library" >&6; }
4651 else
4652         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4653         DEPLIBBLKID=$LIBBLKID
4654         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4655         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4656         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4657         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4658         cat >>confdefs.h <<\_ACEOF
4659 #define CONFIG_BUILD_FINDFS 1
4660 _ACEOF
4661
4662         { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4663 $as_echo "Enabling private blkid library" >&6; }
4664 fi
4665
4666 else
4667   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4668 DEPLIBBLKID=$LIBBLKID
4669 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4670 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4671 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4672 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4673 cat >>confdefs.h <<\_ACEOF
4674 #define CONFIG_BUILD_FINDFS 1
4675 _ACEOF
4676
4677 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4678 $as_echo "Enabling private blkid library by default" >&6; }
4679
4680 fi
4681
4682
4683
4684
4685
4686
4687
4688
4689 # Check whether --enable-debugfs was given.
4690 if test "${enable_debugfs+set}" = set; then
4691   enableval=$enable_debugfs; if test "$enableval" = "no"
4692 then
4693         { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4694 $as_echo "Disabling debugfs support" >&6; }
4695         DEBUGFS_CMT="#"
4696 else
4697         DEBUGFS_CMT=
4698         { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4699 $as_echo "Enabling debugfs support" >&6; }
4700 fi
4701
4702 else
4703   { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4704 $as_echo "Enabling debugfs support by default" >&6; }
4705 DEBUGFS_CMT=
4706
4707 fi
4708
4709
4710 # Check whether --enable-imager was given.
4711 if test "${enable_imager+set}" = set; then
4712   enableval=$enable_imager; if test "$enableval" = "no"
4713 then
4714         { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4715 $as_echo "Disabling e2image support" >&6; }
4716         IMAGER_CMT="#"
4717 else
4718         IMAGER_CMT=
4719         { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4720 $as_echo "Enabling e2image support" >&6; }
4721 fi
4722
4723 else
4724   { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4725 $as_echo "Enabling e2image support by default" >&6; }
4726 IMAGER_CMT=
4727
4728 fi
4729
4730
4731 # Check whether --enable-resizer was given.
4732 if test "${enable_resizer+set}" = set; then
4733   enableval=$enable_resizer; if test "$enableval" = "no"
4734 then
4735         { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4736 $as_echo "Disabling e2resize support" >&6; }
4737         RESIZER_CMT="#"
4738 else
4739         RESIZER_CMT=
4740         { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4741 $as_echo "Enabling e2resize support" >&6; }
4742 fi
4743
4744 else
4745   { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4746 $as_echo "Enabling e2resize support by default" >&6; }
4747 RESIZER_CMT=
4748
4749 fi
4750
4751
4752 # Check whether --enable-fsck was given.
4753 if test "${enable_fsck+set}" = set; then
4754   enableval=$enable_fsck; if test "$enableval" = "no"
4755 then
4756         FSCK_PROG='' FSCK_MAN=''
4757         { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4758 $as_echo "Not building fsck wrapper" >&6; }
4759 else
4760         FSCK_PROG=fsck FSCK_MAN=fsck.8
4761         { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4762 $as_echo "Building fsck wrapper" >&6; }
4763 fi
4764
4765 else
4766   case "$host_os" in
4767   gnu*)
4768     FSCK_PROG='' FSCK_MAN=''
4769     { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4770 $as_echo "Not building fsck wrapper by default" >&6; }
4771     ;;
4772   *)
4773     FSCK_PROG=fsck FSCK_MAN=fsck.8
4774     { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4775 $as_echo "Building fsck wrapper by default" >&6; }
4776 esac
4777
4778 fi
4779
4780
4781
4782 # Check whether --enable-e2initrd-helper was given.
4783 if test "${enable_e2initrd_helper+set}" = set; then
4784   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4785 then
4786         E2INITRD_PROG='' E2INITRD_MAN=''
4787         { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4788 $as_echo "Not building e2initrd helper" >&6; }
4789 else
4790         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4791         { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4792 $as_echo "Building e2initrd helper" >&6; }
4793 fi
4794
4795 else
4796   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4797 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4798 $as_echo "Building e2initrd helper by default" >&6; }
4799
4800 fi
4801
4802
4803
4804 # Check whether --enable-tls was given.
4805 if test "${enable_tls+set}" = set; then
4806   enableval=$enable_tls; if test "$enableval" = "no"
4807 then
4808         try_tls=""
4809         { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4810 $as_echo "Disabling thread local support" >&6; }
4811 else
4812         try_tls="yes"
4813         { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4814 $as_echo "Enabling thread local support" >&6; }
4815 fi
4816
4817 else
4818   if test -n "$WITH_DIET_LIBC"
4819 then
4820         try_tls=""
4821         { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4822 $as_echo "Diet libc does not support thread local support" >&6; }
4823 else
4824         try_tls="yes"
4825         { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4826 $as_echo "Try using thread local support by default" >&6; }
4827 fi
4828
4829 fi
4830
4831 if test "$try_tls" = "yes"
4832 then
4833
4834   { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4835 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
4836   if test "${ac_cv_tls+set}" = set; then
4837   $as_echo_n "(cached) " >&6
4838 else
4839
4840     ax_tls_keywords="__thread __declspec(thread) none"
4841     for ax_tls_keyword in $ax_tls_keywords; do
4842        case $ax_tls_keyword in
4843           none) ac_cv_tls=none ; break ;;
4844           *)
4845              cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 #include <stdlib.h>
4852                  static void
4853                  foo(void) {
4854                  static  $ax_tls_keyword  int bar;
4855                  exit(1);
4856                  }
4857 int
4858 main ()
4859 {
4860
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (ac_try="$ac_compile"
4867 case "(($ac_try" in
4868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869   *) ac_try_echo=$ac_try;;
4870 esac
4871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872 $as_echo "$ac_try_echo") >&5
4873   (eval "$ac_compile") 2>conftest.er1
4874   ac_status=$?
4875   grep -v '^ *+' conftest.er1 >conftest.err
4876   rm -f conftest.er1
4877   cat conftest.err >&5
4878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); } && {
4880          test -z "$ac_c_werror_flag" ||
4881          test ! -s conftest.err
4882        } && test -s conftest.$ac_objext; then
4883   ac_cv_tls=$ax_tls_keyword ; break
4884 else
4885   $as_echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888         ac_cv_tls=none
4889
4890 fi
4891
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893           esac
4894     done
4895
4896 fi
4897
4898
4899   if test "$ac_cv_tls" != "none"; then
4900
4901 cat >>confdefs.h <<_ACEOF
4902 #define TLS $ac_cv_tls
4903 _ACEOF
4904
4905   fi
4906   { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4907 $as_echo "$ac_cv_tls" >&6; }
4908
4909 fi
4910 # Check whether --enable-uuidd was given.
4911 if test "${enable_uuidd+set}" = set; then
4912   enableval=$enable_uuidd; if test "$enableval" = "no"
4913 then
4914         { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4915 $as_echo "Not building uuidd" >&6; }
4916         UUIDD_CMT="#"
4917 else
4918         cat >>confdefs.h <<\_ACEOF
4919 #define USE_UUIDD 1
4920 _ACEOF
4921
4922         UUIDD_CMT=""
4923         { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4924 $as_echo "Building uuidd" >&6; }
4925 fi
4926
4927 else
4928   cat >>confdefs.h <<\_ACEOF
4929 #define USE_UUIDD 1
4930 _ACEOF
4931
4932 UUIDD_CMT=""
4933 { $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4934 $as_echo "Building uuidd by default" >&6; }
4935
4936 fi
4937
4938
4939 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4940
4941 GETTEXT_PACKAGE=e2fsprogs
4942 PACKAGE=e2fsprogs
4943 VERSION="$E2FSPROGS_VERSION"
4944 VERSION=0.14.1
4945 cat >>confdefs.h <<_ACEOF
4946 #define PACKAGE "$PACKAGE"
4947 _ACEOF
4948
4949 cat >>confdefs.h <<_ACEOF
4950 #define VERSION "$VERSION"
4951 _ACEOF
4952
4953
4954
4955
4956
4957 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4958 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4959 set x ${MAKE-make}
4960 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4961 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4962   $as_echo_n "(cached) " >&6
4963 else
4964   cat >conftest.make <<\_ACEOF
4965 SHELL = /bin/sh
4966 all:
4967         @echo '@@@%%%=$(MAKE)=@@@%%%'
4968 _ACEOF
4969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4970 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4971   *@@@%%%=?*=@@@%%%*)
4972     eval ac_cv_prog_make_${ac_make}_set=yes;;
4973   *)
4974     eval ac_cv_prog_make_${ac_make}_set=no;;
4975 esac
4976 rm -f conftest.make
4977 fi
4978 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4979   { $as_echo "$as_me:$LINENO: result: yes" >&5
4980 $as_echo "yes" >&6; }
4981   SET_MAKE=
4982 else
4983   { $as_echo "$as_me:$LINENO: result: no" >&5
4984 $as_echo "no" >&6; }
4985   SET_MAKE="MAKE=${MAKE-make}"
4986 fi
4987
4988 # Find a good install program.  We prefer a C program (faster),
4989 # so one script is as good as another.  But avoid the broken or
4990 # incompatible versions:
4991 # SysV /etc/install, /usr/sbin/install
4992 # SunOS /usr/etc/install
4993 # IRIX /sbin/install
4994 # AIX /bin/install
4995 # AmigaOS /C/install, which installs bootblocks on floppy discs
4996 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4997 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4998 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4999 # OS/2's system install, which has a completely different semantic
5000 # ./install, which can be erroneously created by make from ./install.sh.
5001 # Reject install programs that cannot install multiple files.
5002 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5003 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5004 if test -z "$INSTALL"; then
5005 if test "${ac_cv_path_install+set}" = set; then
5006   $as_echo_n "(cached) " >&6
5007 else
5008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013   # Account for people who put trailing slashes in PATH elements.
5014 case $as_dir/ in
5015   ./ | .// | /cC/* | \
5016   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5017   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5018   /usr/ucb/* ) ;;
5019   *)
5020     # OSF1 and SCO ODT 3.0 have their own names for install.
5021     # Don't use installbsd from OSF since it installs stuff as root
5022     # by default.
5023     for ac_prog in ginstall scoinst install; do
5024       for ac_exec_ext in '' $ac_executable_extensions; do
5025         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5026           if test $ac_prog = install &&
5027             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5028             # AIX install.  It has an incompatible calling convention.
5029             :
5030           elif test $ac_prog = install &&
5031             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5032             # program-specific install script used by HP pwplus--don't use.
5033             :
5034           else
5035             rm -rf conftest.one conftest.two conftest.dir
5036             echo one > conftest.one
5037             echo two > conftest.two
5038             mkdir conftest.dir
5039             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5040               test -s conftest.one && test -s conftest.two &&
5041               test -s conftest.dir/conftest.one &&
5042               test -s conftest.dir/conftest.two
5043             then
5044               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5045               break 3
5046             fi
5047           fi
5048         fi
5049       done
5050     done
5051     ;;
5052 esac
5053
5054 done
5055 IFS=$as_save_IFS
5056
5057 rm -rf conftest.one conftest.two conftest.dir
5058
5059 fi
5060   if test "${ac_cv_path_install+set}" = set; then
5061     INSTALL=$ac_cv_path_install
5062   else
5063     # As a last resort, use the slow shell script.  Don't cache a
5064     # value for INSTALL within a source directory, because that will
5065     # break other packages using the cache if that directory is
5066     # removed, or if the value is a relative name.
5067     INSTALL=$ac_install_sh
5068   fi
5069 fi
5070 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5071 $as_echo "$INSTALL" >&6; }
5072
5073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5074 # It thinks the first close brace ends the variable substitution.
5075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5076
5077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5078
5079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5080
5081
5082         MKINSTALLDIRS=
5083   if test -n "$ac_aux_dir"; then
5084     case "$ac_aux_dir" in
5085       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5086       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5087     esac
5088   fi
5089   if test -z "$MKINSTALLDIRS"; then
5090     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5091   fi
5092
5093
5094
5095   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5096 $as_echo_n "checking whether NLS is requested... " >&6; }
5097     # Check whether --enable-nls was given.
5098 if test "${enable_nls+set}" = set; then
5099   enableval=$enable_nls; USE_NLS=$enableval
5100 else
5101   USE_NLS=yes
5102 fi
5103
5104   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5105 $as_echo "$USE_NLS" >&6; }
5106
5107
5108
5109
5110
5111
5112 # Prepare PATH_SEPARATOR.
5113 # The user is always right.
5114 if test "${PATH_SEPARATOR+set}" != set; then
5115   echo "#! /bin/sh" >conf$$.sh
5116   echo  "exit 0"   >>conf$$.sh
5117   chmod +x conf$$.sh
5118   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5119     PATH_SEPARATOR=';'
5120   else
5121     PATH_SEPARATOR=:
5122   fi
5123   rm -f conf$$.sh
5124 fi
5125
5126 # Find out how to test for executable files. Don't use a zero-byte file,
5127 # as systems may use methods other than mode bits to determine executability.
5128 cat >conf$$.file <<_ASEOF
5129 #! /bin/sh
5130 exit 0
5131 _ASEOF
5132 chmod +x conf$$.file
5133 if test -x conf$$.file >/dev/null 2>&1; then
5134   ac_executable_p="test -x"
5135 else
5136   ac_executable_p="test -f"
5137 fi
5138 rm -f conf$$.file
5139
5140 # Extract the first word of "msgfmt", so it can be a program name with args.
5141 set dummy msgfmt; ac_word=$2
5142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_path_MSGFMT+set}" = set; then
5145   $as_echo_n "(cached) " >&6
5146 else
5147   case "$MSGFMT" in
5148   [\\/]* | ?:[\\/]*)
5149     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5150     ;;
5151   *)
5152     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5153     for ac_dir in $PATH; do
5154       IFS="$ac_save_IFS"
5155       test -z "$ac_dir" && ac_dir=.
5156       for ac_exec_ext in '' $ac_executable_extensions; do
5157         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5158           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5159      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5160             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5161             break 2
5162           fi
5163         fi
5164       done
5165     done
5166     IFS="$ac_save_IFS"
5167   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5168     ;;
5169 esac
5170 fi
5171 MSGFMT="$ac_cv_path_MSGFMT"
5172 if test "$MSGFMT" != ":"; then
5173   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5174 $as_echo "$MSGFMT" >&6; }
5175 else
5176   { $as_echo "$as_me:$LINENO: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5181 set dummy gmsgfmt; ac_word=$2
5182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5185   $as_echo_n "(cached) " >&6
5186 else
5187   case $GMSGFMT in
5188   [\\/]* | ?:[\\/]*)
5189   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5190   ;;
5191   *)
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5200     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5208   ;;
5209 esac
5210 fi
5211 GMSGFMT=$ac_cv_path_GMSGFMT
5212 if test -n "$GMSGFMT"; then
5213   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5214 $as_echo "$GMSGFMT" >&6; }
5215 else
5216   { $as_echo "$as_me:$LINENO: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220
5221
5222
5223 # Prepare PATH_SEPARATOR.
5224 # The user is always right.
5225 if test "${PATH_SEPARATOR+set}" != set; then
5226   echo "#! /bin/sh" >conf$$.sh
5227   echo  "exit 0"   >>conf$$.sh
5228   chmod +x conf$$.sh
5229   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5230     PATH_SEPARATOR=';'
5231   else
5232     PATH_SEPARATOR=:
5233   fi
5234   rm -f conf$$.sh
5235 fi
5236
5237 # Find out how to test for executable files. Don't use a zero-byte file,
5238 # as systems may use methods other than mode bits to determine executability.
5239 cat >conf$$.file <<_ASEOF
5240 #! /bin/sh
5241 exit 0
5242 _ASEOF
5243 chmod +x conf$$.file
5244 if test -x conf$$.file >/dev/null 2>&1; then
5245   ac_executable_p="test -x"
5246 else
5247   ac_executable_p="test -f"
5248 fi
5249 rm -f conf$$.file
5250
5251 # Extract the first word of "xgettext", so it can be a program name with args.
5252 set dummy xgettext; ac_word=$2
5253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5256   $as_echo_n "(cached) " >&6
5257 else
5258   case "$XGETTEXT" in
5259   [\\/]* | ?:[\\/]*)
5260     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5261     ;;
5262   *)
5263     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5264     for ac_dir in $PATH; do
5265       IFS="$ac_save_IFS"
5266       test -z "$ac_dir" && ac_dir=.
5267       for ac_exec_ext in '' $ac_executable_extensions; do
5268         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5269           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5270      (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
5271             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5272             break 2
5273           fi
5274         fi
5275       done
5276     done
5277     IFS="$ac_save_IFS"
5278   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5279     ;;
5280 esac
5281 fi
5282 XGETTEXT="$ac_cv_path_XGETTEXT"
5283 if test "$XGETTEXT" != ":"; then
5284   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5285 $as_echo "$XGETTEXT" >&6; }
5286 else
5287   { $as_echo "$as_me:$LINENO: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291     rm -f messages.po
5292
5293
5294 # Prepare PATH_SEPARATOR.
5295 # The user is always right.
5296 if test "${PATH_SEPARATOR+set}" != set; then
5297   echo "#! /bin/sh" >conf$$.sh
5298   echo  "exit 0"   >>conf$$.sh
5299   chmod +x conf$$.sh
5300   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5301     PATH_SEPARATOR=';'
5302   else
5303     PATH_SEPARATOR=:
5304   fi
5305   rm -f conf$$.sh
5306 fi
5307
5308 # Find out how to test for executable files. Don't use a zero-byte file,
5309 # as systems may use methods other than mode bits to determine executability.
5310 cat >conf$$.file <<_ASEOF
5311 #! /bin/sh
5312 exit 0
5313 _ASEOF
5314 chmod +x conf$$.file
5315 if test -x conf$$.file >/dev/null 2>&1; then
5316   ac_executable_p="test -x"
5317 else
5318   ac_executable_p="test -f"
5319 fi
5320 rm -f conf$$.file
5321
5322 # Extract the first word of "msgmerge", so it can be a program name with args.
5323 set dummy msgmerge; ac_word=$2
5324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5327   $as_echo_n "(cached) " >&6
5328 else
5329   case "$MSGMERGE" in
5330   [\\/]* | ?:[\\/]*)
5331     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5332     ;;
5333   *)
5334     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5335     for ac_dir in $PATH; do
5336       IFS="$ac_save_IFS"
5337       test -z "$ac_dir" && ac_dir=.
5338       for ac_exec_ext in '' $ac_executable_extensions; do
5339         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5340           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5341             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5342             break 2
5343           fi
5344         fi
5345       done
5346     done
5347     IFS="$ac_save_IFS"
5348   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5349     ;;
5350 esac
5351 fi
5352 MSGMERGE="$ac_cv_path_MSGMERGE"
5353 if test "$MSGMERGE" != ":"; then
5354   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5355 $as_echo "$MSGMERGE" >&6; }
5356 else
5357   { $as_echo "$as_me:$LINENO: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362       if test "$GMSGFMT" != ":"; then
5363             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5364        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5365       : ;
5366     else
5367       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5368       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5369 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5370       GMSGFMT=":"
5371     fi
5372   fi
5373
5374       if test "$XGETTEXT" != ":"; then
5375             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5376        (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
5377       : ;
5378     else
5379       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5380 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5381       XGETTEXT=":"
5382     fi
5383         rm -f messages.po
5384   fi
5385
5386   ac_config_commands="$ac_config_commands default-1"
5387
5388
5389 if test -n "$ac_tool_prefix"; then
5390   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_RANLIB+set}" = set; then
5395   $as_echo_n "(cached) " >&6
5396 else
5397   if test -n "$RANLIB"; then
5398   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405   for ac_exec_ext in '' $ac_executable_extensions; do
5406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5408     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412 done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 RANLIB=$ac_cv_prog_RANLIB
5418 if test -n "$RANLIB"; then
5419   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5420 $as_echo "$RANLIB" >&6; }
5421 else
5422   { $as_echo "$as_me:$LINENO: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 fi
5428 if test -z "$ac_cv_prog_RANLIB"; then
5429   ac_ct_RANLIB=$RANLIB
5430   # Extract the first word of "ranlib", so it can be a program name with args.
5431 set dummy ranlib; ac_word=$2
5432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5435   $as_echo_n "(cached) " >&6
5436 else
5437   if test -n "$ac_ct_RANLIB"; then
5438   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445   for ac_exec_ext in '' $ac_executable_extensions; do
5446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447     ac_cv_prog_ac_ct_RANLIB="ranlib"
5448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452 done
5453 IFS=$as_save_IFS
5454
5455 fi
5456 fi
5457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5458 if test -n "$ac_ct_RANLIB"; then
5459   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5460 $as_echo "$ac_ct_RANLIB" >&6; }
5461 else
5462   { $as_echo "$as_me:$LINENO: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5465
5466   if test "x$ac_ct_RANLIB" = x; then
5467     RANLIB=":"
5468   else
5469     case $cross_compiling:$ac_tool_warned in
5470 yes:)
5471 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5474 esac
5475     RANLIB=$ac_ct_RANLIB
5476   fi
5477 else
5478   RANLIB="$ac_cv_prog_RANLIB"
5479 fi
5480
5481
5482         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5483 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5484 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5485   $as_echo_n "(cached) " >&6
5486 else
5487   ac_check_lib_save_LIBS=$LIBS
5488 LIBS="-lcposix  $LIBS"
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495
5496 /* Override any GCC internal prototype to avoid an error.
5497    Use char because int might match the return type of a GCC
5498    builtin and then its argument prototype would still apply.  */
5499 #ifdef __cplusplus
5500 extern "C"
5501 #endif
5502 char strerror ();
5503 int
5504 main ()
5505 {
5506 return strerror ();
5507   ;
5508   return 0;
5509 }
5510 _ACEOF
5511 rm -f conftest.$ac_objext conftest$ac_exeext
5512 if { (ac_try="$ac_link"
5513 case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5518 $as_echo "$ac_try_echo") >&5
5519   (eval "$ac_link") 2>conftest.er1
5520   ac_status=$?
5521   grep -v '^ *+' conftest.er1 >conftest.err
5522   rm -f conftest.er1
5523   cat conftest.err >&5
5524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } && {
5526          test -z "$ac_c_werror_flag" ||
5527          test ! -s conftest.err
5528        } && test -s conftest$ac_exeext && {
5529          test "$cross_compiling" = yes ||
5530          $as_test_x conftest$ac_exeext
5531        }; then
5532   ac_cv_lib_cposix_strerror=yes
5533 else
5534   $as_echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5536
5537         ac_cv_lib_cposix_strerror=no
5538 fi
5539
5540 rm -rf conftest.dSYM
5541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5542       conftest$ac_exeext conftest.$ac_ext
5543 LIBS=$ac_check_lib_save_LIBS
5544 fi
5545 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5546 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5547 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
5548   LIBS="$LIBS -lcposix"
5549 fi
5550
5551
5552
5553 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5554 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5555 if test "${ac_cv_c_const+set}" = set; then
5556   $as_echo_n "(cached) " >&6
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 int
5566 main ()
5567 {
5568 /* FIXME: Include the comments suggested by Paul. */
5569 #ifndef __cplusplus
5570   /* Ultrix mips cc rejects this.  */
5571   typedef int charset[2];
5572   const charset cs;
5573   /* SunOS 4.1.1 cc rejects this.  */
5574   char const *const *pcpcc;
5575   char **ppc;
5576   /* NEC SVR4.0.2 mips cc rejects this.  */
5577   struct point {int x, y;};
5578   static struct point const zero = {0,0};
5579   /* AIX XL C 1.02.0.0 rejects this.
5580      It does not let you subtract one const X* pointer from another in
5581      an arm of an if-expression whose if-part is not a constant
5582      expression */
5583   const char *g = "string";
5584   pcpcc = &g + (g ? g-g : 0);
5585   /* HPUX 7.0 cc rejects these. */
5586   ++pcpcc;
5587   ppc = (char**) pcpcc;
5588   pcpcc = (char const *const *) ppc;
5589   { /* SCO 3.2v4 cc rejects this.  */
5590     char *t;
5591     char const *s = 0 ? (char *) 0 : (char const *) 0;
5592
5593     *t++ = 0;
5594     if (s) return 0;
5595   }
5596   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5597     int x[] = {25, 17};
5598     const int *foo = &x[0];
5599     ++foo;
5600   }
5601   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5602     typedef const int *iptr;
5603     iptr p = 0;
5604     ++p;
5605   }
5606   { /* AIX XL C 1.02.0.0 rejects this saying
5607        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5608     struct s { int j; const int *ap[3]; };
5609     struct s *b; b->j = 5;
5610   }
5611   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5612     const int foo = 10;
5613     if (!foo) return 0;
5614   }
5615   return !cs[0] && !zero.x;
5616 #endif
5617
5618   ;
5619   return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5624 case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629 $as_echo "$ac_try_echo") >&5
5630   (eval "$ac_compile") 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } && {
5637          test -z "$ac_c_werror_flag" ||
5638          test ! -s conftest.err
5639        } && test -s conftest.$ac_objext; then
5640   ac_cv_c_const=yes
5641 else
5642   $as_echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645         ac_cv_c_const=no
5646 fi
5647
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 fi
5650 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5651 $as_echo "$ac_cv_c_const" >&6; }
5652 if test $ac_cv_c_const = no; then
5653
5654 cat >>confdefs.h <<\_ACEOF
5655 #define const /**/
5656 _ACEOF
5657
5658 fi
5659
5660
5661   { $as_echo "$as_me:$LINENO: checking for signed" >&5
5662 $as_echo_n "checking for signed... " >&6; }
5663 if test "${bh_cv_c_signed+set}" = set; then
5664   $as_echo_n "(cached) " >&6
5665 else
5666   cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672
5673 int
5674 main ()
5675 {
5676 signed char x;
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5688 $as_echo "$ac_try_echo") >&5
5689   (eval "$ac_compile") 2>conftest.er1
5690   ac_status=$?
5691   grep -v '^ *+' conftest.er1 >conftest.err
5692   rm -f conftest.er1
5693   cat conftest.err >&5
5694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); } && {
5696          test -z "$ac_c_werror_flag" ||
5697          test ! -s conftest.err
5698        } && test -s conftest.$ac_objext; then
5699   bh_cv_c_signed=yes
5700 else
5701   $as_echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704         bh_cv_c_signed=no
5705 fi
5706
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 fi
5709 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5710 $as_echo "$bh_cv_c_signed" >&6; }
5711   if test $bh_cv_c_signed = no; then
5712
5713 cat >>confdefs.h <<\_ACEOF
5714 #define signed /**/
5715 _ACEOF
5716
5717   fi
5718
5719 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5720 $as_echo_n "checking for inline... " >&6; }
5721 if test "${ac_cv_c_inline+set}" = set; then
5722   $as_echo_n "(cached) " >&6
5723 else
5724   ac_cv_c_inline=no
5725 for ac_kw in inline __inline__ __inline; do
5726   cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 #ifndef __cplusplus
5733 typedef int foo_t;
5734 static $ac_kw foo_t static_foo () {return 0; }
5735 $ac_kw foo_t foo () {return 0; }
5736 #endif
5737
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (ac_try="$ac_compile"
5741 case "(($ac_try" in
5742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743   *) ac_try_echo=$ac_try;;
5744 esac
5745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5746 $as_echo "$ac_try_echo") >&5
5747   (eval "$ac_compile") 2>conftest.er1
5748   ac_status=$?
5749   grep -v '^ *+' conftest.er1 >conftest.err
5750   rm -f conftest.er1
5751   cat conftest.err >&5
5752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); } && {
5754          test -z "$ac_c_werror_flag" ||
5755          test ! -s conftest.err
5756        } && test -s conftest.$ac_objext; then
5757   ac_cv_c_inline=$ac_kw
5758 else
5759   $as_echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5761
5762
5763 fi
5764
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766   test "$ac_cv_c_inline" != no && break
5767 done
5768
5769 fi
5770 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5771 $as_echo "$ac_cv_c_inline" >&6; }
5772
5773
5774 case $ac_cv_c_inline in
5775   inline | yes) ;;
5776   *)
5777     case $ac_cv_c_inline in
5778       no) ac_val=;;
5779       *) ac_val=$ac_cv_c_inline;;
5780     esac
5781     cat >>confdefs.h <<_ACEOF
5782 #ifndef __cplusplus
5783 #define inline $ac_val
5784 #endif
5785 _ACEOF
5786     ;;
5787 esac
5788
5789 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5790 $as_echo_n "checking for off_t... " >&6; }
5791 if test "${ac_cv_type_off_t+set}" = set; then
5792   $as_echo_n "(cached) " >&6
5793 else
5794   ac_cv_type_off_t=no
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h.  */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h.  */
5801 $ac_includes_default
5802 int
5803 main ()
5804 {
5805 if (sizeof (off_t))
5806        return 0;
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (ac_try="$ac_compile"
5813 case "(($ac_try" in
5814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815   *) ac_try_echo=$ac_try;;
5816 esac
5817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5818 $as_echo "$ac_try_echo") >&5
5819   (eval "$ac_compile") 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } && {
5826          test -z "$ac_c_werror_flag" ||
5827          test ! -s conftest.err
5828        } && test -s conftest.$ac_objext; then
5829   cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h.  */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h.  */
5835 $ac_includes_default
5836 int
5837 main ()
5838 {
5839 if (sizeof ((off_t)))
5840           return 0;
5841   ;
5842   return 0;
5843 }
5844 _ACEOF
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5847 case "(($ac_try" in
5848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849   *) ac_try_echo=$ac_try;;
5850 esac
5851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5852 $as_echo "$ac_try_echo") >&5
5853   (eval "$ac_compile") 2>conftest.er1
5854   ac_status=$?
5855   grep -v '^ *+' conftest.er1 >conftest.err
5856   rm -f conftest.er1
5857   cat conftest.err >&5
5858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); } && {
5860          test -z "$ac_c_werror_flag" ||
5861          test ! -s conftest.err
5862        } && test -s conftest.$ac_objext; then
5863   :
5864 else
5865   $as_echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868         ac_cv_type_off_t=yes
5869 fi
5870
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 else
5873   $as_echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876
5877 fi
5878
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 fi
5881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5882 $as_echo "$ac_cv_type_off_t" >&6; }
5883 if test "x$ac_cv_type_off_t" = x""yes; then
5884   :
5885 else
5886
5887 cat >>confdefs.h <<_ACEOF
5888 #define off_t long int
5889 _ACEOF
5890
5891 fi
5892
5893 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5894 $as_echo_n "checking for size_t... " >&6; }
5895 if test "${ac_cv_type_size_t+set}" = set; then
5896   $as_echo_n "(cached) " >&6
5897 else
5898   ac_cv_type_size_t=no
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905 $ac_includes_default
5906 int
5907 main ()
5908 {
5909 if (sizeof (size_t))
5910        return 0;
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5917 case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923   (eval "$ac_compile") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } && {
5930          test -z "$ac_c_werror_flag" ||
5931          test ! -s conftest.err
5932        } && test -s conftest.$ac_objext; then
5933   cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939 $ac_includes_default
5940 int
5941 main ()
5942 {
5943 if (sizeof ((size_t)))
5944           return 0;
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953   *) ac_try_echo=$ac_try;;
5954 esac
5955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5956 $as_echo "$ac_try_echo") >&5
5957   (eval "$ac_compile") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } && {
5964          test -z "$ac_c_werror_flag" ||
5965          test ! -s conftest.err
5966        } && test -s conftest.$ac_objext; then
5967   :
5968 else
5969   $as_echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972         ac_cv_type_size_t=yes
5973 fi
5974
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 else
5977   $as_echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5979
5980
5981 fi
5982
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 fi
5985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5986 $as_echo "$ac_cv_type_size_t" >&6; }
5987 if test "x$ac_cv_type_size_t" = x""yes; then
5988   :
5989 else
5990
5991 cat >>confdefs.h <<_ACEOF
5992 #define size_t unsigned int
5993 _ACEOF
5994
5995 fi
5996
5997
5998   { $as_echo "$as_me:$LINENO: checking for long long" >&5
5999 $as_echo_n "checking for long long... " >&6; }
6000 if test "${ac_cv_type_long_long+set}" = set; then
6001   $as_echo_n "(cached) " >&6
6002 else
6003   cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 long long ll = 1LL; int i = 63;
6010 int
6011 main ()
6012 {
6013 long long llmax = (long long) -1;
6014      return ll << i | ll >> i | llmax / ll | llmax % ll;
6015   ;
6016   return 0;
6017 }
6018 _ACEOF
6019 rm -f conftest.$ac_objext conftest$ac_exeext
6020 if { (ac_try="$ac_link"
6021 case "(($ac_try" in
6022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023   *) ac_try_echo=$ac_try;;
6024 esac
6025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6026 $as_echo "$ac_try_echo") >&5
6027   (eval "$ac_link") 2>conftest.er1
6028   ac_status=$?
6029   grep -v '^ *+' conftest.er1 >conftest.err
6030   rm -f conftest.er1
6031   cat conftest.err >&5
6032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); } && {
6034          test -z "$ac_c_werror_flag" ||
6035          test ! -s conftest.err
6036        } && test -s conftest$ac_exeext && {
6037          test "$cross_compiling" = yes ||
6038          $as_test_x conftest$ac_exeext
6039        }; then
6040   ac_cv_type_long_long=yes
6041 else
6042   $as_echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6044
6045         ac_cv_type_long_long=no
6046 fi
6047
6048 rm -rf conftest.dSYM
6049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6050       conftest$ac_exeext conftest.$ac_ext
6051 fi
6052 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6053 $as_echo "$ac_cv_type_long_long" >&6; }
6054   if test $ac_cv_type_long_long = yes; then
6055
6056 cat >>confdefs.h <<\_ACEOF
6057 #define HAVE_LONG_LONG 1
6058 _ACEOF
6059
6060   fi
6061
6062
6063   { $as_echo "$as_me:$LINENO: checking for long double" >&5
6064 $as_echo_n "checking for long double... " >&6; }
6065 if test "${gt_cv_c_long_double+set}" = set; then
6066   $as_echo_n "(cached) " >&6
6067 else
6068   if test "$GCC" = yes; then
6069        gt_cv_c_long_double=yes
6070      else
6071        cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h.  */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h.  */
6077
6078          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6079          long double foo = 0.0;
6080          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6081          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6082
6083 int
6084 main ()
6085 {
6086
6087   ;
6088   return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6093 case "(($ac_try" in
6094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095   *) ac_try_echo=$ac_try;;
6096 esac
6097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6098 $as_echo "$ac_try_echo") >&5
6099   (eval "$ac_compile") 2>conftest.er1
6100   ac_status=$?
6101   grep -v '^ *+' conftest.er1 >conftest.err
6102   rm -f conftest.er1
6103   cat conftest.err >&5
6104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); } && {
6106          test -z "$ac_c_werror_flag" ||
6107          test ! -s conftest.err
6108        } && test -s conftest.$ac_objext; then
6109   gt_cv_c_long_double=yes
6110 else
6111   $as_echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6113
6114         gt_cv_c_long_double=no
6115 fi
6116
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118      fi
6119 fi
6120 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6121 $as_echo "$gt_cv_c_long_double" >&6; }
6122   if test $gt_cv_c_long_double = yes; then
6123
6124 cat >>confdefs.h <<\_ACEOF
6125 #define HAVE_LONG_DOUBLE 1
6126 _ACEOF
6127
6128   fi
6129
6130
6131   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6132 $as_echo_n "checking for wchar_t... " >&6; }
6133 if test "${gt_cv_c_wchar_t+set}" = set; then
6134   $as_echo_n "(cached) " >&6
6135 else
6136   cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 #include <stddef.h>
6143        wchar_t foo = (wchar_t)'\0';
6144 int
6145 main ()
6146 {
6147
6148   ;
6149   return 0;
6150 }
6151 _ACEOF
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6154 case "(($ac_try" in
6155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156   *) ac_try_echo=$ac_try;;
6157 esac
6158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6159 $as_echo "$ac_try_echo") >&5
6160   (eval "$ac_compile") 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } && {
6167          test -z "$ac_c_werror_flag" ||
6168          test ! -s conftest.err
6169        } && test -s conftest.$ac_objext; then
6170   gt_cv_c_wchar_t=yes
6171 else
6172   $as_echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6174
6175         gt_cv_c_wchar_t=no
6176 fi
6177
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 fi
6180 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6181 $as_echo "$gt_cv_c_wchar_t" >&6; }
6182   if test $gt_cv_c_wchar_t = yes; then
6183
6184 cat >>confdefs.h <<\_ACEOF
6185 #define HAVE_WCHAR_T 1
6186 _ACEOF
6187
6188   fi
6189
6190
6191   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6192 $as_echo_n "checking for wint_t... " >&6; }
6193 if test "${gt_cv_c_wint_t+set}" = set; then
6194   $as_echo_n "(cached) " >&6
6195 else
6196   cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h.  */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h.  */
6202 #include <wchar.h>
6203        wint_t foo = (wchar_t)'\0';
6204 int
6205 main ()
6206 {
6207
6208   ;
6209   return 0;
6210 }
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216   *) ac_try_echo=$ac_try;;
6217 esac
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220   (eval "$ac_compile") 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } && {
6227          test -z "$ac_c_werror_flag" ||
6228          test ! -s conftest.err
6229        } && test -s conftest.$ac_objext; then
6230   gt_cv_c_wint_t=yes
6231 else
6232   $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235         gt_cv_c_wint_t=no
6236 fi
6237
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 fi
6240 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6241 $as_echo "$gt_cv_c_wint_t" >&6; }
6242   if test $gt_cv_c_wint_t = yes; then
6243
6244 cat >>confdefs.h <<\_ACEOF
6245 #define HAVE_WINT_T 1
6246 _ACEOF
6247
6248   fi
6249
6250
6251   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6252 $as_echo_n "checking for inttypes.h... " >&6; }
6253 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6254   $as_echo_n "(cached) " >&6
6255 else
6256   cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 #include <sys/types.h>
6263 #include <inttypes.h>
6264 int
6265 main ()
6266 {
6267 uintmax_t i = (uintmax_t) -1;
6268   ;
6269   return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6274 case "(($ac_try" in
6275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276   *) ac_try_echo=$ac_try;;
6277 esac
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280   (eval "$ac_compile") 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && {
6287          test -z "$ac_c_werror_flag" ||
6288          test ! -s conftest.err
6289        } && test -s conftest.$ac_objext; then
6290   jm_ac_cv_header_inttypes_h=yes
6291 else
6292   $as_echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295         jm_ac_cv_header_inttypes_h=no
6296 fi
6297
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 fi
6300 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6301 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6302   if test $jm_ac_cv_header_inttypes_h = yes; then
6303
6304 cat >>confdefs.h <<_ACEOF
6305 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6306 _ACEOF
6307
6308   fi
6309
6310
6311   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6312 $as_echo_n "checking for stdint.h... " >&6; }
6313 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6314   $as_echo_n "(cached) " >&6
6315 else
6316   cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322 #include <sys/types.h>
6323 #include <stdint.h>
6324 int
6325 main ()
6326 {
6327 uintmax_t i = (uintmax_t) -1;
6328   ;
6329   return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext
6333 if { (ac_try="$ac_compile"
6334 case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6339 $as_echo "$ac_try_echo") >&5
6340   (eval "$ac_compile") 2>conftest.er1
6341   ac_status=$?
6342   grep -v '^ *+' conftest.er1 >conftest.err
6343   rm -f conftest.er1
6344   cat conftest.err >&5
6345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } && {
6347          test -z "$ac_c_werror_flag" ||
6348          test ! -s conftest.err
6349        } && test -s conftest.$ac_objext; then
6350   jm_ac_cv_header_stdint_h=yes
6351 else
6352   $as_echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355         jm_ac_cv_header_stdint_h=no
6356 fi
6357
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 fi
6360 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6361 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6362   if test $jm_ac_cv_header_stdint_h = yes; then
6363
6364 cat >>confdefs.h <<_ACEOF
6365 #define HAVE_STDINT_H_WITH_UINTMAX 1
6366 _ACEOF
6367
6368   fi
6369
6370
6371
6372
6373   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6374 $as_echo_n "checking for intmax_t... " >&6; }
6375 if test "${gt_cv_c_intmax_t+set}" = set; then
6376   $as_echo_n "(cached) " >&6
6377 else
6378   cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384
6385 #include <stddef.h>
6386 #include <stdlib.h>
6387 #if HAVE_STDINT_H_WITH_UINTMAX
6388 #include <stdint.h>
6389 #endif
6390 #if HAVE_INTTYPES_H_WITH_UINTMAX
6391 #include <inttypes.h>
6392 #endif
6393
6394 int
6395 main ()
6396 {
6397 intmax_t x = -1;
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406   *) ac_try_echo=$ac_try;;
6407 esac
6408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6409 $as_echo "$ac_try_echo") >&5
6410   (eval "$ac_compile") 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } && {
6417          test -z "$ac_c_werror_flag" ||
6418          test ! -s conftest.err
6419        } && test -s conftest.$ac_objext; then
6420   gt_cv_c_intmax_t=yes
6421 else
6422   $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425         gt_cv_c_intmax_t=no
6426 fi
6427
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 fi
6430 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6431 $as_echo "$gt_cv_c_intmax_t" >&6; }
6432   if test $gt_cv_c_intmax_t = yes; then
6433
6434 cat >>confdefs.h <<\_ACEOF
6435 #define HAVE_INTMAX_T 1
6436 _ACEOF
6437
6438   fi
6439
6440
6441
6442   { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6443 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6444 if test "${gt_cv_func_printf_posix+set}" = set; then
6445   $as_echo_n "(cached) " >&6
6446 else
6447
6448       if test "$cross_compiling" = yes; then
6449
6450         cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h.  */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h.  */
6456
6457 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6458   notposix
6459 #endif
6460
6461 _ACEOF
6462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463   $EGREP "notposix" >/dev/null 2>&1; then
6464   gt_cv_func_printf_posix="guessing no"
6465 else
6466   gt_cv_func_printf_posix="guessing yes"
6467 fi
6468 rm -f conftest*
6469
6470
6471 else
6472   cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h.  */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h.  */
6478
6479 #include <stdio.h>
6480 #include <string.h>
6481 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6482    dollar expansion (possibly an autoconf bug).  */
6483 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6484 static char buf[100];
6485 int main ()
6486 {
6487   sprintf (buf, format, 33, 55);
6488   return (strcmp (buf, "55 33") != 0);
6489 }
6490 _ACEOF
6491 rm -f conftest$ac_exeext
6492 if { (ac_try="$ac_link"
6493 case "(($ac_try" in
6494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495   *) ac_try_echo=$ac_try;;
6496 esac
6497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6498 $as_echo "$ac_try_echo") >&5
6499   (eval "$ac_link") 2>&5
6500   ac_status=$?
6501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6503   { (case "(($ac_try" in
6504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505   *) ac_try_echo=$ac_try;;
6506 esac
6507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6508 $as_echo "$ac_try_echo") >&5
6509   (eval "$ac_try") 2>&5
6510   ac_status=$?
6511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); }; }; then
6513   gt_cv_func_printf_posix=yes
6514 else
6515   $as_echo "$as_me: program exited with status $ac_status" >&5
6516 $as_echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6518
6519 ( exit $ac_status )
6520 gt_cv_func_printf_posix=no
6521 fi
6522 rm -rf conftest.dSYM
6523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6524 fi
6525
6526
6527
6528 fi
6529 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6530 $as_echo "$gt_cv_func_printf_posix" >&6; }
6531   case $gt_cv_func_printf_posix in
6532     *yes)
6533
6534 cat >>confdefs.h <<\_ACEOF
6535 #define HAVE_POSIX_PRINTF 1
6536 _ACEOF
6537
6538       ;;
6539   esac
6540
6541 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6542 # for constant arguments.  Useless!
6543 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6544 $as_echo_n "checking for working alloca.h... " >&6; }
6545 if test "${ac_cv_working_alloca_h+set}" = set; then
6546   $as_echo_n "(cached) " >&6
6547 else
6548   cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 #include <alloca.h>
6555 int
6556 main ()
6557 {
6558 char *p = (char *) alloca (2 * sizeof (int));
6559                           if (p) return 0;
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 rm -f conftest.$ac_objext conftest$ac_exeext
6565 if { (ac_try="$ac_link"
6566 case "(($ac_try" in
6567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568   *) ac_try_echo=$ac_try;;
6569 esac
6570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6571 $as_echo "$ac_try_echo") >&5
6572   (eval "$ac_link") 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } && {
6579          test -z "$ac_c_werror_flag" ||
6580          test ! -s conftest.err
6581        } && test -s conftest$ac_exeext && {
6582          test "$cross_compiling" = yes ||
6583          $as_test_x conftest$ac_exeext
6584        }; then
6585   ac_cv_working_alloca_h=yes
6586 else
6587   $as_echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590         ac_cv_working_alloca_h=no
6591 fi
6592
6593 rm -rf conftest.dSYM
6594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6595       conftest$ac_exeext conftest.$ac_ext
6596 fi
6597 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6598 $as_echo "$ac_cv_working_alloca_h" >&6; }
6599 if test $ac_cv_working_alloca_h = yes; then
6600
6601 cat >>confdefs.h <<\_ACEOF
6602 #define HAVE_ALLOCA_H 1
6603 _ACEOF
6604
6605 fi
6606
6607 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6608 $as_echo_n "checking for alloca... " >&6; }
6609 if test "${ac_cv_func_alloca_works+set}" = set; then
6610   $as_echo_n "(cached) " >&6
6611 else
6612   cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h.  */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h.  */
6618 #ifdef __GNUC__
6619 # define alloca __builtin_alloca
6620 #else
6621 # ifdef _MSC_VER
6622 #  include <malloc.h>
6623 #  define alloca _alloca
6624 # else
6625 #  ifdef HAVE_ALLOCA_H
6626 #   include <alloca.h>
6627 #  else
6628 #   ifdef _AIX
6629  #pragma alloca
6630 #   else
6631 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6632 char *alloca ();
6633 #    endif
6634 #   endif
6635 #  endif
6636 # endif
6637 #endif
6638
6639 int
6640 main ()
6641 {
6642 char *p = (char *) alloca (1);
6643                                     if (p) return 0;
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (ac_try="$ac_link"
6650 case "(($ac_try" in
6651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652   *) ac_try_echo=$ac_try;;
6653 esac
6654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6655 $as_echo "$ac_try_echo") >&5
6656   (eval "$ac_link") 2>conftest.er1
6657   ac_status=$?
6658   grep -v '^ *+' conftest.er1 >conftest.err
6659   rm -f conftest.er1
6660   cat conftest.err >&5
6661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); } && {
6663          test -z "$ac_c_werror_flag" ||
6664          test ! -s conftest.err
6665        } && test -s conftest$ac_exeext && {
6666          test "$cross_compiling" = yes ||
6667          $as_test_x conftest$ac_exeext
6668        }; then
6669   ac_cv_func_alloca_works=yes
6670 else
6671   $as_echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674         ac_cv_func_alloca_works=no
6675 fi
6676
6677 rm -rf conftest.dSYM
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6679       conftest$ac_exeext conftest.$ac_ext
6680 fi
6681 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6682 $as_echo "$ac_cv_func_alloca_works" >&6; }
6683
6684 if test $ac_cv_func_alloca_works = yes; then
6685
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_ALLOCA 1
6688 _ACEOF
6689
6690 else
6691   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6692 # that cause trouble.  Some versions do not even contain alloca or
6693 # contain a buggy version.  If you still want to use their alloca,
6694 # use ar to extract alloca.o from them instead of compiling alloca.c.
6695
6696 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6697
6698 cat >>confdefs.h <<\_ACEOF
6699 #define C_ALLOCA 1
6700 _ACEOF
6701
6702
6703 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6704 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6705 if test "${ac_cv_os_cray+set}" = set; then
6706   $as_echo_n "(cached) " >&6
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 #if defined CRAY && ! defined CRAY2
6715 webecray
6716 #else
6717 wenotbecray
6718 #endif
6719
6720 _ACEOF
6721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6722   $EGREP "webecray" >/dev/null 2>&1; then
6723   ac_cv_os_cray=yes
6724 else
6725   ac_cv_os_cray=no
6726 fi
6727 rm -f conftest*
6728
6729 fi
6730 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6731 $as_echo "$ac_cv_os_cray" >&6; }
6732 if test $ac_cv_os_cray = yes; then
6733   for ac_func in _getb67 GETB67 getb67; do
6734     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6736 $as_echo_n "checking for $ac_func... " >&6; }
6737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6738   $as_echo_n "(cached) " >&6
6739 else
6740   cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6748 #define $ac_func innocuous_$ac_func
6749
6750 /* System header to define __stub macros and hopefully few prototypes,
6751     which can conflict with char $ac_func (); below.
6752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753     <limits.h> exists even on freestanding compilers.  */
6754
6755 #ifdef __STDC__
6756 # include <limits.h>
6757 #else
6758 # include <assert.h>
6759 #endif
6760
6761 #undef $ac_func
6762
6763 /* Override any GCC internal prototype to avoid an error.
6764    Use char because int might match the return type of a GCC
6765    builtin and then its argument prototype would still apply.  */
6766 #ifdef __cplusplus
6767 extern "C"
6768 #endif
6769 char $ac_func ();
6770 /* The GNU C library defines this for functions which it implements
6771     to always fail with ENOSYS.  Some functions are actually named
6772     something starting with __ and the normal name is an alias.  */
6773 #if defined __stub_$ac_func || defined __stub___$ac_func
6774 choke me
6775 #endif
6776
6777 int
6778 main ()
6779 {
6780 return $ac_func ();
6781   ;
6782   return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest.$ac_objext conftest$ac_exeext
6786 if { (ac_try="$ac_link"
6787 case "(($ac_try" in
6788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789   *) ac_try_echo=$ac_try;;
6790 esac
6791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6792 $as_echo "$ac_try_echo") >&5
6793   (eval "$ac_link") 2>conftest.er1
6794   ac_status=$?
6795   grep -v '^ *+' conftest.er1 >conftest.err
6796   rm -f conftest.er1
6797   cat conftest.err >&5
6798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } && {
6800          test -z "$ac_c_werror_flag" ||
6801          test ! -s conftest.err
6802        } && test -s conftest$ac_exeext && {
6803          test "$cross_compiling" = yes ||
6804          $as_test_x conftest$ac_exeext
6805        }; then
6806   eval "$as_ac_var=yes"
6807 else
6808   $as_echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6810
6811         eval "$as_ac_var=no"
6812 fi
6813
6814 rm -rf conftest.dSYM
6815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6816       conftest$ac_exeext conftest.$ac_ext
6817 fi
6818 ac_res=`eval 'as_val=${'$as_ac_var'}
6819                  $as_echo "$as_val"'`
6820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6821 $as_echo "$ac_res" >&6; }
6822 as_val=`eval 'as_val=${'$as_ac_var'}
6823                  $as_echo "$as_val"'`
6824    if test "x$as_val" = x""yes; then
6825
6826 cat >>confdefs.h <<_ACEOF
6827 #define CRAY_STACKSEG_END $ac_func
6828 _ACEOF
6829
6830     break
6831 fi
6832
6833   done
6834 fi
6835
6836 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6837 $as_echo_n "checking stack direction for C alloca... " >&6; }
6838 if test "${ac_cv_c_stack_direction+set}" = set; then
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test "$cross_compiling" = yes; then
6842   ac_cv_c_stack_direction=0
6843 else
6844   cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850 $ac_includes_default
6851 int
6852 find_stack_direction ()
6853 {
6854   static char *addr = 0;
6855   auto char dummy;
6856   if (addr == 0)
6857     {
6858       addr = &dummy;
6859       return find_stack_direction ();
6860     }
6861   else
6862     return (&dummy > addr) ? 1 : -1;
6863 }
6864
6865 int
6866 main ()
6867 {
6868   return find_stack_direction () < 0;
6869 }
6870 _ACEOF
6871 rm -f conftest$ac_exeext
6872 if { (ac_try="$ac_link"
6873 case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879   (eval "$ac_link") 2>&5
6880   ac_status=$?
6881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6883   { (case "(($ac_try" in
6884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885   *) ac_try_echo=$ac_try;;
6886 esac
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889   (eval "$ac_try") 2>&5
6890   ac_status=$?
6891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; }; then
6893   ac_cv_c_stack_direction=1
6894 else
6895   $as_echo "$as_me: program exited with status $ac_status" >&5
6896 $as_echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 ( exit $ac_status )
6900 ac_cv_c_stack_direction=-1
6901 fi
6902 rm -rf conftest.dSYM
6903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6904 fi
6905
6906
6907 fi
6908 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6909 $as_echo "$ac_cv_c_stack_direction" >&6; }
6910
6911 cat >>confdefs.h <<_ACEOF
6912 #define STACK_DIRECTION $ac_cv_c_stack_direction
6913 _ACEOF
6914
6915
6916 fi
6917
6918
6919
6920 for ac_header in stdlib.h unistd.h
6921 do
6922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6924   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6925 $as_echo_n "checking for $ac_header... " >&6; }
6926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6927   $as_echo_n "(cached) " >&6
6928 fi
6929 ac_res=`eval 'as_val=${'$as_ac_Header'}
6930                  $as_echo "$as_val"'`
6931                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6932 $as_echo "$ac_res" >&6; }
6933 else
6934   # Is the header compilable?
6935 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6936 $as_echo_n "checking $ac_header usability... " >&6; }
6937 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h.  */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h.  */
6943 $ac_includes_default
6944 #include <$ac_header>
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6948 case "(($ac_try" in
6949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950   *) ac_try_echo=$ac_try;;
6951 esac
6952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6953 $as_echo "$ac_try_echo") >&5
6954   (eval "$ac_compile") 2>conftest.er1
6955   ac_status=$?
6956   grep -v '^ *+' conftest.er1 >conftest.err
6957   rm -f conftest.er1
6958   cat conftest.err >&5
6959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); } && {
6961          test -z "$ac_c_werror_flag" ||
6962          test ! -s conftest.err
6963        } && test -s conftest.$ac_objext; then
6964   ac_header_compiler=yes
6965 else
6966   $as_echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969         ac_header_compiler=no
6970 fi
6971
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6974 $as_echo "$ac_header_compiler" >&6; }
6975
6976 # Is the header present?
6977 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6978 $as_echo_n "checking $ac_header presence... " >&6; }
6979 cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h.  */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h.  */
6985 #include <$ac_header>
6986 _ACEOF
6987 if { (ac_try="$ac_cpp conftest.$ac_ext"
6988 case "(($ac_try" in
6989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990   *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6995   ac_status=$?
6996   grep -v '^ *+' conftest.er1 >conftest.err
6997   rm -f conftest.er1
6998   cat conftest.err >&5
6999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } >/dev/null && {
7001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002          test ! -s conftest.err
7003        }; then
7004   ac_header_preproc=yes
7005 else
7006   $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009   ac_header_preproc=no
7010 fi
7011
7012 rm -f conftest.err conftest.$ac_ext
7013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7014 $as_echo "$ac_header_preproc" >&6; }
7015
7016 # So?  What about this header?
7017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7018   yes:no: )
7019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7020 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7021     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7022 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7023     ac_header_preproc=yes
7024     ;;
7025   no:yes:* )
7026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7027 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7029 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7030     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7031 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7033 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7034     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7036     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7037 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7038
7039     ;;
7040 esac
7041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7042 $as_echo_n "checking for $ac_header... " >&6; }
7043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7044   $as_echo_n "(cached) " >&6
7045 else
7046   eval "$as_ac_Header=\$ac_header_preproc"
7047 fi
7048 ac_res=`eval 'as_val=${'$as_ac_Header'}
7049                  $as_echo "$as_val"'`
7050                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7051 $as_echo "$ac_res" >&6; }
7052
7053 fi
7054 as_val=`eval 'as_val=${'$as_ac_Header'}
7055                  $as_echo "$as_val"'`
7056    if test "x$as_val" = x""yes; then
7057   cat >>confdefs.h <<_ACEOF
7058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7059 _ACEOF
7060
7061 fi
7062
7063 done
7064
7065
7066 for ac_func in getpagesize
7067 do
7068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7069 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7070 $as_echo_n "checking for $ac_func... " >&6; }
7071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7072   $as_echo_n "(cached) " >&6
7073 else
7074   cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7082 #define $ac_func innocuous_$ac_func
7083
7084 /* System header to define __stub macros and hopefully few prototypes,
7085     which can conflict with char $ac_func (); below.
7086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7087     <limits.h> exists even on freestanding compilers.  */
7088
7089 #ifdef __STDC__
7090 # include <limits.h>
7091 #else
7092 # include <assert.h>
7093 #endif
7094
7095 #undef $ac_func
7096
7097 /* Override any GCC internal prototype to avoid an error.
7098    Use char because int might match the return type of a GCC
7099    builtin and then its argument prototype would still apply.  */
7100 #ifdef __cplusplus
7101 extern "C"
7102 #endif
7103 char $ac_func ();
7104 /* The GNU C library defines this for functions which it implements
7105     to always fail with ENOSYS.  Some functions are actually named
7106     something starting with __ and the normal name is an alias.  */
7107 #if defined __stub_$ac_func || defined __stub___$ac_func
7108 choke me
7109 #endif
7110
7111 int
7112 main ()
7113 {
7114 return $ac_func ();
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (ac_try="$ac_link"
7121 case "(($ac_try" in
7122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123   *) ac_try_echo=$ac_try;;
7124 esac
7125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126 $as_echo "$ac_try_echo") >&5
7127   (eval "$ac_link") 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } && {
7134          test -z "$ac_c_werror_flag" ||
7135          test ! -s conftest.err
7136        } && test -s conftest$ac_exeext && {
7137          test "$cross_compiling" = yes ||
7138          $as_test_x conftest$ac_exeext
7139        }; then
7140   eval "$as_ac_var=yes"
7141 else
7142   $as_echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145         eval "$as_ac_var=no"
7146 fi
7147
7148 rm -rf conftest.dSYM
7149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7150       conftest$ac_exeext conftest.$ac_ext
7151 fi
7152 ac_res=`eval 'as_val=${'$as_ac_var'}
7153                  $as_echo "$as_val"'`
7154                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7155 $as_echo "$ac_res" >&6; }
7156 as_val=`eval 'as_val=${'$as_ac_var'}
7157                  $as_echo "$as_val"'`
7158    if test "x$as_val" = x""yes; then
7159   cat >>confdefs.h <<_ACEOF
7160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7161 _ACEOF
7162
7163 fi
7164 done
7165
7166 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7167 $as_echo_n "checking for working mmap... " >&6; }
7168 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test "$cross_compiling" = yes; then
7172   ac_cv_func_mmap_fixed_mapped=no
7173 else
7174   cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h.  */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h.  */
7180 $ac_includes_default
7181 /* malloc might have been renamed as rpl_malloc. */
7182 #undef malloc
7183
7184 /* Thanks to Mike Haertel and Jim Avera for this test.
7185    Here is a matrix of mmap possibilities:
7186         mmap private not fixed
7187         mmap private fixed at somewhere currently unmapped
7188         mmap private fixed at somewhere already mapped
7189         mmap shared not fixed
7190         mmap shared fixed at somewhere currently unmapped
7191         mmap shared fixed at somewhere already mapped
7192    For private mappings, we should verify that changes cannot be read()
7193    back from the file, nor mmap's back from the file at a different
7194    address.  (There have been systems where private was not correctly
7195    implemented like the infamous i386 svr4.0, and systems where the
7196    VM page cache was not coherent with the file system buffer cache
7197    like early versions of FreeBSD and possibly contemporary NetBSD.)
7198    For shared mappings, we should conversely verify that changes get
7199    propagated back to all the places they're supposed to be.
7200
7201    Grep wants private fixed already mapped.
7202    The main things grep needs to know about mmap are:
7203    * does it exist and is it safe to write into the mmap'd area
7204    * how to use it (BSD variants)  */
7205
7206 #include <fcntl.h>
7207 #include <sys/mman.h>
7208
7209 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7210 char *malloc ();
7211 #endif
7212
7213 /* This mess was copied from the GNU getpagesize.h.  */
7214 #ifndef HAVE_GETPAGESIZE
7215 /* Assume that all systems that can run configure have sys/param.h.  */
7216 # ifndef HAVE_SYS_PARAM_H
7217 #  define HAVE_SYS_PARAM_H 1
7218 # endif
7219
7220 # ifdef _SC_PAGESIZE
7221 #  define getpagesize() sysconf(_SC_PAGESIZE)
7222 # else /* no _SC_PAGESIZE */
7223 #  ifdef HAVE_SYS_PARAM_H
7224 #   include <sys/param.h>
7225 #   ifdef EXEC_PAGESIZE
7226 #    define getpagesize() EXEC_PAGESIZE
7227 #   else /* no EXEC_PAGESIZE */
7228 #    ifdef NBPG
7229 #     define getpagesize() NBPG * CLSIZE
7230 #     ifndef CLSIZE
7231 #      define CLSIZE 1
7232 #     endif /* no CLSIZE */
7233 #    else /* no NBPG */
7234 #     ifdef NBPC
7235 #      define getpagesize() NBPC
7236 #     else /* no NBPC */
7237 #      ifdef PAGESIZE
7238 #       define getpagesize() PAGESIZE
7239 #      endif /* PAGESIZE */
7240 #     endif /* no NBPC */
7241 #    endif /* no NBPG */
7242 #   endif /* no EXEC_PAGESIZE */
7243 #  else /* no HAVE_SYS_PARAM_H */
7244 #   define getpagesize() 8192   /* punt totally */
7245 #  endif /* no HAVE_SYS_PARAM_H */
7246 # endif /* no _SC_PAGESIZE */
7247
7248 #endif /* no HAVE_GETPAGESIZE */
7249
7250 int
7251 main ()
7252 {
7253   char *data, *data2, *data3;
7254   int i, pagesize;
7255   int fd;
7256
7257   pagesize = getpagesize ();
7258
7259   /* First, make a file with some known garbage in it. */
7260   data = (char *) malloc (pagesize);
7261   if (!data)
7262     return 1;
7263   for (i = 0; i < pagesize; ++i)
7264     *(data + i) = rand ();
7265   umask (0);
7266   fd = creat ("conftest.mmap", 0600);
7267   if (fd < 0)
7268     return 1;
7269   if (write (fd, data, pagesize) != pagesize)
7270     return 1;
7271   close (fd);
7272
7273   /* Next, try to mmap the file at a fixed address which already has
7274      something else allocated at it.  If we can, also make sure that
7275      we see the same garbage.  */
7276   fd = open ("conftest.mmap", O_RDWR);
7277   if (fd < 0)
7278     return 1;
7279   data2 = (char *) malloc (2 * pagesize);
7280   if (!data2)
7281     return 1;
7282   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7283   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7284                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7285     return 1;
7286   for (i = 0; i < pagesize; ++i)
7287     if (*(data + i) != *(data2 + i))
7288       return 1;
7289
7290   /* Finally, make sure that changes to the mapped area do not
7291      percolate back to the file as seen by read().  (This is a bug on
7292      some variants of i386 svr4.0.)  */
7293   for (i = 0; i < pagesize; ++i)
7294     *(data2 + i) = *(data2 + i) + 1;
7295   data3 = (char *) malloc (pagesize);
7296   if (!data3)
7297     return 1;
7298   if (read (fd, data3, pagesize) != pagesize)
7299     return 1;
7300   for (i = 0; i < pagesize; ++i)
7301     if (*(data + i) != *(data3 + i))
7302       return 1;
7303   close (fd);
7304   return 0;
7305 }
7306 _ACEOF
7307 rm -f conftest$ac_exeext
7308 if { (ac_try="$ac_link"
7309 case "(($ac_try" in
7310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311   *) ac_try_echo=$ac_try;;
7312 esac
7313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7314 $as_echo "$ac_try_echo") >&5
7315   (eval "$ac_link") 2>&5
7316   ac_status=$?
7317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7319   { (case "(($ac_try" in
7320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321   *) ac_try_echo=$ac_try;;
7322 esac
7323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7324 $as_echo "$ac_try_echo") >&5
7325   (eval "$ac_try") 2>&5
7326   ac_status=$?
7327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; }; then
7329   ac_cv_func_mmap_fixed_mapped=yes
7330 else
7331   $as_echo "$as_me: program exited with status $ac_status" >&5
7332 $as_echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7334
7335 ( exit $ac_status )
7336 ac_cv_func_mmap_fixed_mapped=no
7337 fi
7338 rm -rf conftest.dSYM
7339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7340 fi
7341
7342
7343 fi
7344 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7345 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7346 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7347
7348 cat >>confdefs.h <<\_ACEOF
7349 #define HAVE_MMAP 1
7350 _ACEOF
7351
7352 fi
7353 rm -f conftest.mmap
7354
7355
7356     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7357 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7358 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7359   $as_echo_n "(cached) " >&6
7360 else
7361   cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h.  */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h.  */
7367
7368 #include <features.h>
7369 #ifdef __GNU_LIBRARY__
7370  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7371   Lucky GNU user
7372  #endif
7373 #endif
7374
7375 _ACEOF
7376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7377   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7378   ac_cv_gnu_library_2_1=yes
7379 else
7380   ac_cv_gnu_library_2_1=no
7381 fi
7382 rm -f conftest*
7383
7384
7385
7386 fi
7387 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7388 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7389
7390     GLIBC21="$ac_cv_gnu_library_2_1"
7391
7392
7393
7394
7395   { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7396 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7397 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7398   $as_echo_n "(cached) " >&6
7399 else
7400
7401       if test "$cross_compiling" = yes; then
7402
7403           # Guess based on the CPU.
7404           case "$host_cpu" in
7405             alpha* | i3456786 | m68k | s390*)
7406               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7407             *)
7408               gt_cv_int_divbyzero_sigfpe="guessing no";;
7409           esac
7410
7411 else
7412   cat >conftest.$ac_ext <<_ACEOF
7413 /* confdefs.h.  */
7414 _ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h.  */
7418
7419 #include <stdlib.h>
7420 #include <signal.h>
7421
7422 static void
7423 #ifdef __cplusplus
7424 sigfpe_handler (int sig)
7425 #else
7426 sigfpe_handler (sig) int sig;
7427 #endif
7428 {
7429   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7430   exit (sig != SIGFPE);
7431 }
7432
7433 int x = 1;
7434 int y = 0;
7435 int z;
7436 int nan;
7437
7438 int main ()
7439 {
7440   signal (SIGFPE, sigfpe_handler);
7441 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7442 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7443   signal (SIGTRAP, sigfpe_handler);
7444 #endif
7445 /* Linux/SPARC yields signal SIGILL.  */
7446 #if defined (__sparc__) && defined (__linux__)
7447   signal (SIGILL, sigfpe_handler);
7448 #endif
7449
7450   z = x / y;
7451   nan = y / y;
7452   exit (1);
7453 }
7454
7455 _ACEOF
7456 rm -f conftest$ac_exeext
7457 if { (ac_try="$ac_link"
7458 case "(($ac_try" in
7459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460   *) ac_try_echo=$ac_try;;
7461 esac
7462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7463 $as_echo "$ac_try_echo") >&5
7464   (eval "$ac_link") 2>&5
7465   ac_status=$?
7466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7468   { (case "(($ac_try" in
7469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470   *) ac_try_echo=$ac_try;;
7471 esac
7472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7473 $as_echo "$ac_try_echo") >&5
7474   (eval "$ac_try") 2>&5
7475   ac_status=$?
7476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); }; }; then
7478   gt_cv_int_divbyzero_sigfpe=yes
7479 else
7480   $as_echo "$as_me: program exited with status $ac_status" >&5
7481 $as_echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 ( exit $ac_status )
7485 gt_cv_int_divbyzero_sigfpe=no
7486 fi
7487 rm -rf conftest.dSYM
7488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7489 fi
7490
7491
7492
7493 fi
7494 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7495 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7496   case "$gt_cv_int_divbyzero_sigfpe" in
7497     *yes) value=1;;
7498     *) value=0;;
7499   esac
7500
7501 cat >>confdefs.h <<_ACEOF
7502 #define INTDIV0_RAISES_SIGFPE $value
7503 _ACEOF
7504
7505
7506
7507   { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7508 $as_echo_n "checking for unsigned long long... " >&6; }
7509 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7510   $as_echo_n "(cached) " >&6
7511 else
7512   cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h.  */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h.  */
7518 unsigned long long ull = 1ULL; int i = 63;
7519 int
7520 main ()
7521 {
7522 unsigned long long ullmax = (unsigned long long) -1;
7523      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7524   ;
7525   return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (ac_try="$ac_link"
7530 case "(($ac_try" in
7531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532   *) ac_try_echo=$ac_try;;
7533 esac
7534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535 $as_echo "$ac_try_echo") >&5
7536   (eval "$ac_link") 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } && {
7543          test -z "$ac_c_werror_flag" ||
7544          test ! -s conftest.err
7545        } && test -s conftest$ac_exeext && {
7546          test "$cross_compiling" = yes ||
7547          $as_test_x conftest$ac_exeext
7548        }; then
7549   ac_cv_type_unsigned_long_long=yes
7550 else
7551   $as_echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554         ac_cv_type_unsigned_long_long=no
7555 fi
7556
7557 rm -rf conftest.dSYM
7558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7559       conftest$ac_exeext conftest.$ac_ext
7560 fi
7561 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7562 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7563   if test $ac_cv_type_unsigned_long_long = yes; then
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define HAVE_UNSIGNED_LONG_LONG 1
7567 _ACEOF
7568
7569   fi
7570
7571
7572
7573
7574   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7575
7576     test $ac_cv_type_unsigned_long_long = yes \
7577       && ac_type='unsigned long long' \
7578       || ac_type='unsigned long'
7579
7580 cat >>confdefs.h <<_ACEOF
7581 #define uintmax_t $ac_type
7582 _ACEOF
7583
7584   else
7585
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_UINTMAX_T 1
7588 _ACEOF
7589
7590   fi
7591
7592
7593   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7594 $as_echo_n "checking for inttypes.h... " >&6; }
7595 if test "${gt_cv_header_inttypes_h+set}" = set; then
7596   $as_echo_n "(cached) " >&6
7597 else
7598
7599     cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h.  */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h.  */
7605 #include <sys/types.h>
7606 #include <inttypes.h>
7607 int
7608 main ()
7609 {
7610
7611   ;
7612   return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7617 case "(($ac_try" in
7618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619   *) ac_try_echo=$ac_try;;
7620 esac
7621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7622 $as_echo "$ac_try_echo") >&5
7623   (eval "$ac_compile") 2>conftest.er1
7624   ac_status=$?
7625   grep -v '^ *+' conftest.er1 >conftest.err
7626   rm -f conftest.er1
7627   cat conftest.err >&5
7628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } && {
7630          test -z "$ac_c_werror_flag" ||
7631          test ! -s conftest.err
7632        } && test -s conftest.$ac_objext; then
7633   gt_cv_header_inttypes_h=yes
7634 else
7635   $as_echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638         gt_cv_header_inttypes_h=no
7639 fi
7640
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642
7643 fi
7644 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7645 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7646   if test $gt_cv_header_inttypes_h = yes; then
7647
7648 cat >>confdefs.h <<_ACEOF
7649 #define HAVE_INTTYPES_H 1
7650 _ACEOF
7651
7652   fi
7653
7654
7655
7656   if test $gt_cv_header_inttypes_h = yes; then
7657     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7658 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7659 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7660   $as_echo_n "(cached) " >&6
7661 else
7662
7663         cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h.  */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h.  */
7669 #include <inttypes.h>
7670 #ifdef PRId32
7671 char *p = PRId32;
7672 #endif
7673
7674 int
7675 main ()
7676 {
7677
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7684 case "(($ac_try" in
7685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686   *) ac_try_echo=$ac_try;;
7687 esac
7688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7689 $as_echo "$ac_try_echo") >&5
7690   (eval "$ac_compile") 2>conftest.er1
7691   ac_status=$?
7692   grep -v '^ *+' conftest.er1 >conftest.err
7693   rm -f conftest.er1
7694   cat conftest.err >&5
7695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); } && {
7697          test -z "$ac_c_werror_flag" ||
7698          test ! -s conftest.err
7699        } && test -s conftest.$ac_objext; then
7700   gt_cv_inttypes_pri_broken=no
7701 else
7702   $as_echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705         gt_cv_inttypes_pri_broken=yes
7706 fi
7707
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709
7710 fi
7711 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7712 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7713   fi
7714   if test "$gt_cv_inttypes_pri_broken" = yes; then
7715
7716 cat >>confdefs.h <<_ACEOF
7717 #define PRI_MACROS_BROKEN 1
7718 _ACEOF
7719
7720   fi
7721
7722
7723
7724 for ac_header in stdint.h
7725 do
7726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7728   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7729 $as_echo_n "checking for $ac_header... " >&6; }
7730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7731   $as_echo_n "(cached) " >&6
7732 fi
7733 ac_res=`eval 'as_val=${'$as_ac_Header'}
7734                  $as_echo "$as_val"'`
7735                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7736 $as_echo "$ac_res" >&6; }
7737 else
7738   # Is the header compilable?
7739 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7740 $as_echo_n "checking $ac_header usability... " >&6; }
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h.  */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h.  */
7747 $ac_includes_default
7748 #include <$ac_header>
7749 _ACEOF
7750 rm -f conftest.$ac_objext
7751 if { (ac_try="$ac_compile"
7752 case "(($ac_try" in
7753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754   *) ac_try_echo=$ac_try;;
7755 esac
7756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7757 $as_echo "$ac_try_echo") >&5
7758   (eval "$ac_compile") 2>conftest.er1
7759   ac_status=$?
7760   grep -v '^ *+' conftest.er1 >conftest.err
7761   rm -f conftest.er1
7762   cat conftest.err >&5
7763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } && {
7765          test -z "$ac_c_werror_flag" ||
7766          test ! -s conftest.err
7767        } && test -s conftest.$ac_objext; then
7768   ac_header_compiler=yes
7769 else
7770   $as_echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773         ac_header_compiler=no
7774 fi
7775
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7778 $as_echo "$ac_header_compiler" >&6; }
7779
7780 # Is the header present?
7781 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7782 $as_echo_n "checking $ac_header presence... " >&6; }
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789 #include <$ac_header>
7790 _ACEOF
7791 if { (ac_try="$ac_cpp conftest.$ac_ext"
7792 case "(($ac_try" in
7793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794   *) ac_try_echo=$ac_try;;
7795 esac
7796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797 $as_echo "$ac_try_echo") >&5
7798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7799   ac_status=$?
7800   grep -v '^ *+' conftest.er1 >conftest.err
7801   rm -f conftest.er1
7802   cat conftest.err >&5
7803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } >/dev/null && {
7805          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7806          test ! -s conftest.err
7807        }; then
7808   ac_header_preproc=yes
7809 else
7810   $as_echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813   ac_header_preproc=no
7814 fi
7815
7816 rm -f conftest.err conftest.$ac_ext
7817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7818 $as_echo "$ac_header_preproc" >&6; }
7819
7820 # So?  What about this header?
7821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7822   yes:no: )
7823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7824 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7826 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7827     ac_header_preproc=yes
7828     ;;
7829   no:yes:* )
7830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7831 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7833 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7835 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7837 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7838     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7840     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7841 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7842
7843     ;;
7844 esac
7845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7846 $as_echo_n "checking for $ac_header... " >&6; }
7847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7848   $as_echo_n "(cached) " >&6
7849 else
7850   eval "$as_ac_Header=\$ac_header_preproc"
7851 fi
7852 ac_res=`eval 'as_val=${'$as_ac_Header'}
7853                  $as_echo "$as_val"'`
7854                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7855 $as_echo "$ac_res" >&6; }
7856
7857 fi
7858 as_val=`eval 'as_val=${'$as_ac_Header'}
7859                  $as_echo "$as_val"'`
7860    if test "x$as_val" = x""yes; then
7861   cat >>confdefs.h <<_ACEOF
7862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7863 _ACEOF
7864
7865 fi
7866
7867 done
7868
7869     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7870 $as_echo_n "checking for SIZE_MAX... " >&6; }
7871   result=
7872   cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h.  */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h.  */
7878
7879 #include <limits.h>
7880 #if HAVE_STDINT_H
7881 #include <stdint.h>
7882 #endif
7883 #ifdef SIZE_MAX
7884 Found it
7885 #endif
7886
7887 _ACEOF
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889   $EGREP "Found it" >/dev/null 2>&1; then
7890   result=yes
7891 fi
7892 rm -f conftest*
7893
7894   if test -z "$result"; then
7895                     if test "$cross_compiling" = yes; then
7896   # Depending upon the size, compute the lo and hi bounds.
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903 #include <stddef.h>
7904 int
7905 main ()
7906 {
7907 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7908 test_array [0] = 0
7909
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7916 case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7921 $as_echo "$ac_try_echo") >&5
7922   (eval "$ac_compile") 2>conftest.er1
7923   ac_status=$?
7924   grep -v '^ *+' conftest.er1 >conftest.err
7925   rm -f conftest.er1
7926   cat conftest.err >&5
7927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } && {
7929          test -z "$ac_c_werror_flag" ||
7930          test ! -s conftest.err
7931        } && test -s conftest.$ac_objext; then
7932   ac_lo=0 ac_mid=0
7933   while :; do
7934     cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h.  */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h.  */
7940 #include <stddef.h>
7941 int
7942 main ()
7943 {
7944 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7945 test_array [0] = 0
7946
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext
7952 if { (ac_try="$ac_compile"
7953 case "(($ac_try" in
7954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955   *) ac_try_echo=$ac_try;;
7956 esac
7957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7958 $as_echo "$ac_try_echo") >&5
7959   (eval "$ac_compile") 2>conftest.er1
7960   ac_status=$?
7961   grep -v '^ *+' conftest.er1 >conftest.err
7962   rm -f conftest.er1
7963   cat conftest.err >&5
7964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } && {
7966          test -z "$ac_c_werror_flag" ||
7967          test ! -s conftest.err
7968        } && test -s conftest.$ac_objext; then
7969   ac_hi=$ac_mid; break
7970 else
7971   $as_echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7973
7974         ac_lo=`expr $ac_mid + 1`
7975                         if test $ac_lo -le $ac_mid; then
7976                           ac_lo= ac_hi=
7977                           break
7978                         fi
7979                         ac_mid=`expr 2 '*' $ac_mid + 1`
7980 fi
7981
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983   done
7984 else
7985   $as_echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988         cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h.  */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h.  */
7994 #include <stddef.h>
7995 int
7996 main ()
7997 {
7998 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7999 test_array [0] = 0
8000
8001   ;
8002   return 0;
8003 }
8004 _ACEOF
8005 rm -f conftest.$ac_objext
8006 if { (ac_try="$ac_compile"
8007 case "(($ac_try" in
8008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009   *) ac_try_echo=$ac_try;;
8010 esac
8011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012 $as_echo "$ac_try_echo") >&5
8013   (eval "$ac_compile") 2>conftest.er1
8014   ac_status=$?
8015   grep -v '^ *+' conftest.er1 >conftest.err
8016   rm -f conftest.er1
8017   cat conftest.err >&5
8018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } && {
8020          test -z "$ac_c_werror_flag" ||
8021          test ! -s conftest.err
8022        } && test -s conftest.$ac_objext; then
8023   ac_hi=-1 ac_mid=-1
8024   while :; do
8025     cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h.  */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h.  */
8031 #include <stddef.h>
8032 int
8033 main ()
8034 {
8035 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8036 test_array [0] = 0
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8044 case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8049 $as_echo "$ac_try_echo") >&5
8050   (eval "$ac_compile") 2>conftest.er1
8051   ac_status=$?
8052   grep -v '^ *+' conftest.er1 >conftest.err
8053   rm -f conftest.er1
8054   cat conftest.err >&5
8055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); } && {
8057          test -z "$ac_c_werror_flag" ||
8058          test ! -s conftest.err
8059        } && test -s conftest.$ac_objext; then
8060   ac_lo=$ac_mid; break
8061 else
8062   $as_echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065         ac_hi=`expr '(' $ac_mid ')' - 1`
8066                         if test $ac_mid -le $ac_hi; then
8067                           ac_lo= ac_hi=
8068                           break
8069                         fi
8070                         ac_mid=`expr 2 '*' $ac_mid`
8071 fi
8072
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074   done
8075 else
8076   $as_echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079         ac_lo= ac_hi=
8080 fi
8081
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 fi
8084
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 # Binary search between lo and hi bounds.
8087 while test "x$ac_lo" != "x$ac_hi"; do
8088   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8089   cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 #include <stddef.h>
8096 int
8097 main ()
8098 {
8099 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8100 test_array [0] = 0
8101
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8113 $as_echo "$ac_try_echo") >&5
8114   (eval "$ac_compile") 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } && {
8121          test -z "$ac_c_werror_flag" ||
8122          test ! -s conftest.err
8123        } && test -s conftest.$ac_objext; then
8124   ac_hi=$ac_mid
8125 else
8126   $as_echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129         ac_lo=`expr '(' $ac_mid ')' + 1`
8130 fi
8131
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 done
8134 case $ac_lo in
8135 ?*) res_hi=$ac_lo;;
8136 '') result=? ;;
8137 esac
8138 else
8139   cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145 #include <stddef.h>
8146 static long int longval () { return ~(size_t)0 / 10; }
8147 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
8148 #include <stdio.h>
8149 #include <stdlib.h>
8150 int
8151 main ()
8152 {
8153
8154   FILE *f = fopen ("conftest.val", "w");
8155   if (! f)
8156     return 1;
8157   if ((~(size_t)0 / 10) < 0)
8158     {
8159       long int i = longval ();
8160       if (i != (~(size_t)0 / 10))
8161         return 1;
8162       fprintf (f, "%ld", i);
8163     }
8164   else
8165     {
8166       unsigned long int i = ulongval ();
8167       if (i != (~(size_t)0 / 10))
8168         return 1;
8169       fprintf (f, "%lu", i);
8170     }
8171   /* Do not output a trailing newline, as this causes \r\n confusion
8172      on some platforms.  */
8173   return ferror (f) || fclose (f) != 0;
8174
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest$ac_exeext
8180 if { (ac_try="$ac_link"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187   (eval "$ac_link") 2>&5
8188   ac_status=$?
8189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8191   { (case "(($ac_try" in
8192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193   *) ac_try_echo=$ac_try;;
8194 esac
8195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196 $as_echo "$ac_try_echo") >&5
8197   (eval "$ac_try") 2>&5
8198   ac_status=$?
8199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); }; }; then
8201   res_hi=`cat conftest.val`
8202 else
8203   $as_echo "$as_me: program exited with status $ac_status" >&5
8204 $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ( exit $ac_status )
8208 result=?
8209 fi
8210 rm -rf conftest.dSYM
8211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8212 fi
8213 rm -f conftest.val
8214
8215     if test "$cross_compiling" = yes; then
8216   # Depending upon the size, compute the lo and hi bounds.
8217 cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223 #include <stddef.h>
8224 int
8225 main ()
8226 {
8227 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8228 test_array [0] = 0
8229
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8236 case "(($ac_try" in
8237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238   *) ac_try_echo=$ac_try;;
8239 esac
8240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8241 $as_echo "$ac_try_echo") >&5
8242   (eval "$ac_compile") 2>conftest.er1
8243   ac_status=$?
8244   grep -v '^ *+' conftest.er1 >conftest.err
8245   rm -f conftest.er1
8246   cat conftest.err >&5
8247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); } && {
8249          test -z "$ac_c_werror_flag" ||
8250          test ! -s conftest.err
8251        } && test -s conftest.$ac_objext; then
8252   ac_lo=0 ac_mid=0
8253   while :; do
8254     cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 #include <stddef.h>
8261 int
8262 main ()
8263 {
8264 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8265 test_array [0] = 0
8266
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8273 case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279   (eval "$ac_compile") 2>conftest.er1
8280   ac_status=$?
8281   grep -v '^ *+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } && {
8286          test -z "$ac_c_werror_flag" ||
8287          test ! -s conftest.err
8288        } && test -s conftest.$ac_objext; then
8289   ac_hi=$ac_mid; break
8290 else
8291   $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294         ac_lo=`expr $ac_mid + 1`
8295                         if test $ac_lo -le $ac_mid; then
8296                           ac_lo= ac_hi=
8297                           break
8298                         fi
8299                         ac_mid=`expr 2 '*' $ac_mid + 1`
8300 fi
8301
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303   done
8304 else
8305   $as_echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308         cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 #include <stddef.h>
8315 int
8316 main ()
8317 {
8318 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8319 test_array [0] = 0
8320
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8327 case "(($ac_try" in
8328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329   *) ac_try_echo=$ac_try;;
8330 esac
8331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332 $as_echo "$ac_try_echo") >&5
8333   (eval "$ac_compile") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } && {
8340          test -z "$ac_c_werror_flag" ||
8341          test ! -s conftest.err
8342        } && test -s conftest.$ac_objext; then
8343   ac_hi=-1 ac_mid=-1
8344   while :; do
8345     cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351 #include <stddef.h>
8352 int
8353 main ()
8354 {
8355 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8356 test_array [0] = 0
8357
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366   *) ac_try_echo=$ac_try;;
8367 esac
8368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370   (eval "$ac_compile") 2>conftest.er1
8371   ac_status=$?
8372   grep -v '^ *+' conftest.er1 >conftest.err
8373   rm -f conftest.er1
8374   cat conftest.err >&5
8375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } && {
8377          test -z "$ac_c_werror_flag" ||
8378          test ! -s conftest.err
8379        } && test -s conftest.$ac_objext; then
8380   ac_lo=$ac_mid; break
8381 else
8382   $as_echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385         ac_hi=`expr '(' $ac_mid ')' - 1`
8386                         if test $ac_mid -le $ac_hi; then
8387                           ac_lo= ac_hi=
8388                           break
8389                         fi
8390                         ac_mid=`expr 2 '*' $ac_mid`
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394   done
8395 else
8396   $as_echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399         ac_lo= ac_hi=
8400 fi
8401
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 fi
8404
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 # Binary search between lo and hi bounds.
8407 while test "x$ac_lo" != "x$ac_hi"; do
8408   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8409   cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415 #include <stddef.h>
8416 int
8417 main ()
8418 {
8419 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8420 test_array [0] = 0
8421
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8428 case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434   (eval "$ac_compile") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } && {
8441          test -z "$ac_c_werror_flag" ||
8442          test ! -s conftest.err
8443        } && test -s conftest.$ac_objext; then
8444   ac_hi=$ac_mid
8445 else
8446   $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449         ac_lo=`expr '(' $ac_mid ')' + 1`
8450 fi
8451
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 done
8454 case $ac_lo in
8455 ?*) res_lo=$ac_lo;;
8456 '') result=? ;;
8457 esac
8458 else
8459   cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465 #include <stddef.h>
8466 static long int longval () { return ~(size_t)0 % 10; }
8467 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8468 #include <stdio.h>
8469 #include <stdlib.h>
8470 int
8471 main ()
8472 {
8473
8474   FILE *f = fopen ("conftest.val", "w");
8475   if (! f)
8476     return 1;
8477   if ((~(size_t)0 % 10) < 0)
8478     {
8479       long int i = longval ();
8480       if (i != (~(size_t)0 % 10))
8481         return 1;
8482       fprintf (f, "%ld", i);
8483     }
8484   else
8485     {
8486       unsigned long int i = ulongval ();
8487       if (i != (~(size_t)0 % 10))
8488         return 1;
8489       fprintf (f, "%lu", i);
8490     }
8491   /* Do not output a trailing newline, as this causes \r\n confusion
8492      on some platforms.  */
8493   return ferror (f) || fclose (f) != 0;
8494
8495   ;
8496   return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest$ac_exeext
8500 if { (ac_try="$ac_link"
8501 case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506 $as_echo "$ac_try_echo") >&5
8507   (eval "$ac_link") 2>&5
8508   ac_status=$?
8509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8511   { (case "(($ac_try" in
8512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513   *) ac_try_echo=$ac_try;;
8514 esac
8515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516 $as_echo "$ac_try_echo") >&5
8517   (eval "$ac_try") 2>&5
8518   ac_status=$?
8519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }; }; then
8521   res_lo=`cat conftest.val`
8522 else
8523   $as_echo "$as_me: program exited with status $ac_status" >&5
8524 $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527 ( exit $ac_status )
8528 result=?
8529 fi
8530 rm -rf conftest.dSYM
8531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8532 fi
8533 rm -f conftest.val
8534
8535     if test "$cross_compiling" = yes; then
8536   # Depending upon the size, compute the lo and hi bounds.
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h.  */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h.  */
8543 #include <stddef.h>
8544 int
8545 main ()
8546 {
8547 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8548 test_array [0] = 0
8549
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8556 case "(($ac_try" in
8557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558   *) ac_try_echo=$ac_try;;
8559 esac
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562   (eval "$ac_compile") 2>conftest.er1
8563   ac_status=$?
8564   grep -v '^ *+' conftest.er1 >conftest.err
8565   rm -f conftest.er1
8566   cat conftest.err >&5
8567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); } && {
8569          test -z "$ac_c_werror_flag" ||
8570          test ! -s conftest.err
8571        } && test -s conftest.$ac_objext; then
8572   ac_lo=0 ac_mid=0
8573   while :; do
8574     cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h.  */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h.  */
8580 #include <stddef.h>
8581 int
8582 main ()
8583 {
8584 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8585 test_array [0] = 0
8586
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8593 case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8598 $as_echo "$ac_try_echo") >&5
8599   (eval "$ac_compile") 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } && {
8606          test -z "$ac_c_werror_flag" ||
8607          test ! -s conftest.err
8608        } && test -s conftest.$ac_objext; then
8609   ac_hi=$ac_mid; break
8610 else
8611   $as_echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614         ac_lo=`expr $ac_mid + 1`
8615                         if test $ac_lo -le $ac_mid; then
8616                           ac_lo= ac_hi=
8617                           break
8618                         fi
8619                         ac_mid=`expr 2 '*' $ac_mid + 1`
8620 fi
8621
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623   done
8624 else
8625   $as_echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628         cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h.  */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h.  */
8634 #include <stddef.h>
8635 int
8636 main ()
8637 {
8638 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8639 test_array [0] = 0
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8652 $as_echo "$ac_try_echo") >&5
8653   (eval "$ac_compile") 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } && {
8660          test -z "$ac_c_werror_flag" ||
8661          test ! -s conftest.err
8662        } && test -s conftest.$ac_objext; then
8663   ac_hi=-1 ac_mid=-1
8664   while :; do
8665     cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671 #include <stddef.h>
8672 int
8673 main ()
8674 {
8675 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8676 test_array [0] = 0
8677
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 rm -f conftest.$ac_objext
8683 if { (ac_try="$ac_compile"
8684 case "(($ac_try" in
8685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686   *) ac_try_echo=$ac_try;;
8687 esac
8688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8689 $as_echo "$ac_try_echo") >&5
8690   (eval "$ac_compile") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } && {
8697          test -z "$ac_c_werror_flag" ||
8698          test ! -s conftest.err
8699        } && test -s conftest.$ac_objext; then
8700   ac_lo=$ac_mid; break
8701 else
8702   $as_echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705         ac_hi=`expr '(' $ac_mid ')' - 1`
8706                         if test $ac_mid -le $ac_hi; then
8707                           ac_lo= ac_hi=
8708                           break
8709                         fi
8710                         ac_mid=`expr 2 '*' $ac_mid`
8711 fi
8712
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714   done
8715 else
8716   $as_echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719         ac_lo= ac_hi=
8720 fi
8721
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 # Binary search between lo and hi bounds.
8727 while test "x$ac_lo" != "x$ac_hi"; do
8728   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8729   cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 #include <stddef.h>
8736 int
8737 main ()
8738 {
8739 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8740 test_array [0] = 0
8741
8742   ;
8743   return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8748 case "(($ac_try" in
8749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750   *) ac_try_echo=$ac_try;;
8751 esac
8752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8753 $as_echo "$ac_try_echo") >&5
8754   (eval "$ac_compile") 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } && {
8761          test -z "$ac_c_werror_flag" ||
8762          test ! -s conftest.err
8763        } && test -s conftest.$ac_objext; then
8764   ac_hi=$ac_mid
8765 else
8766   $as_echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769         ac_lo=`expr '(' $ac_mid ')' + 1`
8770 fi
8771
8772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8773 done
8774 case $ac_lo in
8775 ?*) fits_in_uint=$ac_lo;;
8776 '') result=? ;;
8777 esac
8778 else
8779   cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h.  */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h.  */
8785 #include <stddef.h>
8786 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8787 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8788 #include <stdio.h>
8789 #include <stdlib.h>
8790 int
8791 main ()
8792 {
8793
8794   FILE *f = fopen ("conftest.val", "w");
8795   if (! f)
8796     return 1;
8797   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8798     {
8799       long int i = longval ();
8800       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8801         return 1;
8802       fprintf (f, "%ld", i);
8803     }
8804   else
8805     {
8806       unsigned long int i = ulongval ();
8807       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8808         return 1;
8809       fprintf (f, "%lu", i);
8810     }
8811   /* Do not output a trailing newline, as this causes \r\n confusion
8812      on some platforms.  */
8813   return ferror (f) || fclose (f) != 0;
8814
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest$ac_exeext
8820 if { (ac_try="$ac_link"
8821 case "(($ac_try" in
8822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823   *) ac_try_echo=$ac_try;;
8824 esac
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827   (eval "$ac_link") 2>&5
8828   ac_status=$?
8829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8831   { (case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836 $as_echo "$ac_try_echo") >&5
8837   (eval "$ac_try") 2>&5
8838   ac_status=$?
8839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; }; then
8841   fits_in_uint=`cat conftest.val`
8842 else
8843   $as_echo "$as_me: program exited with status $ac_status" >&5
8844 $as_echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8846
8847 ( exit $ac_status )
8848 result=?
8849 fi
8850 rm -rf conftest.dSYM
8851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8852 fi
8853 rm -f conftest.val
8854
8855     if test "$fits_in_uint" = 1; then
8856                   cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h.  */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h.  */
8862 #include <stddef.h>
8863         extern size_t foo;
8864         extern unsigned long foo;
8865
8866 int
8867 main ()
8868 {
8869
8870   ;
8871   return 0;
8872 }
8873 _ACEOF
8874 rm -f conftest.$ac_objext
8875 if { (ac_try="$ac_compile"
8876 case "(($ac_try" in
8877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878   *) ac_try_echo=$ac_try;;
8879 esac
8880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8881 $as_echo "$ac_try_echo") >&5
8882   (eval "$ac_compile") 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } && {
8889          test -z "$ac_c_werror_flag" ||
8890          test ! -s conftest.err
8891        } && test -s conftest.$ac_objext; then
8892   fits_in_uint=0
8893 else
8894   $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897
8898 fi
8899
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901     fi
8902     if test -z "$result"; then
8903       if test "$fits_in_uint" = 1; then
8904         result="$res_hi$res_lo"U
8905       else
8906         result="$res_hi$res_lo"UL
8907       fi
8908     else
8909             result='~(size_t)0'
8910     fi
8911   fi
8912   { $as_echo "$as_me:$LINENO: result: $result" >&5
8913 $as_echo "$result" >&6; }
8914   if test "$result" != yes; then
8915
8916 cat >>confdefs.h <<_ACEOF
8917 #define SIZE_MAX $result
8918 _ACEOF
8919
8920   fi
8921
8922
8923
8924
8925 for ac_header in stdint.h
8926 do
8927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8929   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8930 $as_echo_n "checking for $ac_header... " >&6; }
8931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8932   $as_echo_n "(cached) " >&6
8933 fi
8934 ac_res=`eval 'as_val=${'$as_ac_Header'}
8935                  $as_echo "$as_val"'`
8936                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8937 $as_echo "$ac_res" >&6; }
8938 else
8939   # Is the header compilable?
8940 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8941 $as_echo_n "checking $ac_header usability... " >&6; }
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948 $ac_includes_default
8949 #include <$ac_header>
8950 _ACEOF
8951 rm -f conftest.$ac_objext
8952 if { (ac_try="$ac_compile"
8953 case "(($ac_try" in
8954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955   *) ac_try_echo=$ac_try;;
8956 esac
8957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8958 $as_echo "$ac_try_echo") >&5
8959   (eval "$ac_compile") 2>conftest.er1
8960   ac_status=$?
8961   grep -v '^ *+' conftest.er1 >conftest.err
8962   rm -f conftest.er1
8963   cat conftest.err >&5
8964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } && {
8966          test -z "$ac_c_werror_flag" ||
8967          test ! -s conftest.err
8968        } && test -s conftest.$ac_objext; then
8969   ac_header_compiler=yes
8970 else
8971   $as_echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8973
8974         ac_header_compiler=no
8975 fi
8976
8977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8979 $as_echo "$ac_header_compiler" >&6; }
8980
8981 # Is the header present?
8982 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8983 $as_echo_n "checking $ac_header presence... " >&6; }
8984 cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h.  */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h.  */
8990 #include <$ac_header>
8991 _ACEOF
8992 if { (ac_try="$ac_cpp conftest.$ac_ext"
8993 case "(($ac_try" in
8994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995   *) ac_try_echo=$ac_try;;
8996 esac
8997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8998 $as_echo "$ac_try_echo") >&5
8999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9000   ac_status=$?
9001   grep -v '^ *+' conftest.er1 >conftest.err
9002   rm -f conftest.er1
9003   cat conftest.err >&5
9004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } >/dev/null && {
9006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9007          test ! -s conftest.err
9008        }; then
9009   ac_header_preproc=yes
9010 else
9011   $as_echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014   ac_header_preproc=no
9015 fi
9016
9017 rm -f conftest.err conftest.$ac_ext
9018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019 $as_echo "$ac_header_preproc" >&6; }
9020
9021 # So?  What about this header?
9022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9023   yes:no: )
9024     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9025 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9027 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9028     ac_header_preproc=yes
9029     ;;
9030   no:yes:* )
9031     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9032 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9033     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9034 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9035     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9036 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9038 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9041     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9042 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9043
9044     ;;
9045 esac
9046 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 $as_echo_n "checking for $ac_header... " >&6; }
9048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9049   $as_echo_n "(cached) " >&6
9050 else
9051   eval "$as_ac_Header=\$ac_header_preproc"
9052 fi
9053 ac_res=`eval 'as_val=${'$as_ac_Header'}
9054                  $as_echo "$as_val"'`
9055                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9056 $as_echo "$ac_res" >&6; }
9057
9058 fi
9059 as_val=`eval 'as_val=${'$as_ac_Header'}
9060                  $as_echo "$as_val"'`
9061    if test "x$as_val" = x""yes; then
9062   cat >>confdefs.h <<_ACEOF
9063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9064 _ACEOF
9065
9066 fi
9067
9068 done
9069
9070
9071
9072       if test "X$prefix" = "XNONE"; then
9073     acl_final_prefix="$ac_default_prefix"
9074   else
9075     acl_final_prefix="$prefix"
9076   fi
9077   if test "X$exec_prefix" = "XNONE"; then
9078     acl_final_exec_prefix='${prefix}'
9079   else
9080     acl_final_exec_prefix="$exec_prefix"
9081   fi
9082   acl_save_prefix="$prefix"
9083   prefix="$acl_final_prefix"
9084   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9085   prefix="$acl_save_prefix"
9086
9087
9088 # Check whether --with-gnu-ld was given.
9089 if test "${with_gnu_ld+set}" = set; then
9090   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9091 else
9092   with_gnu_ld=no
9093 fi
9094
9095 # Prepare PATH_SEPARATOR.
9096 # The user is always right.
9097 if test "${PATH_SEPARATOR+set}" != set; then
9098   echo "#! /bin/sh" >conf$$.sh
9099   echo  "exit 0"   >>conf$$.sh
9100   chmod +x conf$$.sh
9101   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9102     PATH_SEPARATOR=';'
9103   else
9104     PATH_SEPARATOR=:
9105   fi
9106   rm -f conf$$.sh
9107 fi
9108 ac_prog=ld
9109 if test "$GCC" = yes; then
9110   # Check if gcc -print-prog-name=ld gives a path.
9111   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9112 $as_echo_n "checking for ld used by GCC... " >&6; }
9113   case $host in
9114   *-*-mingw*)
9115     # gcc leaves a trailing carriage return which upsets mingw
9116     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9117   *)
9118     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9119   esac
9120   case $ac_prog in
9121     # Accept absolute paths.
9122     [\\/]* | [A-Za-z]:[\\/]*)
9123       re_direlt='/[^/][^/]*/\.\./'
9124       # Canonicalize the path of ld
9125       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9126       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9127         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9128       done
9129       test -z "$LD" && LD="$ac_prog"
9130       ;;
9131   "")
9132     # If it fails, then pretend we aren't using GCC.
9133     ac_prog=ld
9134     ;;
9135   *)
9136     # If it is relative, then search for the first ld in PATH.
9137     with_gnu_ld=unknown
9138     ;;
9139   esac
9140 elif test "$with_gnu_ld" = yes; then
9141   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9142 $as_echo_n "checking for GNU ld... " >&6; }
9143 else
9144   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9145 $as_echo_n "checking for non-GNU ld... " >&6; }
9146 fi
9147 if test "${acl_cv_path_LD+set}" = set; then
9148   $as_echo_n "(cached) " >&6
9149 else
9150   if test -z "$LD"; then
9151   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9152   for ac_dir in $PATH; do
9153     test -z "$ac_dir" && ac_dir=.
9154     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9155       acl_cv_path_LD="$ac_dir/$ac_prog"
9156       # Check to see if the program is GNU ld.  I'd rather use --version,
9157       # but apparently some GNU ld's only accept -v.
9158       # Break only if it was the GNU/non-GNU ld that we prefer.
9159       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9160       *GNU* | *'with BFD'*)
9161         test "$with_gnu_ld" != no && break ;;
9162       *)
9163         test "$with_gnu_ld" != yes && break ;;
9164       esac
9165     fi
9166   done
9167   IFS="$ac_save_ifs"
9168 else
9169   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9170 fi
9171 fi
9172
9173 LD="$acl_cv_path_LD"
9174 if test -n "$LD"; then
9175   { $as_echo "$as_me:$LINENO: result: $LD" >&5
9176 $as_echo "$LD" >&6; }
9177 else
9178   { $as_echo "$as_me:$LINENO: result: no" >&5
9179 $as_echo "no" >&6; }
9180 fi
9181 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9182 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9183    { (exit 1); exit 1; }; }
9184 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9185 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9186 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9187   $as_echo_n "(cached) " >&6
9188 else
9189   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9190 case `$LD -v 2>&1 </dev/null` in
9191 *GNU* | *'with BFD'*)
9192   acl_cv_prog_gnu_ld=yes ;;
9193 *)
9194   acl_cv_prog_gnu_ld=no ;;
9195 esac
9196 fi
9197 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9198 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9199 with_gnu_ld=$acl_cv_prog_gnu_ld
9200
9201
9202
9203                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9204 $as_echo_n "checking for shared library run path origin... " >&6; }
9205 if test "${acl_cv_rpath+set}" = set; then
9206   $as_echo_n "(cached) " >&6
9207 else
9208
9209     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9210     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9211     . ./conftest.sh
9212     rm -f ./conftest.sh
9213     acl_cv_rpath=done
9214
9215 fi
9216 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9217 $as_echo "$acl_cv_rpath" >&6; }
9218   wl="$acl_cv_wl"
9219   libext="$acl_cv_libext"
9220   shlibext="$acl_cv_shlibext"
9221   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9222   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9223   hardcode_direct="$acl_cv_hardcode_direct"
9224   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9225     # Check whether --enable-rpath was given.
9226 if test "${enable_rpath+set}" = set; then
9227   enableval=$enable_rpath; :
9228 else
9229   enable_rpath=yes
9230 fi
9231
9232
9233
9234
9235
9236
9237
9238
9239     use_additional=yes
9240
9241   acl_save_prefix="$prefix"
9242   prefix="$acl_final_prefix"
9243   acl_save_exec_prefix="$exec_prefix"
9244   exec_prefix="$acl_final_exec_prefix"
9245
9246     eval additional_includedir=\"$includedir\"
9247     eval additional_libdir=\"$libdir\"
9248
9249   exec_prefix="$acl_save_exec_prefix"
9250   prefix="$acl_save_prefix"
9251
9252
9253 # Check whether --with-libiconv-prefix was given.
9254 if test "${with_libiconv_prefix+set}" = set; then
9255   withval=$with_libiconv_prefix;
9256     if test "X$withval" = "Xno"; then
9257       use_additional=no
9258     else
9259       if test "X$withval" = "X"; then
9260
9261   acl_save_prefix="$prefix"
9262   prefix="$acl_final_prefix"
9263   acl_save_exec_prefix="$exec_prefix"
9264   exec_prefix="$acl_final_exec_prefix"
9265
9266           eval additional_includedir=\"$includedir\"
9267           eval additional_libdir=\"$libdir\"
9268
9269   exec_prefix="$acl_save_exec_prefix"
9270   prefix="$acl_save_prefix"
9271
9272       else
9273         additional_includedir="$withval/include"
9274         additional_libdir="$withval/lib"
9275       fi
9276     fi
9277
9278 fi
9279
9280       LIBICONV=
9281   LTLIBICONV=
9282   INCICONV=
9283   rpathdirs=
9284   ltrpathdirs=
9285   names_already_handled=
9286   names_next_round='iconv '
9287   while test -n "$names_next_round"; do
9288     names_this_round="$names_next_round"
9289     names_next_round=
9290     for name in $names_this_round; do
9291       already_handled=
9292       for n in $names_already_handled; do
9293         if test "$n" = "$name"; then
9294           already_handled=yes
9295           break
9296         fi
9297       done
9298       if test -z "$already_handled"; then
9299         names_already_handled="$names_already_handled $name"
9300                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9301         eval value=\"\$HAVE_LIB$uppername\"
9302         if test -n "$value"; then
9303           if test "$value" = yes; then
9304             eval value=\"\$LIB$uppername\"
9305             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9306             eval value=\"\$LTLIB$uppername\"
9307             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9308           else
9309                                     :
9310           fi
9311         else
9312                               found_dir=
9313           found_la=
9314           found_so=
9315           found_a=
9316           if test $use_additional = yes; then
9317             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9318               found_dir="$additional_libdir"
9319               found_so="$additional_libdir/lib$name.$shlibext"
9320               if test -f "$additional_libdir/lib$name.la"; then
9321                 found_la="$additional_libdir/lib$name.la"
9322               fi
9323             else
9324               if test -f "$additional_libdir/lib$name.$libext"; then
9325                 found_dir="$additional_libdir"
9326                 found_a="$additional_libdir/lib$name.$libext"
9327                 if test -f "$additional_libdir/lib$name.la"; then
9328                   found_la="$additional_libdir/lib$name.la"
9329                 fi
9330               fi
9331             fi
9332           fi
9333           if test "X$found_dir" = "X"; then
9334             for x in $LDFLAGS $LTLIBICONV; do
9335
9336   acl_save_prefix="$prefix"
9337   prefix="$acl_final_prefix"
9338   acl_save_exec_prefix="$exec_prefix"
9339   exec_prefix="$acl_final_exec_prefix"
9340   eval x=\"$x\"
9341   exec_prefix="$acl_save_exec_prefix"
9342   prefix="$acl_save_prefix"
9343
9344               case "$x" in
9345                 -L*)
9346                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9347                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9348                     found_dir="$dir"
9349                     found_so="$dir/lib$name.$shlibext"
9350                     if test -f "$dir/lib$name.la"; then
9351                       found_la="$dir/lib$name.la"
9352                     fi
9353                   else
9354                     if test -f "$dir/lib$name.$libext"; then
9355                       found_dir="$dir"
9356                       found_a="$dir/lib$name.$libext"
9357                       if test -f "$dir/lib$name.la"; then
9358                         found_la="$dir/lib$name.la"
9359                       fi
9360                     fi
9361                   fi
9362                   ;;
9363               esac
9364               if test "X$found_dir" != "X"; then
9365                 break
9366               fi
9367             done
9368           fi
9369           if test "X$found_dir" != "X"; then
9370                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9371             if test "X$found_so" != "X"; then
9372                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9373                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9374               else
9375                                                                                 haveit=
9376                 for x in $ltrpathdirs; do
9377                   if test "X$x" = "X$found_dir"; then
9378                     haveit=yes
9379                     break
9380                   fi
9381                 done
9382                 if test -z "$haveit"; then
9383                   ltrpathdirs="$ltrpathdirs $found_dir"
9384                 fi
9385                                 if test "$hardcode_direct" = yes; then
9386                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9387                 else
9388                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9389                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9390                                                             haveit=
9391                     for x in $rpathdirs; do
9392                       if test "X$x" = "X$found_dir"; then
9393                         haveit=yes
9394                         break
9395                       fi
9396                     done
9397                     if test -z "$haveit"; then
9398                       rpathdirs="$rpathdirs $found_dir"
9399                     fi
9400                   else
9401                                                                                 haveit=
9402                     for x in $LDFLAGS $LIBICONV; do
9403
9404   acl_save_prefix="$prefix"
9405   prefix="$acl_final_prefix"
9406   acl_save_exec_prefix="$exec_prefix"
9407   exec_prefix="$acl_final_exec_prefix"
9408   eval x=\"$x\"
9409   exec_prefix="$acl_save_exec_prefix"
9410   prefix="$acl_save_prefix"
9411
9412                       if test "X$x" = "X-L$found_dir"; then
9413                         haveit=yes
9414                         break
9415                       fi
9416                     done
9417                     if test -z "$haveit"; then
9418                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9419                     fi
9420                     if test "$hardcode_minus_L" != no; then
9421                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9422                     else
9423                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9424                     fi
9425                   fi
9426                 fi
9427               fi
9428             else
9429               if test "X$found_a" != "X"; then
9430                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9431               else
9432                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9433               fi
9434             fi
9435                         additional_includedir=
9436             case "$found_dir" in
9437               */lib | */lib/)
9438                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9439                 additional_includedir="$basedir/include"
9440                 ;;
9441             esac
9442             if test "X$additional_includedir" != "X"; then
9443                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9444                 haveit=
9445                 if test "X$additional_includedir" = "X/usr/local/include"; then
9446                   if test -n "$GCC"; then
9447                     case $host_os in
9448                       linux*) haveit=yes;;
9449                     esac
9450                   fi
9451                 fi
9452                 if test -z "$haveit"; then
9453                   for x in $CPPFLAGS $INCICONV; do
9454
9455   acl_save_prefix="$prefix"
9456   prefix="$acl_final_prefix"
9457   acl_save_exec_prefix="$exec_prefix"
9458   exec_prefix="$acl_final_exec_prefix"
9459   eval x=\"$x\"
9460   exec_prefix="$acl_save_exec_prefix"
9461   prefix="$acl_save_prefix"
9462
9463                     if test "X$x" = "X-I$additional_includedir"; then
9464                       haveit=yes
9465                       break
9466                     fi
9467                   done
9468                   if test -z "$haveit"; then
9469                     if test -d "$additional_includedir"; then
9470                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9471                     fi
9472                   fi
9473                 fi
9474               fi
9475             fi
9476                         if test -n "$found_la"; then
9477                                                         save_libdir="$libdir"
9478               case "$found_la" in
9479                 */* | *\\*) . "$found_la" ;;
9480                 *) . "./$found_la" ;;
9481               esac
9482               libdir="$save_libdir"
9483                             for dep in $dependency_libs; do
9484                 case "$dep" in
9485                   -L*)
9486                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9487                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9488                       haveit=
9489                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9490                         if test -n "$GCC"; then
9491                           case $host_os in
9492                             linux*) haveit=yes;;
9493                           esac
9494                         fi
9495                       fi
9496                       if test -z "$haveit"; then
9497                         haveit=
9498                         for x in $LDFLAGS $LIBICONV; do
9499
9500   acl_save_prefix="$prefix"
9501   prefix="$acl_final_prefix"
9502   acl_save_exec_prefix="$exec_prefix"
9503   exec_prefix="$acl_final_exec_prefix"
9504   eval x=\"$x\"
9505   exec_prefix="$acl_save_exec_prefix"
9506   prefix="$acl_save_prefix"
9507
9508                           if test "X$x" = "X-L$additional_libdir"; then
9509                             haveit=yes
9510                             break
9511                           fi
9512                         done
9513                         if test -z "$haveit"; then
9514                           if test -d "$additional_libdir"; then
9515                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9516                           fi
9517                         fi
9518                         haveit=
9519                         for x in $LDFLAGS $LTLIBICONV; do
9520
9521   acl_save_prefix="$prefix"
9522   prefix="$acl_final_prefix"
9523   acl_save_exec_prefix="$exec_prefix"
9524   exec_prefix="$acl_final_exec_prefix"
9525   eval x=\"$x\"
9526   exec_prefix="$acl_save_exec_prefix"
9527   prefix="$acl_save_prefix"
9528
9529                           if test "X$x" = "X-L$additional_libdir"; then
9530                             haveit=yes
9531                             break
9532                           fi
9533                         done
9534                         if test -z "$haveit"; then
9535                           if test -d "$additional_libdir"; then
9536                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9537                           fi
9538                         fi
9539                       fi
9540                     fi
9541                     ;;
9542                   -R*)
9543                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9544                     if test "$enable_rpath" != no; then
9545                                                                   haveit=
9546                       for x in $rpathdirs; do
9547                         if test "X$x" = "X$dir"; then
9548                           haveit=yes
9549                           break
9550                         fi
9551                       done
9552                       if test -z "$haveit"; then
9553                         rpathdirs="$rpathdirs $dir"
9554                       fi
9555                                                                   haveit=
9556                       for x in $ltrpathdirs; do
9557                         if test "X$x" = "X$dir"; then
9558                           haveit=yes
9559                           break
9560                         fi
9561                       done
9562                       if test -z "$haveit"; then
9563                         ltrpathdirs="$ltrpathdirs $dir"
9564                       fi
9565                     fi
9566                     ;;
9567                   -l*)
9568                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9569                     ;;
9570                   *.la)
9571                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9572                     ;;
9573                   *)
9574                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9575                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9576                     ;;
9577                 esac
9578               done
9579             fi
9580           else
9581                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9582             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9583           fi
9584         fi
9585       fi
9586     done
9587   done
9588   if test "X$rpathdirs" != "X"; then
9589     if test -n "$hardcode_libdir_separator"; then
9590                         alldirs=
9591       for found_dir in $rpathdirs; do
9592         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9593       done
9594             acl_save_libdir="$libdir"
9595       libdir="$alldirs"
9596       eval flag=\"$hardcode_libdir_flag_spec\"
9597       libdir="$acl_save_libdir"
9598       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9599     else
9600             for found_dir in $rpathdirs; do
9601         acl_save_libdir="$libdir"
9602         libdir="$found_dir"
9603         eval flag=\"$hardcode_libdir_flag_spec\"
9604         libdir="$acl_save_libdir"
9605         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9606       done
9607     fi
9608   fi
9609   if test "X$ltrpathdirs" != "X"; then
9610             for found_dir in $ltrpathdirs; do
9611       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9612     done
9613   fi
9614
9615
9616
9617
9618
9619
9620
9621
9622   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9623 $as_echo_n "checking for ptrdiff_t... " >&6; }
9624 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9625   $as_echo_n "(cached) " >&6
9626 else
9627   ac_cv_type_ptrdiff_t=no
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634 $ac_includes_default
9635 int
9636 main ()
9637 {
9638 if (sizeof (ptrdiff_t))
9639        return 0;
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext
9645 if { (ac_try="$ac_compile"
9646 case "(($ac_try" in
9647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648   *) ac_try_echo=$ac_try;;
9649 esac
9650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9651 $as_echo "$ac_try_echo") >&5
9652   (eval "$ac_compile") 2>conftest.er1
9653   ac_status=$?
9654   grep -v '^ *+' conftest.er1 >conftest.err
9655   rm -f conftest.er1
9656   cat conftest.err >&5
9657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } && {
9659          test -z "$ac_c_werror_flag" ||
9660          test ! -s conftest.err
9661        } && test -s conftest.$ac_objext; then
9662   cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668 $ac_includes_default
9669 int
9670 main ()
9671 {
9672 if (sizeof ((ptrdiff_t)))
9673           return 0;
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 rm -f conftest.$ac_objext
9679 if { (ac_try="$ac_compile"
9680 case "(($ac_try" in
9681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682   *) ac_try_echo=$ac_try;;
9683 esac
9684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9685 $as_echo "$ac_try_echo") >&5
9686   (eval "$ac_compile") 2>conftest.er1
9687   ac_status=$?
9688   grep -v '^ *+' conftest.er1 >conftest.err
9689   rm -f conftest.er1
9690   cat conftest.err >&5
9691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } && {
9693          test -z "$ac_c_werror_flag" ||
9694          test ! -s conftest.err
9695        } && test -s conftest.$ac_objext; then
9696   :
9697 else
9698   $as_echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701         ac_cv_type_ptrdiff_t=yes
9702 fi
9703
9704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9705 else
9706   $as_echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709
9710 fi
9711
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 fi
9714 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9715 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9716 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
9717   :
9718 else
9719
9720 cat >>confdefs.h <<\_ACEOF
9721 #define ptrdiff_t long
9722 _ACEOF
9723
9724
9725 fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9738 stdlib.h string.h unistd.h sys/param.h
9739 do
9740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9742   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9743 $as_echo_n "checking for $ac_header... " >&6; }
9744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745   $as_echo_n "(cached) " >&6
9746 fi
9747 ac_res=`eval 'as_val=${'$as_ac_Header'}
9748                  $as_echo "$as_val"'`
9749                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9750 $as_echo "$ac_res" >&6; }
9751 else
9752   # Is the header compilable?
9753 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9754 $as_echo_n "checking $ac_header usability... " >&6; }
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761 $ac_includes_default
9762 #include <$ac_header>
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9766 case "(($ac_try" in
9767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768   *) ac_try_echo=$ac_try;;
9769 esac
9770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9771 $as_echo "$ac_try_echo") >&5
9772   (eval "$ac_compile") 2>conftest.er1
9773   ac_status=$?
9774   grep -v '^ *+' conftest.er1 >conftest.err
9775   rm -f conftest.er1
9776   cat conftest.err >&5
9777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } && {
9779          test -z "$ac_c_werror_flag" ||
9780          test ! -s conftest.err
9781        } && test -s conftest.$ac_objext; then
9782   ac_header_compiler=yes
9783 else
9784   $as_echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787         ac_header_compiler=no
9788 fi
9789
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9792 $as_echo "$ac_header_compiler" >&6; }
9793
9794 # Is the header present?
9795 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9796 $as_echo_n "checking $ac_header presence... " >&6; }
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803 #include <$ac_header>
9804 _ACEOF
9805 if { (ac_try="$ac_cpp conftest.$ac_ext"
9806 case "(($ac_try" in
9807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808   *) ac_try_echo=$ac_try;;
9809 esac
9810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9811 $as_echo "$ac_try_echo") >&5
9812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } >/dev/null && {
9819          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9820          test ! -s conftest.err
9821        }; then
9822   ac_header_preproc=yes
9823 else
9824   $as_echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827   ac_header_preproc=no
9828 fi
9829
9830 rm -f conftest.err conftest.$ac_ext
9831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832 $as_echo "$ac_header_preproc" >&6; }
9833
9834 # So?  What about this header?
9835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9836   yes:no: )
9837     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9841     ac_header_preproc=yes
9842     ;;
9843   no:yes:* )
9844     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9847 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9848     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9851 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9852     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9856
9857     ;;
9858 esac
9859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9860 $as_echo_n "checking for $ac_header... " >&6; }
9861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9862   $as_echo_n "(cached) " >&6
9863 else
9864   eval "$as_ac_Header=\$ac_header_preproc"
9865 fi
9866 ac_res=`eval 'as_val=${'$as_ac_Header'}
9867                  $as_echo "$as_val"'`
9868                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9869 $as_echo "$ac_res" >&6; }
9870
9871 fi
9872 as_val=`eval 'as_val=${'$as_ac_Header'}
9873                  $as_echo "$as_val"'`
9874    if test "x$as_val" = x""yes; then
9875   cat >>confdefs.h <<_ACEOF
9876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9877 _ACEOF
9878
9879 fi
9880
9881 done
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9907 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9908 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9909 __fsetlocking
9910 do
9911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9912 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9913 $as_echo_n "checking for $ac_func... " >&6; }
9914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9915   $as_echo_n "(cached) " >&6
9916 else
9917   cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9925 #define $ac_func innocuous_$ac_func
9926
9927 /* System header to define __stub macros and hopefully few prototypes,
9928     which can conflict with char $ac_func (); below.
9929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9930     <limits.h> exists even on freestanding compilers.  */
9931
9932 #ifdef __STDC__
9933 # include <limits.h>
9934 #else
9935 # include <assert.h>
9936 #endif
9937
9938 #undef $ac_func
9939
9940 /* Override any GCC internal prototype to avoid an error.
9941    Use char because int might match the return type of a GCC
9942    builtin and then its argument prototype would still apply.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char $ac_func ();
9947 /* The GNU C library defines this for functions which it implements
9948     to always fail with ENOSYS.  Some functions are actually named
9949     something starting with __ and the normal name is an alias.  */
9950 #if defined __stub_$ac_func || defined __stub___$ac_func
9951 choke me
9952 #endif
9953
9954 int
9955 main ()
9956 {
9957 return $ac_func ();
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9964 case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969 $as_echo "$ac_try_echo") >&5
9970   (eval "$ac_link") 2>conftest.er1
9971   ac_status=$?
9972   grep -v '^ *+' conftest.er1 >conftest.err
9973   rm -f conftest.er1
9974   cat conftest.err >&5
9975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } && {
9977          test -z "$ac_c_werror_flag" ||
9978          test ! -s conftest.err
9979        } && test -s conftest$ac_exeext && {
9980          test "$cross_compiling" = yes ||
9981          $as_test_x conftest$ac_exeext
9982        }; then
9983   eval "$as_ac_var=yes"
9984 else
9985   $as_echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988         eval "$as_ac_var=no"
9989 fi
9990
9991 rm -rf conftest.dSYM
9992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993       conftest$ac_exeext conftest.$ac_ext
9994 fi
9995 ac_res=`eval 'as_val=${'$as_ac_var'}
9996                  $as_echo "$as_val"'`
9997                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9998 $as_echo "$ac_res" >&6; }
9999 as_val=`eval 'as_val=${'$as_ac_var'}
10000                  $as_echo "$as_val"'`
10001    if test "x$as_val" = x""yes; then
10002   cat >>confdefs.h <<_ACEOF
10003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004 _ACEOF
10005
10006 fi
10007 done
10008
10009
10010
10011   { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10012 $as_echo_n "checking whether _snprintf is declared... " >&6; }
10013 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10014   $as_echo_n "(cached) " >&6
10015 else
10016   cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h.  */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h.  */
10022 #include <stdio.h>
10023 int
10024 main ()
10025 {
10026
10027 #ifndef _snprintf
10028   char *p = (char *) _snprintf;
10029 #endif
10030
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext
10036 if { (ac_try="$ac_compile"
10037 case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10042 $as_echo "$ac_try_echo") >&5
10043   (eval "$ac_compile") 2>conftest.er1
10044   ac_status=$?
10045   grep -v '^ *+' conftest.er1 >conftest.err
10046   rm -f conftest.er1
10047   cat conftest.err >&5
10048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } && {
10050          test -z "$ac_c_werror_flag" ||
10051          test ! -s conftest.err
10052        } && test -s conftest.$ac_objext; then
10053   ac_cv_have_decl__snprintf=yes
10054 else
10055   $as_echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058         ac_cv_have_decl__snprintf=no
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10064 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
10065   if test $ac_cv_have_decl__snprintf = yes; then
10066     gt_value=1
10067   else
10068     gt_value=0
10069   fi
10070
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_DECL__SNPRINTF $gt_value
10073 _ACEOF
10074
10075
10076
10077   { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10078 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
10079 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10080   $as_echo_n "(cached) " >&6
10081 else
10082   cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088 #include <stdio.h>
10089 int
10090 main ()
10091 {
10092
10093 #ifndef _snwprintf
10094   char *p = (char *) _snwprintf;
10095 #endif
10096
10097   ;
10098   return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (ac_try="$ac_compile"
10103 case "(($ac_try" in
10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105   *) ac_try_echo=$ac_try;;
10106 esac
10107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10108 $as_echo "$ac_try_echo") >&5
10109   (eval "$ac_compile") 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } && {
10116          test -z "$ac_c_werror_flag" ||
10117          test ! -s conftest.err
10118        } && test -s conftest.$ac_objext; then
10119   ac_cv_have_decl__snwprintf=yes
10120 else
10121   $as_echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124         ac_cv_have_decl__snwprintf=no
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128 fi
10129 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10130 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
10131   if test $ac_cv_have_decl__snwprintf = yes; then
10132     gt_value=1
10133   else
10134     gt_value=0
10135   fi
10136
10137 cat >>confdefs.h <<_ACEOF
10138 #define HAVE_DECL__SNWPRINTF $gt_value
10139 _ACEOF
10140
10141
10142
10143
10144   { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10145 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10146 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10147   $as_echo_n "(cached) " >&6
10148 else
10149   cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155 #include <stdio.h>
10156 int
10157 main ()
10158 {
10159
10160 #ifndef feof_unlocked
10161   char *p = (char *) feof_unlocked;
10162 #endif
10163
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175 $as_echo "$ac_try_echo") >&5
10176   (eval "$ac_compile") 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } && {
10183          test -z "$ac_c_werror_flag" ||
10184          test ! -s conftest.err
10185        } && test -s conftest.$ac_objext; then
10186   ac_cv_have_decl_feof_unlocked=yes
10187 else
10188   $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191         ac_cv_have_decl_feof_unlocked=no
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 fi
10196 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10197 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10198   if test $ac_cv_have_decl_feof_unlocked = yes; then
10199     gt_value=1
10200   else
10201     gt_value=0
10202   fi
10203
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10206 _ACEOF
10207
10208
10209
10210   { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10211 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10212 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10213   $as_echo_n "(cached) " >&6
10214 else
10215   cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h.  */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h.  */
10221 #include <stdio.h>
10222 int
10223 main ()
10224 {
10225
10226 #ifndef fgets_unlocked
10227   char *p = (char *) fgets_unlocked;
10228 #endif
10229
10230   ;
10231   return 0;
10232 }
10233 _ACEOF
10234 rm -f conftest.$ac_objext
10235 if { (ac_try="$ac_compile"
10236 case "(($ac_try" in
10237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238   *) ac_try_echo=$ac_try;;
10239 esac
10240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10241 $as_echo "$ac_try_echo") >&5
10242   (eval "$ac_compile") 2>conftest.er1
10243   ac_status=$?
10244   grep -v '^ *+' conftest.er1 >conftest.err
10245   rm -f conftest.er1
10246   cat conftest.err >&5
10247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } && {
10249          test -z "$ac_c_werror_flag" ||
10250          test ! -s conftest.err
10251        } && test -s conftest.$ac_objext; then
10252   ac_cv_have_decl_fgets_unlocked=yes
10253 else
10254   $as_echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257         ac_cv_have_decl_fgets_unlocked=no
10258 fi
10259
10260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10261 fi
10262 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10263 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10264   if test $ac_cv_have_decl_fgets_unlocked = yes; then
10265     gt_value=1
10266   else
10267     gt_value=0
10268   fi
10269
10270 cat >>confdefs.h <<_ACEOF
10271 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10272 _ACEOF
10273
10274
10275
10276   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10277 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10278 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10279   $as_echo_n "(cached) " >&6
10280 else
10281   cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h.  */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h.  */
10287 #include <stdio.h>
10288 int
10289 main ()
10290 {
10291
10292 #ifndef getc_unlocked
10293   char *p = (char *) getc_unlocked;
10294 #endif
10295
10296   ;
10297   return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (ac_try="$ac_compile"
10302 case "(($ac_try" in
10303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304   *) ac_try_echo=$ac_try;;
10305 esac
10306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307 $as_echo "$ac_try_echo") >&5
10308   (eval "$ac_compile") 2>conftest.er1
10309   ac_status=$?
10310   grep -v '^ *+' conftest.er1 >conftest.err
10311   rm -f conftest.er1
10312   cat conftest.err >&5
10313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); } && {
10315          test -z "$ac_c_werror_flag" ||
10316          test ! -s conftest.err
10317        } && test -s conftest.$ac_objext; then
10318   ac_cv_have_decl_getc_unlocked=yes
10319 else
10320   $as_echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323         ac_cv_have_decl_getc_unlocked=no
10324 fi
10325
10326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10327 fi
10328 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10329 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10330   if test $ac_cv_have_decl_getc_unlocked = yes; then
10331     gt_value=1
10332   else
10333     gt_value=0
10334   fi
10335
10336 cat >>confdefs.h <<_ACEOF
10337 #define HAVE_DECL_GETC_UNLOCKED $gt_value
10338 _ACEOF
10339
10340
10341
10342   case $gt_cv_func_printf_posix in
10343     *yes) HAVE_POSIX_PRINTF=1 ;;
10344     *) HAVE_POSIX_PRINTF=0 ;;
10345   esac
10346
10347   if test "$ac_cv_func_asprintf" = yes; then
10348     HAVE_ASPRINTF=1
10349   else
10350     HAVE_ASPRINTF=0
10351   fi
10352
10353   if test "$ac_cv_func_snprintf" = yes; then
10354     HAVE_SNPRINTF=1
10355   else
10356     HAVE_SNPRINTF=0
10357   fi
10358
10359   if test "$ac_cv_func_wprintf" = yes; then
10360     HAVE_WPRINTF=1
10361   else
10362     HAVE_WPRINTF=0
10363   fi
10364
10365
10366
10367
10368
10369
10370
10371           am_save_CPPFLAGS="$CPPFLAGS"
10372
10373   for element in $INCICONV; do
10374     haveit=
10375     for x in $CPPFLAGS; do
10376
10377   acl_save_prefix="$prefix"
10378   prefix="$acl_final_prefix"
10379   acl_save_exec_prefix="$exec_prefix"
10380   exec_prefix="$acl_final_exec_prefix"
10381   eval x=\"$x\"
10382   exec_prefix="$acl_save_exec_prefix"
10383   prefix="$acl_save_prefix"
10384
10385       if test "X$x" = "X$element"; then
10386         haveit=yes
10387         break
10388       fi
10389     done
10390     if test -z "$haveit"; then
10391       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10392     fi
10393   done
10394
10395
10396   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10397 $as_echo_n "checking for iconv... " >&6; }
10398 if test "${am_cv_func_iconv+set}" = set; then
10399   $as_echo_n "(cached) " >&6
10400 else
10401
10402     am_cv_func_iconv="no, consider installing GNU libiconv"
10403     am_cv_lib_iconv=no
10404     cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 #include <stdlib.h>
10411 #include <iconv.h>
10412 int
10413 main ()
10414 {
10415 iconv_t cd = iconv_open("","");
10416        iconv(cd,NULL,NULL,NULL,NULL);
10417        iconv_close(cd);
10418   ;
10419   return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext conftest$ac_exeext
10423 if { (ac_try="$ac_link"
10424 case "(($ac_try" in
10425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426   *) ac_try_echo=$ac_try;;
10427 esac
10428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10429 $as_echo "$ac_try_echo") >&5
10430   (eval "$ac_link") 2>conftest.er1
10431   ac_status=$?
10432   grep -v '^ *+' conftest.er1 >conftest.err
10433   rm -f conftest.er1
10434   cat conftest.err >&5
10435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); } && {
10437          test -z "$ac_c_werror_flag" ||
10438          test ! -s conftest.err
10439        } && test -s conftest$ac_exeext && {
10440          test "$cross_compiling" = yes ||
10441          $as_test_x conftest$ac_exeext
10442        }; then
10443   am_cv_func_iconv=yes
10444 else
10445   $as_echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448
10449 fi
10450
10451 rm -rf conftest.dSYM
10452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10453       conftest$ac_exeext conftest.$ac_ext
10454     if test "$am_cv_func_iconv" != yes; then
10455       am_save_LIBS="$LIBS"
10456       LIBS="$LIBS $LIBICONV"
10457       cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463 #include <stdlib.h>
10464 #include <iconv.h>
10465 int
10466 main ()
10467 {
10468 iconv_t cd = iconv_open("","");
10469          iconv(cd,NULL,NULL,NULL,NULL);
10470          iconv_close(cd);
10471   ;
10472   return 0;
10473 }
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (ac_try="$ac_link"
10477 case "(($ac_try" in
10478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479   *) ac_try_echo=$ac_try;;
10480 esac
10481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10482 $as_echo "$ac_try_echo") >&5
10483   (eval "$ac_link") 2>conftest.er1
10484   ac_status=$?
10485   grep -v '^ *+' conftest.er1 >conftest.err
10486   rm -f conftest.er1
10487   cat conftest.err >&5
10488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); } && {
10490          test -z "$ac_c_werror_flag" ||
10491          test ! -s conftest.err
10492        } && test -s conftest$ac_exeext && {
10493          test "$cross_compiling" = yes ||
10494          $as_test_x conftest$ac_exeext
10495        }; then
10496   am_cv_lib_iconv=yes
10497         am_cv_func_iconv=yes
10498 else
10499   $as_echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502
10503 fi
10504
10505 rm -rf conftest.dSYM
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507       conftest$ac_exeext conftest.$ac_ext
10508       LIBS="$am_save_LIBS"
10509     fi
10510
10511 fi
10512 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10513 $as_echo "$am_cv_func_iconv" >&6; }
10514   if test "$am_cv_func_iconv" = yes; then
10515
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_ICONV 1
10518 _ACEOF
10519
10520   fi
10521   if test "$am_cv_lib_iconv" = yes; then
10522     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10523 $as_echo_n "checking how to link with libiconv... " >&6; }
10524     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10525 $as_echo "$LIBICONV" >&6; }
10526   else
10527             CPPFLAGS="$am_save_CPPFLAGS"
10528     LIBICONV=
10529     LTLIBICONV=
10530   fi
10531
10532
10533
10534   if test "$am_cv_func_iconv" = yes; then
10535     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10536 $as_echo_n "checking for iconv declaration... " >&6; }
10537     if test "${am_cv_proto_iconv+set}" = set; then
10538   $as_echo_n "(cached) " >&6
10539 else
10540
10541       cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h.  */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h.  */
10547
10548 #include <stdlib.h>
10549 #include <iconv.h>
10550 extern
10551 #ifdef __cplusplus
10552 "C"
10553 #endif
10554 #if defined(__STDC__) || defined(__cplusplus)
10555 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10556 #else
10557 size_t iconv();
10558 #endif
10559
10560 int
10561 main ()
10562 {
10563
10564   ;
10565   return 0;
10566 }
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576   (eval "$ac_compile") 2>conftest.er1
10577   ac_status=$?
10578   grep -v '^ *+' conftest.er1 >conftest.err
10579   rm -f conftest.er1
10580   cat conftest.err >&5
10581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); } && {
10583          test -z "$ac_c_werror_flag" ||
10584          test ! -s conftest.err
10585        } && test -s conftest.$ac_objext; then
10586   am_cv_proto_iconv_arg1=""
10587 else
10588   $as_echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591         am_cv_proto_iconv_arg1="const"
10592 fi
10593
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595       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);"
10596 fi
10597
10598     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10599     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10600          }$am_cv_proto_iconv" >&5
10601 $as_echo "${ac_t:-
10602          }$am_cv_proto_iconv" >&6; }
10603
10604 cat >>confdefs.h <<_ACEOF
10605 #define ICONV_CONST $am_cv_proto_iconv_arg1
10606 _ACEOF
10607
10608   fi
10609
10610
10611   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10612 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10613 if test "${am_cv_langinfo_codeset+set}" = set; then
10614   $as_echo_n "(cached) " >&6
10615 else
10616   cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622 #include <langinfo.h>
10623 int
10624 main ()
10625 {
10626 char* cs = nl_langinfo(CODESET);
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635   *) ac_try_echo=$ac_try;;
10636 esac
10637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10638 $as_echo "$ac_try_echo") >&5
10639   (eval "$ac_link") 2>conftest.er1
10640   ac_status=$?
10641   grep -v '^ *+' conftest.er1 >conftest.err
10642   rm -f conftest.er1
10643   cat conftest.err >&5
10644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); } && {
10646          test -z "$ac_c_werror_flag" ||
10647          test ! -s conftest.err
10648        } && test -s conftest$ac_exeext && {
10649          test "$cross_compiling" = yes ||
10650          $as_test_x conftest$ac_exeext
10651        }; then
10652   am_cv_langinfo_codeset=yes
10653 else
10654   $as_echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657         am_cv_langinfo_codeset=no
10658 fi
10659
10660 rm -rf conftest.dSYM
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662       conftest$ac_exeext conftest.$ac_ext
10663
10664 fi
10665 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10666 $as_echo "$am_cv_langinfo_codeset" >&6; }
10667   if test $am_cv_langinfo_codeset = yes; then
10668
10669 cat >>confdefs.h <<\_ACEOF
10670 #define HAVE_LANGINFO_CODESET 1
10671 _ACEOF
10672
10673   fi
10674
10675   if test $ac_cv_header_locale_h = yes; then
10676
10677   { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10678 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10679 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10680   $as_echo_n "(cached) " >&6
10681 else
10682   cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688 #include <locale.h>
10689 int
10690 main ()
10691 {
10692 return LC_MESSAGES
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701   *) ac_try_echo=$ac_try;;
10702 esac
10703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704 $as_echo "$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   $as_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          test "$cross_compiling" = yes ||
10716          $as_test_x conftest$ac_exeext
10717        }; then
10718   am_cv_val_LC_MESSAGES=yes
10719 else
10720   $as_echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10722
10723         am_cv_val_LC_MESSAGES=no
10724 fi
10725
10726 rm -rf conftest.dSYM
10727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728       conftest$ac_exeext conftest.$ac_ext
10729 fi
10730 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10731 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10732   if test $am_cv_val_LC_MESSAGES = yes; then
10733
10734 cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_LC_MESSAGES 1
10736 _ACEOF
10737
10738   fi
10739
10740   fi
10741
10742                       for ac_prog in bison
10743 do
10744   # Extract the first word of "$ac_prog", so it can be a program name with args.
10745 set dummy $ac_prog; ac_word=$2
10746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10749   $as_echo_n "(cached) " >&6
10750 else
10751   if test -n "$INTLBISON"; then
10752   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10756 do
10757   IFS=$as_save_IFS
10758   test -z "$as_dir" && as_dir=.
10759   for ac_exec_ext in '' $ac_executable_extensions; do
10760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761     ac_cv_prog_INTLBISON="$ac_prog"
10762     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10763     break 2
10764   fi
10765 done
10766 done
10767 IFS=$as_save_IFS
10768
10769 fi
10770 fi
10771 INTLBISON=$ac_cv_prog_INTLBISON
10772 if test -n "$INTLBISON"; then
10773   { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10774 $as_echo "$INTLBISON" >&6; }
10775 else
10776   { $as_echo "$as_me:$LINENO: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779
10780
10781   test -n "$INTLBISON" && break
10782 done
10783
10784   if test -z "$INTLBISON"; then
10785     ac_verc_fail=yes
10786   else
10787         { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10788 $as_echo_n "checking version of bison... " >&6; }
10789     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10790     case $ac_prog_version in
10791       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10792       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10793          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10794       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10795     esac
10796     { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10797 $as_echo "$ac_prog_version" >&6; }
10798   fi
10799   if test $ac_verc_fail = yes; then
10800     INTLBISON=:
10801   fi
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10819 $as_echo_n "checking whether NLS is requested... " >&6; }
10820     # Check whether --enable-nls was given.
10821 if test "${enable_nls+set}" = set; then
10822   enableval=$enable_nls; USE_NLS=$enableval
10823 else
10824   USE_NLS=yes
10825 fi
10826
10827   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10828 $as_echo "$USE_NLS" >&6; }
10829
10830
10831
10832
10833     BUILD_INCLUDED_LIBINTL=no
10834     USE_INCLUDED_LIBINTL=no
10835
10836   LIBINTL=
10837   LTLIBINTL=
10838   POSUB=
10839
10840     if test "$USE_NLS" = "yes"; then
10841     gt_use_preinstalled_gnugettext=no
10842
10843       { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10844 $as_echo_n "checking whether included gettext is requested... " >&6; }
10845
10846 # Check whether --with-included-gettext was given.
10847 if test "${with_included_gettext+set}" = set; then
10848   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10849 else
10850   nls_cv_force_use_gnu_gettext=no
10851 fi
10852
10853       { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10854 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10855
10856       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10857       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10858
10859
10860
10861
10862
10863
10864         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10865 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10866 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10867   $as_echo_n "(cached) " >&6
10868 else
10869   cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h.  */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h.  */
10875 #include <libintl.h>
10876 extern int _nl_msg_cat_cntr;
10877 extern int *_nl_domain_bindings;
10878 int
10879 main ()
10880 {
10881 bindtextdomain ("", "");
10882 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (ac_try="$ac_link"
10889 case "(($ac_try" in
10890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891   *) ac_try_echo=$ac_try;;
10892 esac
10893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10894 $as_echo "$ac_try_echo") >&5
10895   (eval "$ac_link") 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } && {
10902          test -z "$ac_c_werror_flag" ||
10903          test ! -s conftest.err
10904        } && test -s conftest$ac_exeext && {
10905          test "$cross_compiling" = yes ||
10906          $as_test_x conftest$ac_exeext
10907        }; then
10908   gt_cv_func_gnugettext1_libc=yes
10909 else
10910   $as_echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913         gt_cv_func_gnugettext1_libc=no
10914 fi
10915
10916 rm -rf conftest.dSYM
10917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918       conftest$ac_exeext conftest.$ac_ext
10919 fi
10920 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10921 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
10922
10923         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10924
10925
10926
10927     use_additional=yes
10928
10929   acl_save_prefix="$prefix"
10930   prefix="$acl_final_prefix"
10931   acl_save_exec_prefix="$exec_prefix"
10932   exec_prefix="$acl_final_exec_prefix"
10933
10934     eval additional_includedir=\"$includedir\"
10935     eval additional_libdir=\"$libdir\"
10936
10937   exec_prefix="$acl_save_exec_prefix"
10938   prefix="$acl_save_prefix"
10939
10940
10941 # Check whether --with-libintl-prefix was given.
10942 if test "${with_libintl_prefix+set}" = set; then
10943   withval=$with_libintl_prefix;
10944     if test "X$withval" = "Xno"; then
10945       use_additional=no
10946     else
10947       if test "X$withval" = "X"; then
10948
10949   acl_save_prefix="$prefix"
10950   prefix="$acl_final_prefix"
10951   acl_save_exec_prefix="$exec_prefix"
10952   exec_prefix="$acl_final_exec_prefix"
10953
10954           eval additional_includedir=\"$includedir\"
10955           eval additional_libdir=\"$libdir\"
10956
10957   exec_prefix="$acl_save_exec_prefix"
10958   prefix="$acl_save_prefix"
10959
10960       else
10961         additional_includedir="$withval/include"
10962         additional_libdir="$withval/lib"
10963       fi
10964     fi
10965
10966 fi
10967
10968       LIBINTL=
10969   LTLIBINTL=
10970   INCINTL=
10971   rpathdirs=
10972   ltrpathdirs=
10973   names_already_handled=
10974   names_next_round='intl '
10975   while test -n "$names_next_round"; do
10976     names_this_round="$names_next_round"
10977     names_next_round=
10978     for name in $names_this_round; do
10979       already_handled=
10980       for n in $names_already_handled; do
10981         if test "$n" = "$name"; then
10982           already_handled=yes
10983           break
10984         fi
10985       done
10986       if test -z "$already_handled"; then
10987         names_already_handled="$names_already_handled $name"
10988                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10989         eval value=\"\$HAVE_LIB$uppername\"
10990         if test -n "$value"; then
10991           if test "$value" = yes; then
10992             eval value=\"\$LIB$uppername\"
10993             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10994             eval value=\"\$LTLIB$uppername\"
10995             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10996           else
10997                                     :
10998           fi
10999         else
11000                               found_dir=
11001           found_la=
11002           found_so=
11003           found_a=
11004           if test $use_additional = yes; then
11005             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11006               found_dir="$additional_libdir"
11007               found_so="$additional_libdir/lib$name.$shlibext"
11008               if test -f "$additional_libdir/lib$name.la"; then
11009                 found_la="$additional_libdir/lib$name.la"
11010               fi
11011             else
11012               if test -f "$additional_libdir/lib$name.$libext"; then
11013                 found_dir="$additional_libdir"
11014                 found_a="$additional_libdir/lib$name.$libext"
11015                 if test -f "$additional_libdir/lib$name.la"; then
11016                   found_la="$additional_libdir/lib$name.la"
11017                 fi
11018               fi
11019             fi
11020           fi
11021           if test "X$found_dir" = "X"; then
11022             for x in $LDFLAGS $LTLIBINTL; do
11023
11024   acl_save_prefix="$prefix"
11025   prefix="$acl_final_prefix"
11026   acl_save_exec_prefix="$exec_prefix"
11027   exec_prefix="$acl_final_exec_prefix"
11028   eval x=\"$x\"
11029   exec_prefix="$acl_save_exec_prefix"
11030   prefix="$acl_save_prefix"
11031
11032               case "$x" in
11033                 -L*)
11034                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11035                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11036                     found_dir="$dir"
11037                     found_so="$dir/lib$name.$shlibext"
11038                     if test -f "$dir/lib$name.la"; then
11039                       found_la="$dir/lib$name.la"
11040                     fi
11041                   else
11042                     if test -f "$dir/lib$name.$libext"; then
11043                       found_dir="$dir"
11044                       found_a="$dir/lib$name.$libext"
11045                       if test -f "$dir/lib$name.la"; then
11046                         found_la="$dir/lib$name.la"
11047                       fi
11048                     fi
11049                   fi
11050                   ;;
11051               esac
11052               if test "X$found_dir" != "X"; then
11053                 break
11054               fi
11055             done
11056           fi
11057           if test "X$found_dir" != "X"; then
11058                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11059             if test "X$found_so" != "X"; then
11060                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11061                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11062               else
11063                                                                                 haveit=
11064                 for x in $ltrpathdirs; do
11065                   if test "X$x" = "X$found_dir"; then
11066                     haveit=yes
11067                     break
11068                   fi
11069                 done
11070                 if test -z "$haveit"; then
11071                   ltrpathdirs="$ltrpathdirs $found_dir"
11072                 fi
11073                                 if test "$hardcode_direct" = yes; then
11074                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11075                 else
11076                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11077                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11078                                                             haveit=
11079                     for x in $rpathdirs; do
11080                       if test "X$x" = "X$found_dir"; then
11081                         haveit=yes
11082                         break
11083                       fi
11084                     done
11085                     if test -z "$haveit"; then
11086                       rpathdirs="$rpathdirs $found_dir"
11087                     fi
11088                   else
11089                                                                                 haveit=
11090                     for x in $LDFLAGS $LIBINTL; do
11091
11092   acl_save_prefix="$prefix"
11093   prefix="$acl_final_prefix"
11094   acl_save_exec_prefix="$exec_prefix"
11095   exec_prefix="$acl_final_exec_prefix"
11096   eval x=\"$x\"
11097   exec_prefix="$acl_save_exec_prefix"
11098   prefix="$acl_save_prefix"
11099
11100                       if test "X$x" = "X-L$found_dir"; then
11101                         haveit=yes
11102                         break
11103                       fi
11104                     done
11105                     if test -z "$haveit"; then
11106                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11107                     fi
11108                     if test "$hardcode_minus_L" != no; then
11109                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11110                     else
11111                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11112                     fi
11113                   fi
11114                 fi
11115               fi
11116             else
11117               if test "X$found_a" != "X"; then
11118                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11119               else
11120                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11121               fi
11122             fi
11123                         additional_includedir=
11124             case "$found_dir" in
11125               */lib | */lib/)
11126                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11127                 additional_includedir="$basedir/include"
11128                 ;;
11129             esac
11130             if test "X$additional_includedir" != "X"; then
11131                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11132                 haveit=
11133                 if test "X$additional_includedir" = "X/usr/local/include"; then
11134                   if test -n "$GCC"; then
11135                     case $host_os in
11136                       linux*) haveit=yes;;
11137                     esac
11138                   fi
11139                 fi
11140                 if test -z "$haveit"; then
11141                   for x in $CPPFLAGS $INCINTL; do
11142
11143   acl_save_prefix="$prefix"
11144   prefix="$acl_final_prefix"
11145   acl_save_exec_prefix="$exec_prefix"
11146   exec_prefix="$acl_final_exec_prefix"
11147   eval x=\"$x\"
11148   exec_prefix="$acl_save_exec_prefix"
11149   prefix="$acl_save_prefix"
11150
11151                     if test "X$x" = "X-I$additional_includedir"; then
11152                       haveit=yes
11153                       break
11154                     fi
11155                   done
11156                   if test -z "$haveit"; then
11157                     if test -d "$additional_includedir"; then
11158                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11159                     fi
11160                   fi
11161                 fi
11162               fi
11163             fi
11164                         if test -n "$found_la"; then
11165                                                         save_libdir="$libdir"
11166               case "$found_la" in
11167                 */* | *\\*) . "$found_la" ;;
11168                 *) . "./$found_la" ;;
11169               esac
11170               libdir="$save_libdir"
11171                             for dep in $dependency_libs; do
11172                 case "$dep" in
11173                   -L*)
11174                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11175                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11176                       haveit=
11177                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11178                         if test -n "$GCC"; then
11179                           case $host_os in
11180                             linux*) haveit=yes;;
11181                           esac
11182                         fi
11183                       fi
11184                       if test -z "$haveit"; then
11185                         haveit=
11186                         for x in $LDFLAGS $LIBINTL; do
11187
11188   acl_save_prefix="$prefix"
11189   prefix="$acl_final_prefix"
11190   acl_save_exec_prefix="$exec_prefix"
11191   exec_prefix="$acl_final_exec_prefix"
11192   eval x=\"$x\"
11193   exec_prefix="$acl_save_exec_prefix"
11194   prefix="$acl_save_prefix"
11195
11196                           if test "X$x" = "X-L$additional_libdir"; then
11197                             haveit=yes
11198                             break
11199                           fi
11200                         done
11201                         if test -z "$haveit"; then
11202                           if test -d "$additional_libdir"; then
11203                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11204                           fi
11205                         fi
11206                         haveit=
11207                         for x in $LDFLAGS $LTLIBINTL; do
11208
11209   acl_save_prefix="$prefix"
11210   prefix="$acl_final_prefix"
11211   acl_save_exec_prefix="$exec_prefix"
11212   exec_prefix="$acl_final_exec_prefix"
11213   eval x=\"$x\"
11214   exec_prefix="$acl_save_exec_prefix"
11215   prefix="$acl_save_prefix"
11216
11217                           if test "X$x" = "X-L$additional_libdir"; then
11218                             haveit=yes
11219                             break
11220                           fi
11221                         done
11222                         if test -z "$haveit"; then
11223                           if test -d "$additional_libdir"; then
11224                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11225                           fi
11226                         fi
11227                       fi
11228                     fi
11229                     ;;
11230                   -R*)
11231                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11232                     if test "$enable_rpath" != no; then
11233                                                                   haveit=
11234                       for x in $rpathdirs; do
11235                         if test "X$x" = "X$dir"; then
11236                           haveit=yes
11237                           break
11238                         fi
11239                       done
11240                       if test -z "$haveit"; then
11241                         rpathdirs="$rpathdirs $dir"
11242                       fi
11243                                                                   haveit=
11244                       for x in $ltrpathdirs; do
11245                         if test "X$x" = "X$dir"; then
11246                           haveit=yes
11247                           break
11248                         fi
11249                       done
11250                       if test -z "$haveit"; then
11251                         ltrpathdirs="$ltrpathdirs $dir"
11252                       fi
11253                     fi
11254                     ;;
11255                   -l*)
11256                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11257                     ;;
11258                   *.la)
11259                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11260                     ;;
11261                   *)
11262                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11263                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11264                     ;;
11265                 esac
11266               done
11267             fi
11268           else
11269                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11270             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11271           fi
11272         fi
11273       fi
11274     done
11275   done
11276   if test "X$rpathdirs" != "X"; then
11277     if test -n "$hardcode_libdir_separator"; then
11278                         alldirs=
11279       for found_dir in $rpathdirs; do
11280         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11281       done
11282             acl_save_libdir="$libdir"
11283       libdir="$alldirs"
11284       eval flag=\"$hardcode_libdir_flag_spec\"
11285       libdir="$acl_save_libdir"
11286       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11287     else
11288             for found_dir in $rpathdirs; do
11289         acl_save_libdir="$libdir"
11290         libdir="$found_dir"
11291         eval flag=\"$hardcode_libdir_flag_spec\"
11292         libdir="$acl_save_libdir"
11293         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11294       done
11295     fi
11296   fi
11297   if test "X$ltrpathdirs" != "X"; then
11298             for found_dir in $ltrpathdirs; do
11299       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11300     done
11301   fi
11302
11303           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11304 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11305 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11306   $as_echo_n "(cached) " >&6
11307 else
11308   gt_save_CPPFLAGS="$CPPFLAGS"
11309             CPPFLAGS="$CPPFLAGS $INCINTL"
11310             gt_save_LIBS="$LIBS"
11311             LIBS="$LIBS $LIBINTL"
11312                         cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h.  */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h.  */
11318 #include <libintl.h>
11319 extern int _nl_msg_cat_cntr;
11320 extern
11321 #ifdef __cplusplus
11322 "C"
11323 #endif
11324 const char *_nl_expand_alias ();
11325 int
11326 main ()
11327 {
11328 bindtextdomain ("", "");
11329 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11330   ;
11331   return 0;
11332 }
11333 _ACEOF
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11341 $as_echo "$ac_try_echo") >&5
11342   (eval "$ac_link") 2>conftest.er1
11343   ac_status=$?
11344   grep -v '^ *+' conftest.er1 >conftest.err
11345   rm -f conftest.er1
11346   cat conftest.err >&5
11347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } && {
11349          test -z "$ac_c_werror_flag" ||
11350          test ! -s conftest.err
11351        } && test -s conftest$ac_exeext && {
11352          test "$cross_compiling" = yes ||
11353          $as_test_x conftest$ac_exeext
11354        }; then
11355   gt_cv_func_gnugettext1_libintl=yes
11356 else
11357   $as_echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360         gt_cv_func_gnugettext1_libintl=no
11361 fi
11362
11363 rm -rf conftest.dSYM
11364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11365       conftest$ac_exeext conftest.$ac_ext
11366                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11367               LIBS="$LIBS $LIBICONV"
11368               cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374 #include <libintl.h>
11375 extern int _nl_msg_cat_cntr;
11376 extern
11377 #ifdef __cplusplus
11378 "C"
11379 #endif
11380 const char *_nl_expand_alias ();
11381 int
11382 main ()
11383 {
11384 bindtextdomain ("", "");
11385 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (ac_try="$ac_link"
11392 case "(($ac_try" in
11393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394   *) ac_try_echo=$ac_try;;
11395 esac
11396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398   (eval "$ac_link") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } && {
11405          test -z "$ac_c_werror_flag" ||
11406          test ! -s conftest.err
11407        } && test -s conftest$ac_exeext && {
11408          test "$cross_compiling" = yes ||
11409          $as_test_x conftest$ac_exeext
11410        }; then
11411   LIBINTL="$LIBINTL $LIBICONV"
11412                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11413                 gt_cv_func_gnugettext1_libintl=yes
11414
11415 else
11416   $as_echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419
11420 fi
11421
11422 rm -rf conftest.dSYM
11423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11424       conftest$ac_exeext conftest.$ac_ext
11425             fi
11426             CPPFLAGS="$gt_save_CPPFLAGS"
11427             LIBS="$gt_save_LIBS"
11428 fi
11429 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11430 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
11431         fi
11432
11433                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11434            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11435                 && test "$PACKAGE" != gettext-runtime \
11436                 && test "$PACKAGE" != gettext-tools; }; then
11437           gt_use_preinstalled_gnugettext=yes
11438         else
11439                     LIBINTL=
11440           LTLIBINTL=
11441           INCINTL=
11442         fi
11443
11444
11445         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11446                               nls_cv_use_gnu_gettext=yes
11447         fi
11448       fi
11449
11450       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11451                 BUILD_INCLUDED_LIBINTL=yes
11452         USE_INCLUDED_LIBINTL=yes
11453         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11454         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11455         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11456       fi
11457
11458       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11459          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11460                 CATOBJEXT=.gmo
11461       fi
11462
11463
11464     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11465        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11466
11467 cat >>confdefs.h <<\_ACEOF
11468 #define ENABLE_NLS 1
11469 _ACEOF
11470
11471     else
11472       USE_NLS=no
11473     fi
11474   fi
11475
11476   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11477 $as_echo_n "checking whether to use NLS... " >&6; }
11478   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11479 $as_echo "$USE_NLS" >&6; }
11480   if test "$USE_NLS" = "yes"; then
11481     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11482 $as_echo_n "checking where the gettext function comes from... " >&6; }
11483     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11484       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11485         gt_source="external libintl"
11486       else
11487         gt_source="libc"
11488       fi
11489     else
11490       gt_source="included intl directory"
11491     fi
11492     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11493 $as_echo "$gt_source" >&6; }
11494   fi
11495
11496   if test "$USE_NLS" = "yes"; then
11497
11498     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11499       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11500         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11501 $as_echo_n "checking how to link with libintl... " >&6; }
11502         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11503 $as_echo "$LIBINTL" >&6; }
11504
11505   for element in $INCINTL; do
11506     haveit=
11507     for x in $CPPFLAGS; do
11508
11509   acl_save_prefix="$prefix"
11510   prefix="$acl_final_prefix"
11511   acl_save_exec_prefix="$exec_prefix"
11512   exec_prefix="$acl_final_exec_prefix"
11513   eval x=\"$x\"
11514   exec_prefix="$acl_save_exec_prefix"
11515   prefix="$acl_save_prefix"
11516
11517       if test "X$x" = "X$element"; then
11518         haveit=yes
11519         break
11520       fi
11521     done
11522     if test -z "$haveit"; then
11523       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11524     fi
11525   done
11526
11527       fi
11528
11529
11530 cat >>confdefs.h <<\_ACEOF
11531 #define HAVE_GETTEXT 1
11532 _ACEOF
11533
11534
11535 cat >>confdefs.h <<\_ACEOF
11536 #define HAVE_DCGETTEXT 1
11537 _ACEOF
11538
11539     fi
11540
11541         POSUB=po
11542   fi
11543
11544
11545             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11546       BUILD_INCLUDED_LIBINTL=yes
11547     fi
11548
11549
11550
11551
11552
11553         nls_cv_header_intl=
11554     nls_cv_header_libgt=
11555
11556         DATADIRNAME=share
11557
11558
11559         INSTOBJEXT=.mo
11560
11561
11562         GENCAT=gencat
11563
11564
11565         if test "$USE_INCLUDED_LIBINTL" = yes; then
11566       INTLOBJS="\$(GETTOBJS)"
11567     fi
11568
11569
11570         INTL_LIBTOOL_SUFFIX_PREFIX=
11571
11572
11573
11574     INTLLIBS="$LIBINTL"
11575
11576
11577
11578
11579
11580
11581
11582 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11583 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11584 set x ${MAKE-make}
11585 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11586 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11587   $as_echo_n "(cached) " >&6
11588 else
11589   cat >conftest.make <<\_ACEOF
11590 SHELL = /bin/sh
11591 all:
11592         @echo '@@@%%%=$(MAKE)=@@@%%%'
11593 _ACEOF
11594 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11595 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11596   *@@@%%%=?*=@@@%%%*)
11597     eval ac_cv_prog_make_${ac_make}_set=yes;;
11598   *)
11599     eval ac_cv_prog_make_${ac_make}_set=no;;
11600 esac
11601 rm -f conftest.make
11602 fi
11603 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11604   { $as_echo "$as_me:$LINENO: result: yes" >&5
11605 $as_echo "yes" >&6; }
11606   SET_MAKE=
11607 else
11608   { $as_echo "$as_me:$LINENO: result: no" >&5
11609 $as_echo "no" >&6; }
11610   SET_MAKE="MAKE=${MAKE-make}"
11611 fi
11612
11613  { $as_echo "$as_me:$LINENO: checking for GNU make" >&5
11614 $as_echo_n "checking for GNU make... " >&6; }
11615 if test "${_cv_gnu_make_command+set}" = set; then
11616   $as_echo_n "(cached) " >&6
11617 else
11618   _cv_gnu_make_command='' ;
11619                 for a in "$MAKE" make gmake gnumake ; do
11620                         if test -z "$a" ; then continue ; fi ;
11621                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11622                                 _cv_gnu_make_command=$a ;
11623                                 break;
11624                         fi
11625                 done ;
11626
11627 fi
11628 { $as_echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
11629 $as_echo "$_cv_gnu_make_command" >&6; } ;
11630         if test  "x$_cv_gnu_make_command" != "x"  ; then
11631                 ifGNUmake='' ;
11632                 ifNotGNUmake='#' ;
11633         else
11634                 ifGNUmake='#' ;
11635                 ifNotGNUmake='' ;
11636                 { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5
11637 $as_echo "\"Not found\"" >&6; };
11638         fi
11639
11640
11641
11642 # Extract the first word of "ln", so it can be a program name with args.
11643 set dummy ln; ac_word=$2
11644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if test "${ac_cv_path_LN+set}" = set; then
11647   $as_echo_n "(cached) " >&6
11648 else
11649   case $LN in
11650   [\\/]* | ?:[\\/]*)
11651   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11652   ;;
11653   *)
11654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11656 do
11657   IFS=$as_save_IFS
11658   test -z "$as_dir" && as_dir=.
11659   for ac_exec_ext in '' $ac_executable_extensions; do
11660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11663     break 2
11664   fi
11665 done
11666 done
11667 IFS=$as_save_IFS
11668
11669   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11670   ;;
11671 esac
11672 fi
11673 LN=$ac_cv_path_LN
11674 if test -n "$LN"; then
11675   { $as_echo "$as_me:$LINENO: result: $LN" >&5
11676 $as_echo "$LN" >&6; }
11677 else
11678   { $as_echo "$as_me:$LINENO: result: no" >&5
11679 $as_echo "no" >&6; }
11680 fi
11681
11682
11683 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11684 $as_echo_n "checking whether ln -s works... " >&6; }
11685 LN_S=$as_ln_s
11686 if test "$LN_S" = "ln -s"; then
11687   { $as_echo "$as_me:$LINENO: result: yes" >&5
11688 $as_echo "yes" >&6; }
11689 else
11690   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11691 $as_echo "no, using $LN_S" >&6; }
11692 fi
11693
11694 # Extract the first word of "mv", so it can be a program name with args.
11695 set dummy mv; ac_word=$2
11696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if test "${ac_cv_path_MV+set}" = set; then
11699   $as_echo_n "(cached) " >&6
11700 else
11701   case $MV in
11702   [\\/]* | ?:[\\/]*)
11703   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11704   ;;
11705   *)
11706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709   IFS=$as_save_IFS
11710   test -z "$as_dir" && as_dir=.
11711   for ac_exec_ext in '' $ac_executable_extensions; do
11712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11714     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11715     break 2
11716   fi
11717 done
11718 done
11719 IFS=$as_save_IFS
11720
11721   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11722   ;;
11723 esac
11724 fi
11725 MV=$ac_cv_path_MV
11726 if test -n "$MV"; then
11727   { $as_echo "$as_me:$LINENO: result: $MV" >&5
11728 $as_echo "$MV" >&6; }
11729 else
11730   { $as_echo "$as_me:$LINENO: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735 # Extract the first word of "cp", so it can be a program name with args.
11736 set dummy cp; ac_word=$2
11737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if test "${ac_cv_path_CP+set}" = set; then
11740   $as_echo_n "(cached) " >&6
11741 else
11742   case $CP in
11743   [\\/]* | ?:[\\/]*)
11744   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11745   ;;
11746   *)
11747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752   for ac_exec_ext in '' $ac_executable_extensions; do
11753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11755     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759 done
11760 IFS=$as_save_IFS
11761
11762   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11763   ;;
11764 esac
11765 fi
11766 CP=$ac_cv_path_CP
11767 if test -n "$CP"; then
11768   { $as_echo "$as_me:$LINENO: result: $CP" >&5
11769 $as_echo "$CP" >&6; }
11770 else
11771   { $as_echo "$as_me:$LINENO: result: no" >&5
11772 $as_echo "no" >&6; }
11773 fi
11774
11775
11776 # Extract the first word of "rm", so it can be a program name with args.
11777 set dummy rm; ac_word=$2
11778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if test "${ac_cv_path_RM+set}" = set; then
11781   $as_echo_n "(cached) " >&6
11782 else
11783   case $RM in
11784   [\\/]* | ?:[\\/]*)
11785   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11786   ;;
11787   *)
11788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793   for ac_exec_ext in '' $ac_executable_extensions; do
11794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11796     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800 done
11801 IFS=$as_save_IFS
11802
11803   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11804   ;;
11805 esac
11806 fi
11807 RM=$ac_cv_path_RM
11808 if test -n "$RM"; then
11809   { $as_echo "$as_me:$LINENO: result: $RM" >&5
11810 $as_echo "$RM" >&6; }
11811 else
11812   { $as_echo "$as_me:$LINENO: result: no" >&5
11813 $as_echo "no" >&6; }
11814 fi
11815
11816
11817 # Extract the first word of "chmod", so it can be a program name with args.
11818 set dummy chmod; ac_word=$2
11819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if test "${ac_cv_path_CHMOD+set}" = set; then
11822   $as_echo_n "(cached) " >&6
11823 else
11824   case $CHMOD in
11825   [\\/]* | ?:[\\/]*)
11826   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11827   ;;
11828   *)
11829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11831 do
11832   IFS=$as_save_IFS
11833   test -z "$as_dir" && as_dir=.
11834   for ac_exec_ext in '' $ac_executable_extensions; do
11835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11836     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11837     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11838     break 2
11839   fi
11840 done
11841 done
11842 IFS=$as_save_IFS
11843
11844   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11845   ;;
11846 esac
11847 fi
11848 CHMOD=$ac_cv_path_CHMOD
11849 if test -n "$CHMOD"; then
11850   { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11851 $as_echo "$CHMOD" >&6; }
11852 else
11853   { $as_echo "$as_me:$LINENO: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856
11857
11858 for ac_prog in gawk mawk nawk awk
11859 do
11860   # Extract the first word of "$ac_prog", so it can be a program name with args.
11861 set dummy $ac_prog; ac_word=$2
11862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if test "${ac_cv_prog_AWK+set}" = set; then
11865   $as_echo_n "(cached) " >&6
11866 else
11867   if test -n "$AWK"; then
11868   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11869 else
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11872 do
11873   IFS=$as_save_IFS
11874   test -z "$as_dir" && as_dir=.
11875   for ac_exec_ext in '' $ac_executable_extensions; do
11876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11877     ac_cv_prog_AWK="$ac_prog"
11878     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11879     break 2
11880   fi
11881 done
11882 done
11883 IFS=$as_save_IFS
11884
11885 fi
11886 fi
11887 AWK=$ac_cv_prog_AWK
11888 if test -n "$AWK"; then
11889   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11890 $as_echo "$AWK" >&6; }
11891 else
11892   { $as_echo "$as_me:$LINENO: result: no" >&5
11893 $as_echo "no" >&6; }
11894 fi
11895
11896
11897   test -n "$AWK" && break
11898 done
11899
11900 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
11901 $as_echo_n "checking for egrep... " >&6; }
11902 if test "${ac_cv_path_EGREP+set}" = set; then
11903   $as_echo_n "(cached) " >&6
11904 else
11905   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11906    then ac_cv_path_EGREP="$GREP -E"
11907    else
11908      if test -z "$EGREP"; then
11909   ac_path_EGREP_found=false
11910   # Loop through the user's path and test for each of PROGNAME-LIST
11911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11913 do
11914   IFS=$as_save_IFS
11915   test -z "$as_dir" && as_dir=.
11916   for ac_prog in egrep; do
11917     for ac_exec_ext in '' $ac_executable_extensions; do
11918       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11919       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11920 # Check for GNU ac_path_EGREP and select it if it is found.
11921   # Check for GNU $ac_path_EGREP
11922 case `"$ac_path_EGREP" --version 2>&1` in
11923 *GNU*)
11924   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11925 *)
11926   ac_count=0
11927   $as_echo_n 0123456789 >"conftest.in"
11928   while :
11929   do
11930     cat "conftest.in" "conftest.in" >"conftest.tmp"
11931     mv "conftest.tmp" "conftest.in"
11932     cp "conftest.in" "conftest.nl"
11933     $as_echo 'EGREP' >> "conftest.nl"
11934     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11936     ac_count=`expr $ac_count + 1`
11937     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11938       # Best one so far, save it but keep looking for a better one
11939       ac_cv_path_EGREP="$ac_path_EGREP"
11940       ac_path_EGREP_max=$ac_count
11941     fi
11942     # 10*(2^10) chars as input seems more than enough
11943     test $ac_count -gt 10 && break
11944   done
11945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11946 esac
11947
11948       $ac_path_EGREP_found && break 3
11949     done
11950   done
11951 done
11952 IFS=$as_save_IFS
11953   if test -z "$ac_cv_path_EGREP"; then
11954     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11955 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11956    { (exit 1); exit 1; }; }
11957   fi
11958 else
11959   ac_cv_path_EGREP=$EGREP
11960 fi
11961
11962    fi
11963 fi
11964 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11965 $as_echo "$ac_cv_path_EGREP" >&6; }
11966  EGREP="$ac_cv_path_EGREP"
11967
11968
11969 # Extract the first word of "sed", so it can be a program name with args.
11970 set dummy sed; ac_word=$2
11971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if test "${ac_cv_path_SED+set}" = set; then
11974   $as_echo_n "(cached) " >&6
11975 else
11976   case $SED in
11977   [\\/]* | ?:[\\/]*)
11978   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11979   ;;
11980   *)
11981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11983 do
11984   IFS=$as_save_IFS
11985   test -z "$as_dir" && as_dir=.
11986   for ac_exec_ext in '' $ac_executable_extensions; do
11987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11988     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11989     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11990     break 2
11991   fi
11992 done
11993 done
11994 IFS=$as_save_IFS
11995
11996   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11997   ;;
11998 esac
11999 fi
12000 SED=$ac_cv_path_SED
12001 if test -n "$SED"; then
12002   { $as_echo "$as_me:$LINENO: result: $SED" >&5
12003 $as_echo "$SED" >&6; }
12004 else
12005   { $as_echo "$as_me:$LINENO: result: no" >&5
12006 $as_echo "no" >&6; }
12007 fi
12008
12009
12010 # Extract the first word of "perl", so it can be a program name with args.
12011 set dummy perl; ac_word=$2
12012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_path_PERL+set}" = set; then
12015   $as_echo_n "(cached) " >&6
12016 else
12017   case $PERL in
12018   [\\/]* | ?:[\\/]*)
12019   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12020   ;;
12021   *)
12022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025   IFS=$as_save_IFS
12026   test -z "$as_dir" && as_dir=.
12027   for ac_exec_ext in '' $ac_executable_extensions; do
12028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12030     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12031     break 2
12032   fi
12033 done
12034 done
12035 IFS=$as_save_IFS
12036
12037   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12038   ;;
12039 esac
12040 fi
12041 PERL=$ac_cv_path_PERL
12042 if test -n "$PERL"; then
12043   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12044 $as_echo "$PERL" >&6; }
12045 else
12046   { $as_echo "$as_me:$LINENO: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051 # Extract the first word of "ldconfig", so it can be a program name with args.
12052 set dummy ldconfig; ac_word=$2
12053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if test "${ac_cv_path_LDCONFIG+set}" = set; then
12056   $as_echo_n "(cached) " >&6
12057 else
12058   case $LDCONFIG in
12059   [\\/]* | ?:[\\/]*)
12060   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12061   ;;
12062   *)
12063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12065 do
12066   IFS=$as_save_IFS
12067   test -z "$as_dir" && as_dir=.
12068   for ac_exec_ext in '' $ac_executable_extensions; do
12069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12070     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12071     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12072     break 2
12073   fi
12074 done
12075 done
12076 IFS=$as_save_IFS
12077
12078   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12079   ;;
12080 esac
12081 fi
12082 LDCONFIG=$ac_cv_path_LDCONFIG
12083 if test -n "$LDCONFIG"; then
12084   { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12085 $as_echo "$LDCONFIG" >&6; }
12086 else
12087   { $as_echo "$as_me:$LINENO: result: no" >&5
12088 $as_echo "no" >&6; }
12089 fi
12090
12091
12092 if test -n "$ac_tool_prefix"; then
12093   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12094 set dummy ${ac_tool_prefix}ar; ac_word=$2
12095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12096 $as_echo_n "checking for $ac_word... " >&6; }
12097 if test "${ac_cv_prog_AR+set}" = set; then
12098   $as_echo_n "(cached) " >&6
12099 else
12100   if test -n "$AR"; then
12101   ac_cv_prog_AR="$AR" # Let the user override the test.
12102 else
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12105 do
12106   IFS=$as_save_IFS
12107   test -z "$as_dir" && as_dir=.
12108   for ac_exec_ext in '' $ac_executable_extensions; do
12109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110     ac_cv_prog_AR="${ac_tool_prefix}ar"
12111     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12112     break 2
12113   fi
12114 done
12115 done
12116 IFS=$as_save_IFS
12117
12118 fi
12119 fi
12120 AR=$ac_cv_prog_AR
12121 if test -n "$AR"; then
12122   { $as_echo "$as_me:$LINENO: result: $AR" >&5
12123 $as_echo "$AR" >&6; }
12124 else
12125   { $as_echo "$as_me:$LINENO: result: no" >&5
12126 $as_echo "no" >&6; }
12127 fi
12128
12129
12130 fi
12131 if test -z "$ac_cv_prog_AR"; then
12132   ac_ct_AR=$AR
12133   # Extract the first word of "ar", so it can be a program name with args.
12134 set dummy ar; ac_word=$2
12135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12138   $as_echo_n "(cached) " >&6
12139 else
12140   if test -n "$ac_ct_AR"; then
12141   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12142 else
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12145 do
12146   IFS=$as_save_IFS
12147   test -z "$as_dir" && as_dir=.
12148   for ac_exec_ext in '' $ac_executable_extensions; do
12149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12150     ac_cv_prog_ac_ct_AR="ar"
12151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12152     break 2
12153   fi
12154 done
12155 done
12156 IFS=$as_save_IFS
12157
12158 fi
12159 fi
12160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12161 if test -n "$ac_ct_AR"; then
12162   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12163 $as_echo "$ac_ct_AR" >&6; }
12164 else
12165   { $as_echo "$as_me:$LINENO: result: no" >&5
12166 $as_echo "no" >&6; }
12167 fi
12168
12169   if test "x$ac_ct_AR" = x; then
12170     AR="ar"
12171   else
12172     case $cross_compiling:$ac_tool_warned in
12173 yes:)
12174 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12176 ac_tool_warned=yes ;;
12177 esac
12178     AR=$ac_ct_AR
12179   fi
12180 else
12181   AR="$ac_cv_prog_AR"
12182 fi
12183
12184 if test -n "$ac_tool_prefix"; then
12185   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if test "${ac_cv_prog_RANLIB+set}" = set; then
12190   $as_echo_n "(cached) " >&6
12191 else
12192   if test -n "$RANLIB"; then
12193   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200   for ac_exec_ext in '' $ac_executable_extensions; do
12201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12203     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207 done
12208 IFS=$as_save_IFS
12209
12210 fi
12211 fi
12212 RANLIB=$ac_cv_prog_RANLIB
12213 if test -n "$RANLIB"; then
12214   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12215 $as_echo "$RANLIB" >&6; }
12216 else
12217   { $as_echo "$as_me:$LINENO: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221
12222 fi
12223 if test -z "$ac_cv_prog_RANLIB"; then
12224   ac_ct_RANLIB=$RANLIB
12225   # Extract the first word of "ranlib", so it can be a program name with args.
12226 set dummy ranlib; ac_word=$2
12227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12230   $as_echo_n "(cached) " >&6
12231 else
12232   if test -n "$ac_ct_RANLIB"; then
12233   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240   for ac_exec_ext in '' $ac_executable_extensions; do
12241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12242     ac_cv_prog_ac_ct_RANLIB="ranlib"
12243     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247 done
12248 IFS=$as_save_IFS
12249
12250 fi
12251 fi
12252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12253 if test -n "$ac_ct_RANLIB"; then
12254   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12255 $as_echo "$ac_ct_RANLIB" >&6; }
12256 else
12257   { $as_echo "$as_me:$LINENO: result: no" >&5
12258 $as_echo "no" >&6; }
12259 fi
12260
12261   if test "x$ac_ct_RANLIB" = x; then
12262     RANLIB=":"
12263   else
12264     case $cross_compiling:$ac_tool_warned in
12265 yes:)
12266 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12268 ac_tool_warned=yes ;;
12269 esac
12270     RANLIB=$ac_ct_RANLIB
12271   fi
12272 else
12273   RANLIB="$ac_cv_prog_RANLIB"
12274 fi
12275
12276 if test -n "$ac_tool_prefix"; then
12277   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12278 set dummy ${ac_tool_prefix}strip; ac_word=$2
12279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if test "${ac_cv_prog_STRIP+set}" = set; then
12282   $as_echo_n "(cached) " >&6
12283 else
12284   if test -n "$STRIP"; then
12285   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12286 else
12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12289 do
12290   IFS=$as_save_IFS
12291   test -z "$as_dir" && as_dir=.
12292   for ac_exec_ext in '' $ac_executable_extensions; do
12293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12294     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12295     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12296     break 2
12297   fi
12298 done
12299 done
12300 IFS=$as_save_IFS
12301
12302 fi
12303 fi
12304 STRIP=$ac_cv_prog_STRIP
12305 if test -n "$STRIP"; then
12306   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12307 $as_echo "$STRIP" >&6; }
12308 else
12309   { $as_echo "$as_me:$LINENO: result: no" >&5
12310 $as_echo "no" >&6; }
12311 fi
12312
12313
12314 fi
12315 if test -z "$ac_cv_prog_STRIP"; then
12316   ac_ct_STRIP=$STRIP
12317   # Extract the first word of "strip", so it can be a program name with args.
12318 set dummy strip; ac_word=$2
12319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12322   $as_echo_n "(cached) " >&6
12323 else
12324   if test -n "$ac_ct_STRIP"; then
12325   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12326 else
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12329 do
12330   IFS=$as_save_IFS
12331   test -z "$as_dir" && as_dir=.
12332   for ac_exec_ext in '' $ac_executable_extensions; do
12333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334     ac_cv_prog_ac_ct_STRIP="strip"
12335     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12336     break 2
12337   fi
12338 done
12339 done
12340 IFS=$as_save_IFS
12341
12342 fi
12343 fi
12344 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12345 if test -n "$ac_ct_STRIP"; then
12346   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12347 $as_echo "$ac_ct_STRIP" >&6; }
12348 else
12349   { $as_echo "$as_me:$LINENO: result: no" >&5
12350 $as_echo "no" >&6; }
12351 fi
12352
12353   if test "x$ac_ct_STRIP" = x; then
12354     STRIP=":"
12355   else
12356     case $cross_compiling:$ac_tool_warned in
12357 yes:)
12358 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12360 ac_tool_warned=yes ;;
12361 esac
12362     STRIP=$ac_ct_STRIP
12363   fi
12364 else
12365   STRIP="$ac_cv_prog_STRIP"
12366 fi
12367
12368 # Extract the first word of "makeinfo", so it can be a program name with args.
12369 set dummy makeinfo; ac_word=$2
12370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12371 $as_echo_n "checking for $ac_word... " >&6; }
12372 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12373   $as_echo_n "(cached) " >&6
12374 else
12375   if test -n "$MAKEINFO"; then
12376   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12377 else
12378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379 for as_dir in $PATH
12380 do
12381   IFS=$as_save_IFS
12382   test -z "$as_dir" && as_dir=.
12383   for ac_exec_ext in '' $ac_executable_extensions; do
12384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12385     ac_cv_prog_MAKEINFO="makeinfo"
12386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12387     break 2
12388   fi
12389 done
12390 done
12391 IFS=$as_save_IFS
12392
12393 fi
12394 fi
12395 MAKEINFO=$ac_cv_prog_MAKEINFO
12396 if test -n "$MAKEINFO"; then
12397   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12398 $as_echo "$MAKEINFO" >&6; }
12399 else
12400   { $as_echo "$as_me:$LINENO: result: no" >&5
12401 $as_echo "no" >&6; }
12402 fi
12403
12404
12405 if test "_$MAKEINFO" = "_"; then
12406     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12407 else
12408     case "$MAKEINFO" in
12409       */missing.*)
12410         { $as_echo "$as_me:$LINENO: WARNING:
12411 *** Makeinfo is missing. Info documentation will not be built." >&5
12412 $as_echo "$as_me: WARNING:
12413 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12414         ;;
12415       *)
12416         ;;
12417     esac
12418 fi
12419
12420 # Find a good install program.  We prefer a C program (faster),
12421 # so one script is as good as another.  But avoid the broken or
12422 # incompatible versions:
12423 # SysV /etc/install, /usr/sbin/install
12424 # SunOS /usr/etc/install
12425 # IRIX /sbin/install
12426 # AIX /bin/install
12427 # AmigaOS /C/install, which installs bootblocks on floppy discs
12428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12431 # OS/2's system install, which has a completely different semantic
12432 # ./install, which can be erroneously created by make from ./install.sh.
12433 # Reject install programs that cannot install multiple files.
12434 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12435 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12436 if test -z "$INSTALL"; then
12437 if test "${ac_cv_path_install+set}" = set; then
12438   $as_echo_n "(cached) " >&6
12439 else
12440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12442 do
12443   IFS=$as_save_IFS
12444   test -z "$as_dir" && as_dir=.
12445   # Account for people who put trailing slashes in PATH elements.
12446 case $as_dir/ in
12447   ./ | .// | /cC/* | \
12448   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12449   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12450   /usr/ucb/* ) ;;
12451   *)
12452     # OSF1 and SCO ODT 3.0 have their own names for install.
12453     # Don't use installbsd from OSF since it installs stuff as root
12454     # by default.
12455     for ac_prog in ginstall scoinst install; do
12456       for ac_exec_ext in '' $ac_executable_extensions; do
12457         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12458           if test $ac_prog = install &&
12459             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12460             # AIX install.  It has an incompatible calling convention.
12461             :
12462           elif test $ac_prog = install &&
12463             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12464             # program-specific install script used by HP pwplus--don't use.
12465             :
12466           else
12467             rm -rf conftest.one conftest.two conftest.dir
12468             echo one > conftest.one
12469             echo two > conftest.two
12470             mkdir conftest.dir
12471             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12472               test -s conftest.one && test -s conftest.two &&
12473               test -s conftest.dir/conftest.one &&
12474               test -s conftest.dir/conftest.two
12475             then
12476               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12477               break 3
12478             fi
12479           fi
12480         fi
12481       done
12482     done
12483     ;;
12484 esac
12485
12486 done
12487 IFS=$as_save_IFS
12488
12489 rm -rf conftest.one conftest.two conftest.dir
12490
12491 fi
12492   if test "${ac_cv_path_install+set}" = set; then
12493     INSTALL=$ac_cv_path_install
12494   else
12495     # As a last resort, use the slow shell script.  Don't cache a
12496     # value for INSTALL within a source directory, because that will
12497     # break other packages using the cache if that directory is
12498     # removed, or if the value is a relative name.
12499     INSTALL=$ac_install_sh
12500   fi
12501 fi
12502 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12503 $as_echo "$INSTALL" >&6; }
12504
12505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12506 # It thinks the first close brace ends the variable substitution.
12507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12508
12509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12510
12511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12512
12513 # See if we need a separate native compiler.
12514 if test $cross_compiling = no; then
12515   BUILD_CC="$CC"
12516
12517 else
12518   for ac_prog in gcc cc
12519 do
12520   # Extract the first word of "$ac_prog", so it can be a program name with args.
12521 set dummy $ac_prog; ac_word=$2
12522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12523 $as_echo_n "checking for $ac_word... " >&6; }
12524 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12525   $as_echo_n "(cached) " >&6
12526 else
12527   if test -n "$BUILD_CC"; then
12528   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12529 else
12530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $PATH
12532 do
12533   IFS=$as_save_IFS
12534   test -z "$as_dir" && as_dir=.
12535   for ac_exec_ext in '' $ac_executable_extensions; do
12536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12537     ac_cv_prog_BUILD_CC="$ac_prog"
12538     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12539     break 2
12540   fi
12541 done
12542 done
12543 IFS=$as_save_IFS
12544
12545 fi
12546 fi
12547 BUILD_CC=$ac_cv_prog_BUILD_CC
12548 if test -n "$BUILD_CC"; then
12549   { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12550 $as_echo "$BUILD_CC" >&6; }
12551 else
12552   { $as_echo "$as_me:$LINENO: result: no" >&5
12553 $as_echo "no" >&6; }
12554 fi
12555
12556
12557   test -n "$BUILD_CC" && break
12558 done
12559
12560 fi
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.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
12600 do
12601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12603   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12604 $as_echo_n "checking for $ac_header... " >&6; }
12605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12606   $as_echo_n "(cached) " >&6
12607 fi
12608 ac_res=`eval 'as_val=${'$as_ac_Header'}
12609                  $as_echo "$as_val"'`
12610                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12611 $as_echo "$ac_res" >&6; }
12612 else
12613   # Is the header compilable?
12614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12615 $as_echo_n "checking $ac_header usability... " >&6; }
12616 cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622 $ac_includes_default
12623 #include <$ac_header>
12624 _ACEOF
12625 rm -f conftest.$ac_objext
12626 if { (ac_try="$ac_compile"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12632 $as_echo "$ac_try_echo") >&5
12633   (eval "$ac_compile") 2>conftest.er1
12634   ac_status=$?
12635   grep -v '^ *+' conftest.er1 >conftest.err
12636   rm -f conftest.er1
12637   cat conftest.err >&5
12638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); } && {
12640          test -z "$ac_c_werror_flag" ||
12641          test ! -s conftest.err
12642        } && test -s conftest.$ac_objext; then
12643   ac_header_compiler=yes
12644 else
12645   $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648         ac_header_compiler=no
12649 fi
12650
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12653 $as_echo "$ac_header_compiler" >&6; }
12654
12655 # Is the header present?
12656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12657 $as_echo_n "checking $ac_header presence... " >&6; }
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664 #include <$ac_header>
12665 _ACEOF
12666 if { (ac_try="$ac_cpp conftest.$ac_ext"
12667 case "(($ac_try" in
12668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669   *) ac_try_echo=$ac_try;;
12670 esac
12671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12672 $as_echo "$ac_try_echo") >&5
12673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12674   ac_status=$?
12675   grep -v '^ *+' conftest.er1 >conftest.err
12676   rm -f conftest.er1
12677   cat conftest.err >&5
12678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); } >/dev/null && {
12680          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12681          test ! -s conftest.err
12682        }; then
12683   ac_header_preproc=yes
12684 else
12685   $as_echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688   ac_header_preproc=no
12689 fi
12690
12691 rm -f conftest.err conftest.$ac_ext
12692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12693 $as_echo "$ac_header_preproc" >&6; }
12694
12695 # So?  What about this header?
12696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12697   yes:no: )
12698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12702     ac_header_preproc=yes
12703     ;;
12704   no:yes:* )
12705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12707     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12708 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12712 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12715     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12717
12718     ;;
12719 esac
12720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12721 $as_echo_n "checking for $ac_header... " >&6; }
12722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12723   $as_echo_n "(cached) " >&6
12724 else
12725   eval "$as_ac_Header=\$ac_header_preproc"
12726 fi
12727 ac_res=`eval 'as_val=${'$as_ac_Header'}
12728                  $as_echo "$as_val"'`
12729                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12730 $as_echo "$ac_res" >&6; }
12731
12732 fi
12733 as_val=`eval 'as_val=${'$as_ac_Header'}
12734                  $as_echo "$as_val"'`
12735    if test "x$as_val" = x""yes; then
12736   cat >>confdefs.h <<_ACEOF
12737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12738 _ACEOF
12739
12740 fi
12741
12742 done
12743
12744
12745
12746 for ac_header in sys/disk.h sys/mount.h
12747 do
12748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12750 $as_echo_n "checking for $ac_header... " >&6; }
12751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12752   $as_echo_n "(cached) " >&6
12753 else
12754   cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h.  */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h.  */
12760
12761 #if HAVE_SYS_QUEUE_H
12762 #include <sys/queue.h>
12763 #endif
12764
12765
12766 #include <$ac_header>
12767 _ACEOF
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772   *) ac_try_echo=$ac_try;;
12773 esac
12774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775 $as_echo "$ac_try_echo") >&5
12776   (eval "$ac_compile") 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } && {
12783          test -z "$ac_c_werror_flag" ||
12784          test ! -s conftest.err
12785        } && test -s conftest.$ac_objext; then
12786   eval "$as_ac_Header=yes"
12787 else
12788   $as_echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12790
12791         eval "$as_ac_Header=no"
12792 fi
12793
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795 fi
12796 ac_res=`eval 'as_val=${'$as_ac_Header'}
12797                  $as_echo "$as_val"'`
12798                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12799 $as_echo "$ac_res" >&6; }
12800 as_val=`eval 'as_val=${'$as_ac_Header'}
12801                  $as_echo "$as_val"'`
12802    if test "x$as_val" = x""yes; then
12803   cat >>confdefs.h <<_ACEOF
12804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12805 _ACEOF
12806
12807 fi
12808
12809 done
12810
12811
12812 for ac_header in net/if.h
12813 do
12814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12816 $as_echo_n "checking for $ac_header... " >&6; }
12817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12818   $as_echo_n "(cached) " >&6
12819 else
12820   cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826
12827 #if HAVE_SYS_TYPES_H
12828 #include <sys/types.h>
12829 #endif
12830 #if HAVE_SYS_SOCKET
12831 #include <sys/socket.h>
12832 #endif
12833
12834
12835 #include <$ac_header>
12836 _ACEOF
12837 rm -f conftest.$ac_objext
12838 if { (ac_try="$ac_compile"
12839 case "(($ac_try" in
12840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841   *) ac_try_echo=$ac_try;;
12842 esac
12843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12844 $as_echo "$ac_try_echo") >&5
12845   (eval "$ac_compile") 2>conftest.er1
12846   ac_status=$?
12847   grep -v '^ *+' conftest.er1 >conftest.err
12848   rm -f conftest.er1
12849   cat conftest.err >&5
12850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } && {
12852          test -z "$ac_c_werror_flag" ||
12853          test ! -s conftest.err
12854        } && test -s conftest.$ac_objext; then
12855   eval "$as_ac_Header=yes"
12856 else
12857   $as_echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860         eval "$as_ac_Header=no"
12861 fi
12862
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 fi
12865 ac_res=`eval 'as_val=${'$as_ac_Header'}
12866                  $as_echo "$as_val"'`
12867                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12868 $as_echo "$ac_res" >&6; }
12869 as_val=`eval 'as_val=${'$as_ac_Header'}
12870                  $as_echo "$as_val"'`
12871    if test "x$as_val" = x""yes; then
12872   cat >>confdefs.h <<_ACEOF
12873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12874 _ACEOF
12875
12876 fi
12877
12878 done
12879
12880
12881 for ac_func in vprintf
12882 do
12883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12885 $as_echo_n "checking for $ac_func... " >&6; }
12886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12887   $as_echo_n "(cached) " >&6
12888 else
12889   cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h.  */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h.  */
12895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12897 #define $ac_func innocuous_$ac_func
12898
12899 /* System header to define __stub macros and hopefully few prototypes,
12900     which can conflict with char $ac_func (); below.
12901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902     <limits.h> exists even on freestanding compilers.  */
12903
12904 #ifdef __STDC__
12905 # include <limits.h>
12906 #else
12907 # include <assert.h>
12908 #endif
12909
12910 #undef $ac_func
12911
12912 /* Override any GCC internal prototype to avoid an error.
12913    Use char because int might match the return type of a GCC
12914    builtin and then its argument prototype would still apply.  */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char $ac_func ();
12919 /* The GNU C library defines this for functions which it implements
12920     to always fail with ENOSYS.  Some functions are actually named
12921     something starting with __ and the normal name is an alias.  */
12922 #if defined __stub_$ac_func || defined __stub___$ac_func
12923 choke me
12924 #endif
12925
12926 int
12927 main ()
12928 {
12929 return $ac_func ();
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (ac_try="$ac_link"
12936 case "(($ac_try" in
12937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938   *) ac_try_echo=$ac_try;;
12939 esac
12940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12941 $as_echo "$ac_try_echo") >&5
12942   (eval "$ac_link") 2>conftest.er1
12943   ac_status=$?
12944   grep -v '^ *+' conftest.er1 >conftest.err
12945   rm -f conftest.er1
12946   cat conftest.err >&5
12947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); } && {
12949          test -z "$ac_c_werror_flag" ||
12950          test ! -s conftest.err
12951        } && test -s conftest$ac_exeext && {
12952          test "$cross_compiling" = yes ||
12953          $as_test_x conftest$ac_exeext
12954        }; then
12955   eval "$as_ac_var=yes"
12956 else
12957   $as_echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960         eval "$as_ac_var=no"
12961 fi
12962
12963 rm -rf conftest.dSYM
12964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12965       conftest$ac_exeext conftest.$ac_ext
12966 fi
12967 ac_res=`eval 'as_val=${'$as_ac_var'}
12968                  $as_echo "$as_val"'`
12969                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12970 $as_echo "$ac_res" >&6; }
12971 as_val=`eval 'as_val=${'$as_ac_var'}
12972                  $as_echo "$as_val"'`
12973    if test "x$as_val" = x""yes; then
12974   cat >>confdefs.h <<_ACEOF
12975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12976 _ACEOF
12977
12978 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12979 $as_echo_n "checking for _doprnt... " >&6; }
12980 if test "${ac_cv_func__doprnt+set}" = set; then
12981   $as_echo_n "(cached) " >&6
12982 else
12983   cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h.  */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h.  */
12989 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12991 #define _doprnt innocuous__doprnt
12992
12993 /* System header to define __stub macros and hopefully few prototypes,
12994     which can conflict with char _doprnt (); below.
12995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996     <limits.h> exists even on freestanding compilers.  */
12997
12998 #ifdef __STDC__
12999 # include <limits.h>
13000 #else
13001 # include <assert.h>
13002 #endif
13003
13004 #undef _doprnt
13005
13006 /* Override any GCC internal prototype to avoid an error.
13007    Use char because int might match the return type of a GCC
13008    builtin and then its argument prototype would still apply.  */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char _doprnt ();
13013 /* The GNU C library defines this for functions which it implements
13014     to always fail with ENOSYS.  Some functions are actually named
13015     something starting with __ and the normal name is an alias.  */
13016 #if defined __stub__doprnt || defined __stub____doprnt
13017 choke me
13018 #endif
13019
13020 int
13021 main ()
13022 {
13023 return _doprnt ();
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032   *) ac_try_echo=$ac_try;;
13033 esac
13034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13035 $as_echo "$ac_try_echo") >&5
13036   (eval "$ac_link") 2>conftest.er1
13037   ac_status=$?
13038   grep -v '^ *+' conftest.er1 >conftest.err
13039   rm -f conftest.er1
13040   cat conftest.err >&5
13041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } && {
13043          test -z "$ac_c_werror_flag" ||
13044          test ! -s conftest.err
13045        } && test -s conftest$ac_exeext && {
13046          test "$cross_compiling" = yes ||
13047          $as_test_x conftest$ac_exeext
13048        }; then
13049   ac_cv_func__doprnt=yes
13050 else
13051   $as_echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054         ac_cv_func__doprnt=no
13055 fi
13056
13057 rm -rf conftest.dSYM
13058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13059       conftest$ac_exeext conftest.$ac_ext
13060 fi
13061 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13062 $as_echo "$ac_cv_func__doprnt" >&6; }
13063 if test "x$ac_cv_func__doprnt" = x""yes; then
13064
13065 cat >>confdefs.h <<\_ACEOF
13066 #define HAVE_DOPRNT 1
13067 _ACEOF
13068
13069 fi
13070
13071 fi
13072 done
13073
13074
13075 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13076 $as_echo_n "checking for struct dirent.d_reclen... " >&6; }
13077 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
13078   $as_echo_n "(cached) " >&6
13079 else
13080   cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h.  */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h.  */
13086 #include <dirent.h>
13087
13088 int
13089 main ()
13090 {
13091 static struct dirent ac_aggr;
13092 if (ac_aggr.d_reclen)
13093 return 0;
13094   ;
13095   return 0;
13096 }
13097 _ACEOF
13098 rm -f conftest.$ac_objext
13099 if { (ac_try="$ac_compile"
13100 case "(($ac_try" in
13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102   *) ac_try_echo=$ac_try;;
13103 esac
13104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13105 $as_echo "$ac_try_echo") >&5
13106   (eval "$ac_compile") 2>conftest.er1
13107   ac_status=$?
13108   grep -v '^ *+' conftest.er1 >conftest.err
13109   rm -f conftest.er1
13110   cat conftest.err >&5
13111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); } && {
13113          test -z "$ac_c_werror_flag" ||
13114          test ! -s conftest.err
13115        } && test -s conftest.$ac_objext; then
13116   ac_cv_member_struct_dirent_d_reclen=yes
13117 else
13118   $as_echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121         cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 #include <dirent.h>
13128
13129 int
13130 main ()
13131 {
13132 static struct dirent ac_aggr;
13133 if (sizeof ac_aggr.d_reclen)
13134 return 0;
13135   ;
13136   return 0;
13137 }
13138 _ACEOF
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13146 $as_echo "$ac_try_echo") >&5
13147   (eval "$ac_compile") 2>conftest.er1
13148   ac_status=$?
13149   grep -v '^ *+' conftest.er1 >conftest.err
13150   rm -f conftest.er1
13151   cat conftest.err >&5
13152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } && {
13154          test -z "$ac_c_werror_flag" ||
13155          test ! -s conftest.err
13156        } && test -s conftest.$ac_objext; then
13157   ac_cv_member_struct_dirent_d_reclen=yes
13158 else
13159   $as_echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162         ac_cv_member_struct_dirent_d_reclen=no
13163 fi
13164
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 fi
13167
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 fi
13170 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13171 $as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13172 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
13173   cat >>confdefs.h <<\_ACEOF
13174 #define HAVE_RECLEN_DIRENT 1
13175 _ACEOF
13176
13177 fi
13178
13179 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13180 $as_echo_n "checking for ssize_t... " >&6; }
13181 if test "${ac_cv_type_ssize_t+set}" = set; then
13182   $as_echo_n "(cached) " >&6
13183 else
13184   ac_cv_type_ssize_t=no
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h.  */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h.  */
13191 #include <sys/types.h>
13192
13193 int
13194 main ()
13195 {
13196 if (sizeof (ssize_t))
13197        return 0;
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206   *) ac_try_echo=$ac_try;;
13207 esac
13208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13209 $as_echo "$ac_try_echo") >&5
13210   (eval "$ac_compile") 2>conftest.er1
13211   ac_status=$?
13212   grep -v '^ *+' conftest.er1 >conftest.err
13213   rm -f conftest.er1
13214   cat conftest.err >&5
13215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } && {
13217          test -z "$ac_c_werror_flag" ||
13218          test ! -s conftest.err
13219        } && test -s conftest.$ac_objext; then
13220   cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226 #include <sys/types.h>
13227
13228 int
13229 main ()
13230 {
13231 if (sizeof ((ssize_t)))
13232           return 0;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244 $as_echo "$ac_try_echo") >&5
13245   (eval "$ac_compile") 2>conftest.er1
13246   ac_status=$?
13247   grep -v '^ *+' conftest.er1 >conftest.err
13248   rm -f conftest.er1
13249   cat conftest.err >&5
13250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); } && {
13252          test -z "$ac_c_werror_flag" ||
13253          test ! -s conftest.err
13254        } && test -s conftest.$ac_objext; then
13255   :
13256 else
13257   $as_echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260         ac_cv_type_ssize_t=yes
13261 fi
13262
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264 else
13265   $as_echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268
13269 fi
13270
13271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13272 fi
13273 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13274 $as_echo "$ac_cv_type_ssize_t" >&6; }
13275 if test "x$ac_cv_type_ssize_t" = x""yes; then
13276   cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_TYPE_SSIZE_T 1
13278 _ACEOF
13279
13280 fi
13281
13282 { $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13283 $as_echo_n "checking whether llseek is declared... " >&6; }
13284 if test "${ac_cv_have_decl_llseek+set}" = set; then
13285   $as_echo_n "(cached) " >&6
13286 else
13287   cat >conftest.$ac_ext <<_ACEOF
13288 /* confdefs.h.  */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h.  */
13293 #include <unistd.h>
13294
13295 int
13296 main ()
13297 {
13298 #ifndef llseek
13299   (void) llseek;
13300 #endif
13301
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (ac_try="$ac_compile"
13308 case "(($ac_try" in
13309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310   *) ac_try_echo=$ac_try;;
13311 esac
13312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13313 $as_echo "$ac_try_echo") >&5
13314   (eval "$ac_compile") 2>conftest.er1
13315   ac_status=$?
13316   grep -v '^ *+' conftest.er1 >conftest.err
13317   rm -f conftest.er1
13318   cat conftest.err >&5
13319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } && {
13321          test -z "$ac_c_werror_flag" ||
13322          test ! -s conftest.err
13323        } && test -s conftest.$ac_objext; then
13324   ac_cv_have_decl_llseek=yes
13325 else
13326   $as_echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13328
13329         ac_cv_have_decl_llseek=no
13330 fi
13331
13332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333 fi
13334 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13335 $as_echo "$ac_cv_have_decl_llseek" >&6; }
13336 if test "x$ac_cv_have_decl_llseek" = x""yes; then
13337   cat >>confdefs.h <<\_ACEOF
13338 #define HAVE_LLSEEK_PROTOTYPE 1
13339 _ACEOF
13340
13341 fi
13342
13343 { $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13344 $as_echo_n "checking whether lseek64 is declared... " >&6; }
13345 if test "${ac_cv_have_decl_lseek64+set}" = set; then
13346   $as_echo_n "(cached) " >&6
13347 else
13348   cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354 #define _LARGEFILE_SOURCE
13355                  #define _LARGEFILE64_SOURCE
13356                  #include <unistd.h>
13357
13358 int
13359 main ()
13360 {
13361 #ifndef lseek64
13362   (void) lseek64;
13363 #endif
13364
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (ac_try="$ac_compile"
13371 case "(($ac_try" in
13372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373   *) ac_try_echo=$ac_try;;
13374 esac
13375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13376 $as_echo "$ac_try_echo") >&5
13377   (eval "$ac_compile") 2>conftest.er1
13378   ac_status=$?
13379   grep -v '^ *+' conftest.er1 >conftest.err
13380   rm -f conftest.er1
13381   cat conftest.err >&5
13382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } && {
13384          test -z "$ac_c_werror_flag" ||
13385          test ! -s conftest.err
13386        } && test -s conftest.$ac_objext; then
13387   ac_cv_have_decl_lseek64=yes
13388 else
13389   $as_echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392         ac_cv_have_decl_lseek64=no
13393 fi
13394
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 fi
13397 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13398 $as_echo "$ac_cv_have_decl_lseek64" >&6; }
13399 if test "x$ac_cv_have_decl_lseek64" = x""yes; then
13400   cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_LSEEK64_PROTOTYPE 1
13402 _ACEOF
13403
13404 fi
13405
13406 # The cast to long int works around a bug in the HP C Compiler
13407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13409 # This bug is HP SR number 8606223364.
13410 { $as_echo "$as_me:$LINENO: checking size of short" >&5
13411 $as_echo_n "checking size of short... " >&6; }
13412 if test "${ac_cv_sizeof_short+set}" = set; then
13413   $as_echo_n "(cached) " >&6
13414 else
13415   if test "$cross_compiling" = yes; then
13416   # Depending upon the size, compute the lo and hi bounds.
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 $ac_includes_default
13424 int
13425 main ()
13426 {
13427 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
13428 test_array [0] = 0
13429
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13441 $as_echo "$ac_try_echo") >&5
13442   (eval "$ac_compile") 2>conftest.er1
13443   ac_status=$?
13444   grep -v '^ *+' conftest.er1 >conftest.err
13445   rm -f conftest.er1
13446   cat conftest.err >&5
13447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } && {
13449          test -z "$ac_c_werror_flag" ||
13450          test ! -s conftest.err
13451        } && test -s conftest.$ac_objext; then
13452   ac_lo=0 ac_mid=0
13453   while :; do
13454     cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h.  */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h.  */
13460 $ac_includes_default
13461 int
13462 main ()
13463 {
13464 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13465 test_array [0] = 0
13466
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 rm -f conftest.$ac_objext
13472 if { (ac_try="$ac_compile"
13473 case "(($ac_try" in
13474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475   *) ac_try_echo=$ac_try;;
13476 esac
13477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13478 $as_echo "$ac_try_echo") >&5
13479   (eval "$ac_compile") 2>conftest.er1
13480   ac_status=$?
13481   grep -v '^ *+' conftest.er1 >conftest.err
13482   rm -f conftest.er1
13483   cat conftest.err >&5
13484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); } && {
13486          test -z "$ac_c_werror_flag" ||
13487          test ! -s conftest.err
13488        } && test -s conftest.$ac_objext; then
13489   ac_hi=$ac_mid; break
13490 else
13491   $as_echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494         ac_lo=`expr $ac_mid + 1`
13495                         if test $ac_lo -le $ac_mid; then
13496                           ac_lo= ac_hi=
13497                           break
13498                         fi
13499                         ac_mid=`expr 2 '*' $ac_mid + 1`
13500 fi
13501
13502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503   done
13504 else
13505   $as_echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508         cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h.  */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h.  */
13514 $ac_includes_default
13515 int
13516 main ()
13517 {
13518 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
13519 test_array [0] = 0
13520
13521   ;
13522   return 0;
13523 }
13524 _ACEOF
13525 rm -f conftest.$ac_objext
13526 if { (ac_try="$ac_compile"
13527 case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13532 $as_echo "$ac_try_echo") >&5
13533   (eval "$ac_compile") 2>conftest.er1
13534   ac_status=$?
13535   grep -v '^ *+' conftest.er1 >conftest.err
13536   rm -f conftest.er1
13537   cat conftest.err >&5
13538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } && {
13540          test -z "$ac_c_werror_flag" ||
13541          test ! -s conftest.err
13542        } && test -s conftest.$ac_objext; then
13543   ac_hi=-1 ac_mid=-1
13544   while :; do
13545     cat >conftest.$ac_ext <<_ACEOF
13546 /* confdefs.h.  */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h.  */
13551 $ac_includes_default
13552 int
13553 main ()
13554 {
13555 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
13556 test_array [0] = 0
13557
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext
13563 if { (ac_try="$ac_compile"
13564 case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570   (eval "$ac_compile") 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } && {
13577          test -z "$ac_c_werror_flag" ||
13578          test ! -s conftest.err
13579        } && test -s conftest.$ac_objext; then
13580   ac_lo=$ac_mid; break
13581 else
13582   $as_echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585         ac_hi=`expr '(' $ac_mid ')' - 1`
13586                         if test $ac_mid -le $ac_hi; then
13587                           ac_lo= ac_hi=
13588                           break
13589                         fi
13590                         ac_mid=`expr 2 '*' $ac_mid`
13591 fi
13592
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594   done
13595 else
13596   $as_echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13598
13599         ac_lo= ac_hi=
13600 fi
13601
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 fi
13604
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 # Binary search between lo and hi bounds.
13607 while test "x$ac_lo" != "x$ac_hi"; do
13608   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13609   cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h.  */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h.  */
13615 $ac_includes_default
13616 int
13617 main ()
13618 {
13619 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13620 test_array [0] = 0
13621
13622   ;
13623   return 0;
13624 }
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633 $as_echo "$ac_try_echo") >&5
13634   (eval "$ac_compile") 2>conftest.er1
13635   ac_status=$?
13636   grep -v '^ *+' conftest.er1 >conftest.err
13637   rm -f conftest.er1
13638   cat conftest.err >&5
13639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } && {
13641          test -z "$ac_c_werror_flag" ||
13642          test ! -s conftest.err
13643        } && test -s conftest.$ac_objext; then
13644   ac_hi=$ac_mid
13645 else
13646   $as_echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13648
13649         ac_lo=`expr '(' $ac_mid ')' + 1`
13650 fi
13651
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 done
13654 case $ac_lo in
13655 ?*) ac_cv_sizeof_short=$ac_lo;;
13656 '') if test "$ac_cv_type_short" = yes; then
13657      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13660 See \`config.log' for more details." >&5
13661 $as_echo "$as_me: error: cannot compute sizeof (short)
13662 See \`config.log' for more details." >&2;}
13663    { (exit 77); exit 77; }; }; }
13664    else
13665      ac_cv_sizeof_short=0
13666    fi ;;
13667 esac
13668 else
13669   cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h.  */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h.  */
13675 $ac_includes_default
13676 static long int longval () { return (long int) (sizeof (short)); }
13677 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
13678 #include <stdio.h>
13679 #include <stdlib.h>
13680 int
13681 main ()
13682 {
13683
13684   FILE *f = fopen ("conftest.val", "w");
13685   if (! f)
13686     return 1;
13687   if (((long int) (sizeof (short))) < 0)
13688     {
13689       long int i = longval ();
13690       if (i != ((long int) (sizeof (short))))
13691         return 1;
13692       fprintf (f, "%ld", i);
13693     }
13694   else
13695     {
13696       unsigned long int i = ulongval ();
13697       if (i != ((long int) (sizeof (short))))
13698         return 1;
13699       fprintf (f, "%lu", i);
13700     }
13701   /* Do not output a trailing newline, as this causes \r\n confusion
13702      on some platforms.  */
13703   return ferror (f) || fclose (f) != 0;
13704
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713   *) ac_try_echo=$ac_try;;
13714 esac
13715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13716 $as_echo "$ac_try_echo") >&5
13717   (eval "$ac_link") 2>&5
13718   ac_status=$?
13719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13721   { (case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726 $as_echo "$ac_try_echo") >&5
13727   (eval "$ac_try") 2>&5
13728   ac_status=$?
13729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731   ac_cv_sizeof_short=`cat conftest.val`
13732 else
13733   $as_echo "$as_me: program exited with status $ac_status" >&5
13734 $as_echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ( exit $ac_status )
13738 if test "$ac_cv_type_short" = yes; then
13739      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13741 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13742 See \`config.log' for more details." >&5
13743 $as_echo "$as_me: error: cannot compute sizeof (short)
13744 See \`config.log' for more details." >&2;}
13745    { (exit 77); exit 77; }; }; }
13746    else
13747      ac_cv_sizeof_short=0
13748    fi
13749 fi
13750 rm -rf conftest.dSYM
13751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13752 fi
13753 rm -f conftest.val
13754 fi
13755 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13756 $as_echo "$ac_cv_sizeof_short" >&6; }
13757
13758
13759
13760 cat >>confdefs.h <<_ACEOF
13761 #define SIZEOF_SHORT $ac_cv_sizeof_short
13762 _ACEOF
13763
13764
13765 # The cast to long int works around a bug in the HP C Compiler
13766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13768 # This bug is HP SR number 8606223364.
13769 { $as_echo "$as_me:$LINENO: checking size of int" >&5
13770 $as_echo_n "checking size of int... " >&6; }
13771 if test "${ac_cv_sizeof_int+set}" = set; then
13772   $as_echo_n "(cached) " >&6
13773 else
13774   if test "$cross_compiling" = yes; then
13775   # Depending upon the size, compute the lo and hi bounds.
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h.  */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h.  */
13782 $ac_includes_default
13783 int
13784 main ()
13785 {
13786 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
13787 test_array [0] = 0
13788
13789   ;
13790   return 0;
13791 }
13792 _ACEOF
13793 rm -f conftest.$ac_objext
13794 if { (ac_try="$ac_compile"
13795 case "(($ac_try" in
13796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797   *) ac_try_echo=$ac_try;;
13798 esac
13799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13800 $as_echo "$ac_try_echo") >&5
13801   (eval "$ac_compile") 2>conftest.er1
13802   ac_status=$?
13803   grep -v '^ *+' conftest.er1 >conftest.err
13804   rm -f conftest.er1
13805   cat conftest.err >&5
13806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); } && {
13808          test -z "$ac_c_werror_flag" ||
13809          test ! -s conftest.err
13810        } && test -s conftest.$ac_objext; then
13811   ac_lo=0 ac_mid=0
13812   while :; do
13813     cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819 $ac_includes_default
13820 int
13821 main ()
13822 {
13823 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13824 test_array [0] = 0
13825
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 rm -f conftest.$ac_objext
13831 if { (ac_try="$ac_compile"
13832 case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838   (eval "$ac_compile") 2>conftest.er1
13839   ac_status=$?
13840   grep -v '^ *+' conftest.er1 >conftest.err
13841   rm -f conftest.er1
13842   cat conftest.err >&5
13843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } && {
13845          test -z "$ac_c_werror_flag" ||
13846          test ! -s conftest.err
13847        } && test -s conftest.$ac_objext; then
13848   ac_hi=$ac_mid; break
13849 else
13850   $as_echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13852
13853         ac_lo=`expr $ac_mid + 1`
13854                         if test $ac_lo -le $ac_mid; then
13855                           ac_lo= ac_hi=
13856                           break
13857                         fi
13858                         ac_mid=`expr 2 '*' $ac_mid + 1`
13859 fi
13860
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862   done
13863 else
13864   $as_echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867         cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873 $ac_includes_default
13874 int
13875 main ()
13876 {
13877 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
13878 test_array [0] = 0
13879
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13891 $as_echo "$ac_try_echo") >&5
13892   (eval "$ac_compile") 2>conftest.er1
13893   ac_status=$?
13894   grep -v '^ *+' conftest.er1 >conftest.err
13895   rm -f conftest.er1
13896   cat conftest.err >&5
13897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } && {
13899          test -z "$ac_c_werror_flag" ||
13900          test ! -s conftest.err
13901        } && test -s conftest.$ac_objext; then
13902   ac_hi=-1 ac_mid=-1
13903   while :; do
13904     cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910 $ac_includes_default
13911 int
13912 main ()
13913 {
13914 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
13915 test_array [0] = 0
13916
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 rm -f conftest.$ac_objext
13922 if { (ac_try="$ac_compile"
13923 case "(($ac_try" in
13924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925   *) ac_try_echo=$ac_try;;
13926 esac
13927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13928 $as_echo "$ac_try_echo") >&5
13929   (eval "$ac_compile") 2>conftest.er1
13930   ac_status=$?
13931   grep -v '^ *+' conftest.er1 >conftest.err
13932   rm -f conftest.er1
13933   cat conftest.err >&5
13934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } && {
13936          test -z "$ac_c_werror_flag" ||
13937          test ! -s conftest.err
13938        } && test -s conftest.$ac_objext; then
13939   ac_lo=$ac_mid; break
13940 else
13941   $as_echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13943
13944         ac_hi=`expr '(' $ac_mid ')' - 1`
13945                         if test $ac_mid -le $ac_hi; then
13946                           ac_lo= ac_hi=
13947                           break
13948                         fi
13949                         ac_mid=`expr 2 '*' $ac_mid`
13950 fi
13951
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953   done
13954 else
13955   $as_echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958         ac_lo= ac_hi=
13959 fi
13960
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 fi
13963
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965 # Binary search between lo and hi bounds.
13966 while test "x$ac_lo" != "x$ac_hi"; do
13967   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13968   cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h.  */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h.  */
13974 $ac_includes_default
13975 int
13976 main ()
13977 {
13978 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13979 test_array [0] = 0
13980
13981   ;
13982   return 0;
13983 }
13984 _ACEOF
13985 rm -f conftest.$ac_objext
13986 if { (ac_try="$ac_compile"
13987 case "(($ac_try" in
13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989   *) ac_try_echo=$ac_try;;
13990 esac
13991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13992 $as_echo "$ac_try_echo") >&5
13993   (eval "$ac_compile") 2>conftest.er1
13994   ac_status=$?
13995   grep -v '^ *+' conftest.er1 >conftest.err
13996   rm -f conftest.er1
13997   cat conftest.err >&5
13998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); } && {
14000          test -z "$ac_c_werror_flag" ||
14001          test ! -s conftest.err
14002        } && test -s conftest.$ac_objext; then
14003   ac_hi=$ac_mid
14004 else
14005   $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008         ac_lo=`expr '(' $ac_mid ')' + 1`
14009 fi
14010
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012 done
14013 case $ac_lo in
14014 ?*) ac_cv_sizeof_int=$ac_lo;;
14015 '') if test "$ac_cv_type_int" = yes; then
14016      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14018 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14019 See \`config.log' for more details." >&5
14020 $as_echo "$as_me: error: cannot compute sizeof (int)
14021 See \`config.log' for more details." >&2;}
14022    { (exit 77); exit 77; }; }; }
14023    else
14024      ac_cv_sizeof_int=0
14025    fi ;;
14026 esac
14027 else
14028   cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034 $ac_includes_default
14035 static long int longval () { return (long int) (sizeof (int)); }
14036 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
14037 #include <stdio.h>
14038 #include <stdlib.h>
14039 int
14040 main ()
14041 {
14042
14043   FILE *f = fopen ("conftest.val", "w");
14044   if (! f)
14045     return 1;
14046   if (((long int) (sizeof (int))) < 0)
14047     {
14048       long int i = longval ();
14049       if (i != ((long int) (sizeof (int))))
14050         return 1;
14051       fprintf (f, "%ld", i);
14052     }
14053   else
14054     {
14055       unsigned long int i = ulongval ();
14056       if (i != ((long int) (sizeof (int))))
14057         return 1;
14058       fprintf (f, "%lu", i);
14059     }
14060   /* Do not output a trailing newline, as this causes \r\n confusion
14061      on some platforms.  */
14062   return ferror (f) || fclose (f) != 0;
14063
14064   ;
14065   return 0;
14066 }
14067 _ACEOF
14068 rm -f conftest$ac_exeext
14069 if { (ac_try="$ac_link"
14070 case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14075 $as_echo "$ac_try_echo") >&5
14076   (eval "$ac_link") 2>&5
14077   ac_status=$?
14078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14080   { (case "(($ac_try" in
14081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082   *) ac_try_echo=$ac_try;;
14083 esac
14084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14085 $as_echo "$ac_try_echo") >&5
14086   (eval "$ac_try") 2>&5
14087   ac_status=$?
14088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090   ac_cv_sizeof_int=`cat conftest.val`
14091 else
14092   $as_echo "$as_me: program exited with status $ac_status" >&5
14093 $as_echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14095
14096 ( exit $ac_status )
14097 if test "$ac_cv_type_int" = yes; then
14098      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14100 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14101 See \`config.log' for more details." >&5
14102 $as_echo "$as_me: error: cannot compute sizeof (int)
14103 See \`config.log' for more details." >&2;}
14104    { (exit 77); exit 77; }; }; }
14105    else
14106      ac_cv_sizeof_int=0
14107    fi
14108 fi
14109 rm -rf conftest.dSYM
14110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14111 fi
14112 rm -f conftest.val
14113 fi
14114 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14115 $as_echo "$ac_cv_sizeof_int" >&6; }
14116
14117
14118
14119 cat >>confdefs.h <<_ACEOF
14120 #define SIZEOF_INT $ac_cv_sizeof_int
14121 _ACEOF
14122
14123
14124 # The cast to long int works around a bug in the HP C Compiler
14125 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14126 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14127 # This bug is HP SR number 8606223364.
14128 { $as_echo "$as_me:$LINENO: checking size of long" >&5
14129 $as_echo_n "checking size of long... " >&6; }
14130 if test "${ac_cv_sizeof_long+set}" = set; then
14131   $as_echo_n "(cached) " >&6
14132 else
14133   if test "$cross_compiling" = yes; then
14134   # Depending upon the size, compute the lo and hi bounds.
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141 $ac_includes_default
14142 int
14143 main ()
14144 {
14145 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
14146 test_array [0] = 0
14147
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 rm -f conftest.$ac_objext
14153 if { (ac_try="$ac_compile"
14154 case "(($ac_try" in
14155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156   *) ac_try_echo=$ac_try;;
14157 esac
14158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14159 $as_echo "$ac_try_echo") >&5
14160   (eval "$ac_compile") 2>conftest.er1
14161   ac_status=$?
14162   grep -v '^ *+' conftest.er1 >conftest.err
14163   rm -f conftest.er1
14164   cat conftest.err >&5
14165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } && {
14167          test -z "$ac_c_werror_flag" ||
14168          test ! -s conftest.err
14169        } && test -s conftest.$ac_objext; then
14170   ac_lo=0 ac_mid=0
14171   while :; do
14172     cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h.  */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h.  */
14178 $ac_includes_default
14179 int
14180 main ()
14181 {
14182 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14183 test_array [0] = 0
14184
14185   ;
14186   return 0;
14187 }
14188 _ACEOF
14189 rm -f conftest.$ac_objext
14190 if { (ac_try="$ac_compile"
14191 case "(($ac_try" in
14192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193   *) ac_try_echo=$ac_try;;
14194 esac
14195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14196 $as_echo "$ac_try_echo") >&5
14197   (eval "$ac_compile") 2>conftest.er1
14198   ac_status=$?
14199   grep -v '^ *+' conftest.er1 >conftest.err
14200   rm -f conftest.er1
14201   cat conftest.err >&5
14202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); } && {
14204          test -z "$ac_c_werror_flag" ||
14205          test ! -s conftest.err
14206        } && test -s conftest.$ac_objext; then
14207   ac_hi=$ac_mid; break
14208 else
14209   $as_echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14211
14212         ac_lo=`expr $ac_mid + 1`
14213                         if test $ac_lo -le $ac_mid; then
14214                           ac_lo= ac_hi=
14215                           break
14216                         fi
14217                         ac_mid=`expr 2 '*' $ac_mid + 1`
14218 fi
14219
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221   done
14222 else
14223   $as_echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226         cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 $ac_includes_default
14233 int
14234 main ()
14235 {
14236 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
14237 test_array [0] = 0
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 rm -f conftest.$ac_objext
14244 if { (ac_try="$ac_compile"
14245 case "(($ac_try" in
14246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247   *) ac_try_echo=$ac_try;;
14248 esac
14249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14250 $as_echo "$ac_try_echo") >&5
14251   (eval "$ac_compile") 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } && {
14258          test -z "$ac_c_werror_flag" ||
14259          test ! -s conftest.err
14260        } && test -s conftest.$ac_objext; then
14261   ac_hi=-1 ac_mid=-1
14262   while :; do
14263     cat >conftest.$ac_ext <<_ACEOF
14264 /* confdefs.h.  */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h.  */
14269 $ac_includes_default
14270 int
14271 main ()
14272 {
14273 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
14274 test_array [0] = 0
14275
14276   ;
14277   return 0;
14278 }
14279 _ACEOF
14280 rm -f conftest.$ac_objext
14281 if { (ac_try="$ac_compile"
14282 case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288   (eval "$ac_compile") 2>conftest.er1
14289   ac_status=$?
14290   grep -v '^ *+' conftest.er1 >conftest.err
14291   rm -f conftest.er1
14292   cat conftest.err >&5
14293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } && {
14295          test -z "$ac_c_werror_flag" ||
14296          test ! -s conftest.err
14297        } && test -s conftest.$ac_objext; then
14298   ac_lo=$ac_mid; break
14299 else
14300   $as_echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303         ac_hi=`expr '(' $ac_mid ')' - 1`
14304                         if test $ac_mid -le $ac_hi; then
14305                           ac_lo= ac_hi=
14306                           break
14307                         fi
14308                         ac_mid=`expr 2 '*' $ac_mid`
14309 fi
14310
14311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14312   done
14313 else
14314   $as_echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317         ac_lo= ac_hi=
14318 fi
14319
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 fi
14322
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 # Binary search between lo and hi bounds.
14325 while test "x$ac_lo" != "x$ac_hi"; do
14326   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14327   cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333 $ac_includes_default
14334 int
14335 main ()
14336 {
14337 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14338 test_array [0] = 0
14339
14340   ;
14341   return 0;
14342 }
14343 _ACEOF
14344 rm -f conftest.$ac_objext
14345 if { (ac_try="$ac_compile"
14346 case "(($ac_try" in
14347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348   *) ac_try_echo=$ac_try;;
14349 esac
14350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14351 $as_echo "$ac_try_echo") >&5
14352   (eval "$ac_compile") 2>conftest.er1
14353   ac_status=$?
14354   grep -v '^ *+' conftest.er1 >conftest.err
14355   rm -f conftest.er1
14356   cat conftest.err >&5
14357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } && {
14359          test -z "$ac_c_werror_flag" ||
14360          test ! -s conftest.err
14361        } && test -s conftest.$ac_objext; then
14362   ac_hi=$ac_mid
14363 else
14364   $as_echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367         ac_lo=`expr '(' $ac_mid ')' + 1`
14368 fi
14369
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 done
14372 case $ac_lo in
14373 ?*) ac_cv_sizeof_long=$ac_lo;;
14374 '') if test "$ac_cv_type_long" = yes; then
14375      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14377 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14378 See \`config.log' for more details." >&5
14379 $as_echo "$as_me: error: cannot compute sizeof (long)
14380 See \`config.log' for more details." >&2;}
14381    { (exit 77); exit 77; }; }; }
14382    else
14383      ac_cv_sizeof_long=0
14384    fi ;;
14385 esac
14386 else
14387   cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h.  */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h.  */
14393 $ac_includes_default
14394 static long int longval () { return (long int) (sizeof (long)); }
14395 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
14396 #include <stdio.h>
14397 #include <stdlib.h>
14398 int
14399 main ()
14400 {
14401
14402   FILE *f = fopen ("conftest.val", "w");
14403   if (! f)
14404     return 1;
14405   if (((long int) (sizeof (long))) < 0)
14406     {
14407       long int i = longval ();
14408       if (i != ((long int) (sizeof (long))))
14409         return 1;
14410       fprintf (f, "%ld", i);
14411     }
14412   else
14413     {
14414       unsigned long int i = ulongval ();
14415       if (i != ((long int) (sizeof (long))))
14416         return 1;
14417       fprintf (f, "%lu", i);
14418     }
14419   /* Do not output a trailing newline, as this causes \r\n confusion
14420      on some platforms.  */
14421   return ferror (f) || fclose (f) != 0;
14422
14423   ;
14424   return 0;
14425 }
14426 _ACEOF
14427 rm -f conftest$ac_exeext
14428 if { (ac_try="$ac_link"
14429 case "(($ac_try" in
14430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431   *) ac_try_echo=$ac_try;;
14432 esac
14433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14434 $as_echo "$ac_try_echo") >&5
14435   (eval "$ac_link") 2>&5
14436   ac_status=$?
14437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14439   { (case "(($ac_try" in
14440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441   *) ac_try_echo=$ac_try;;
14442 esac
14443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14444 $as_echo "$ac_try_echo") >&5
14445   (eval "$ac_try") 2>&5
14446   ac_status=$?
14447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449   ac_cv_sizeof_long=`cat conftest.val`
14450 else
14451   $as_echo "$as_me: program exited with status $ac_status" >&5
14452 $as_echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455 ( exit $ac_status )
14456 if test "$ac_cv_type_long" = yes; then
14457      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14459 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14460 See \`config.log' for more details." >&5
14461 $as_echo "$as_me: error: cannot compute sizeof (long)
14462 See \`config.log' for more details." >&2;}
14463    { (exit 77); exit 77; }; }; }
14464    else
14465      ac_cv_sizeof_long=0
14466    fi
14467 fi
14468 rm -rf conftest.dSYM
14469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14470 fi
14471 rm -f conftest.val
14472 fi
14473 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14474 $as_echo "$ac_cv_sizeof_long" >&6; }
14475
14476
14477
14478 cat >>confdefs.h <<_ACEOF
14479 #define SIZEOF_LONG $ac_cv_sizeof_long
14480 _ACEOF
14481
14482
14483 # The cast to long int works around a bug in the HP C Compiler
14484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14486 # This bug is HP SR number 8606223364.
14487 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
14488 $as_echo_n "checking size of long long... " >&6; }
14489 if test "${ac_cv_sizeof_long_long+set}" = set; then
14490   $as_echo_n "(cached) " >&6
14491 else
14492   if test "$cross_compiling" = yes; then
14493   # Depending upon the size, compute the lo and hi bounds.
14494 cat >conftest.$ac_ext <<_ACEOF
14495 /* confdefs.h.  */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h.  */
14500 $ac_includes_default
14501 int
14502 main ()
14503 {
14504 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
14505 test_array [0] = 0
14506
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext
14512 if { (ac_try="$ac_compile"
14513 case "(($ac_try" in
14514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515   *) ac_try_echo=$ac_try;;
14516 esac
14517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14518 $as_echo "$ac_try_echo") >&5
14519   (eval "$ac_compile") 2>conftest.er1
14520   ac_status=$?
14521   grep -v '^ *+' conftest.er1 >conftest.err
14522   rm -f conftest.er1
14523   cat conftest.err >&5
14524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } && {
14526          test -z "$ac_c_werror_flag" ||
14527          test ! -s conftest.err
14528        } && test -s conftest.$ac_objext; then
14529   ac_lo=0 ac_mid=0
14530   while :; do
14531     cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537 $ac_includes_default
14538 int
14539 main ()
14540 {
14541 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14542 test_array [0] = 0
14543
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552   *) ac_try_echo=$ac_try;;
14553 esac
14554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555 $as_echo "$ac_try_echo") >&5
14556   (eval "$ac_compile") 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } && {
14563          test -z "$ac_c_werror_flag" ||
14564          test ! -s conftest.err
14565        } && test -s conftest.$ac_objext; then
14566   ac_hi=$ac_mid; break
14567 else
14568   $as_echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571         ac_lo=`expr $ac_mid + 1`
14572                         if test $ac_lo -le $ac_mid; then
14573                           ac_lo= ac_hi=
14574                           break
14575                         fi
14576                         ac_mid=`expr 2 '*' $ac_mid + 1`
14577 fi
14578
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580   done
14581 else
14582   $as_echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585         cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h.  */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h.  */
14591 $ac_includes_default
14592 int
14593 main ()
14594 {
14595 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
14596 test_array [0] = 0
14597
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 rm -f conftest.$ac_objext
14603 if { (ac_try="$ac_compile"
14604 case "(($ac_try" in
14605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606   *) ac_try_echo=$ac_try;;
14607 esac
14608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14609 $as_echo "$ac_try_echo") >&5
14610   (eval "$ac_compile") 2>conftest.er1
14611   ac_status=$?
14612   grep -v '^ *+' conftest.er1 >conftest.err
14613   rm -f conftest.er1
14614   cat conftest.err >&5
14615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } && {
14617          test -z "$ac_c_werror_flag" ||
14618          test ! -s conftest.err
14619        } && test -s conftest.$ac_objext; then
14620   ac_hi=-1 ac_mid=-1
14621   while :; do
14622     cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628 $ac_includes_default
14629 int
14630 main ()
14631 {
14632 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
14633 test_array [0] = 0
14634
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (ac_try="$ac_compile"
14641 case "(($ac_try" in
14642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643   *) ac_try_echo=$ac_try;;
14644 esac
14645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14646 $as_echo "$ac_try_echo") >&5
14647   (eval "$ac_compile") 2>conftest.er1
14648   ac_status=$?
14649   grep -v '^ *+' conftest.er1 >conftest.err
14650   rm -f conftest.er1
14651   cat conftest.err >&5
14652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); } && {
14654          test -z "$ac_c_werror_flag" ||
14655          test ! -s conftest.err
14656        } && test -s conftest.$ac_objext; then
14657   ac_lo=$ac_mid; break
14658 else
14659   $as_echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662         ac_hi=`expr '(' $ac_mid ')' - 1`
14663                         if test $ac_mid -le $ac_hi; then
14664                           ac_lo= ac_hi=
14665                           break
14666                         fi
14667                         ac_mid=`expr 2 '*' $ac_mid`
14668 fi
14669
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671   done
14672 else
14673   $as_echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14675
14676         ac_lo= ac_hi=
14677 fi
14678
14679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680 fi
14681
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 # Binary search between lo and hi bounds.
14684 while test "x$ac_lo" != "x$ac_hi"; do
14685   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14686   cat >conftest.$ac_ext <<_ACEOF
14687 /* confdefs.h.  */
14688 _ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h.  */
14692 $ac_includes_default
14693 int
14694 main ()
14695 {
14696 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14697 test_array [0] = 0
14698
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext
14704 if { (ac_try="$ac_compile"
14705 case "(($ac_try" in
14706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707   *) ac_try_echo=$ac_try;;
14708 esac
14709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710 $as_echo "$ac_try_echo") >&5
14711   (eval "$ac_compile") 2>conftest.er1
14712   ac_status=$?
14713   grep -v '^ *+' conftest.er1 >conftest.err
14714   rm -f conftest.er1
14715   cat conftest.err >&5
14716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } && {
14718          test -z "$ac_c_werror_flag" ||
14719          test ! -s conftest.err
14720        } && test -s conftest.$ac_objext; then
14721   ac_hi=$ac_mid
14722 else
14723   $as_echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726         ac_lo=`expr '(' $ac_mid ')' + 1`
14727 fi
14728
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 done
14731 case $ac_lo in
14732 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14733 '') if test "$ac_cv_type_long_long" = yes; then
14734      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14736 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14737 See \`config.log' for more details." >&5
14738 $as_echo "$as_me: error: cannot compute sizeof (long long)
14739 See \`config.log' for more details." >&2;}
14740    { (exit 77); exit 77; }; }; }
14741    else
14742      ac_cv_sizeof_long_long=0
14743    fi ;;
14744 esac
14745 else
14746   cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h.  */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h.  */
14752 $ac_includes_default
14753 static long int longval () { return (long int) (sizeof (long long)); }
14754 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
14755 #include <stdio.h>
14756 #include <stdlib.h>
14757 int
14758 main ()
14759 {
14760
14761   FILE *f = fopen ("conftest.val", "w");
14762   if (! f)
14763     return 1;
14764   if (((long int) (sizeof (long long))) < 0)
14765     {
14766       long int i = longval ();
14767       if (i != ((long int) (sizeof (long long))))
14768         return 1;
14769       fprintf (f, "%ld", i);
14770     }
14771   else
14772     {
14773       unsigned long int i = ulongval ();
14774       if (i != ((long int) (sizeof (long long))))
14775         return 1;
14776       fprintf (f, "%lu", i);
14777     }
14778   /* Do not output a trailing newline, as this causes \r\n confusion
14779      on some platforms.  */
14780   return ferror (f) || fclose (f) != 0;
14781
14782   ;
14783   return 0;
14784 }
14785 _ACEOF
14786 rm -f conftest$ac_exeext
14787 if { (ac_try="$ac_link"
14788 case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793 $as_echo "$ac_try_echo") >&5
14794   (eval "$ac_link") 2>&5
14795   ac_status=$?
14796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14798   { (case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14803 $as_echo "$ac_try_echo") >&5
14804   (eval "$ac_try") 2>&5
14805   ac_status=$?
14806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); }; }; then
14808   ac_cv_sizeof_long_long=`cat conftest.val`
14809 else
14810   $as_echo "$as_me: program exited with status $ac_status" >&5
14811 $as_echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14813
14814 ( exit $ac_status )
14815 if test "$ac_cv_type_long_long" = yes; then
14816      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14818 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14819 See \`config.log' for more details." >&5
14820 $as_echo "$as_me: error: cannot compute sizeof (long long)
14821 See \`config.log' for more details." >&2;}
14822    { (exit 77); exit 77; }; }; }
14823    else
14824      ac_cv_sizeof_long_long=0
14825    fi
14826 fi
14827 rm -rf conftest.dSYM
14828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14829 fi
14830 rm -f conftest.val
14831 fi
14832 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14833 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14834
14835
14836
14837 cat >>confdefs.h <<_ACEOF
14838 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14839 _ACEOF
14840
14841
14842 SIZEOF_SHORT=$ac_cv_sizeof_short
14843 SIZEOF_INT=$ac_cv_sizeof_int
14844 SIZEOF_LONG=$ac_cv_sizeof_long
14845 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14846
14847
14848
14849
14850
14851  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14852 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14853 if test "${ac_cv_c_bigendian+set}" = set; then
14854   $as_echo_n "(cached) " >&6
14855 else
14856   ac_cv_c_bigendian=unknown
14857     # See if we're dealing with a universal compiler.
14858     cat >conftest.$ac_ext <<_ACEOF
14859 /* confdefs.h.  */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h.  */
14864 #ifndef __APPLE_CC__
14865                not a universal capable compiler
14866              #endif
14867              typedef int dummy;
14868
14869 _ACEOF
14870 rm -f conftest.$ac_objext
14871 if { (ac_try="$ac_compile"
14872 case "(($ac_try" in
14873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874   *) ac_try_echo=$ac_try;;
14875 esac
14876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14877 $as_echo "$ac_try_echo") >&5
14878   (eval "$ac_compile") 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } && {
14885          test -z "$ac_c_werror_flag" ||
14886          test ! -s conftest.err
14887        } && test -s conftest.$ac_objext; then
14888
14889         # Check for potential -arch flags.  It is not universal unless
14890         # there are some -arch flags.  Note that *ppc* also matches
14891         # ppc64.  This check is also rather less than ideal.
14892         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14893           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14894         esac
14895 else
14896   $as_echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899
14900 fi
14901
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903     if test $ac_cv_c_bigendian = unknown; then
14904       # See if sys/param.h defines the BYTE_ORDER macro.
14905       cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h.  */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h.  */
14911 #include <sys/types.h>
14912              #include <sys/param.h>
14913
14914 int
14915 main ()
14916 {
14917 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14918                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14919                      && LITTLE_ENDIAN)
14920               bogus endian macros
14921              #endif
14922
14923   ;
14924   return 0;
14925 }
14926 _ACEOF
14927 rm -f conftest.$ac_objext
14928 if { (ac_try="$ac_compile"
14929 case "(($ac_try" in
14930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931   *) ac_try_echo=$ac_try;;
14932 esac
14933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14934 $as_echo "$ac_try_echo") >&5
14935   (eval "$ac_compile") 2>conftest.er1
14936   ac_status=$?
14937   grep -v '^ *+' conftest.er1 >conftest.err
14938   rm -f conftest.er1
14939   cat conftest.err >&5
14940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941   (exit $ac_status); } && {
14942          test -z "$ac_c_werror_flag" ||
14943          test ! -s conftest.err
14944        } && test -s conftest.$ac_objext; then
14945   # It does; now see whether it defined to BIG_ENDIAN or not.
14946          cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952 #include <sys/types.h>
14953                 #include <sys/param.h>
14954
14955 int
14956 main ()
14957 {
14958 #if BYTE_ORDER != BIG_ENDIAN
14959                  not big endian
14960                 #endif
14961
14962   ;
14963   return 0;
14964 }
14965 _ACEOF
14966 rm -f conftest.$ac_objext
14967 if { (ac_try="$ac_compile"
14968 case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14973 $as_echo "$ac_try_echo") >&5
14974   (eval "$ac_compile") 2>conftest.er1
14975   ac_status=$?
14976   grep -v '^ *+' conftest.er1 >conftest.err
14977   rm -f conftest.er1
14978   cat conftest.err >&5
14979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } && {
14981          test -z "$ac_c_werror_flag" ||
14982          test ! -s conftest.err
14983        } && test -s conftest.$ac_objext; then
14984   ac_cv_c_bigendian=yes
14985 else
14986   $as_echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989         ac_cv_c_bigendian=no
14990 fi
14991
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14993 else
14994   $as_echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997
14998 fi
14999
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001     fi
15002     if test $ac_cv_c_bigendian = unknown; then
15003       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15004       cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 #include <limits.h>
15011
15012 int
15013 main ()
15014 {
15015 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15016               bogus endian macros
15017              #endif
15018
15019   ;
15020   return 0;
15021 }
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (ac_try="$ac_compile"
15025 case "(($ac_try" in
15026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027   *) ac_try_echo=$ac_try;;
15028 esac
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031   (eval "$ac_compile") 2>conftest.er1
15032   ac_status=$?
15033   grep -v '^ *+' conftest.er1 >conftest.err
15034   rm -f conftest.er1
15035   cat conftest.err >&5
15036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } && {
15038          test -z "$ac_c_werror_flag" ||
15039          test ! -s conftest.err
15040        } && test -s conftest.$ac_objext; then
15041   # It does; now see whether it defined to _BIG_ENDIAN or not.
15042          cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h.  */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h.  */
15048 #include <limits.h>
15049
15050 int
15051 main ()
15052 {
15053 #ifndef _BIG_ENDIAN
15054                  not big endian
15055                 #endif
15056
15057   ;
15058   return 0;
15059 }
15060 _ACEOF
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065   *) ac_try_echo=$ac_try;;
15066 esac
15067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15068 $as_echo "$ac_try_echo") >&5
15069   (eval "$ac_compile") 2>conftest.er1
15070   ac_status=$?
15071   grep -v '^ *+' conftest.er1 >conftest.err
15072   rm -f conftest.er1
15073   cat conftest.err >&5
15074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); } && {
15076          test -z "$ac_c_werror_flag" ||
15077          test ! -s conftest.err
15078        } && test -s conftest.$ac_objext; then
15079   ac_cv_c_bigendian=yes
15080 else
15081   $as_echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15083
15084         ac_cv_c_bigendian=no
15085 fi
15086
15087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 else
15089   $as_echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092
15093 fi
15094
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096     fi
15097     if test $ac_cv_c_bigendian = unknown; then
15098       # Compile a test program.
15099       if test "$cross_compiling" = yes; then
15100   # Try to guess by grepping values from an object file.
15101          cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h.  */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h.  */
15107 short int ascii_mm[] =
15108                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15109                 short int ascii_ii[] =
15110                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15111                 int use_ascii (int i) {
15112                   return ascii_mm[i] + ascii_ii[i];
15113                 }
15114                 short int ebcdic_ii[] =
15115                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15116                 short int ebcdic_mm[] =
15117                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15118                 int use_ebcdic (int i) {
15119                   return ebcdic_mm[i] + ebcdic_ii[i];
15120                 }
15121                 extern int foo;
15122
15123 int
15124 main ()
15125 {
15126 return use_ascii (foo) == use_ebcdic (foo);
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15138 $as_echo "$ac_try_echo") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest.$ac_objext; then
15149   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15150               ac_cv_c_bigendian=yes
15151             fi
15152             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15153               if test "$ac_cv_c_bigendian" = unknown; then
15154                 ac_cv_c_bigendian=no
15155               else
15156                 # finding both strings is unlikely to happen, but who knows?
15157                 ac_cv_c_bigendian=unknown
15158               fi
15159             fi
15160 else
15161   $as_echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164
15165 fi
15166
15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168 else
15169   cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h.  */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h.  */
15175 $ac_includes_default
15176 int
15177 main ()
15178 {
15179
15180              /* Are we little or big endian?  From Harbison&Steele.  */
15181              union
15182              {
15183                long int l;
15184                char c[sizeof (long int)];
15185              } u;
15186              u.l = 1;
15187              return u.c[sizeof (long int) - 1] == 1;
15188
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest$ac_exeext
15194 if { (ac_try="$ac_link"
15195 case "(($ac_try" in
15196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197   *) ac_try_echo=$ac_try;;
15198 esac
15199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15200 $as_echo "$ac_try_echo") >&5
15201   (eval "$ac_link") 2>&5
15202   ac_status=$?
15203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15205   { (case "(($ac_try" in
15206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207   *) ac_try_echo=$ac_try;;
15208 esac
15209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15210 $as_echo "$ac_try_echo") >&5
15211   (eval "$ac_try") 2>&5
15212   ac_status=$?
15213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   ac_cv_c_bigendian=no
15216 else
15217   $as_echo "$as_me: program exited with status $ac_status" >&5
15218 $as_echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15220
15221 ( exit $ac_status )
15222 ac_cv_c_bigendian=yes
15223 fi
15224 rm -rf conftest.dSYM
15225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15226 fi
15227
15228
15229     fi
15230 fi
15231 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15232 $as_echo "$ac_cv_c_bigendian" >&6; }
15233  case $ac_cv_c_bigendian in #(
15234    yes)
15235      cat >>confdefs.h <<\_ACEOF
15236 #define WORDS_BIGENDIAN 1
15237 _ACEOF
15238 ;; #(
15239    no)
15240       ;; #(
15241    universal)
15242
15243 cat >>confdefs.h <<\_ACEOF
15244 #define AC_APPLE_UNIVERSAL_BUILD 1
15245 _ACEOF
15246
15247      ;; #(
15248    *)
15249      { { $as_echo "$as_me:$LINENO: error: unknown endianness
15250  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15251 $as_echo "$as_me: error: unknown endianness
15252  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15253    { (exit 1); exit 1; }; } ;;
15254  esac
15255
15256 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
15257 ASM_TYPES_HEADER=./asm_types.h
15258
15259 echo "/* These defines are needed for the public ext2fs.h header file */" \
15260      > public_config.h
15261 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15262   uniq tmp_config.$$ >> public_config.h
15263 else
15264   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15265 fi
15266 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15267   uniq tmp_config.$$ >> public_config.h
15268 else
15269   echo "#undef WORDS_BIGENDIAN" >> public_config.h
15270 fi
15271 rm -f tmp_config.$$
15272 PUBLIC_CONFIG_HEADER=./public_config.h
15273
15274
15275 for ac_header in inttypes.h
15276 do
15277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15280 $as_echo_n "checking for $ac_header... " >&6; }
15281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15282   $as_echo_n "(cached) " >&6
15283 fi
15284 ac_res=`eval 'as_val=${'$as_ac_Header'}
15285                  $as_echo "$as_val"'`
15286                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15287 $as_echo "$ac_res" >&6; }
15288 else
15289   # Is the header compilable?
15290 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15291 $as_echo_n "checking $ac_header usability... " >&6; }
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298 $ac_includes_default
15299 #include <$ac_header>
15300 _ACEOF
15301 rm -f conftest.$ac_objext
15302 if { (ac_try="$ac_compile"
15303 case "(($ac_try" in
15304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305   *) ac_try_echo=$ac_try;;
15306 esac
15307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15308 $as_echo "$ac_try_echo") >&5
15309   (eval "$ac_compile") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } && {
15316          test -z "$ac_c_werror_flag" ||
15317          test ! -s conftest.err
15318        } && test -s conftest.$ac_objext; then
15319   ac_header_compiler=yes
15320 else
15321   $as_echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324         ac_header_compiler=no
15325 fi
15326
15327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15329 $as_echo "$ac_header_compiler" >&6; }
15330
15331 # Is the header present?
15332 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15333 $as_echo_n "checking $ac_header presence... " >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340 #include <$ac_header>
15341 _ACEOF
15342 if { (ac_try="$ac_cpp conftest.$ac_ext"
15343 case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15348 $as_echo "$ac_try_echo") >&5
15349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15350   ac_status=$?
15351   grep -v '^ *+' conftest.er1 >conftest.err
15352   rm -f conftest.er1
15353   cat conftest.err >&5
15354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); } >/dev/null && {
15356          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15357          test ! -s conftest.err
15358        }; then
15359   ac_header_preproc=yes
15360 else
15361   $as_echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364   ac_header_preproc=no
15365 fi
15366
15367 rm -f conftest.err conftest.$ac_ext
15368 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15369 $as_echo "$ac_header_preproc" >&6; }
15370
15371 # So?  What about this header?
15372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15373   yes:no: )
15374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15375 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15377 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15378     ac_header_preproc=yes
15379     ;;
15380   no:yes:* )
15381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15382 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15384 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15386 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15388 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15390 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15392 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15393
15394     ;;
15395 esac
15396 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 $as_echo_n "checking for $ac_header... " >&6; }
15398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399   $as_echo_n "(cached) " >&6
15400 else
15401   eval "$as_ac_Header=\$ac_header_preproc"
15402 fi
15403 ac_res=`eval 'as_val=${'$as_ac_Header'}
15404                  $as_echo "$as_val"'`
15405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15406 $as_echo "$ac_res" >&6; }
15407
15408 fi
15409 as_val=`eval 'as_val=${'$as_ac_Header'}
15410                  $as_echo "$as_val"'`
15411    if test "x$as_val" = x""yes; then
15412   cat >>confdefs.h <<_ACEOF
15413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15414 _ACEOF
15415
15416 fi
15417
15418 done
15419
15420 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15421 $as_echo_n "checking for intptr_t... " >&6; }
15422 if test "${ac_cv_type_intptr_t+set}" = set; then
15423   $as_echo_n "(cached) " >&6
15424 else
15425   ac_cv_type_intptr_t=no
15426 cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432 $ac_includes_default
15433 int
15434 main ()
15435 {
15436 if (sizeof (intptr_t))
15437        return 0;
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 rm -f conftest.$ac_objext
15443 if { (ac_try="$ac_compile"
15444 case "(($ac_try" in
15445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446   *) ac_try_echo=$ac_try;;
15447 esac
15448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15449 $as_echo "$ac_try_echo") >&5
15450   (eval "$ac_compile") 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } && {
15457          test -z "$ac_c_werror_flag" ||
15458          test ! -s conftest.err
15459        } && test -s conftest.$ac_objext; then
15460   cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h.  */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h.  */
15466 $ac_includes_default
15467 int
15468 main ()
15469 {
15470 if (sizeof ((intptr_t)))
15471           return 0;
15472   ;
15473   return 0;
15474 }
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15483 $as_echo "$ac_try_echo") >&5
15484   (eval "$ac_compile") 2>conftest.er1
15485   ac_status=$?
15486   grep -v '^ *+' conftest.er1 >conftest.err
15487   rm -f conftest.er1
15488   cat conftest.err >&5
15489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); } && {
15491          test -z "$ac_c_werror_flag" ||
15492          test ! -s conftest.err
15493        } && test -s conftest.$ac_objext; then
15494   :
15495 else
15496   $as_echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499         ac_cv_type_intptr_t=yes
15500 fi
15501
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 else
15504   $as_echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15506
15507
15508 fi
15509
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 fi
15512 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15513 $as_echo "$ac_cv_type_intptr_t" >&6; }
15514 if test "x$ac_cv_type_intptr_t" = x""yes; then
15515
15516 cat >>confdefs.h <<_ACEOF
15517 #define HAVE_INTPTR_T 1
15518 _ACEOF
15519
15520
15521 fi
15522
15523 { $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15524 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
15525 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
15526   $as_echo_n "(cached) " >&6
15527 else
15528   cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h.  */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h.  */
15534 #include <sys/stat.h>
15535 int
15536 main ()
15537 {
15538 struct stat stat; stat.st_flags = 0;
15539   ;
15540   return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15550 $as_echo "$ac_try_echo") >&5
15551   (eval "$ac_compile") 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } && {
15558          test -z "$ac_c_werror_flag" ||
15559          test ! -s conftest.err
15560        } && test -s conftest.$ac_objext; then
15561   e2fsprogs_cv_struct_st_flags=yes
15562 else
15563   $as_echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566         e2fsprogs_cv_struct_st_flags=no
15567 fi
15568
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 fi
15571
15572 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15573 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
15574 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
15575   { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15576 $as_echo_n "checking whether st_flags field is useful... " >&6; }
15577   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
15578   $as_echo_n "(cached) " >&6
15579 else
15580   cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h.  */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h.  */
15586 #include <sys/stat.h>
15587 int
15588 main ()
15589 {
15590 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
15591   ;
15592   return 0;
15593 }
15594 _ACEOF
15595 rm -f conftest.$ac_objext
15596 if { (ac_try="$ac_compile"
15597 case "(($ac_try" in
15598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599   *) ac_try_echo=$ac_try;;
15600 esac
15601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15602 $as_echo "$ac_try_echo") >&5
15603   (eval "$ac_compile") 2>conftest.er1
15604   ac_status=$?
15605   grep -v '^ *+' conftest.er1 >conftest.err
15606   rm -f conftest.er1
15607   cat conftest.err >&5
15608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); } && {
15610          test -z "$ac_c_werror_flag" ||
15611          test ! -s conftest.err
15612        } && test -s conftest.$ac_objext; then
15613   e2fsprogs_cv_struct_st_flags_immut=yes
15614 else
15615   $as_echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618         e2fsprogs_cv_struct_st_flags_immut=no
15619 fi
15620
15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 fi
15623
15624   { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15625 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
15626   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
15627           cat >>confdefs.h <<\_ACEOF
15628 #define HAVE_STAT_FLAGS 1
15629 _ACEOF
15630
15631   fi
15632 fi
15633 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15634 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15635 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15636   $as_echo_n "(cached) " >&6
15637 else
15638   cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 #include <sys/types.h>
15645          #include <sys/socket.h>
15646
15647 int
15648 main ()
15649 {
15650 static struct sockaddr ac_aggr;
15651 if (ac_aggr.sa_len)
15652 return 0;
15653   ;
15654   return 0;
15655 }
15656 _ACEOF
15657 rm -f conftest.$ac_objext
15658 if { (ac_try="$ac_compile"
15659 case "(($ac_try" in
15660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661   *) ac_try_echo=$ac_try;;
15662 esac
15663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15664 $as_echo "$ac_try_echo") >&5
15665   (eval "$ac_compile") 2>conftest.er1
15666   ac_status=$?
15667   grep -v '^ *+' conftest.er1 >conftest.err
15668   rm -f conftest.er1
15669   cat conftest.err >&5
15670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); } && {
15672          test -z "$ac_c_werror_flag" ||
15673          test ! -s conftest.err
15674        } && test -s conftest.$ac_objext; then
15675   ac_cv_member_struct_sockaddr_sa_len=yes
15676 else
15677   $as_echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680         cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h.  */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h.  */
15686 #include <sys/types.h>
15687          #include <sys/socket.h>
15688
15689 int
15690 main ()
15691 {
15692 static struct sockaddr ac_aggr;
15693 if (sizeof ac_aggr.sa_len)
15694 return 0;
15695   ;
15696   return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707   (eval "$ac_compile") 2>conftest.er1
15708   ac_status=$?
15709   grep -v '^ *+' conftest.er1 >conftest.err
15710   rm -f conftest.er1
15711   cat conftest.err >&5
15712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); } && {
15714          test -z "$ac_c_werror_flag" ||
15715          test ! -s conftest.err
15716        } && test -s conftest.$ac_objext; then
15717   ac_cv_member_struct_sockaddr_sa_len=yes
15718 else
15719   $as_echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722         ac_cv_member_struct_sockaddr_sa_len=no
15723 fi
15724
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 fi
15727
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 fi
15730 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15731 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15732 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15733
15734 cat >>confdefs.h <<_ACEOF
15735 #define HAVE_SA_LEN 1
15736 _ACEOF
15737
15738 fi
15739
15740 if test -n "$BLKID_CMT"; then
15741   { $as_echo "$as_me:$LINENO: checking for library containing blkid_probe_all" >&5
15742 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
15743 if test "${ac_cv_search_blkid_probe_all+set}" = set; then
15744   $as_echo_n "(cached) " >&6
15745 else
15746   ac_func_search_save_LIBS=$LIBS
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h.  */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h.  */
15753
15754 /* Override any GCC internal prototype to avoid an error.
15755    Use char because int might match the return type of a GCC
15756    builtin and then its argument prototype would still apply.  */
15757 #ifdef __cplusplus
15758 extern "C"
15759 #endif
15760 char blkid_probe_all ();
15761 int
15762 main ()
15763 {
15764 return blkid_probe_all ();
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 for ac_lib in '' blkid; do
15770   if test -z "$ac_lib"; then
15771     ac_res="none required"
15772   else
15773     ac_res=-l$ac_lib
15774     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15775   fi
15776   rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (ac_try="$ac_link"
15778 case "(($ac_try" in
15779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780   *) ac_try_echo=$ac_try;;
15781 esac
15782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15783 $as_echo "$ac_try_echo") >&5
15784   (eval "$ac_link") 2>conftest.er1
15785   ac_status=$?
15786   grep -v '^ *+' conftest.er1 >conftest.err
15787   rm -f conftest.er1
15788   cat conftest.err >&5
15789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); } && {
15791          test -z "$ac_c_werror_flag" ||
15792          test ! -s conftest.err
15793        } && test -s conftest$ac_exeext && {
15794          test "$cross_compiling" = yes ||
15795          $as_test_x conftest$ac_exeext
15796        }; then
15797   ac_cv_search_blkid_probe_all=$ac_res
15798 else
15799   $as_echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802
15803 fi
15804
15805 rm -rf conftest.dSYM
15806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15807       conftest$ac_exeext
15808   if test "${ac_cv_search_blkid_probe_all+set}" = set; then
15809   break
15810 fi
15811 done
15812 if test "${ac_cv_search_blkid_probe_all+set}" = set; then
15813   :
15814 else
15815   ac_cv_search_blkid_probe_all=no
15816 fi
15817 rm conftest.$ac_ext
15818 LIBS=$ac_func_search_save_LIBS
15819 fi
15820 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_blkid_probe_all" >&5
15821 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
15822 ac_res=$ac_cv_search_blkid_probe_all
15823 if test "$ac_res" != no; then
15824   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15825
15826 fi
15827
15828 fi
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863 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 getdtablesize getrlimit blkid_probe_get_topology2
15864 do
15865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15866 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15867 $as_echo_n "checking for $ac_func... " >&6; }
15868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15869   $as_echo_n "(cached) " >&6
15870 else
15871   cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h.  */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h.  */
15877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15879 #define $ac_func innocuous_$ac_func
15880
15881 /* System header to define __stub macros and hopefully few prototypes,
15882     which can conflict with char $ac_func (); below.
15883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15884     <limits.h> exists even on freestanding compilers.  */
15885
15886 #ifdef __STDC__
15887 # include <limits.h>
15888 #else
15889 # include <assert.h>
15890 #endif
15891
15892 #undef $ac_func
15893
15894 /* Override any GCC internal prototype to avoid an error.
15895    Use char because int might match the return type of a GCC
15896    builtin and then its argument prototype would still apply.  */
15897 #ifdef __cplusplus
15898 extern "C"
15899 #endif
15900 char $ac_func ();
15901 /* The GNU C library defines this for functions which it implements
15902     to always fail with ENOSYS.  Some functions are actually named
15903     something starting with __ and the normal name is an alias.  */
15904 #if defined __stub_$ac_func || defined __stub___$ac_func
15905 choke me
15906 #endif
15907
15908 int
15909 main ()
15910 {
15911 return $ac_func ();
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920   *) ac_try_echo=$ac_try;;
15921 esac
15922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15923 $as_echo "$ac_try_echo") >&5
15924   (eval "$ac_link") 2>conftest.er1
15925   ac_status=$?
15926   grep -v '^ *+' conftest.er1 >conftest.err
15927   rm -f conftest.er1
15928   cat conftest.err >&5
15929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } && {
15931          test -z "$ac_c_werror_flag" ||
15932          test ! -s conftest.err
15933        } && test -s conftest$ac_exeext && {
15934          test "$cross_compiling" = yes ||
15935          $as_test_x conftest$ac_exeext
15936        }; then
15937   eval "$as_ac_var=yes"
15938 else
15939   $as_echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942         eval "$as_ac_var=no"
15943 fi
15944
15945 rm -rf conftest.dSYM
15946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15947       conftest$ac_exeext conftest.$ac_ext
15948 fi
15949 ac_res=`eval 'as_val=${'$as_ac_var'}
15950                  $as_echo "$as_val"'`
15951                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15952 $as_echo "$ac_res" >&6; }
15953 as_val=`eval 'as_val=${'$as_ac_var'}
15954                  $as_echo "$as_val"'`
15955    if test "x$as_val" = x""yes; then
15956   cat >>confdefs.h <<_ACEOF
15957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15958 _ACEOF
15959
15960 fi
15961 done
15962
15963 SOCKET_LIB=''
15964 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15965 $as_echo_n "checking for socket in -lsocket... " >&6; }
15966 if test "${ac_cv_lib_socket_socket+set}" = set; then
15967   $as_echo_n "(cached) " >&6
15968 else
15969   ac_check_lib_save_LIBS=$LIBS
15970 LIBS="-lsocket  $LIBS"
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h.  */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h.  */
15977
15978 /* Override any GCC internal prototype to avoid an error.
15979    Use char because int might match the return type of a GCC
15980    builtin and then its argument prototype would still apply.  */
15981 #ifdef __cplusplus
15982 extern "C"
15983 #endif
15984 char socket ();
15985 int
15986 main ()
15987 {
15988 return socket ();
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 rm -f conftest.$ac_objext conftest$ac_exeext
15994 if { (ac_try="$ac_link"
15995 case "(($ac_try" in
15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997   *) ac_try_echo=$ac_try;;
15998 esac
15999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16000 $as_echo "$ac_try_echo") >&5
16001   (eval "$ac_link") 2>conftest.er1
16002   ac_status=$?
16003   grep -v '^ *+' conftest.er1 >conftest.err
16004   rm -f conftest.er1
16005   cat conftest.err >&5
16006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); } && {
16008          test -z "$ac_c_werror_flag" ||
16009          test ! -s conftest.err
16010        } && test -s conftest$ac_exeext && {
16011          test "$cross_compiling" = yes ||
16012          $as_test_x conftest$ac_exeext
16013        }; then
16014   ac_cv_lib_socket_socket=yes
16015 else
16016   $as_echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019         ac_cv_lib_socket_socket=no
16020 fi
16021
16022 rm -rf conftest.dSYM
16023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16024       conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16026 fi
16027 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16028 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16029 if test "x$ac_cv_lib_socket_socket" = x""yes; then
16030   SOCKET_LIB=-lsocket
16031 fi
16032
16033
16034 DLOPEN_LIB=''
16035 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16036 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16038   $as_echo_n "(cached) " >&6
16039 else
16040   ac_check_lib_save_LIBS=$LIBS
16041 LIBS="-ldl  $LIBS"
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h.  */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h.  */
16048
16049 /* Override any GCC internal prototype to avoid an error.
16050    Use char because int might match the return type of a GCC
16051    builtin and then its argument prototype would still apply.  */
16052 #ifdef __cplusplus
16053 extern "C"
16054 #endif
16055 char dlopen ();
16056 int
16057 main ()
16058 {
16059 return dlopen ();
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (ac_try="$ac_link"
16066 case "(($ac_try" in
16067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068   *) ac_try_echo=$ac_try;;
16069 esac
16070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16071 $as_echo "$ac_try_echo") >&5
16072   (eval "$ac_link") 2>conftest.er1
16073   ac_status=$?
16074   grep -v '^ *+' conftest.er1 >conftest.err
16075   rm -f conftest.er1
16076   cat conftest.err >&5
16077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } && {
16079          test -z "$ac_c_werror_flag" ||
16080          test ! -s conftest.err
16081        } && test -s conftest$ac_exeext && {
16082          test "$cross_compiling" = yes ||
16083          $as_test_x conftest$ac_exeext
16084        }; then
16085   ac_cv_lib_dl_dlopen=yes
16086 else
16087   $as_echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090         ac_cv_lib_dl_dlopen=no
16091 fi
16092
16093 rm -rf conftest.dSYM
16094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16095       conftest$ac_exeext conftest.$ac_ext
16096 LIBS=$ac_check_lib_save_LIBS
16097 fi
16098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16100 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
16101   DLOPEN_LIB=-ldl
16102 cat >>confdefs.h <<\_ACEOF
16103 #define HAVE_DLOPEN 1
16104 _ACEOF
16105
16106 fi
16107
16108
16109 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
16110 $as_echo_n "checking for optreset... " >&6; }
16111 if test "${ac_cv_have_optreset+set}" = set; then
16112   $as_echo_n "(cached) " >&6
16113 else
16114   cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 #include <unistd.h>
16121
16122 _ACEOF
16123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16124   $EGREP "optreset" >/dev/null 2>&1; then
16125   ac_cv_have_optreset=yes
16126 else
16127   ac_cv_have_optreset=no
16128 fi
16129 rm -f conftest*
16130
16131 fi
16132 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16133 $as_echo "$ac_cv_have_optreset" >&6; }
16134 if test $ac_cv_have_optreset = yes; then
16135   cat >>confdefs.h <<\_ACEOF
16136 #define HAVE_OPTRESET 1
16137 _ACEOF
16138
16139 fi
16140 SEM_INIT_LIB=''
16141 { $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16142 $as_echo_n "checking for sem_init... " >&6; }
16143 if test "${ac_cv_func_sem_init+set}" = set; then
16144   $as_echo_n "(cached) " >&6
16145 else
16146   cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h.  */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h.  */
16152 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16154 #define sem_init innocuous_sem_init
16155
16156 /* System header to define __stub macros and hopefully few prototypes,
16157     which can conflict with char sem_init (); below.
16158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16159     <limits.h> exists even on freestanding compilers.  */
16160
16161 #ifdef __STDC__
16162 # include <limits.h>
16163 #else
16164 # include <assert.h>
16165 #endif
16166
16167 #undef sem_init
16168
16169 /* Override any GCC internal prototype to avoid an error.
16170    Use char because int might match the return type of a GCC
16171    builtin and then its argument prototype would still apply.  */
16172 #ifdef __cplusplus
16173 extern "C"
16174 #endif
16175 char sem_init ();
16176 /* The GNU C library defines this for functions which it implements
16177     to always fail with ENOSYS.  Some functions are actually named
16178     something starting with __ and the normal name is an alias.  */
16179 #if defined __stub_sem_init || defined __stub___sem_init
16180 choke me
16181 #endif
16182
16183 int
16184 main ()
16185 {
16186 return sem_init ();
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 rm -f conftest.$ac_objext conftest$ac_exeext
16192 if { (ac_try="$ac_link"
16193 case "(($ac_try" in
16194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195   *) ac_try_echo=$ac_try;;
16196 esac
16197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16198 $as_echo "$ac_try_echo") >&5
16199   (eval "$ac_link") 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } && {
16206          test -z "$ac_c_werror_flag" ||
16207          test ! -s conftest.err
16208        } && test -s conftest$ac_exeext && {
16209          test "$cross_compiling" = yes ||
16210          $as_test_x conftest$ac_exeext
16211        }; then
16212   ac_cv_func_sem_init=yes
16213 else
16214   $as_echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16216
16217         ac_cv_func_sem_init=no
16218 fi
16219
16220 rm -rf conftest.dSYM
16221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16222       conftest$ac_exeext conftest.$ac_ext
16223 fi
16224 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16225 $as_echo "$ac_cv_func_sem_init" >&6; }
16226 if test "x$ac_cv_func_sem_init" = x""yes; then
16227   :
16228 else
16229   { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16230 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
16231 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
16232   $as_echo_n "(cached) " >&6
16233 else
16234   ac_check_lib_save_LIBS=$LIBS
16235 LIBS="-lpthread  $LIBS"
16236 cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h.  */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h.  */
16242
16243 /* Override any GCC internal prototype to avoid an error.
16244    Use char because int might match the return type of a GCC
16245    builtin and then its argument prototype would still apply.  */
16246 #ifdef __cplusplus
16247 extern "C"
16248 #endif
16249 char sem_init ();
16250 int
16251 main ()
16252 {
16253 return sem_init ();
16254   ;
16255   return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (ac_try="$ac_link"
16260 case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16265 $as_echo "$ac_try_echo") >&5
16266   (eval "$ac_link") 2>conftest.er1
16267   ac_status=$?
16268   grep -v '^ *+' conftest.er1 >conftest.err
16269   rm -f conftest.er1
16270   cat conftest.err >&5
16271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); } && {
16273          test -z "$ac_c_werror_flag" ||
16274          test ! -s conftest.err
16275        } && test -s conftest$ac_exeext && {
16276          test "$cross_compiling" = yes ||
16277          $as_test_x conftest$ac_exeext
16278        }; then
16279   ac_cv_lib_pthread_sem_init=yes
16280 else
16281   $as_echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16283
16284         ac_cv_lib_pthread_sem_init=no
16285 fi
16286
16287 rm -rf conftest.dSYM
16288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16289       conftest$ac_exeext conftest.$ac_ext
16290 LIBS=$ac_check_lib_save_LIBS
16291 fi
16292 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16293 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16294 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
16295   cat >>confdefs.h <<\_ACEOF
16296 #define HAVE_SEM_INIT 1
16297 _ACEOF
16298
16299         SEM_INIT_LIB=-lpthread
16300 else
16301   { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16302 $as_echo_n "checking for sem_init in -lrt... " >&6; }
16303 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
16304   $as_echo_n "(cached) " >&6
16305 else
16306   ac_check_lib_save_LIBS=$LIBS
16307 LIBS="-lrt  $LIBS"
16308 cat >conftest.$ac_ext <<_ACEOF
16309 /* confdefs.h.  */
16310 _ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h.  */
16314
16315 /* Override any GCC internal prototype to avoid an error.
16316    Use char because int might match the return type of a GCC
16317    builtin and then its argument prototype would still apply.  */
16318 #ifdef __cplusplus
16319 extern "C"
16320 #endif
16321 char sem_init ();
16322 int
16323 main ()
16324 {
16325 return sem_init ();
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (ac_try="$ac_link"
16332 case "(($ac_try" in
16333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334   *) ac_try_echo=$ac_try;;
16335 esac
16336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16337 $as_echo "$ac_try_echo") >&5
16338   (eval "$ac_link") 2>conftest.er1
16339   ac_status=$?
16340   grep -v '^ *+' conftest.er1 >conftest.err
16341   rm -f conftest.er1
16342   cat conftest.err >&5
16343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } && {
16345          test -z "$ac_c_werror_flag" ||
16346          test ! -s conftest.err
16347        } && test -s conftest$ac_exeext && {
16348          test "$cross_compiling" = yes ||
16349          $as_test_x conftest$ac_exeext
16350        }; then
16351   ac_cv_lib_rt_sem_init=yes
16352 else
16353   $as_echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356         ac_cv_lib_rt_sem_init=no
16357 fi
16358
16359 rm -rf conftest.dSYM
16360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16361       conftest$ac_exeext conftest.$ac_ext
16362 LIBS=$ac_check_lib_save_LIBS
16363 fi
16364 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16365 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16366 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
16367   cat >>confdefs.h <<\_ACEOF
16368 #define HAVE_SEM_INIT 1
16369 _ACEOF
16370
16371         SEM_INIT_LIB=-lrt
16372 else
16373   { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16374 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
16375 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
16376   $as_echo_n "(cached) " >&6
16377 else
16378   ac_check_lib_save_LIBS=$LIBS
16379 LIBS="-lposix4  $LIBS"
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h.  */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h.  */
16386
16387 /* Override any GCC internal prototype to avoid an error.
16388    Use char because int might match the return type of a GCC
16389    builtin and then its argument prototype would still apply.  */
16390 #ifdef __cplusplus
16391 extern "C"
16392 #endif
16393 char sem_init ();
16394 int
16395 main ()
16396 {
16397 return sem_init ();
16398   ;
16399   return 0;
16400 }
16401 _ACEOF
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (ac_try="$ac_link"
16404 case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16409 $as_echo "$ac_try_echo") >&5
16410   (eval "$ac_link") 2>conftest.er1
16411   ac_status=$?
16412   grep -v '^ *+' conftest.er1 >conftest.err
16413   rm -f conftest.er1
16414   cat conftest.err >&5
16415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); } && {
16417          test -z "$ac_c_werror_flag" ||
16418          test ! -s conftest.err
16419        } && test -s conftest$ac_exeext && {
16420          test "$cross_compiling" = yes ||
16421          $as_test_x conftest$ac_exeext
16422        }; then
16423   ac_cv_lib_posix4_sem_init=yes
16424 else
16425   $as_echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428         ac_cv_lib_posix4_sem_init=no
16429 fi
16430
16431 rm -rf conftest.dSYM
16432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16433       conftest$ac_exeext conftest.$ac_ext
16434 LIBS=$ac_check_lib_save_LIBS
16435 fi
16436 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16437 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16438 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
16439   cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_SEM_INIT 1
16441 _ACEOF
16442
16443         SEM_INIT_LIB=-lposix4
16444 fi
16445
16446 fi
16447
16448 fi
16449
16450 fi
16451
16452 { $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16453 $as_echo_n "checking for unified diff option... " >&6; }
16454 if diff -u $0 $0 > /dev/null 2>&1 ; then
16455    UNI_DIFF_OPTS=-u
16456 else
16457    UNI_DIFF_OPTS=-c
16458 fi
16459 { $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16460 $as_echo "$UNI_DIFF_OPTS" >&6; }
16461
16462 case "$host_os" in
16463 linux*)
16464         cat >>confdefs.h <<\_ACEOF
16465 #define HAVE_EXT2_IOCTLS 1
16466 _ACEOF
16467
16468         ;;
16469 esac
16470 LINUX_CMT="#"
16471 CYGWIN_CMT="#"
16472 UNIX_CMT=
16473 case "$host_os" in
16474 linux*)
16475         LINUX_CMT=
16476         ;;
16477 cygwin)
16478         CYGWIN_CMT=
16479         UNIX_CMT="#"
16480         ;;
16481 esac
16482
16483
16484
16485 case "$host_os" in
16486 linux* | gnu* | k*bsd*-gnu)
16487         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16488                 root_prefix="";
16489                 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16490 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
16491         fi
16492         ;;
16493 esac
16494 case "$host_os" in
16495 linux* | gnu* | k*bsd*-gnu)
16496         if test "$prefix" = NONE ; then
16497                 prefix="/usr";
16498                 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16499 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
16500                 if test "$mandir" = '${prefix}/man' ; then
16501                         { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16502 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
16503                         mandir=/usr/share/man
16504                 fi
16505         fi
16506 ;;
16507 esac
16508 if test "$root_prefix" = NONE ; then
16509         if test "$prefix" = NONE ; then
16510                 root_prefix="$ac_default_prefix"
16511         else
16512                 root_prefix="$prefix"
16513         fi
16514         root_bindir=$bindir
16515         root_sbindir=$sbindir
16516         root_libdir=$libdir
16517         root_sysconfdir=$sysconfdir
16518 else
16519         root_bindir='${root_prefix}/bin'
16520         root_sbindir='${root_prefix}/sbin'
16521         root_libdir='${root_prefix}/lib'
16522         root_sysconfdir='${root_prefix}/etc'
16523 fi
16524 if test "$bindir" != '${exec_prefix}/bin'; then
16525     root_bindir=$bindir
16526     { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16527 $as_echo "Setting root_bindir to $root_bindir" >&6; }
16528 fi
16529 if test "$sbindir" != '${exec_prefix}/sbin'; then
16530     root_sbindir=$sbindir
16531     { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16532 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
16533 fi
16534 if test "$libdir" != '${exec_prefix}/lib'; then
16535     root_libdir=$libdir
16536     { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16537 $as_echo "Setting root_libdir to $root_libdir" >&6; }
16538 fi
16539 if test "$sysconfdir" != '${prefix}/etc'; then
16540     root_sysconfdir=$sysconfdir
16541     { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16542 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
16543 fi
16544
16545
16546
16547
16548
16549 { $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16550 $as_echo_n "checking whether linker accepts -static... " >&6; }
16551 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16552   $as_echo_n "(cached) " >&6
16553 else
16554   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561 #include <stdio.h>
16562 int
16563 main ()
16564 {
16565 fflush(stdout);
16566   ;
16567   return 0;
16568 }
16569 _ACEOF
16570 rm -f conftest.$ac_objext conftest$ac_exeext
16571 if { (ac_try="$ac_link"
16572 case "(($ac_try" in
16573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574   *) ac_try_echo=$ac_try;;
16575 esac
16576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577 $as_echo "$ac_try_echo") >&5
16578   (eval "$ac_link") 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } && {
16585          test -z "$ac_c_werror_flag" ||
16586          test ! -s conftest.err
16587        } && test -s conftest$ac_exeext && {
16588          test "$cross_compiling" = yes ||
16589          $as_test_x conftest$ac_exeext
16590        }; then
16591   ac_cv_e2fsprogs_use_static=yes
16592 else
16593   $as_echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16595
16596         ac_cv_e2fsprogs_use_static=no
16597 fi
16598
16599 rm -rf conftest.dSYM
16600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16601       conftest$ac_exeext conftest.$ac_ext
16602 LDFLAGS=$SAVE_LDFLAGS
16603 fi
16604
16605 case "$host_os" in
16606 solaris2.*)
16607         ac_cv_e2fsprogs_use_static=no
16608 ;;
16609 esac
16610 { $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16611 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
16612 LDFLAG_STATIC=
16613 if test $ac_cv_e2fsprogs_use_static = yes; then
16614         LDFLAG_STATIC=-static
16615 fi
16616
16617 case "$host_os" in
16618 darwin*)
16619         { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16620 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
16621         cat >>confdefs.h <<\_ACEOF
16622 #define _INTL_REDIRECT_MACROS 1
16623 _ACEOF
16624
16625         ;;
16626 esac
16627 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16628 ET_DIR=`cd ${srcdir}/lib/et; pwd`
16629
16630
16631 if test "$cross_compiling" = yes ; then
16632   DO_TEST_SUITE=
16633 else
16634   DO_TEST_SUITE=check
16635 fi
16636
16637 INTL_FLAGS=
16638 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16639         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16640 fi
16641
16642 if test $cross_compiling = no; then
16643    BUILD_CFLAGS="$CFLAGS"
16644    BUILD_LDFLAGS="$LDFLAGS"
16645 else
16646    BUILD_CFLAGS=
16647    BUILD_LDFLAGS=
16648 fi
16649
16650
16651 test -d lib || mkdir lib
16652 test -d include || mkdir include
16653 test -d include/linux || mkdir include/linux
16654 test -d include/asm || mkdir include/asm
16655 for i in MCONFIG Makefile e2fsprogs.spec \
16656         util/Makefile util/subst.conf util/gen-tarball \
16657         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16658         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16659         lib/uuid/Makefile lib/uuid/uuid_types.h \
16660         lib/blkid/Makefile lib/blkid/blkid_types.h \
16661         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16662         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
16663         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16664         debugfs/Makefile tests/Makefile tests/progs/Makefile \
16665         resize/Makefile doc/Makefile intl/Makefile \
16666         intl/libgnuintl.h po/Makefile.in ; do
16667         if test -d `dirname ${srcdir}/$i` ; then
16668                 outlist="$outlist $i"
16669         fi
16670 done
16671 ac_config_files="$ac_config_files $outlist"
16672
16673 cat >confcache <<\_ACEOF
16674 # This file is a shell script that caches the results of configure
16675 # tests run on this system so they can be shared between configure
16676 # scripts and configure runs, see configure's option --config-cache.
16677 # It is not useful on other systems.  If it contains results you don't
16678 # want to keep, you may remove or edit it.
16679 #
16680 # config.status only pays attention to the cache file if you give it
16681 # the --recheck option to rerun configure.
16682 #
16683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16685 # following values.
16686
16687 _ACEOF
16688
16689 # The following way of writing the cache mishandles newlines in values,
16690 # but we know of no workaround that is simple, portable, and efficient.
16691 # So, we kill variables containing newlines.
16692 # Ultrix sh set writes to stderr and can't be redirected directly,
16693 # and sets the high bit in the cache file unless we assign to the vars.
16694 (
16695   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16696     eval ac_val=\$$ac_var
16697     case $ac_val in #(
16698     *${as_nl}*)
16699       case $ac_var in #(
16700       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16702       esac
16703       case $ac_var in #(
16704       _ | IFS | as_nl) ;; #(
16705       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16706       *) $as_unset $ac_var ;;
16707       esac ;;
16708     esac
16709   done
16710
16711   (set) 2>&1 |
16712     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16713     *${as_nl}ac_space=\ *)
16714       # `set' does not quote correctly, so add quotes (double-quote
16715       # substitution turns \\\\ into \\, and sed turns \\ into \).
16716       sed -n \
16717         "s/'/'\\\\''/g;
16718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16719       ;; #(
16720     *)
16721       # `set' quotes correctly as required by POSIX, so do not add quotes.
16722       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16723       ;;
16724     esac |
16725     sort
16726 ) |
16727   sed '
16728      /^ac_cv_env_/b end
16729      t clear
16730      :clear
16731      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16732      t end
16733      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16734      :end' >>confcache
16735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16736   if test -w "$cache_file"; then
16737     test "x$cache_file" != "x/dev/null" &&
16738       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16739 $as_echo "$as_me: updating cache $cache_file" >&6;}
16740     cat confcache >$cache_file
16741   else
16742     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16744   fi
16745 fi
16746 rm -f confcache
16747
16748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16749 # Let make expand exec_prefix.
16750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16751
16752 # Transform confdefs.h into DEFS.
16753 # Protect against shell expansion while executing Makefile rules.
16754 # Protect against Makefile macro expansion.
16755 #
16756 # If the first sed substitution is executed (which looks for macros that
16757 # take arguments), then branch to the quote section.  Otherwise,
16758 # look for a macro that doesn't take arguments.
16759 ac_script='
16760 :mline
16761 /\\$/{
16762  N
16763  s,\\\n,,
16764  b mline
16765 }
16766 t clear
16767 :clear
16768 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
16769 t quote
16770 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
16771 t quote
16772 b any
16773 :quote
16774 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16775 s/\[/\\&/g
16776 s/\]/\\&/g
16777 s/\$/$$/g
16778 H
16779 :any
16780 ${
16781         g
16782         s/^\n//
16783         s/\n/ /g
16784         p
16785 }
16786 '
16787 DEFS=`sed -n "$ac_script" confdefs.h`
16788
16789
16790 ac_libobjs=
16791 ac_ltlibobjs=
16792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16793   # 1. Remove the extension, and $U if already installed.
16794   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16795   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16796   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16797   #    will be set to the directory where LIBOBJS objects are built.
16798   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16799   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16800 done
16801 LIBOBJS=$ac_libobjs
16802
16803 LTLIBOBJS=$ac_ltlibobjs
16804
16805
16806
16807
16808 : ${CONFIG_STATUS=./config.status}
16809 ac_write_fail=0
16810 ac_clean_files_save=$ac_clean_files
16811 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16812 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16813 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16814 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16815 #! $SHELL
16816 # Generated by $as_me.
16817 # Run this file to recreate the current configuration.
16818 # Compiler output produced by configure, useful for debugging
16819 # configure, is in config.log if it exists.
16820
16821 debug=false
16822 ac_cs_recheck=false
16823 ac_cs_silent=false
16824 SHELL=\${CONFIG_SHELL-$SHELL}
16825 _ACEOF
16826
16827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16828 ## --------------------- ##
16829 ## M4sh Initialization.  ##
16830 ## --------------------- ##
16831
16832 # Be more Bourne compatible
16833 DUALCASE=1; export DUALCASE # for MKS sh
16834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16835   emulate sh
16836   NULLCMD=:
16837   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16838   # is contrary to our usage.  Disable this feature.
16839   alias -g '${1+"$@"}'='"$@"'
16840   setopt NO_GLOB_SUBST
16841 else
16842   case `(set -o) 2>/dev/null` in
16843   *posix*) set -o posix ;;
16844 esac
16845
16846 fi
16847
16848
16849
16850
16851 # PATH needs CR
16852 # Avoid depending upon Character Ranges.
16853 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16854 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16855 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16856 as_cr_digits='0123456789'
16857 as_cr_alnum=$as_cr_Letters$as_cr_digits
16858
16859 as_nl='
16860 '
16861 export as_nl
16862 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16863 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16866 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16867   as_echo='printf %s\n'
16868   as_echo_n='printf %s'
16869 else
16870   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16871     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16872     as_echo_n='/usr/ucb/echo -n'
16873   else
16874     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16875     as_echo_n_body='eval
16876       arg=$1;
16877       case $arg in
16878       *"$as_nl"*)
16879         expr "X$arg" : "X\\(.*\\)$as_nl";
16880         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16881       esac;
16882       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16883     '
16884     export as_echo_n_body
16885     as_echo_n='sh -c $as_echo_n_body as_echo'
16886   fi
16887   export as_echo_body
16888   as_echo='sh -c $as_echo_body as_echo'
16889 fi
16890
16891 # The user is always right.
16892 if test "${PATH_SEPARATOR+set}" != set; then
16893   PATH_SEPARATOR=:
16894   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16895     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16896       PATH_SEPARATOR=';'
16897   }
16898 fi
16899
16900 # Support unset when possible.
16901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16902   as_unset=unset
16903 else
16904   as_unset=false
16905 fi
16906
16907
16908 # IFS
16909 # We need space, tab and new line, in precisely that order.  Quoting is
16910 # there to prevent editors from complaining about space-tab.
16911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16912 # splitting by setting IFS to empty value.)
16913 IFS=" ""        $as_nl"
16914
16915 # Find who we are.  Look in the path if we contain no directory separator.
16916 case $0 in
16917   *[\\/]* ) as_myself=$0 ;;
16918   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16919 for as_dir in $PATH
16920 do
16921   IFS=$as_save_IFS
16922   test -z "$as_dir" && as_dir=.
16923   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16924 done
16925 IFS=$as_save_IFS
16926
16927      ;;
16928 esac
16929 # We did not find ourselves, most probably we were run as `sh COMMAND'
16930 # in which case we are not to be found in the path.
16931 if test "x$as_myself" = x; then
16932   as_myself=$0
16933 fi
16934 if test ! -f "$as_myself"; then
16935   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16936   { (exit 1); exit 1; }
16937 fi
16938
16939 # Work around bugs in pre-3.0 UWIN ksh.
16940 for as_var in ENV MAIL MAILPATH
16941 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16942 done
16943 PS1='$ '
16944 PS2='> '
16945 PS4='+ '
16946
16947 # NLS nuisances.
16948 LC_ALL=C
16949 export LC_ALL
16950 LANGUAGE=C
16951 export LANGUAGE
16952
16953 # Required to use basename.
16954 if expr a : '\(a\)' >/dev/null 2>&1 &&
16955    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16956   as_expr=expr
16957 else
16958   as_expr=false
16959 fi
16960
16961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16962   as_basename=basename
16963 else
16964   as_basename=false
16965 fi
16966
16967
16968 # Name of the executable.
16969 as_me=`$as_basename -- "$0" ||
16970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16971          X"$0" : 'X\(//\)$' \| \
16972          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16973 $as_echo X/"$0" |
16974     sed '/^.*\/\([^/][^/]*\)\/*$/{
16975             s//\1/
16976             q
16977           }
16978           /^X\/\(\/\/\)$/{
16979             s//\1/
16980             q
16981           }
16982           /^X\/\(\/\).*/{
16983             s//\1/
16984             q
16985           }
16986           s/.*/./; q'`
16987
16988 # CDPATH.
16989 $as_unset CDPATH
16990
16991
16992
16993   as_lineno_1=$LINENO
16994   as_lineno_2=$LINENO
16995   test "x$as_lineno_1" != "x$as_lineno_2" &&
16996   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16997
16998   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16999   # uniformly replaced by the line number.  The first 'sed' inserts a
17000   # line-number line after each line using $LINENO; the second 'sed'
17001   # does the real work.  The second script uses 'N' to pair each
17002   # line-number line with the line containing $LINENO, and appends
17003   # trailing '-' during substitution so that $LINENO is not a special
17004   # case at line end.
17005   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17006   # scripts with optimization help from Paolo Bonzini.  Blame Lee
17007   # E. McMahon (1931-1989) for sed's syntax.  :-)
17008   sed -n '
17009     p
17010     /[$]LINENO/=
17011   ' <$as_myself |
17012     sed '
17013       s/[$]LINENO.*/&-/
17014       t lineno
17015       b
17016       :lineno
17017       N
17018       :loop
17019       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17020       t loop
17021       s/-\n.*//
17022     ' >$as_me.lineno &&
17023   chmod +x "$as_me.lineno" ||
17024     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17025    { (exit 1); exit 1; }; }
17026
17027   # Don't try to exec as it changes $[0], causing all sort of problems
17028   # (the dirname of $[0] is not the place where we might find the
17029   # original and so on.  Autoconf is especially sensitive to this).
17030   . "./$as_me.lineno"
17031   # Exit status is that of the last command.
17032   exit
17033 }
17034
17035
17036 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17037   as_dirname=dirname
17038 else
17039   as_dirname=false
17040 fi
17041
17042 ECHO_C= ECHO_N= ECHO_T=
17043 case `echo -n x` in
17044 -n*)
17045   case `echo 'x\c'` in
17046   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17047   *)   ECHO_C='\c';;
17048   esac;;
17049 *)
17050   ECHO_N='-n';;
17051 esac
17052 if expr a : '\(a\)' >/dev/null 2>&1 &&
17053    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17054   as_expr=expr
17055 else
17056   as_expr=false
17057 fi
17058
17059 rm -f conf$$ conf$$.exe conf$$.file
17060 if test -d conf$$.dir; then
17061   rm -f conf$$.dir/conf$$.file
17062 else
17063   rm -f conf$$.dir
17064   mkdir conf$$.dir 2>/dev/null
17065 fi
17066 if (echo >conf$$.file) 2>/dev/null; then
17067   if ln -s conf$$.file conf$$ 2>/dev/null; then
17068     as_ln_s='ln -s'
17069     # ... but there are two gotchas:
17070     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17071     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17072     # In both cases, we have to default to `cp -p'.
17073     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17074       as_ln_s='cp -p'
17075   elif ln conf$$.file conf$$ 2>/dev/null; then
17076     as_ln_s=ln
17077   else
17078     as_ln_s='cp -p'
17079   fi
17080 else
17081   as_ln_s='cp -p'
17082 fi
17083 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17084 rmdir conf$$.dir 2>/dev/null
17085
17086 if mkdir -p . 2>/dev/null; then
17087   as_mkdir_p=:
17088 else
17089   test -d ./-p && rmdir ./-p
17090   as_mkdir_p=false
17091 fi
17092
17093 if test -x / >/dev/null 2>&1; then
17094   as_test_x='test -x'
17095 else
17096   if ls -dL / >/dev/null 2>&1; then
17097     as_ls_L_option=L
17098   else
17099     as_ls_L_option=
17100   fi
17101   as_test_x='
17102     eval sh -c '\''
17103       if test -d "$1"; then
17104         test -d "$1/.";
17105       else
17106         case $1 in
17107         -*)set "./$1";;
17108         esac;
17109         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17110         ???[sx]*):;;*)false;;esac;fi
17111     '\'' sh
17112   '
17113 fi
17114 as_executable_p=$as_test_x
17115
17116 # Sed expression to map a string onto a valid CPP name.
17117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17118
17119 # Sed expression to map a string onto a valid variable name.
17120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17121
17122
17123 exec 6>&1
17124
17125 # Save the log message, to keep $[0] and so on meaningful, and to
17126 # report actual input values of CONFIG_FILES etc. instead of their
17127 # values after options handling.
17128 ac_log="
17129 This file was extended by $as_me, which was
17130 generated by GNU Autoconf 2.63.  Invocation command line was
17131
17132   CONFIG_FILES    = $CONFIG_FILES
17133   CONFIG_HEADERS  = $CONFIG_HEADERS
17134   CONFIG_LINKS    = $CONFIG_LINKS
17135   CONFIG_COMMANDS = $CONFIG_COMMANDS
17136   $ $0 $@
17137
17138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17139 "
17140
17141 _ACEOF
17142
17143 case $ac_config_files in *"
17144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17145 esac
17146
17147
17148
17149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17150 # Files that config.status was made for.
17151 config_files="$ac_config_files"
17152 config_commands="$ac_config_commands"
17153
17154 _ACEOF
17155
17156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17157 ac_cs_usage="\
17158 \`$as_me' instantiates files from templates according to the
17159 current configuration.
17160
17161 Usage: $0 [OPTION]... [FILE]...
17162
17163   -h, --help       print this help, then exit
17164   -V, --version    print version number and configuration settings, then exit
17165   -q, --quiet, --silent
17166                    do not print progress messages
17167   -d, --debug      don't remove temporary files
17168       --recheck    update $as_me by reconfiguring in the same conditions
17169       --file=FILE[:TEMPLATE]
17170                    instantiate the configuration file FILE
17171
17172 Configuration files:
17173 $config_files
17174
17175 Configuration commands:
17176 $config_commands
17177
17178 Report bugs to <bug-autoconf@gnu.org>."
17179
17180 _ACEOF
17181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17182 ac_cs_version="\\
17183 config.status
17184 configured by $0, generated by GNU Autoconf 2.63,
17185   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17186
17187 Copyright (C) 2008 Free Software Foundation, Inc.
17188 This config.status script is free software; the Free Software Foundation
17189 gives unlimited permission to copy, distribute and modify it."
17190
17191 ac_pwd='$ac_pwd'
17192 srcdir='$srcdir'
17193 INSTALL='$INSTALL'
17194 AWK='$AWK'
17195 test -n "\$AWK" || AWK=awk
17196 _ACEOF
17197
17198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17199 # The default lists apply if the user does not specify any file.
17200 ac_need_defaults=:
17201 while test $# != 0
17202 do
17203   case $1 in
17204   --*=*)
17205     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17206     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17207     ac_shift=:
17208     ;;
17209   *)
17210     ac_option=$1
17211     ac_optarg=$2
17212     ac_shift=shift
17213     ;;
17214   esac
17215
17216   case $ac_option in
17217   # Handling of the options.
17218   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17219     ac_cs_recheck=: ;;
17220   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17221     $as_echo "$ac_cs_version"; exit ;;
17222   --debug | --debu | --deb | --de | --d | -d )
17223     debug=: ;;
17224   --file | --fil | --fi | --f )
17225     $ac_shift
17226     case $ac_optarg in
17227     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17228     esac
17229     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17230     ac_need_defaults=false;;
17231   --he | --h |  --help | --hel | -h )
17232     $as_echo "$ac_cs_usage"; exit ;;
17233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17234   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17235     ac_cs_silent=: ;;
17236
17237   # This is an error.
17238   -*) { $as_echo "$as_me: error: unrecognized option: $1
17239 Try \`$0 --help' for more information." >&2
17240    { (exit 1); exit 1; }; } ;;
17241
17242   *) ac_config_targets="$ac_config_targets $1"
17243      ac_need_defaults=false ;;
17244
17245   esac
17246   shift
17247 done
17248
17249 ac_configure_extra_args=
17250
17251 if $ac_cs_silent; then
17252   exec 6>/dev/null
17253   ac_configure_extra_args="$ac_configure_extra_args --silent"
17254 fi
17255
17256 _ACEOF
17257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17258 if \$ac_cs_recheck; then
17259   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17260   shift
17261   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17262   CONFIG_SHELL='$SHELL'
17263   export CONFIG_SHELL
17264   exec "\$@"
17265 fi
17266
17267 _ACEOF
17268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17269 exec 5>>config.log
17270 {
17271   echo
17272   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17273 ## Running $as_me. ##
17274 _ASBOX
17275   $as_echo "$ac_log"
17276 } >&5
17277
17278 _ACEOF
17279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17280 #
17281 # INIT-COMMANDS
17282 #
17283 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17284     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17285     # from automake.
17286     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17287     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17288     LINGUAS="${LINGUAS-%UNSET%}"
17289
17290
17291 _ACEOF
17292
17293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17294
17295 # Handling of arguments.
17296 for ac_config_target in $ac_config_targets
17297 do
17298   case $ac_config_target in
17299     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17300     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17301
17302   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17303 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17304    { (exit 1); exit 1; }; };;
17305   esac
17306 done
17307
17308
17309 # If the user did not use the arguments to specify the items to instantiate,
17310 # then the envvar interface is used.  Set only those that are not.
17311 # We use the long form for the default assignment because of an extremely
17312 # bizarre bug on SunOS 4.1.3.
17313 if $ac_need_defaults; then
17314   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17315   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17316 fi
17317
17318 # Have a temporary directory for convenience.  Make it in the build tree
17319 # simply because there is no reason against having it here, and in addition,
17320 # creating and moving files from /tmp can sometimes cause problems.
17321 # Hook for its removal unless debugging.
17322 # Note that there is a small window in which the directory will not be cleaned:
17323 # after its creation but before its name has been assigned to `$tmp'.
17324 $debug ||
17325 {
17326   tmp=
17327   trap 'exit_status=$?
17328   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17329 ' 0
17330   trap '{ (exit 1); exit 1; }' 1 2 13 15
17331 }
17332 # Create a (secure) tmp directory for tmp files.
17333
17334 {
17335   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17336   test -n "$tmp" && test -d "$tmp"
17337 }  ||
17338 {
17339   tmp=./conf$$-$RANDOM
17340   (umask 077 && mkdir "$tmp")
17341 } ||
17342 {
17343    $as_echo "$as_me: cannot create a temporary directory in ." >&2
17344    { (exit 1); exit 1; }
17345 }
17346
17347 # Set up the scripts for CONFIG_FILES section.
17348 # No need to generate them if there are no CONFIG_FILES.
17349 # This happens for instance with `./config.status config.h'.
17350 if test -n "$CONFIG_FILES"; then
17351
17352 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17353   ac_cs_awk_getline=:
17354   ac_cs_awk_pipe_init=
17355   ac_cs_awk_read_file='
17356       while ((getline aline < (F[key])) > 0)
17357         print(aline)
17358       close(F[key])'
17359   ac_cs_awk_pipe_fini=
17360 else
17361   ac_cs_awk_getline=false
17362   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17363   ac_cs_awk_read_file='
17364       print "|#_!!_#|"
17365       print "cat " F[key] " &&"
17366       '$ac_cs_awk_pipe_init
17367   # The final `:' finishes the AND list.
17368   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17369 fi
17370 ac_cr='\r'
17371 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17372 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17373   ac_cs_awk_cr='\\r'
17374 else
17375   ac_cs_awk_cr=$ac_cr
17376 fi
17377
17378 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17379 _ACEOF
17380
17381 # Create commands to substitute file output variables.
17382 {
17383   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17384   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17385   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17386   echo "_ACAWK" &&
17387   echo "_ACEOF"
17388 } >conf$$files.sh &&
17389 . ./conf$$files.sh ||
17390   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17391 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17392    { (exit 1); exit 1; }; }
17393 rm -f conf$$files.sh
17394
17395 {
17396   echo "cat >conf$$subs.awk <<_ACEOF" &&
17397   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17398   echo "_ACEOF"
17399 } >conf$$subs.sh ||
17400   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17401 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17402    { (exit 1); exit 1; }; }
17403 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17404 ac_delim='%!_!# '
17405 for ac_last_try in false false false false false :; do
17406   . ./conf$$subs.sh ||
17407     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17408 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17409    { (exit 1); exit 1; }; }
17410
17411   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17412   if test $ac_delim_n = $ac_delim_num; then
17413     break
17414   elif $ac_last_try; then
17415     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17416 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17417    { (exit 1); exit 1; }; }
17418   else
17419     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17420   fi
17421 done
17422 rm -f conf$$subs.sh
17423
17424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17425 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17426 _ACEOF
17427 sed -n '
17428 h
17429 s/^/S["/; s/!.*/"]=/
17430 p
17431 g
17432 s/^[^!]*!//
17433 :repl
17434 t repl
17435 s/'"$ac_delim"'$//
17436 t delim
17437 :nl
17438 h
17439 s/\(.\{148\}\).*/\1/
17440 t more1
17441 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17442 p
17443 n
17444 b repl
17445 :more1
17446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17447 p
17448 g
17449 s/.\{148\}//
17450 t nl
17451 :delim
17452 h
17453 s/\(.\{148\}\).*/\1/
17454 t more2
17455 s/["\\]/\\&/g; s/^/"/; s/$/"/
17456 p
17457 b
17458 :more2
17459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17460 p
17461 g
17462 s/.\{148\}//
17463 t delim
17464 ' <conf$$subs.awk | sed '
17465 /^[^""]/{
17466   N
17467   s/\n//
17468 }
17469 ' >>$CONFIG_STATUS || ac_write_fail=1
17470 rm -f conf$$subs.awk
17471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472 _ACAWK
17473 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17474   for (key in S) S_is_set[key] = 1
17475   FS = "\a"
17476   \$ac_cs_awk_pipe_init
17477 }
17478 {
17479   line = $ 0
17480   nfields = split(line, field, "@")
17481   substed = 0
17482   len = length(field[1])
17483   for (i = 2; i < nfields; i++) {
17484     key = field[i]
17485     keylen = length(key)
17486     if (S_is_set[key]) {
17487       value = S[key]
17488       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17489       len += length(value) + length(field[++i])
17490       substed = 1
17491     } else
17492       len += 1 + keylen
17493   }
17494   if (nfields == 3 && !substed) {
17495     key = field[2]
17496     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
17497       \$ac_cs_awk_read_file
17498       next
17499     }
17500   }
17501   print line
17502 }
17503 \$ac_cs_awk_pipe_fini
17504 _ACAWK
17505 _ACEOF
17506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17507 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17508   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17509 else
17510   cat
17511 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17512   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17513 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17514    { (exit 1); exit 1; }; }
17515 _ACEOF
17516
17517 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17518 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17519 # trailing colons and then remove the whole line if VPATH becomes empty
17520 # (actually we leave an empty line to preserve line numbers).
17521 if test "x$srcdir" = x.; then
17522   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17523 s/:*\$(srcdir):*/:/
17524 s/:*\${srcdir}:*/:/
17525 s/:*@srcdir@:*/:/
17526 s/^\([^=]*=[     ]*\):*/\1/
17527 s/:*$//
17528 s/^[^=]*=[       ]*$//
17529 }'
17530 fi
17531
17532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17533 fi # test -n "$CONFIG_FILES"
17534
17535
17536 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
17537 shift
17538 for ac_tag
17539 do
17540   case $ac_tag in
17541   :[FHLC]) ac_mode=$ac_tag; continue;;
17542   esac
17543   case $ac_mode$ac_tag in
17544   :[FHL]*:*);;
17545   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17546 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17547    { (exit 1); exit 1; }; };;
17548   :[FH]-) ac_tag=-:-;;
17549   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17550   esac
17551   ac_save_IFS=$IFS
17552   IFS=:
17553   set x $ac_tag
17554   IFS=$ac_save_IFS
17555   shift
17556   ac_file=$1
17557   shift
17558
17559   case $ac_mode in
17560   :L) ac_source=$1;;
17561   :[FH])
17562     ac_file_inputs=
17563     for ac_f
17564     do
17565       case $ac_f in
17566       -) ac_f="$tmp/stdin";;
17567       *) # Look for the file first in the build tree, then in the source tree
17568          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17569          # because $ac_f cannot contain `:'.
17570          test -f "$ac_f" ||
17571            case $ac_f in
17572            [\\/$]*) false;;
17573            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17574            esac ||
17575            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17576 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17577    { (exit 1); exit 1; }; };;
17578       esac
17579       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17580       ac_file_inputs="$ac_file_inputs '$ac_f'"
17581     done
17582
17583     # Let's still pretend it is `configure' which instantiates (i.e., don't
17584     # use $as_me), people would be surprised to read:
17585     #    /* config.h.  Generated by config.status.  */
17586     configure_input='Generated from '`
17587           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17588         `' by configure.'
17589     if test x"$ac_file" != x-; then
17590       configure_input="$ac_file.  $configure_input"
17591       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17592 $as_echo "$as_me: creating $ac_file" >&6;}
17593     fi
17594     # Neutralize special characters interpreted by sed in replacement strings.
17595     case $configure_input in #(
17596     *\&* | *\|* | *\\* )
17597        ac_sed_conf_input=`$as_echo "$configure_input" |
17598        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17599     *) ac_sed_conf_input=$configure_input;;
17600     esac
17601
17602     case $ac_tag in
17603     *:-:* | *:-) cat >"$tmp/stdin" \
17604       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17605 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17606    { (exit 1); exit 1; }; } ;;
17607     esac
17608     ;;
17609   esac
17610
17611   ac_dir=`$as_dirname -- "$ac_file" ||
17612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17613          X"$ac_file" : 'X\(//\)[^/]' \| \
17614          X"$ac_file" : 'X\(//\)$' \| \
17615          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17616 $as_echo X"$ac_file" |
17617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17618             s//\1/
17619             q
17620           }
17621           /^X\(\/\/\)[^/].*/{
17622             s//\1/
17623             q
17624           }
17625           /^X\(\/\/\)$/{
17626             s//\1/
17627             q
17628           }
17629           /^X\(\/\).*/{
17630             s//\1/
17631             q
17632           }
17633           s/.*/./; q'`
17634   { as_dir="$ac_dir"
17635   case $as_dir in #(
17636   -*) as_dir=./$as_dir;;
17637   esac
17638   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17639     as_dirs=
17640     while :; do
17641       case $as_dir in #(
17642       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17643       *) as_qdir=$as_dir;;
17644       esac
17645       as_dirs="'$as_qdir' $as_dirs"
17646       as_dir=`$as_dirname -- "$as_dir" ||
17647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17648          X"$as_dir" : 'X\(//\)[^/]' \| \
17649          X"$as_dir" : 'X\(//\)$' \| \
17650          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17651 $as_echo X"$as_dir" |
17652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17653             s//\1/
17654             q
17655           }
17656           /^X\(\/\/\)[^/].*/{
17657             s//\1/
17658             q
17659           }
17660           /^X\(\/\/\)$/{
17661             s//\1/
17662             q
17663           }
17664           /^X\(\/\).*/{
17665             s//\1/
17666             q
17667           }
17668           s/.*/./; q'`
17669       test -d "$as_dir" && break
17670     done
17671     test -z "$as_dirs" || eval "mkdir $as_dirs"
17672   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17673 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17674    { (exit 1); exit 1; }; }; }
17675   ac_builddir=.
17676
17677 case "$ac_dir" in
17678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17679 *)
17680   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17681   # A ".." for each directory in $ac_dir_suffix.
17682   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17683   case $ac_top_builddir_sub in
17684   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17685   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17686   esac ;;
17687 esac
17688 ac_abs_top_builddir=$ac_pwd
17689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17690 # for backward compatibility:
17691 ac_top_builddir=$ac_top_build_prefix
17692
17693 case $srcdir in
17694   .)  # We are building in place.
17695     ac_srcdir=.
17696     ac_top_srcdir=$ac_top_builddir_sub
17697     ac_abs_top_srcdir=$ac_pwd ;;
17698   [\\/]* | ?:[\\/]* )  # Absolute name.
17699     ac_srcdir=$srcdir$ac_dir_suffix;
17700     ac_top_srcdir=$srcdir
17701     ac_abs_top_srcdir=$srcdir ;;
17702   *) # Relative name.
17703     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17704     ac_top_srcdir=$ac_top_build_prefix$srcdir
17705     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17706 esac
17707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17708
17709
17710   case $ac_mode in
17711   :F)
17712   #
17713   # CONFIG_FILE
17714   #
17715
17716   case $INSTALL in
17717   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17718   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17719   esac
17720 _ACEOF
17721
17722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17723 # If the template does not know about datarootdir, expand it.
17724 # FIXME: This hack should be removed a few years after 2.60.
17725 ac_datarootdir_hack=; ac_datarootdir_seen=
17726
17727 ac_sed_dataroot='
17728 /datarootdir/ {
17729   p
17730   q
17731 }
17732 /@datadir@/p
17733 /@docdir@/p
17734 /@infodir@/p
17735 /@localedir@/p
17736 /@mandir@/p
17737 '
17738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17739 *datarootdir*) ac_datarootdir_seen=yes;;
17740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17741   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17743 _ACEOF
17744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17745   ac_datarootdir_hack='
17746   s&@datadir@&$datadir&g
17747   s&@docdir@&$docdir&g
17748   s&@infodir@&$infodir&g
17749   s&@localedir@&$localedir&g
17750   s&@mandir@&$mandir&g
17751     s&\\\${datarootdir}&$datarootdir&g' ;;
17752 esac
17753 _ACEOF
17754
17755 # Neutralize VPATH when `$srcdir' = `.'.
17756 # Shell code in configure.ac might set extrasub.
17757 # FIXME: do we really want to maintain this feature?
17758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17759 ac_sed_extra="$ac_vpsub
17760 $extrasub
17761 _ACEOF
17762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17763 :t
17764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17765 s|@configure_input@|$ac_sed_conf_input|;t t
17766 s&@top_builddir@&$ac_top_builddir_sub&;t t
17767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17768 s&@srcdir@&$ac_srcdir&;t t
17769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17770 s&@top_srcdir@&$ac_top_srcdir&;t t
17771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17772 s&@builddir@&$ac_builddir&;t t
17773 s&@abs_builddir@&$ac_abs_builddir&;t t
17774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17775 s&@INSTALL@&$ac_INSTALL&;t t
17776 $ac_datarootdir_hack
17777 "
17778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17779 if $ac_cs_awk_getline; then
17780   $AWK -f "$tmp/subs.awk"
17781 else
17782   $AWK -f "$tmp/subs.awk" | $SHELL
17783 fi >$tmp/out \
17784   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17785 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17786    { (exit 1); exit 1; }; }
17787
17788 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17789   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17790   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17791   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17792 which seems to be undefined.  Please make sure it is defined." >&5
17793 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17794 which seems to be undefined.  Please make sure it is defined." >&2;}
17795
17796   rm -f "$tmp/stdin"
17797   case $ac_file in
17798   -) cat "$tmp/out" && rm -f "$tmp/out";;
17799   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17800   esac \
17801   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17802 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17803    { (exit 1); exit 1; }; }
17804  ;;
17805
17806
17807   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17808 $as_echo "$as_me: executing $ac_file commands" >&6;}
17809  ;;
17810   esac
17811
17812
17813   case $ac_file$ac_mode in
17814     "default-1":C)
17815     for ac_file in $CONFIG_FILES; do
17816       # Support "outfile[:infile[:infile...]]"
17817       case "$ac_file" in
17818         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17819       esac
17820       # PO directories have a Makefile.in generated from Makefile.in.in.
17821       case "$ac_file" in */Makefile.in)
17822         # Adjust a relative srcdir.
17823         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17824         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17825         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17826         # In autoconf-2.13 it is called $ac_given_srcdir.
17827         # In autoconf-2.50 it is called $srcdir.
17828         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17829         case "$ac_given_srcdir" in
17830           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17831           /*) top_srcdir="$ac_given_srcdir" ;;
17832           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17833         esac
17834         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17835           rm -f "$ac_dir/POTFILES"
17836           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17837           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17838           POMAKEFILEDEPS="POTFILES.in"
17839           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17840           # on $ac_dir but don't depend on user-specified configuration
17841           # parameters.
17842           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17843             # The LINGUAS file contains the set of available languages.
17844             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17845               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17846             fi
17847             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17848             # Hide the ALL_LINGUAS assigment from automake.
17849             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17850             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17851           else
17852             # The set of available languages was given in configure.in.
17853             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17854           fi
17855           # Compute POFILES
17856           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17857           # Compute UPDATEPOFILES
17858           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17859           # Compute DUMMYPOFILES
17860           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17861           # Compute GMOFILES
17862           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17863           case "$ac_given_srcdir" in
17864             .) srcdirpre= ;;
17865             *) srcdirpre='$(srcdir)/' ;;
17866           esac
17867           POFILES=
17868           UPDATEPOFILES=
17869           DUMMYPOFILES=
17870           GMOFILES=
17871           for lang in $ALL_LINGUAS; do
17872             POFILES="$POFILES $srcdirpre$lang.po"
17873             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17874             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17875             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17876           done
17877           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17878           # environment variable.
17879           INST_LINGUAS=
17880           if test -n "$ALL_LINGUAS"; then
17881             for presentlang in $ALL_LINGUAS; do
17882               useit=no
17883               if test "%UNSET%" != "$LINGUAS"; then
17884                 desiredlanguages="$LINGUAS"
17885               else
17886                 desiredlanguages="$ALL_LINGUAS"
17887               fi
17888               for desiredlang in $desiredlanguages; do
17889                 # Use the presentlang catalog if desiredlang is
17890                 #   a. equal to presentlang, or
17891                 #   b. a variant of presentlang (because in this case,
17892                 #      presentlang can be used as a fallback for messages
17893                 #      which are not translated in the desiredlang catalog).
17894                 case "$desiredlang" in
17895                   "$presentlang"*) useit=yes;;
17896                 esac
17897               done
17898               if test $useit = yes; then
17899                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17900               fi
17901             done
17902           fi
17903           CATALOGS=
17904           if test -n "$INST_LINGUAS"; then
17905             for lang in $INST_LINGUAS; do
17906               CATALOGS="$CATALOGS $lang.gmo"
17907             done
17908           fi
17909           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17910           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"
17911           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17912             if test -f "$f"; then
17913               case "$f" in
17914                 *.orig | *.bak | *~) ;;
17915                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17916               esac
17917             fi
17918           done
17919         fi
17920         ;;
17921       esac
17922     done ;;
17923
17924   esac
17925 done # for ac_tag
17926
17927
17928 { (exit 0); exit 0; }
17929 _ACEOF
17930 chmod +x $CONFIG_STATUS
17931 ac_clean_files=$ac_clean_files_save
17932
17933 test $ac_write_fail = 0 ||
17934   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17935 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17936    { (exit 1); exit 1; }; }
17937
17938
17939 # configure is writing to config.log, and then calls config.status.
17940 # config.status does its own redirection, appending to config.log.
17941 # Unfortunately, on DOS this fails, as config.log is still kept open
17942 # by configure, so config.status won't be able to write to it; its
17943 # output is simply discarded.  So we exec the FD to /dev/null,
17944 # effectively closing config.log, so it can be properly (re)opened and
17945 # appended to by config.status.  When coming back to configure, we
17946 # need to make the FD available again.
17947 if test "$no_create" != yes; then
17948   ac_cs_success=:
17949   ac_config_status_args=
17950   test "$silent" = yes &&
17951     ac_config_status_args="$ac_config_status_args --quiet"
17952   exec 5>/dev/null
17953   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17954   exec 5>>config.log
17955   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17956   # would make configure fail if this is the last instruction.
17957   $ac_cs_success || { (exit 1); exit 1; }
17958 fi
17959 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17960   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17961 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17962 fi
17963
17964 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi