Whamcloud - gitweb
configure.in: add --disable-libuuid option
[tools/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 BINARY_TYPE
678 POSUB
679 LTLIBINTL
680 LIBINTL
681 INTLLIBS
682 INTL_LIBTOOL_SUFFIX_PREFIX
683 INTLOBJS
684 GENCAT
685 INSTOBJEXT
686 DATADIRNAME
687 CATOBJEXT
688 USE_INCLUDED_LIBINTL
689 BUILD_INCLUDED_LIBINTL
690 INTLBISON
691 LTLIBICONV
692 LIBICONV
693 HAVE_WPRINTF
694 HAVE_SNPRINTF
695 HAVE_ASPRINTF
696 HAVE_POSIX_PRINTF
697 GLIBC21
698 ALLOCA
699 RANLIB
700 MSGMERGE
701 XGETTEXT
702 GMSGFMT
703 MSGFMT
704 USE_NLS
705 MKINSTALLDIRS
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 SET_MAKE
710 VERSION
711 PACKAGE
712 GETTEXT_PACKAGE
713 UUIDD_CMT
714 E2INITRD_MAN
715 E2INITRD_PROG
716 FSCK_MAN
717 FSCK_PROG
718 RESIZER_CMT
719 IMAGER_CMT
720 DEBUGFS_CMT
721 BLKID_CMT
722 DEPPROFILED_LIBBLKID
723 PROFILED_LIBBLKID
724 DEPSTATIC_LIBBLKID
725 STATIC_LIBBLKID
726 DEPLIBBLKID
727 LIBBLKID
728 UUID_CMT
729 DEPPROFILED_LIBUUID
730 PROFILED_LIBUUID
731 DEPSTATIC_LIBUUID
732 STATIC_LIBUUID
733 DEPLIBUUID
734 LIBUUID
735 PKG_CONFIG
736 TEST_IO_CMT
737 PRIVATE_LIBS_CMT
738 LDFLAG_DYNAMIC
739 PROFILED_LIB_EXT
740 STATIC_LIB_EXT
741 LIB_EXT
742 CHECKER_CMT
743 PROFILE_CMT
744 BSDLIB_CMT
745 ELF_CMT
746 HTREE_CMT
747 MAINTAINER_CMT
748 LINUX_INCLUDE
749 EGREP
750 GREP
751 LD
752 CPP
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 E2FSPROGS_PKGVER
769 E2FSPROGS_VERSION
770 E2FSPROGS_DAY
771 E2FSPROGS_MONTH
772 E2FSPROGS_YEAR
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL'
810 ac_subst_files='MCONFIG
811 MAKEFILE_ELF
812 MAKEFILE_BSDLIB
813 MAKEFILE_PROFILE
814 MAKEFILE_CHECKER
815 MAKEFILE_LIBRARY
816 ASM_TYPES_HEADER
817 PUBLIC_CONFIG_HEADER'
818 ac_user_opts='
819 enable_option_checking
820 with_diet_libc
821 with_cc
822 with_linker
823 with_ccopts
824 with_ldopts
825 with_root_prefix
826 enable_maintainer_mode
827 enable_compression
828 enable_htree
829 enable_elf_shlibs
830 enable_bsd_shlibs
831 enable_profile
832 enable_checker
833 enable_jbd_debug
834 enable_blkid_debug
835 enable_testio_debug
836 enable_libuuid
837 enable_libblkid
838 enable_debugfs
839 enable_imager
840 enable_resizer
841 enable_fsck
842 enable_e2initrd_helper
843 enable_tls
844 enable_uuidd
845 enable_nls
846 with_gnu_ld
847 enable_rpath
848 with_libiconv_prefix
849 with_included_gettext
850 with_libintl_prefix
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP
861 PKG_CONFIG'
862
863
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
885
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916   # If the previous option needs an argument, assign it.
917   if test -n "$ac_prev"; then
918     eval $ac_prev=\$ac_option
919     ac_prev=
920     continue
921   fi
922
923   case $ac_option in
924   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925   *)    ac_optarg=yes ;;
926   esac
927
928   # Accept the important Cygnus configure options, so we can diagnose typos.
929
930   case $ac_dashdash$ac_option in
931   --)
932     ac_dashdash=yes ;;
933
934   -bindir | --bindir | --bindi | --bind | --bin | --bi)
935     ac_prev=bindir ;;
936   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937     bindir=$ac_optarg ;;
938
939   -build | --build | --buil | --bui | --bu)
940     ac_prev=build_alias ;;
941   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942     build_alias=$ac_optarg ;;
943
944   -cache-file | --cache-file | --cache-fil | --cache-fi \
945   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946     ac_prev=cache_file ;;
947   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949     cache_file=$ac_optarg ;;
950
951   --config-cache | -C)
952     cache_file=config.cache ;;
953
954   -datadir | --datadir | --datadi | --datad)
955     ac_prev=datadir ;;
956   -datadir=* | --datadir=* | --datadi=* | --datad=*)
957     datadir=$ac_optarg ;;
958
959   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960   | --dataroo | --dataro | --datar)
961     ac_prev=datarootdir ;;
962   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964     datarootdir=$ac_optarg ;;
965
966   -disable-* | --disable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971    { (exit 1); exit 1; }; }
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=no ;;
982
983   -docdir | --docdir | --docdi | --doc | --do)
984     ac_prev=docdir ;;
985   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986     docdir=$ac_optarg ;;
987
988   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989     ac_prev=dvidir ;;
990   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991     dvidir=$ac_optarg ;;
992
993   -enable-* | --enable-*)
994     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998    { (exit 1); exit 1; }; }
999     ac_useropt_orig=$ac_useropt
1000     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001     case $ac_user_opts in
1002       *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006          ac_unrecognized_sep=', ';;
1007     esac
1008     eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012   | --exec | --exe | --ex)
1013     ac_prev=exec_prefix ;;
1014   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016   | --exec=* | --exe=* | --ex=*)
1017     exec_prefix=$ac_optarg ;;
1018
1019   -gas | --gas | --ga | --g)
1020     # Obsolete; use --with-gas.
1021     with_gas=yes ;;
1022
1023   -help | --help | --hel | --he | -h)
1024     ac_init_help=long ;;
1025   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026     ac_init_help=recursive ;;
1027   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028     ac_init_help=short ;;
1029
1030   -host | --host | --hos | --ho)
1031     ac_prev=host_alias ;;
1032   -host=* | --host=* | --hos=* | --ho=*)
1033     host_alias=$ac_optarg ;;
1034
1035   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036     ac_prev=htmldir ;;
1037   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038   | --ht=*)
1039     htmldir=$ac_optarg ;;
1040
1041   -includedir | --includedir | --includedi | --included | --include \
1042   | --includ | --inclu | --incl | --inc)
1043     ac_prev=includedir ;;
1044   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045   | --includ=* | --inclu=* | --incl=* | --inc=*)
1046     includedir=$ac_optarg ;;
1047
1048   -infodir | --infodir | --infodi | --infod | --info | --inf)
1049     ac_prev=infodir ;;
1050   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051     infodir=$ac_optarg ;;
1052
1053   -libdir | --libdir | --libdi | --libd)
1054     ac_prev=libdir ;;
1055   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056     libdir=$ac_optarg ;;
1057
1058   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059   | --libexe | --libex | --libe)
1060     ac_prev=libexecdir ;;
1061   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062   | --libexe=* | --libex=* | --libe=*)
1063     libexecdir=$ac_optarg ;;
1064
1065   -localedir | --localedir | --localedi | --localed | --locale)
1066     ac_prev=localedir ;;
1067   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068     localedir=$ac_optarg ;;
1069
1070   -localstatedir | --localstatedir | --localstatedi | --localstated \
1071   | --localstate | --localstat | --localsta | --localst | --locals)
1072     ac_prev=localstatedir ;;
1073   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075     localstatedir=$ac_optarg ;;
1076
1077   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078     ac_prev=mandir ;;
1079   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080     mandir=$ac_optarg ;;
1081
1082   -nfp | --nfp | --nf)
1083     # Obsolete; use --without-fp.
1084     with_fp=no ;;
1085
1086   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087   | --no-cr | --no-c | -n)
1088     no_create=yes ;;
1089
1090   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092     no_recursion=yes ;;
1093
1094   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096   | --oldin | --oldi | --old | --ol | --o)
1097     ac_prev=oldincludedir ;;
1098   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101     oldincludedir=$ac_optarg ;;
1102
1103   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104     ac_prev=prefix ;;
1105   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106     prefix=$ac_optarg ;;
1107
1108   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109   | --program-pre | --program-pr | --program-p)
1110     ac_prev=program_prefix ;;
1111   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113     program_prefix=$ac_optarg ;;
1114
1115   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116   | --program-suf | --program-su | --program-s)
1117     ac_prev=program_suffix ;;
1118   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120     program_suffix=$ac_optarg ;;
1121
1122   -program-transform-name | --program-transform-name \
1123   | --program-transform-nam | --program-transform-na \
1124   | --program-transform-n | --program-transform- \
1125   | --program-transform | --program-transfor \
1126   | --program-transfo | --program-transf \
1127   | --program-trans | --program-tran \
1128   | --progr-tra | --program-tr | --program-t)
1129     ac_prev=program_transform_name ;;
1130   -program-transform-name=* | --program-transform-name=* \
1131   | --program-transform-nam=* | --program-transform-na=* \
1132   | --program-transform-n=* | --program-transform-=* \
1133   | --program-transform=* | --program-transfor=* \
1134   | --program-transfo=* | --program-transf=* \
1135   | --program-trans=* | --program-tran=* \
1136   | --progr-tra=* | --program-tr=* | --program-t=*)
1137     program_transform_name=$ac_optarg ;;
1138
1139   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140     ac_prev=pdfdir ;;
1141   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142     pdfdir=$ac_optarg ;;
1143
1144   -psdir | --psdir | --psdi | --psd | --ps)
1145     ac_prev=psdir ;;
1146   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147     psdir=$ac_optarg ;;
1148
1149   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150   | -silent | --silent | --silen | --sile | --sil)
1151     silent=yes ;;
1152
1153   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154     ac_prev=sbindir ;;
1155   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156   | --sbi=* | --sb=*)
1157     sbindir=$ac_optarg ;;
1158
1159   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161   | --sharedst | --shareds | --shared | --share | --shar \
1162   | --sha | --sh)
1163     ac_prev=sharedstatedir ;;
1164   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167   | --sha=* | --sh=*)
1168     sharedstatedir=$ac_optarg ;;
1169
1170   -site | --site | --sit)
1171     ac_prev=site ;;
1172   -site=* | --site=* | --sit=*)
1173     site=$ac_optarg ;;
1174
1175   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176     ac_prev=srcdir ;;
1177   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178     srcdir=$ac_optarg ;;
1179
1180   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181   | --syscon | --sysco | --sysc | --sys | --sy)
1182     ac_prev=sysconfdir ;;
1183   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185     sysconfdir=$ac_optarg ;;
1186
1187   -target | --target | --targe | --targ | --tar | --ta | --t)
1188     ac_prev=target_alias ;;
1189   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190     target_alias=$ac_optarg ;;
1191
1192   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193     verbose=yes ;;
1194
1195   -version | --version | --versio | --versi | --vers | -V)
1196     ac_init_version=: ;;
1197
1198   -with-* | --with-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203    { (exit 1); exit 1; }; }
1204     ac_useropt_orig=$ac_useropt
1205     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206     case $ac_user_opts in
1207       *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211          ac_unrecognized_sep=', ';;
1212     esac
1213     eval with_$ac_useropt=\$ac_optarg ;;
1214
1215   -without-* | --without-*)
1216     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=no ;;
1231
1232   --x)
1233     # Obsolete; use --with-x.
1234     with_x=yes ;;
1235
1236   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237   | --x-incl | --x-inc | --x-in | --x-i)
1238     ac_prev=x_includes ;;
1239   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241     x_includes=$ac_optarg ;;
1242
1243   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245     ac_prev=x_libraries ;;
1246   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248     x_libraries=$ac_optarg ;;
1249
1250   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252    { (exit 1); exit 1; }; }
1253     ;;
1254
1255   *=*)
1256     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260    { (exit 1); exit 1; }; }
1261     eval $ac_envvar=\$ac_optarg
1262     export $ac_envvar ;;
1263
1264   *)
1265     # FIXME: should be removed in autoconf 3.0.
1266     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270     ;;
1271
1272   esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278    { (exit 1); exit 1; }; }
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282   case $enable_option_checking in
1283     no) ;;
1284     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285    { (exit 1); exit 1; }; } ;;
1286     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287   esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292                 datadir sysconfdir sharedstatedir localstatedir includedir \
1293                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294                 libdir localedir mandir
1295 do
1296   eval ac_val=\$$ac_var
1297   # Remove trailing slashes.
1298   case $ac_val in
1299     */ )
1300       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301       eval $ac_var=\$ac_val;;
1302   esac
1303   # Be sure to have absolute directory names.
1304   case $ac_val in
1305     [\\/$]* | ?:[\\/]* )  continue;;
1306     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307   esac
1308   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309    { (exit 1); exit 1; }; }
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324     If a cross compiler is detected then cross compile mode will be used." >&2
1325   elif test "x$build_alias" != "x$host_alias"; then
1326     cross_compiling=yes
1327   fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340    { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343    { (exit 1); exit 1; }; }
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383    { (exit 1); exit 1; }; }
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388    { (exit 1); exit 1; }; }
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures this package to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --libdir=DIR            object code libraries [EPREFIX/lib]
1455   --includedir=DIR        C header files [PREFIX/include]
1456   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1457   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1458   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1459   --infodir=DIR           info documentation [DATAROOTDIR/info]
1460   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1461   --mandir=DIR            man documentation [DATAROOTDIR/man]
1462   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1463   --htmldir=DIR           html documentation [DOCDIR]
1464   --dvidir=DIR            dvi documentation [DOCDIR]
1465   --pdfdir=DIR            pdf documentation [DOCDIR]
1466   --psdir=DIR             ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 System types:
1472   --build=BUILD     configure for building on BUILD [guessed]
1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478
1479   cat <<\_ACEOF
1480
1481 Optional Features:
1482   --disable-option-checking  ignore unrecognized --enable/--with options
1483   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485   --enable-maintainer-mode enable makefile rules useful for maintainers
1486   --enable-compression    enable EXPERIMENTAL compression support
1487   --enable-htree          enable EXPERIMENTAL htree directory support
1488   --enable-elf-shlibs     select ELF shared libraries
1489   --enable-bsd-shlibs     select BSD shared libraries
1490   --enable-profile        build profiling libraries
1491   --enable-checker        build checker libraries
1492   --enable-jbd-debug      enable journal debugging
1493   --enable-blkid-debug    enable blkid debugging
1494   --disable-testio-debug  disable the use of the test I/O manager for debugging
1495   --disable-libuuid       do not build private uuid library
1496   --disable-libblkid      do not build private blkid library
1497   --disable-debugfs       disable support of debugfs program
1498   --disable-imager        disable support of e2image program
1499   --disable-resizer       disable support of e2resize program
1500   --enable-fsck           build fsck wrapper program
1501   --enable-e2initrd-helper build e2initrd-helper program
1502   --disable-tls           disable use of thread local support
1503   --disable-uuidd         disable building the uuid daemon
1504   --disable-nls           do not use Native Language Support
1505   --disable-rpath         do not hardcode runtime library paths
1506
1507 Optional Packages:
1508   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510   --with-diet-libc        use diet libc
1511   --with-cc=COMPILER      select compiler to use
1512   --with-linker=LINKER    select linker to use
1513   --with-ccopts=CCOPTS    select compiler command line options
1514   --with-ldopts=LDOPTS    select linker command line options
1515   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1516   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1517   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1518   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1519   --with-included-gettext use the GNU gettext library included here
1520   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1521   --without-libintl-prefix     don't search for libintl in includedir and libdir
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CPP         C preprocessor
1532   PKG_CONFIG  path to pkg-config utility
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542   # If there are subdirs, report their specific --help.
1543   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544     test -d "$ac_dir" ||
1545       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546       continue
1547     ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553   # A ".." for each directory in $ac_dir_suffix.
1554   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555   case $ac_top_builddir_sub in
1556   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558   esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566   .)  # We are building in place.
1567     ac_srcdir=.
1568     ac_top_srcdir=$ac_top_builddir_sub
1569     ac_abs_top_srcdir=$ac_pwd ;;
1570   [\\/]* | ?:[\\/]* )  # Absolute name.
1571     ac_srcdir=$srcdir$ac_dir_suffix;
1572     ac_top_srcdir=$srcdir
1573     ac_abs_top_srcdir=$srcdir ;;
1574   *) # Relative name.
1575     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576     ac_top_srcdir=$ac_top_build_prefix$srcdir
1577     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581     cd "$ac_dir" || { ac_status=$?; continue; }
1582     # Check for guested configure.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 configure
1600 generated by GNU Autoconf 2.63
1601
1602 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1603 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607   exit
1608 fi
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1612
1613 It was created by $as_me, which was
1614 generated by GNU Autoconf 2.63.  Invocation command line was
1615
1616   $ $0 $@
1617
1618 _ACEOF
1619 exec 5>>config.log
1620 {
1621 cat <<_ASUNAME
1622 ## --------- ##
1623 ## Platform. ##
1624 ## --------- ##
1625
1626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631
1632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1634
1635 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1636 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1639 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1640 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1641 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1642
1643 _ASUNAME
1644
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   $as_echo "PATH: $as_dir"
1651 done
1652 IFS=$as_save_IFS
1653
1654 } >&5
1655
1656 cat >&5 <<_ACEOF
1657
1658
1659 ## ----------- ##
1660 ## Core tests. ##
1661 ## ----------- ##
1662
1663 _ACEOF
1664
1665
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1671 ac_configure_args=
1672 ac_configure_args0=
1673 ac_configure_args1=
1674 ac_must_keep_next=false
1675 for ac_pass in 1 2
1676 do
1677   for ac_arg
1678   do
1679     case $ac_arg in
1680     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682     | -silent | --silent | --silen | --sile | --sil)
1683       continue ;;
1684     *\'*)
1685       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1686     esac
1687     case $ac_pass in
1688     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689     2)
1690       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691       if test $ac_must_keep_next = true; then
1692         ac_must_keep_next=false # Got value, back to normal.
1693       else
1694         case $ac_arg in
1695           *=* | --config-cache | -C | -disable-* | --disable-* \
1696           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698           | -with-* | --with-* | -without-* | --without-* | --x)
1699             case "$ac_configure_args0 " in
1700               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701             esac
1702             ;;
1703           -* ) ac_must_keep_next=true ;;
1704         esac
1705       fi
1706       ac_configure_args="$ac_configure_args '$ac_arg'"
1707       ;;
1708     esac
1709   done
1710 done
1711 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log.  We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720   # Save into config.log some information that might help in debugging.
1721   {
1722     echo
1723
1724     cat <<\_ASBOX
1725 ## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##
1728 _ASBOX
1729     echo
1730     # The following way of writing the cache mishandles newlines in values,
1731 (
1732   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733     eval ac_val=\$$ac_var
1734     case $ac_val in #(
1735     *${as_nl}*)
1736       case $ac_var in #(
1737       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1739       esac
1740       case $ac_var in #(
1741       _ | IFS | as_nl) ;; #(
1742       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1743       *) $as_unset $ac_var ;;
1744       esac ;;
1745     esac
1746   done
1747   (set) 2>&1 |
1748     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749     *${as_nl}ac_space=\ *)
1750       sed -n \
1751         "s/'\''/'\''\\\\'\'''\''/g;
1752           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753       ;; #(
1754     *)
1755       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1756       ;;
1757     esac |
1758     sort
1759 )
1760     echo
1761
1762     cat <<\_ASBOX
1763 ## ----------------- ##
1764 ## Output variables. ##
1765 ## ----------------- ##
1766 _ASBOX
1767     echo
1768     for ac_var in $ac_subst_vars
1769     do
1770       eval ac_val=\$$ac_var
1771       case $ac_val in
1772       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773       esac
1774       $as_echo "$ac_var='\''$ac_val'\''"
1775     done | sort
1776     echo
1777
1778     if test -n "$ac_subst_files"; then
1779       cat <<\_ASBOX
1780 ## ------------------- ##
1781 ## File substitutions. ##
1782 ## ------------------- ##
1783 _ASBOX
1784       echo
1785       for ac_var in $ac_subst_files
1786       do
1787         eval ac_val=\$$ac_var
1788         case $ac_val in
1789         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790         esac
1791         $as_echo "$ac_var='\''$ac_val'\''"
1792       done | sort
1793       echo
1794     fi
1795
1796     if test -s confdefs.h; then
1797       cat <<\_ASBOX
1798 ## ----------- ##
1799 ## confdefs.h. ##
1800 ## ----------- ##
1801 _ASBOX
1802       echo
1803       cat confdefs.h
1804       echo
1805     fi
1806     test "$ac_signal" != 0 &&
1807       $as_echo "$as_me: caught signal $ac_signal"
1808     $as_echo "$as_me: exit $exit_status"
1809   } >&5
1810   rm -f core *.core core.conftest.* &&
1811     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1812     exit $exit_status
1813 ' 0
1814 for ac_signal in 1 2 13 15; do
1815   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816 done
1817 ac_signal=0
1818
1819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1820 rm -f -r conftest* confdefs.h
1821
1822 # Predefined preprocessor variables.
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_NAME "$PACKAGE_NAME"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_STRING "$PACKAGE_STRING"
1841 _ACEOF
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846 _ACEOF
1847
1848
1849 # Let the site file select an alternate cache file if it wants to.
1850 # Prefer an explicitly selected file to automatically selected ones.
1851 ac_site_file1=NONE
1852 ac_site_file2=NONE
1853 if test -n "$CONFIG_SITE"; then
1854   ac_site_file1=$CONFIG_SITE
1855 elif test "x$prefix" != xNONE; then
1856   ac_site_file1=$prefix/share/config.site
1857   ac_site_file2=$prefix/etc/config.site
1858 else
1859   ac_site_file1=$ac_default_prefix/share/config.site
1860   ac_site_file2=$ac_default_prefix/etc/config.site
1861 fi
1862 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1863 do
1864   test "x$ac_site_file" = xNONE && continue
1865   if test -r "$ac_site_file"; then
1866     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1868     sed 's/^/| /' "$ac_site_file" >&5
1869     . "$ac_site_file"
1870   fi
1871 done
1872
1873 if test -r "$cache_file"; then
1874   # Some versions of bash will fail to source /dev/null (special
1875   # files actually), so we avoid doing that.
1876   if test -f "$cache_file"; then
1877     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 $as_echo "$as_me: loading cache $cache_file" >&6;}
1879     case $cache_file in
1880       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881       *)                      . "./$cache_file";;
1882     esac
1883   fi
1884 else
1885   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 $as_echo "$as_me: creating cache $cache_file" >&6;}
1887   >$cache_file
1888 fi
1889
1890 # Check that the precious variables saved in the cache have kept the same
1891 # value.
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895   eval ac_new_set=\$ac_env_${ac_var}_set
1896   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897   eval ac_new_val=\$ac_env_${ac_var}_value
1898   case $ac_old_set,$ac_new_set in
1899     set,)
1900       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902       ac_cache_corrupted=: ;;
1903     ,set)
1904       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906       ac_cache_corrupted=: ;;
1907     ,);;
1908     *)
1909       if test "x$ac_old_val" != "x$ac_new_val"; then
1910         # differences in whitespace do not lead to failure.
1911         ac_old_val_w=`echo x $ac_old_val`
1912         ac_new_val_w=`echo x $ac_new_val`
1913         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1914           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1915 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1916           ac_cache_corrupted=:
1917         else
1918           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1919 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1920           eval $ac_var=\$ac_old_val
1921         fi
1922         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1923 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1924         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1925 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1926       fi;;
1927   esac
1928   # Pass precious variables to config.status.
1929   if test "$ac_new_set" = set; then
1930     case $ac_new_val in
1931     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1932     *) ac_arg=$ac_var=$ac_new_val ;;
1933     esac
1934     case " $ac_configure_args " in
1935       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1936       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937     esac
1938   fi
1939 done
1940 if $ac_cache_corrupted; then
1941   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1943   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1944 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1945   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1946 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1947    { (exit 1); exit 1; }; }
1948 fi
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966 ac_ext=c
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971
1972
1973
1974 ac_aux_dir=
1975 for ac_dir in config "$srcdir"/config; do
1976   if test -f "$ac_dir/install-sh"; then
1977     ac_aux_dir=$ac_dir
1978     ac_install_sh="$ac_aux_dir/install-sh -c"
1979     break
1980   elif test -f "$ac_dir/install.sh"; then
1981     ac_aux_dir=$ac_dir
1982     ac_install_sh="$ac_aux_dir/install.sh -c"
1983     break
1984   elif test -f "$ac_dir/shtool"; then
1985     ac_aux_dir=$ac_dir
1986     ac_install_sh="$ac_aux_dir/shtool install -c"
1987     break
1988   fi
1989 done
1990 if test -z "$ac_aux_dir"; then
1991   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1992 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1993    { (exit 1); exit 1; }; }
1994 fi
1995
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2003
2004
2005 MCONFIG=./MCONFIG
2006
2007 BINARY_TYPE=bin
2008 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2009         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2010 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2011         | tr \" " "`
2012 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2013 MONTH=`echo $DATE | awk -F- '{print $2}'`
2014 YEAR=`echo $DATE | awk -F- '{print $3}'`
2015
2016 if expr $YEAR ">" 1900 > /dev/null ; then
2017         E2FSPROGS_YEAR=$YEAR
2018 elif expr $YEAR ">" 90 >/dev/null ; then
2019         E2FSPROGS_YEAR=19$YEAR
2020 else
2021         E2FSPROGS_YEAR=20$YEAR
2022 fi
2023
2024 case $MONTH in
2025 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2026 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2027 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2028 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2029 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2030 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2031 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2032 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2033 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2034 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2035 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2036 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2037 *)      { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2038 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2039 esac
2040
2041 base_ver=`echo $E2FSPROGS_VERSION | \
2042                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2043
2044 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2045
2046 case $E2FSPROGS_VERSION in
2047 *-WIP|pre-*)
2048         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2049         ;;
2050 *)
2051         E2FSPROGS_PKGVER="$base_ver"
2052         ;;
2053 esac
2054
2055 unset DATE MONTH YEAR base_ver pre_vers date_spec
2056 { $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2057 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2058 { $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2059 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2060
2061
2062
2063
2064
2065 # Make sure we can run config.sub.
2066 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2067   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2068 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2069    { (exit 1); exit 1; }; }
2070
2071 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2072 $as_echo_n "checking build system type... " >&6; }
2073 if test "${ac_cv_build+set}" = set; then
2074   $as_echo_n "(cached) " >&6
2075 else
2076   ac_build_alias=$build_alias
2077 test "x$ac_build_alias" = x &&
2078   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2079 test "x$ac_build_alias" = x &&
2080   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2081 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2082    { (exit 1); exit 1; }; }
2083 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2084   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2085 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2086    { (exit 1); exit 1; }; }
2087
2088 fi
2089 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2090 $as_echo "$ac_cv_build" >&6; }
2091 case $ac_cv_build in
2092 *-*-*) ;;
2093 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2094 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2095    { (exit 1); exit 1; }; };;
2096 esac
2097 build=$ac_cv_build
2098 ac_save_IFS=$IFS; IFS='-'
2099 set x $ac_cv_build
2100 shift
2101 build_cpu=$1
2102 build_vendor=$2
2103 shift; shift
2104 # Remember, the first character of IFS is used to create $*,
2105 # except with old shells:
2106 build_os=$*
2107 IFS=$ac_save_IFS
2108 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2109
2110
2111 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2112 $as_echo_n "checking host system type... " >&6; }
2113 if test "${ac_cv_host+set}" = set; then
2114   $as_echo_n "(cached) " >&6
2115 else
2116   if test "x$host_alias" = x; then
2117   ac_cv_host=$ac_cv_build
2118 else
2119   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2120     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2121 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2122    { (exit 1); exit 1; }; }
2123 fi
2124
2125 fi
2126 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2127 $as_echo "$ac_cv_host" >&6; }
2128 case $ac_cv_host in
2129 *-*-*) ;;
2130 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2131 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2132    { (exit 1); exit 1; }; };;
2133 esac
2134 host=$ac_cv_host
2135 ac_save_IFS=$IFS; IFS='-'
2136 set x $ac_cv_host
2137 shift
2138 host_cpu=$1
2139 host_vendor=$2
2140 shift; shift
2141 # Remember, the first character of IFS is used to create $*,
2142 # except with old shells:
2143 host_os=$*
2144 IFS=$ac_save_IFS
2145 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2146
2147
2148 WITH_DIET_LIBC=
2149
2150 # Check whether --with-diet-libc was given.
2151 if test "${with_diet_libc+set}" = set; then
2152   withval=$with_diet_libc; CC="diet cc -nostdinc"
2153 WITH_DIET_LIBC=yes
2154 { $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2155 $as_echo "CC=$CC" >&6; }
2156 fi
2157
2158 # Check whether --with-cc was given.
2159 if test "${with_cc+set}" = set; then
2160   withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5
2161 $as_echo "CC=$withval" >&6; }
2162 CC=$withval
2163 else
2164   if test -z "$CC" ; then CC=cc; fi
2165 { $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2166 $as_echo "CC defaults to $CC" >&6; }
2167 fi
2168 export CC
2169
2170 ac_ext=c
2171 ac_cpp='$CPP $CPPFLAGS'
2172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175 if test -n "$ac_tool_prefix"; then
2176   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181   $as_echo_n "(cached) " >&6
2182 else
2183   if test -n "$CC"; then
2184   ac_cv_prog_CC="$CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199 IFS=$as_save_IFS
2200
2201 fi
2202 fi
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2207 else
2208   { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2210 fi
2211
2212
2213 fi
2214 if test -z "$ac_cv_prog_CC"; then
2215   ac_ct_CC=$CC
2216   # Extract the first word of "gcc", so it can be a program name with args.
2217 set dummy gcc; ac_word=$2
2218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 $as_echo_n "checking for $ac_word... " >&6; }
2220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2221   $as_echo_n "(cached) " >&6
2222 else
2223   if test -n "$ac_ct_CC"; then
2224   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229   IFS=$as_save_IFS
2230   test -z "$as_dir" && as_dir=.
2231   for ac_exec_ext in '' $ac_executable_extensions; do
2232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233     ac_cv_prog_ac_ct_CC="gcc"
2234     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239 IFS=$as_save_IFS
2240
2241 fi
2242 fi
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 $as_echo "$ac_ct_CC" >&6; }
2247 else
2248   { $as_echo "$as_me:$LINENO: result: no" >&5
2249 $as_echo "no" >&6; }
2250 fi
2251
2252   if test "x$ac_ct_CC" = x; then
2253     CC=""
2254   else
2255     case $cross_compiling:$ac_tool_warned in
2256 yes:)
2257 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2259 ac_tool_warned=yes ;;
2260 esac
2261     CC=$ac_ct_CC
2262   fi
2263 else
2264   CC="$ac_cv_prog_CC"
2265 fi
2266
2267 if test -z "$CC"; then
2268           if test -n "$ac_tool_prefix"; then
2269     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}cc; ac_word=$2
2271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if test "${ac_cv_prog_CC+set}" = set; then
2274   $as_echo_n "(cached) " >&6
2275 else
2276   if test -n "$CC"; then
2277   ac_cv_prog_CC="$CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_exec_ext in '' $ac_executable_extensions; do
2285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286     ac_cv_prog_CC="${ac_tool_prefix}cc"
2287     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291 done
2292 IFS=$as_save_IFS
2293
2294 fi
2295 fi
2296 CC=$ac_cv_prog_CC
2297 if test -n "$CC"; then
2298   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2299 $as_echo "$CC" >&6; }
2300 else
2301   { $as_echo "$as_me:$LINENO: result: no" >&5
2302 $as_echo "no" >&6; }
2303 fi
2304
2305
2306   fi
2307 fi
2308 if test -z "$CC"; then
2309   # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314   $as_echo_n "(cached) " >&6
2315 else
2316   if test -n "$CC"; then
2317   ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319   ac_prog_rejected=no
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2328        ac_prog_rejected=yes
2329        continue
2330      fi
2331     ac_cv_prog_CC="cc"
2332     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333     break 2
2334   fi
2335 done
2336 done
2337 IFS=$as_save_IFS
2338
2339 if test $ac_prog_rejected = yes; then
2340   # We found a bogon in the path, so make sure we never use it.
2341   set dummy $ac_cv_prog_CC
2342   shift
2343   if test $# != 0; then
2344     # We chose a different compiler from the bogus one.
2345     # However, it has the same basename, so the bogon will be chosen
2346     # first if we set CC to just the basename; use the full file name.
2347     shift
2348     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2349   fi
2350 fi
2351 fi
2352 fi
2353 CC=$ac_cv_prog_CC
2354 if test -n "$CC"; then
2355   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2356 $as_echo "$CC" >&6; }
2357 else
2358   { $as_echo "$as_me:$LINENO: result: no" >&5
2359 $as_echo "no" >&6; }
2360 fi
2361
2362
2363 fi
2364 if test -z "$CC"; then
2365   if test -n "$ac_tool_prefix"; then
2366   for ac_prog in cl.exe
2367   do
2368     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 $as_echo_n "checking for $ac_word... " >&6; }
2372 if test "${ac_cv_prog_CC+set}" = set; then
2373   $as_echo_n "(cached) " >&6
2374 else
2375   if test -n "$CC"; then
2376   ac_cv_prog_CC="$CC" # Let the user override the test.
2377 else
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2380 do
2381   IFS=$as_save_IFS
2382   test -z "$as_dir" && as_dir=.
2383   for ac_exec_ext in '' $ac_executable_extensions; do
2384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387     break 2
2388   fi
2389 done
2390 done
2391 IFS=$as_save_IFS
2392
2393 fi
2394 fi
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2398 $as_echo "$CC" >&6; }
2399 else
2400   { $as_echo "$as_me:$LINENO: result: no" >&5
2401 $as_echo "no" >&6; }
2402 fi
2403
2404
2405     test -n "$CC" && break
2406   done
2407 fi
2408 if test -z "$CC"; then
2409   ac_ct_CC=$CC
2410   for ac_prog in cl.exe
2411 do
2412   # Extract the first word of "$ac_prog", so it can be a program name with args.
2413 set dummy $ac_prog; ac_word=$2
2414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2417   $as_echo_n "(cached) " >&6
2418 else
2419   if test -n "$ac_ct_CC"; then
2420   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425   IFS=$as_save_IFS
2426   test -z "$as_dir" && as_dir=.
2427   for ac_exec_ext in '' $ac_executable_extensions; do
2428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429     ac_cv_prog_ac_ct_CC="$ac_prog"
2430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431     break 2
2432   fi
2433 done
2434 done
2435 IFS=$as_save_IFS
2436
2437 fi
2438 fi
2439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2440 if test -n "$ac_ct_CC"; then
2441   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2442 $as_echo "$ac_ct_CC" >&6; }
2443 else
2444   { $as_echo "$as_me:$LINENO: result: no" >&5
2445 $as_echo "no" >&6; }
2446 fi
2447
2448
2449   test -n "$ac_ct_CC" && break
2450 done
2451
2452   if test "x$ac_ct_CC" = x; then
2453     CC=""
2454   else
2455     case $cross_compiling:$ac_tool_warned in
2456 yes:)
2457 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2460 esac
2461     CC=$ac_ct_CC
2462   fi
2463 fi
2464
2465 fi
2466
2467
2468 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2471 See \`config.log' for more details." >&5
2472 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2473 See \`config.log' for more details." >&2;}
2474    { (exit 1); exit 1; }; }; }
2475
2476 # Provide some information about the compiler.
2477 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2478 set X $ac_compile
2479 ac_compiler=$2
2480 { (ac_try="$ac_compiler --version >&5"
2481 case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2486 $as_echo "$ac_try_echo") >&5
2487   (eval "$ac_compiler --version >&5") 2>&5
2488   ac_status=$?
2489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }
2491 { (ac_try="$ac_compiler -v >&5"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2497 $as_echo "$ac_try_echo") >&5
2498   (eval "$ac_compiler -v >&5") 2>&5
2499   ac_status=$?
2500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }
2502 { (ac_try="$ac_compiler -V >&5"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2508 $as_echo "$ac_try_echo") >&5
2509   (eval "$ac_compiler -V >&5") 2>&5
2510   ac_status=$?
2511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }
2513
2514 cat >conftest.$ac_ext <<_ACEOF
2515 /* confdefs.h.  */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h.  */
2520
2521 int
2522 main ()
2523 {
2524
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 ac_clean_files_save=$ac_clean_files
2530 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2531 # Try to create an executable without -o first, disregard a.out.
2532 # It will help us diagnose broken compilers, and finding out an intuition
2533 # of exeext.
2534 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2535 $as_echo_n "checking for C compiler default output file name... " >&6; }
2536 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2537
2538 # The possible output files:
2539 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2540
2541 ac_rmfiles=
2542 for ac_file in $ac_files
2543 do
2544   case $ac_file in
2545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2546     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2547   esac
2548 done
2549 rm -f $ac_rmfiles
2550
2551 if { (ac_try="$ac_link_default"
2552 case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2557 $as_echo "$ac_try_echo") >&5
2558   (eval "$ac_link_default") 2>&5
2559   ac_status=$?
2560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; then
2562   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2563 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2564 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2565 # so that the user can short-circuit this test for compilers unknown to
2566 # Autoconf.
2567 for ac_file in $ac_files ''
2568 do
2569   test -f "$ac_file" || continue
2570   case $ac_file in
2571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2572         ;;
2573     [ab].out )
2574         # We found the default executable, but exeext='' is most
2575         # certainly right.
2576         break;;
2577     *.* )
2578         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2579         then :; else
2580            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581         fi
2582         # We set ac_cv_exeext here because the later test for it is not
2583         # safe: cross compilers may not add the suffix if given an `-o'
2584         # argument, so we may need to know it at that point already.
2585         # Even if this section looks crufty: it has the advantage of
2586         # actually working.
2587         break;;
2588     * )
2589         break;;
2590   esac
2591 done
2592 test "$ac_cv_exeext" = no && ac_cv_exeext=
2593
2594 else
2595   ac_file=''
2596 fi
2597
2598 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2599 $as_echo "$ac_file" >&6; }
2600 if test -z "$ac_file"; then
2601   $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2607 See \`config.log' for more details." >&5
2608 $as_echo "$as_me: error: C compiler cannot create executables
2609 See \`config.log' for more details." >&2;}
2610    { (exit 77); exit 77; }; }; }
2611 fi
2612
2613 ac_exeext=$ac_cv_exeext
2614
2615 # Check that the compiler produces executables we can run.  If not, either
2616 # the compiler is broken, or we cross compile.
2617 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2618 $as_echo_n "checking whether the C compiler works... " >&6; }
2619 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2620 # If not cross compiling, check that we can run a simple program.
2621 if test "$cross_compiling" != yes; then
2622   if { ac_try='./$ac_file'
2623   { (case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2628 $as_echo "$ac_try_echo") >&5
2629   (eval "$ac_try") 2>&5
2630   ac_status=$?
2631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633     cross_compiling=no
2634   else
2635     if test "$cross_compiling" = maybe; then
2636         cross_compiling=yes
2637     else
2638         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'.
2642 See \`config.log' for more details." >&5
2643 $as_echo "$as_me: error: cannot run C compiled programs.
2644 If you meant to cross compile, use \`--host'.
2645 See \`config.log' for more details." >&2;}
2646    { (exit 1); exit 1; }; }; }
2647     fi
2648   fi
2649 fi
2650 { $as_echo "$as_me:$LINENO: result: yes" >&5
2651 $as_echo "yes" >&6; }
2652
2653 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2654 ac_clean_files=$ac_clean_files_save
2655 # Check that the compiler produces executables we can run.  If not, either
2656 # the compiler is broken, or we cross compile.
2657 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2658 $as_echo_n "checking whether we are cross compiling... " >&6; }
2659 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2660 $as_echo "$cross_compiling" >&6; }
2661
2662 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2663 $as_echo_n "checking for suffix of executables... " >&6; }
2664 if { (ac_try="$ac_link"
2665 case "(($ac_try" in
2666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667   *) ac_try_echo=$ac_try;;
2668 esac
2669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2670 $as_echo "$ac_try_echo") >&5
2671   (eval "$ac_link") 2>&5
2672   ac_status=$?
2673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; then
2675   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2677 # work properly (i.e., refer to `conftest.exe'), while it won't with
2678 # `rm'.
2679 for ac_file in conftest.exe conftest conftest.*; do
2680   test -f "$ac_file" || continue
2681   case $ac_file in
2682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2683     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684           break;;
2685     * ) break;;
2686   esac
2687 done
2688 else
2689   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2692 See \`config.log' for more details." >&5
2693 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2694 See \`config.log' for more details." >&2;}
2695    { (exit 1); exit 1; }; }; }
2696 fi
2697
2698 rm -f conftest$ac_cv_exeext
2699 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2700 $as_echo "$ac_cv_exeext" >&6; }
2701
2702 rm -f conftest.$ac_ext
2703 EXEEXT=$ac_cv_exeext
2704 ac_exeext=$EXEEXT
2705 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2706 $as_echo_n "checking for suffix of object files... " >&6; }
2707 if test "${ac_cv_objext+set}" = set; then
2708   $as_echo_n "(cached) " >&6
2709 else
2710   cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716
2717 int
2718 main ()
2719 {
2720
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.o conftest.obj
2726 if { (ac_try="$ac_compile"
2727 case "(($ac_try" in
2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729   *) ac_try_echo=$ac_try;;
2730 esac
2731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732 $as_echo "$ac_try_echo") >&5
2733   (eval "$ac_compile") 2>&5
2734   ac_status=$?
2735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; then
2737   for ac_file in conftest.o conftest.obj conftest.*; do
2738   test -f "$ac_file" || continue;
2739   case $ac_file in
2740     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2741     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2742        break;;
2743   esac
2744 done
2745 else
2746   $as_echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2752 See \`config.log' for more details." >&5
2753 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2754 See \`config.log' for more details." >&2;}
2755    { (exit 1); exit 1; }; }; }
2756 fi
2757
2758 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2759 fi
2760 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2761 $as_echo "$ac_cv_objext" >&6; }
2762 OBJEXT=$ac_cv_objext
2763 ac_objext=$OBJEXT
2764 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2765 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2767   $as_echo_n "(cached) " >&6
2768 else
2769   cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779 #ifndef __GNUC__
2780        choke me
2781 #endif
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (ac_try="$ac_compile"
2789 case "(($ac_try" in
2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791   *) ac_try_echo=$ac_try;;
2792 esac
2793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2794 $as_echo "$ac_try_echo") >&5
2795   (eval "$ac_compile") 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } && {
2802          test -z "$ac_c_werror_flag" ||
2803          test ! -s conftest.err
2804        } && test -s conftest.$ac_objext; then
2805   ac_compiler_gnu=yes
2806 else
2807   $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810         ac_compiler_gnu=no
2811 fi
2812
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2815
2816 fi
2817 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2818 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2819 if test $ac_compiler_gnu = yes; then
2820   GCC=yes
2821 else
2822   GCC=
2823 fi
2824 ac_test_CFLAGS=${CFLAGS+set}
2825 ac_save_CFLAGS=$CFLAGS
2826 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2827 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2828 if test "${ac_cv_prog_cc_g+set}" = set; then
2829   $as_echo_n "(cached) " >&6
2830 else
2831   ac_save_c_werror_flag=$ac_c_werror_flag
2832    ac_c_werror_flag=yes
2833    ac_cv_prog_cc_g=no
2834    CFLAGS="-g"
2835    cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h.  */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h.  */
2841
2842 int
2843 main ()
2844 {
2845
2846   ;
2847   return 0;
2848 }
2849 _ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (ac_try="$ac_compile"
2852 case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858   (eval "$ac_compile") 2>conftest.er1
2859   ac_status=$?
2860   grep -v '^ *+' conftest.er1 >conftest.err
2861   rm -f conftest.er1
2862   cat conftest.err >&5
2863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); } && {
2865          test -z "$ac_c_werror_flag" ||
2866          test ! -s conftest.err
2867        } && test -s conftest.$ac_objext; then
2868   ac_cv_prog_cc_g=yes
2869 else
2870   $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873         CFLAGS=""
2874       cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h.  */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h.  */
2880
2881 int
2882 main ()
2883 {
2884
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896 $as_echo "$ac_try_echo") >&5
2897   (eval "$ac_compile") 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } && {
2904          test -z "$ac_c_werror_flag" ||
2905          test ! -s conftest.err
2906        } && test -s conftest.$ac_objext; then
2907   :
2908 else
2909   $as_echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912         ac_c_werror_flag=$ac_save_c_werror_flag
2913          CFLAGS="-g"
2914          cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920
2921 int
2922 main ()
2923 {
2924
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936 $as_echo "$ac_try_echo") >&5
2937   (eval "$ac_compile") 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } && {
2944          test -z "$ac_c_werror_flag" ||
2945          test ! -s conftest.err
2946        } && test -s conftest.$ac_objext; then
2947   ac_cv_prog_cc_g=yes
2948 else
2949   $as_echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952
2953 fi
2954
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 fi
2957
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959 fi
2960
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962    ac_c_werror_flag=$ac_save_c_werror_flag
2963 fi
2964 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2965 $as_echo "$ac_cv_prog_cc_g" >&6; }
2966 if test "$ac_test_CFLAGS" = set; then
2967   CFLAGS=$ac_save_CFLAGS
2968 elif test $ac_cv_prog_cc_g = yes; then
2969   if test "$GCC" = yes; then
2970     CFLAGS="-g -O2"
2971   else
2972     CFLAGS="-g"
2973   fi
2974 else
2975   if test "$GCC" = yes; then
2976     CFLAGS="-O2"
2977   else
2978     CFLAGS=
2979   fi
2980 fi
2981 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2982 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2983 if test "${ac_cv_prog_cc_c89+set}" = set; then
2984   $as_echo_n "(cached) " >&6
2985 else
2986   ac_cv_prog_cc_c89=no
2987 ac_save_CC=$CC
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994 #include <stdarg.h>
2995 #include <stdio.h>
2996 #include <sys/types.h>
2997 #include <sys/stat.h>
2998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2999 struct buf { int x; };
3000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001 static char *e (p, i)
3002      char **p;
3003      int i;
3004 {
3005   return p[i];
3006 }
3007 static char *f (char * (*g) (char **, int), char **p, ...)
3008 {
3009   char *s;
3010   va_list v;
3011   va_start (v,p);
3012   s = g (p, va_arg (v,int));
3013   va_end (v);
3014   return s;
3015 }
3016
3017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3018    function prototypes and stuff, but not '\xHH' hex character constants.
3019    These don't provoke an error unfortunately, instead are silently treated
3020    as 'x'.  The following induces an error, until -std is added to get
3021    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3022    array size at least.  It's necessary to write '\x00'==0 to get something
3023    that's true only with -std.  */
3024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3025
3026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3027    inside strings and character constants.  */
3028 #define FOO(x) 'x'
3029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3030
3031 int test (int i, double x);
3032 struct s1 {int (*f) (int a);};
3033 struct s2 {int (*f) (double a);};
3034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3035 int argc;
3036 char **argv;
3037 int
3038 main ()
3039 {
3040 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3046         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3047 do
3048   CC="$ac_save_CC $ac_arg"
3049   rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3051 case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3056 $as_echo "$ac_try_echo") >&5
3057   (eval "$ac_compile") 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } && {
3064          test -z "$ac_c_werror_flag" ||
3065          test ! -s conftest.err
3066        } && test -s conftest.$ac_objext; then
3067   ac_cv_prog_cc_c89=$ac_arg
3068 else
3069   $as_echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072
3073 fi
3074
3075 rm -f core conftest.err conftest.$ac_objext
3076   test "x$ac_cv_prog_cc_c89" != "xno" && break
3077 done
3078 rm -f conftest.$ac_ext
3079 CC=$ac_save_CC
3080
3081 fi
3082 # AC_CACHE_VAL
3083 case "x$ac_cv_prog_cc_c89" in
3084   x)
3085     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3086 $as_echo "none needed" >&6; } ;;
3087   xno)
3088     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3089 $as_echo "unsupported" >&6; } ;;
3090   *)
3091     CC="$CC $ac_cv_prog_cc_c89"
3092     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3093 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3094 esac
3095
3096
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
3103 ac_ext=c
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3110 # On Suns, sometimes $CPP names a directory.
3111 if test -n "$CPP" && test -d "$CPP"; then
3112   CPP=
3113 fi
3114 if test -z "$CPP"; then
3115   if test "${ac_cv_prog_CPP+set}" = set; then
3116   $as_echo_n "(cached) " >&6
3117 else
3118       # Double quotes because CPP needs to be expanded
3119     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3120     do
3121       ac_preproc_ok=false
3122 for ac_c_preproc_warn_flag in '' yes
3123 do
3124   # Use a header file that comes with gcc, so configuring glibc
3125   # with a fresh cross-compiler works.
3126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127   # <limits.h> exists even on freestanding compilers.
3128   # On the NeXT, cc -E runs the code through the compiler's parser,
3129   # not just through cpp. "Syntax error" is here to catch this case.
3130   cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136 #ifdef __STDC__
3137 # include <limits.h>
3138 #else
3139 # include <assert.h>
3140 #endif
3141                      Syntax error
3142 _ACEOF
3143 if { (ac_try="$ac_cpp conftest.$ac_ext"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149 $as_echo "$ac_try_echo") >&5
3150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } >/dev/null && {
3157          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3158          test ! -s conftest.err
3159        }; then
3160   :
3161 else
3162   $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165   # Broken: fails on valid input.
3166 continue
3167 fi
3168
3169 rm -f conftest.err conftest.$ac_ext
3170
3171   # OK, works on sane cases.  Now check whether nonexistent headers
3172   # can be detected and how.
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179 #include <ac_nonexistent.h>
3180 _ACEOF
3181 if { (ac_try="$ac_cpp conftest.$ac_ext"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3187 $as_echo "$ac_try_echo") >&5
3188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3189   ac_status=$?
3190   grep -v '^ *+' conftest.er1 >conftest.err
3191   rm -f conftest.er1
3192   cat conftest.err >&5
3193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); } >/dev/null && {
3195          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3196          test ! -s conftest.err
3197        }; then
3198   # Broken: success on invalid input.
3199 continue
3200 else
3201   $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204   # Passes both tests.
3205 ac_preproc_ok=:
3206 break
3207 fi
3208
3209 rm -f conftest.err conftest.$ac_ext
3210
3211 done
3212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3213 rm -f conftest.err conftest.$ac_ext
3214 if $ac_preproc_ok; then
3215   break
3216 fi
3217
3218     done
3219     ac_cv_prog_CPP=$CPP
3220
3221 fi
3222   CPP=$ac_cv_prog_CPP
3223 else
3224   ac_cv_prog_CPP=$CPP
3225 fi
3226 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3227 $as_echo "$CPP" >&6; }
3228 ac_preproc_ok=false
3229 for ac_c_preproc_warn_flag in '' yes
3230 do
3231   # Use a header file that comes with gcc, so configuring glibc
3232   # with a fresh cross-compiler works.
3233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234   # <limits.h> exists even on freestanding compilers.
3235   # On the NeXT, cc -E runs the code through the compiler's parser,
3236   # not just through cpp. "Syntax error" is here to catch this case.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #ifdef __STDC__
3244 # include <limits.h>
3245 #else
3246 # include <assert.h>
3247 #endif
3248                      Syntax error
3249 _ACEOF
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258   ac_status=$?
3259   grep -v '^ *+' conftest.er1 >conftest.err
3260   rm -f conftest.er1
3261   cat conftest.err >&5
3262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); } >/dev/null && {
3264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3265          test ! -s conftest.err
3266        }; then
3267   :
3268 else
3269   $as_echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3271
3272   # Broken: fails on valid input.
3273 continue
3274 fi
3275
3276 rm -f conftest.err conftest.$ac_ext
3277
3278   # OK, works on sane cases.  Now check whether nonexistent headers
3279   # can be detected and how.
3280   cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286 #include <ac_nonexistent.h>
3287 _ACEOF
3288 if { (ac_try="$ac_cpp conftest.$ac_ext"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3294 $as_echo "$ac_try_echo") >&5
3295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } >/dev/null && {
3302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3303          test ! -s conftest.err
3304        }; then
3305   # Broken: success on invalid input.
3306 continue
3307 else
3308   $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311   # Passes both tests.
3312 ac_preproc_ok=:
3313 break
3314 fi
3315
3316 rm -f conftest.err conftest.$ac_ext
3317
3318 done
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3322   :
3323 else
3324   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3327 See \`config.log' for more details." >&5
3328 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3329 See \`config.log' for more details." >&2;}
3330    { (exit 1); exit 1; }; }; }
3331 fi
3332
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
3339
3340 # Check whether --with-linker was given.
3341 if test "${with_linker+set}" = set; then
3342   withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5
3343 $as_echo "LD=$withval" >&6; }
3344 LD=$withval
3345 else
3346   if test -z "$LD" ; then LD=$CC; fi
3347 { $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3348 $as_echo "LD defaults to $LD" >&6; }
3349 fi
3350 export LD
3351
3352
3353 # Check whether --with-ccopts was given.
3354 if test "${with_ccopts+set}" = set; then
3355   withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3356 $as_echo "CCOPTS is $withval" >&6; }
3357 CFLAGS=$withval
3358 fi
3359
3360
3361 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3362 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3363 if test "${ac_cv_path_GREP+set}" = set; then
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if test -z "$GREP"; then
3367   ac_path_GREP_found=false
3368   # Loop through the user's path and test for each of PROGNAME-LIST
3369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374   for ac_prog in grep ggrep; do
3375     for ac_exec_ext in '' $ac_executable_extensions; do
3376       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3377       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3378 # Check for GNU ac_path_GREP and select it if it is found.
3379   # Check for GNU $ac_path_GREP
3380 case `"$ac_path_GREP" --version 2>&1` in
3381 *GNU*)
3382   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3383 *)
3384   ac_count=0
3385   $as_echo_n 0123456789 >"conftest.in"
3386   while :
3387   do
3388     cat "conftest.in" "conftest.in" >"conftest.tmp"
3389     mv "conftest.tmp" "conftest.in"
3390     cp "conftest.in" "conftest.nl"
3391     $as_echo 'GREP' >> "conftest.nl"
3392     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3393     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3394     ac_count=`expr $ac_count + 1`
3395     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3396       # Best one so far, save it but keep looking for a better one
3397       ac_cv_path_GREP="$ac_path_GREP"
3398       ac_path_GREP_max=$ac_count
3399     fi
3400     # 10*(2^10) chars as input seems more than enough
3401     test $ac_count -gt 10 && break
3402   done
3403   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3404 esac
3405
3406       $ac_path_GREP_found && break 3
3407     done
3408   done
3409 done
3410 IFS=$as_save_IFS
3411   if test -z "$ac_cv_path_GREP"; then
3412     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3413 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3414    { (exit 1); exit 1; }; }
3415   fi
3416 else
3417   ac_cv_path_GREP=$GREP
3418 fi
3419
3420 fi
3421 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3422 $as_echo "$ac_cv_path_GREP" >&6; }
3423  GREP="$ac_cv_path_GREP"
3424
3425
3426 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3427 $as_echo_n "checking for egrep... " >&6; }
3428 if test "${ac_cv_path_EGREP+set}" = set; then
3429   $as_echo_n "(cached) " >&6
3430 else
3431   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3432    then ac_cv_path_EGREP="$GREP -E"
3433    else
3434      if test -z "$EGREP"; then
3435   ac_path_EGREP_found=false
3436   # Loop through the user's path and test for each of PROGNAME-LIST
3437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442   for ac_prog in egrep; do
3443     for ac_exec_ext in '' $ac_executable_extensions; do
3444       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3445       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3446 # Check for GNU ac_path_EGREP and select it if it is found.
3447   # Check for GNU $ac_path_EGREP
3448 case `"$ac_path_EGREP" --version 2>&1` in
3449 *GNU*)
3450   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3451 *)
3452   ac_count=0
3453   $as_echo_n 0123456789 >"conftest.in"
3454   while :
3455   do
3456     cat "conftest.in" "conftest.in" >"conftest.tmp"
3457     mv "conftest.tmp" "conftest.in"
3458     cp "conftest.in" "conftest.nl"
3459     $as_echo 'EGREP' >> "conftest.nl"
3460     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3461     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3462     ac_count=`expr $ac_count + 1`
3463     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3464       # Best one so far, save it but keep looking for a better one
3465       ac_cv_path_EGREP="$ac_path_EGREP"
3466       ac_path_EGREP_max=$ac_count
3467     fi
3468     # 10*(2^10) chars as input seems more than enough
3469     test $ac_count -gt 10 && break
3470   done
3471   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3472 esac
3473
3474       $ac_path_EGREP_found && break 3
3475     done
3476   done
3477 done
3478 IFS=$as_save_IFS
3479   if test -z "$ac_cv_path_EGREP"; then
3480     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3481 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3482    { (exit 1); exit 1; }; }
3483   fi
3484 else
3485   ac_cv_path_EGREP=$EGREP
3486 fi
3487
3488    fi
3489 fi
3490 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3491 $as_echo "$ac_cv_path_EGREP" >&6; }
3492  EGREP="$ac_cv_path_EGREP"
3493
3494
3495 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3496 $as_echo_n "checking for ANSI C header files... " >&6; }
3497 if test "${ac_cv_header_stdc+set}" = set; then
3498   $as_echo_n "(cached) " >&6
3499 else
3500   cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <stdlib.h>
3507 #include <stdarg.h>
3508 #include <string.h>
3509 #include <float.h>
3510
3511 int
3512 main ()
3513 {
3514
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3521 case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } && {
3534          test -z "$ac_c_werror_flag" ||
3535          test ! -s conftest.err
3536        } && test -s conftest.$ac_objext; then
3537   ac_cv_header_stdc=yes
3538 else
3539   $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542         ac_cv_header_stdc=no
3543 fi
3544
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546
3547 if test $ac_cv_header_stdc = yes; then
3548   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3549   cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555 #include <string.h>
3556
3557 _ACEOF
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559   $EGREP "memchr" >/dev/null 2>&1; then
3560   :
3561 else
3562   ac_cv_header_stdc=no
3563 fi
3564 rm -f conftest*
3565
3566 fi
3567
3568 if test $ac_cv_header_stdc = yes; then
3569   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570   cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #include <stdlib.h>
3577
3578 _ACEOF
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580   $EGREP "free" >/dev/null 2>&1; then
3581   :
3582 else
3583   ac_cv_header_stdc=no
3584 fi
3585 rm -f conftest*
3586
3587 fi
3588
3589 if test $ac_cv_header_stdc = yes; then
3590   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3591   if test "$cross_compiling" = yes; then
3592   :
3593 else
3594   cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <ctype.h>
3601 #include <stdlib.h>
3602 #if ((' ' & 0x0FF) == 0x020)
3603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3605 #else
3606 # define ISLOWER(c) \
3607                    (('a' <= (c) && (c) <= 'i') \
3608                      || ('j' <= (c) && (c) <= 'r') \
3609                      || ('s' <= (c) && (c) <= 'z'))
3610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3611 #endif
3612
3613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3614 int
3615 main ()
3616 {
3617   int i;
3618   for (i = 0; i < 256; i++)
3619     if (XOR (islower (i), ISLOWER (i))
3620         || toupper (i) != TOUPPER (i))
3621       return 2;
3622   return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest$ac_exeext
3626 if { (ac_try="$ac_link"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3632 $as_echo "$ac_try_echo") >&5
3633   (eval "$ac_link") 2>&5
3634   ac_status=$?
3635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3637   { (case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643   (eval "$ac_try") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; }; then
3647   :
3648 else
3649   $as_echo "$as_me: program exited with status $ac_status" >&5
3650 $as_echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 ( exit $ac_status )
3654 ac_cv_header_stdc=no
3655 fi
3656 rm -rf conftest.dSYM
3657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3658 fi
3659
3660
3661 fi
3662 fi
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3664 $as_echo "$ac_cv_header_stdc" >&6; }
3665 if test $ac_cv_header_stdc = yes; then
3666
3667 cat >>confdefs.h <<\_ACEOF
3668 #define STDC_HEADERS 1
3669 _ACEOF
3670
3671 fi
3672
3673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3684                   inttypes.h stdint.h unistd.h
3685 do
3686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3687 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3688 $as_echo_n "checking for $ac_header... " >&6; }
3689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3690   $as_echo_n "(cached) " >&6
3691 else
3692   cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h.  */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h.  */
3698 $ac_includes_default
3699
3700 #include <$ac_header>
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710   (eval "$ac_compile") 2>conftest.er1
3711   ac_status=$?
3712   grep -v '^ *+' conftest.er1 >conftest.err
3713   rm -f conftest.er1
3714   cat conftest.err >&5
3715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } && {
3717          test -z "$ac_c_werror_flag" ||
3718          test ! -s conftest.err
3719        } && test -s conftest.$ac_objext; then
3720   eval "$as_ac_Header=yes"
3721 else
3722   $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725         eval "$as_ac_Header=no"
3726 fi
3727
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 fi
3730 ac_res=`eval 'as_val=${'$as_ac_Header'}
3731                  $as_echo "$as_val"'`
3732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3733 $as_echo "$ac_res" >&6; }
3734 as_val=`eval 'as_val=${'$as_ac_Header'}
3735                  $as_echo "$as_val"'`
3736    if test "x$as_val" = x""yes; then
3737   cat >>confdefs.h <<_ACEOF
3738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3739 _ACEOF
3740
3741 fi
3742
3743 done
3744
3745
3746 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3747   { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3748 $as_echo_n "checking for linux/fs.h... " >&6; }
3749 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3750   $as_echo_n "(cached) " >&6
3751 fi
3752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3753 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3754 else
3755   # Is the header compilable?
3756 { $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3757 $as_echo_n "checking linux/fs.h usability... " >&6; }
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 $ac_includes_default
3765 #include <linux/fs.h>
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (ac_try="$ac_compile"
3769 case "(($ac_try" in
3770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771   *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3774 $as_echo "$ac_try_echo") >&5
3775   (eval "$ac_compile") 2>conftest.er1
3776   ac_status=$?
3777   grep -v '^ *+' conftest.er1 >conftest.err
3778   rm -f conftest.er1
3779   cat conftest.err >&5
3780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } && {
3782          test -z "$ac_c_werror_flag" ||
3783          test ! -s conftest.err
3784        } && test -s conftest.$ac_objext; then
3785   ac_header_compiler=yes
3786 else
3787   $as_echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790         ac_header_compiler=no
3791 fi
3792
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3795 $as_echo "$ac_header_compiler" >&6; }
3796
3797 # Is the header present?
3798 { $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3799 $as_echo_n "checking linux/fs.h presence... " >&6; }
3800 cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806 #include <linux/fs.h>
3807 _ACEOF
3808 if { (ac_try="$ac_cpp conftest.$ac_ext"
3809 case "(($ac_try" in
3810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811   *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3814 $as_echo "$ac_try_echo") >&5
3815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } >/dev/null && {
3822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3823          test ! -s conftest.err
3824        }; then
3825   ac_header_preproc=yes
3826 else
3827   $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830   ac_header_preproc=no
3831 fi
3832
3833 rm -f conftest.err conftest.$ac_ext
3834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3835 $as_echo "$ac_header_preproc" >&6; }
3836
3837 # So?  What about this header?
3838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3839   yes:no: )
3840     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3841 $as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3842     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3843 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3844     ac_header_preproc=yes
3845     ;;
3846   no:yes:* )
3847     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3848 $as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3849     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3850 $as_echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3851     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3852 $as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3853     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3854 $as_echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3855     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3856 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3857     { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3858 $as_echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3859
3860     ;;
3861 esac
3862 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3863 $as_echo_n "checking for linux/fs.h... " >&6; }
3864 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3865   $as_echo_n "(cached) " >&6
3866 else
3867   ac_cv_header_linux_fs_h=$ac_header_preproc
3868 fi
3869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3870 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3871
3872 fi
3873 if test "x$ac_cv_header_linux_fs_h" = x""yes; then
3874   linux_headers=yes
3875 else
3876   linux_headers=no
3877 fi
3878
3879
3880 if test "$linux_headers" != yes; then
3881   LINUX_INCLUDE='-I$(top_builddir)/include'
3882 fi
3883
3884 { $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3885 $as_echo_n "checking for additional special compiler flags... " >&6; }
3886 if test "$GCC" = yes
3887 then
3888     case "$host_cpu" in
3889         alpha)          addcflags="-mieee" ;;
3890     esac
3891 fi
3892 if test "x$addcflags" != x
3893 then
3894     { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3895 $as_echo "$addcflags" >&6; }
3896     CFLAGS="$addcflags $CFLAGS"
3897 else
3898     { $as_echo "$as_me:$LINENO: result: (none)" >&5
3899 $as_echo "(none)" >&6; }
3900 fi
3901 LIB_EXT=.a
3902 STATIC_LIB_EXT=.a
3903 PROFILED_LIB_EXT=.a
3904
3905 # Check whether --with-ldopts was given.
3906 if test "${with_ldopts+set}" = set; then
3907   withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3908 $as_echo "LDFLAGS is $withval" >&6; }
3909 LDFLAGS=$withval
3910 fi
3911
3912
3913 # Check whether --with-root-prefix was given.
3914 if test "${with_root_prefix+set}" = set; then
3915   withval=$with_root_prefix; root_prefix=$withval
3916 else
3917   root_prefix=NONE
3918 fi
3919 # Check whether --enable-maintainer-mode was given.
3920 if test "${enable_maintainer_mode+set}" = set; then
3921   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3922 then
3923         MAINTAINER_CMT=#
3924         { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3925 $as_echo "Disabling maintainer mode" >&6; }
3926 else
3927         MAINTAINER_CMT=
3928         { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3929 $as_echo "Enabling maintainer mode" >&6; }
3930 fi
3931
3932 else
3933   MAINTAINER_CMT=#
3934 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3935 $as_echo "Disabling maintainer mode by default" >&6; }
3936
3937 fi
3938
3939
3940 # Check whether --enable-compression was given.
3941 if test "${enable_compression+set}" = set; then
3942   enableval=$enable_compression; if test "$enableval" = "no"
3943 then
3944         { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3945 $as_echo "Disabling compression support" >&6; }
3946 else
3947         cat >>confdefs.h <<\_ACEOF
3948 #define ENABLE_COMPRESSION 1
3949 _ACEOF
3950
3951         { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3952 $as_echo "Enabling compression support" >&6; }
3953         { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3954 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
3955 fi
3956
3957 else
3958   { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3959 $as_echo "Disabling compression support by default" >&6; }
3960
3961 fi
3962
3963 # Check whether --enable-htree was given.
3964 if test "${enable_htree+set}" = set; then
3965   enableval=$enable_htree; if test "$enableval" = "no"
3966 then
3967         HTREE_CMT=#
3968         { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3969 $as_echo "Disabling htree directory support" >&6; }
3970 else
3971         HTREE_CMT=
3972         cat >>confdefs.h <<\_ACEOF
3973 #define ENABLE_HTREE 1
3974 _ACEOF
3975
3976         { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3977 $as_echo "Enabling htree directory support" >&6; }
3978 fi
3979
3980 else
3981   HTREE_CMT=
3982 cat >>confdefs.h <<\_ACEOF
3983 #define ENABLE_HTREE 1
3984 _ACEOF
3985
3986 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3987 $as_echo "Enabling htree directory support by default" >&6; }
3988
3989 fi
3990
3991
3992 E2_PKG_CONFIG_STATIC=--static
3993 LDFLAG_DYNAMIC=
3994 PRIVATE_LIBS_CMT=
3995 # Check whether --enable-elf-shlibs was given.
3996 if test "${enable_elf_shlibs+set}" = set; then
3997   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3998 then
3999         ELF_CMT=#
4000         MAKEFILE_ELF=/dev/null
4001         { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4002 $as_echo "Disabling ELF shared libraries" >&6; }
4003 else
4004         E2_PKG_CONFIG_STATIC=
4005         ELF_CMT=
4006         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4007         case "$host_os" in
4008         solaris2.*)
4009                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4010         ;;
4011         esac
4012         BINARY_TYPE=elfbin
4013         LIB_EXT=.so
4014         PRIVATE_LIBS_CMT=#
4015         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4016         { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4017 $as_echo "Enabling ELF shared libraries" >&6; }
4018 fi
4019
4020 else
4021   MAKEFILE_ELF=/dev/null
4022 ELF_CMT=#
4023 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4024 $as_echo "Disabling ELF shared libraries by default" >&6; }
4025
4026 fi
4027
4028
4029
4030 # Check whether --enable-bsd-shlibs was given.
4031 if test "${enable_bsd_shlibs+set}" = set; then
4032   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4033 then
4034         BSDLIB_CMT=#
4035         MAKEFILE_BSDLIB=/dev/null
4036         { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4037 $as_echo "Disabling BSD shared libraries" >&6; }
4038 else
4039         E2_PKG_CONFIG_STATIC=
4040         BSDLIB_CMT=
4041         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4042         LIB_EXT=.so
4043         case "$host_os" in
4044         darwin*)
4045                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4046                 LIB_EXT=.dylib
4047         ;;
4048         esac
4049         { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4050 $as_echo "Enabling BSD shared libraries" >&6; }
4051 fi
4052
4053 else
4054   MAKEFILE_BSDLIB=/dev/null
4055 BSDLIB_CMT=#
4056 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4057 $as_echo "Disabling BSD shared libraries by default" >&6; }
4058
4059 fi
4060
4061
4062
4063 # Check whether --enable-profile was given.
4064 if test "${enable_profile+set}" = set; then
4065   enableval=$enable_profile; if test "$enableval" = "no"
4066 then
4067         PROFILE_CMT=#
4068         MAKEFILE_PROFILE=/dev/null
4069         { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4070 $as_echo "Disabling profiling libraries" >&6; }
4071 else
4072         PROFILE_CMT=
4073         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4074         PROFILED_LIB_EXT=_p.a
4075         { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4076 $as_echo "Building profiling libraries" >&6; }
4077 fi
4078
4079 else
4080   PROFILE_CMT=#
4081 MAKEFILE_PROFILE=/dev/null
4082 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4083 $as_echo "Disabling profiling libraries by default" >&6; }
4084
4085 fi
4086
4087
4088
4089 # Check whether --enable-checker was given.
4090 if test "${enable_checker+set}" = set; then
4091   enableval=$enable_checker; if test "$enableval" = "no"
4092 then
4093         CHECKER_CMT=#
4094         MAKEFILE_CHECKER=/dev/null
4095         { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4096 $as_echo "Disabling checker libraries" >&6; }
4097 else
4098         CHECKER_CMT=
4099         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4100         { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4101 $as_echo "Building checker libraries" >&6; }
4102 fi
4103
4104 else
4105   CHECKER_CMT=#
4106 MAKEFILE_CHECKER=/dev/null
4107 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4108 $as_echo "Disabling checker libraries by default" >&6; }
4109
4110 fi
4111
4112
4113
4114
4115
4116
4117
4118
4119 # Check whether --enable-jbd-debug was given.
4120 if test "${enable_jbd_debug+set}" = set; then
4121   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4122 then
4123         { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4124 $as_echo "Disabling journal debugging" >&6; }
4125 else
4126         cat >>confdefs.h <<\_ACEOF
4127 #define CONFIG_JBD_DEBUG 1
4128 _ACEOF
4129
4130         { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4131 $as_echo "Enabling journal debugging" >&6; }
4132 fi
4133
4134 else
4135   { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4136 $as_echo "Disabling journal debugging by default" >&6; }
4137
4138 fi
4139
4140 # Check whether --enable-blkid-debug was given.
4141 if test "${enable_blkid_debug+set}" = set; then
4142   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4143 then
4144         { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4145 $as_echo "Disabling blkid debugging" >&6; }
4146 else
4147         cat >>confdefs.h <<\_ACEOF
4148 #define CONFIG_BLKID_DEBUG 1
4149 _ACEOF
4150
4151         { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4152 $as_echo "Enabling blkid debugging" >&6; }
4153 fi
4154
4155 else
4156   { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4157 $as_echo "Disabling blkid debugging by default" >&6; }
4158
4159 fi
4160
4161 # Check whether --enable-testio-debug was given.
4162 if test "${enable_testio_debug+set}" = set; then
4163   enableval=$enable_testio_debug; if test "$enableval" = "no"
4164 then
4165         { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4166 $as_echo "Disabling testio debugging" >&6; }
4167         TEST_IO_CMT="#"
4168 else
4169         TEST_IO_CMT=
4170         cat >>confdefs.h <<\_ACEOF
4171 #define CONFIG_TESTIO_DEBUG 1
4172 _ACEOF
4173
4174         { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4175 $as_echo "Enabling testio debugging" >&6; }
4176 fi
4177
4178 else
4179   { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4180 $as_echo "Enabling testio debugging by default" >&6; }
4181 cat >>confdefs.h <<\_ACEOF
4182 #define CONFIG_TESTIO_DEBUG 1
4183 _ACEOF
4184
4185 TEST_IO_CMT=
4186
4187 fi
4188
4189
4190
4191
4192 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4193         if test -n "$ac_tool_prefix"; then
4194   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4199   $as_echo_n "(cached) " >&6
4200 else
4201   case $PKG_CONFIG in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221   ;;
4222 esac
4223 fi
4224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4225 if test -n "$PKG_CONFIG"; then
4226   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4227 $as_echo "$PKG_CONFIG" >&6; }
4228 else
4229   { $as_echo "$as_me:$LINENO: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232
4233
4234 fi
4235 if test -z "$ac_cv_path_PKG_CONFIG"; then
4236   ac_pt_PKG_CONFIG=$PKG_CONFIG
4237   # Extract the first word of "pkg-config", so it can be a program name with args.
4238 set dummy pkg-config; ac_word=$2
4239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4242   $as_echo_n "(cached) " >&6
4243 else
4244   case $ac_pt_PKG_CONFIG in
4245   [\\/]* | ?:[\\/]*)
4246   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4247   ;;
4248   *)
4249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254   for ac_exec_ext in '' $ac_executable_extensions; do
4255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4257     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4263
4264   ;;
4265 esac
4266 fi
4267 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4268 if test -n "$ac_pt_PKG_CONFIG"; then
4269   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4270 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4271 else
4272   { $as_echo "$as_me:$LINENO: result: no" >&5
4273 $as_echo "no" >&6; }
4274 fi
4275
4276   if test "x$ac_pt_PKG_CONFIG" = x; then
4277     PKG_CONFIG=""
4278   else
4279     case $cross_compiling:$ac_tool_warned in
4280 yes:)
4281 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283 ac_tool_warned=yes ;;
4284 esac
4285     PKG_CONFIG=$ac_pt_PKG_CONFIG
4286   fi
4287 else
4288   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4289 fi
4290
4291 fi
4292 if test -n "$PKG_CONFIG"; then
4293         _pkg_min_version=0.9.0
4294         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4295 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4296         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4297                 { $as_echo "$as_me:$LINENO: result: yes" >&5
4298 $as_echo "yes" >&6; }
4299         else
4300                 { $as_echo "$as_me:$LINENO: result: no" >&5
4301 $as_echo "no" >&6; }
4302                 PKG_CONFIG=""
4303         fi
4304
4305 fi
4306 LIBUUID=
4307 DEPLIBUUID=
4308 STATIC_LIBUUID=
4309 DEPSTATIC_LIBUUID=
4310 PROFILED_LIBUUID=
4311 DEPPROFILED_LIBUUID=
4312 UUID_CMT=
4313 # Check whether --enable-libuuid was given.
4314 if test "${enable_libuuid+set}" = set; then
4315   enableval=$enable_libuuid; if test "$enableval" = "no"
4316 then
4317         if test -z "$PKG_CONFIG"; then
4318                 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4319 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4320    { (exit 1); exit 1; }; }
4321         fi
4322
4323         { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4324 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4325 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4326   $as_echo_n "(cached) " >&6
4327 else
4328   ac_check_lib_save_LIBS=$LIBS
4329 LIBS="-luuid $LIBUUID $LIBS"
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336
4337 /* Override any GCC internal prototype to avoid an error.
4338    Use char because int might match the return type of a GCC
4339    builtin and then its argument prototype would still apply.  */
4340 #ifdef __cplusplus
4341 extern "C"
4342 #endif
4343 char uuid_generate ();
4344 int
4345 main ()
4346 {
4347 return uuid_generate ();
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 rm -f conftest.$ac_objext conftest$ac_exeext
4353 if { (ac_try="$ac_link"
4354 case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4359 $as_echo "$ac_try_echo") >&5
4360   (eval "$ac_link") 2>conftest.er1
4361   ac_status=$?
4362   grep -v '^ *+' conftest.er1 >conftest.err
4363   rm -f conftest.er1
4364   cat conftest.err >&5
4365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } && {
4367          test -z "$ac_c_werror_flag" ||
4368          test ! -s conftest.err
4369        } && test -s conftest$ac_exeext && {
4370          test "$cross_compiling" = yes ||
4371          $as_test_x conftest$ac_exeext
4372        }; then
4373   ac_cv_lib_uuid_uuid_generate=yes
4374 else
4375   $as_echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378         ac_cv_lib_uuid_uuid_generate=no
4379 fi
4380
4381 rm -rf conftest.dSYM
4382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4383       conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4385 fi
4386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4387 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4388 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4389   LIBUUID=`$PKG_CONFIG --libs uuid`;
4390                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4391 else
4392   { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4393 $as_echo "$as_me: error: external uuid library not found" >&2;}
4394    { (exit 1); exit 1; }; }
4395 fi
4396
4397         UUID_CMT=#
4398         { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4399 $as_echo "Disabling private uuid library" >&6; }
4400 else
4401         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4402         DEPLIBUUID=$LIBUUID
4403         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4404         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4405         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4406         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4407         { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5
4408 $as_echo "Enabling private uuid library" >&6; }
4409 fi
4410
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 by default" >&5
4419 $as_echo "Enabling private uuid library by default" >&6; }
4420
4421 fi
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4433         if test -n "$ac_tool_prefix"; then
4434   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4435 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4439   $as_echo_n "(cached) " >&6
4440 else
4441   case $PKG_CONFIG in
4442   [\\/]* | ?:[\\/]*)
4443   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4444   ;;
4445   *)
4446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4454     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461   ;;
4462 esac
4463 fi
4464 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4465 if test -n "$PKG_CONFIG"; then
4466   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4467 $as_echo "$PKG_CONFIG" >&6; }
4468 else
4469   { $as_echo "$as_me:$LINENO: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473
4474 fi
4475 if test -z "$ac_cv_path_PKG_CONFIG"; then
4476   ac_pt_PKG_CONFIG=$PKG_CONFIG
4477   # Extract the first word of "pkg-config", so it can be a program name with args.
4478 set dummy pkg-config; ac_word=$2
4479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4482   $as_echo_n "(cached) " >&6
4483 else
4484   case $ac_pt_PKG_CONFIG in
4485   [\\/]* | ?:[\\/]*)
4486   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4487   ;;
4488   *)
4489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492   IFS=$as_save_IFS
4493   test -z "$as_dir" && as_dir=.
4494   for ac_exec_ext in '' $ac_executable_extensions; do
4495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498     break 2
4499   fi
4500 done
4501 done
4502 IFS=$as_save_IFS
4503
4504   ;;
4505 esac
4506 fi
4507 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4508 if test -n "$ac_pt_PKG_CONFIG"; then
4509   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4510 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4511 else
4512   { $as_echo "$as_me:$LINENO: result: no" >&5
4513 $as_echo "no" >&6; }
4514 fi
4515
4516   if test "x$ac_pt_PKG_CONFIG" = x; then
4517     PKG_CONFIG=""
4518   else
4519     case $cross_compiling:$ac_tool_warned in
4520 yes:)
4521 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525     PKG_CONFIG=$ac_pt_PKG_CONFIG
4526   fi
4527 else
4528   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4529 fi
4530
4531 fi
4532 if test -n "$PKG_CONFIG"; then
4533         _pkg_min_version=0.9.0
4534         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4535 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4536         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4537                 { $as_echo "$as_me:$LINENO: result: yes" >&5
4538 $as_echo "yes" >&6; }
4539         else
4540                 { $as_echo "$as_me:$LINENO: result: no" >&5
4541 $as_echo "no" >&6; }
4542                 PKG_CONFIG=""
4543         fi
4544
4545 fi
4546 LIBBLKID=
4547 DEPLIBBLKID=
4548 STATIC_LIBBLKID=
4549 DEPSTATIC_LIBBLKID=
4550 PROFILED_LIBBLKID=
4551 DEPPROFILED_LIBBLKID=
4552 BLKID_CMT=
4553 # Check whether --enable-libblkid was given.
4554 if test "${enable_libblkid+set}" = set; then
4555   enableval=$enable_libblkid; if test "$enableval" = "no"
4556 then
4557         if test -z "$PKG_CONFIG"; then
4558                 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4559 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4560    { (exit 1); exit 1; }; }
4561         fi
4562
4563         { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4564 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
4565 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
4566   $as_echo_n "(cached) " >&6
4567 else
4568   ac_check_lib_save_LIBS=$LIBS
4569 LIBS="-lblkid $LIBBLKID $LIBS"
4570 cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576
4577 /* Override any GCC internal prototype to avoid an error.
4578    Use char because int might match the return type of a GCC
4579    builtin and then its argument prototype would still apply.  */
4580 #ifdef __cplusplus
4581 extern "C"
4582 #endif
4583 char blkid_get_cache ();
4584 int
4585 main ()
4586 {
4587 return blkid_get_cache ();
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext conftest$ac_exeext
4593 if { (ac_try="$ac_link"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600   (eval "$ac_link") 2>conftest.er1
4601   ac_status=$?
4602   grep -v '^ *+' conftest.er1 >conftest.err
4603   rm -f conftest.er1
4604   cat conftest.err >&5
4605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } && {
4607          test -z "$ac_c_werror_flag" ||
4608          test ! -s conftest.err
4609        } && test -s conftest$ac_exeext && {
4610          test "$cross_compiling" = yes ||
4611          $as_test_x conftest$ac_exeext
4612        }; then
4613   ac_cv_lib_blkid_blkid_get_cache=yes
4614 else
4615   $as_echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618         ac_cv_lib_blkid_blkid_get_cache=no
4619 fi
4620
4621 rm -rf conftest.dSYM
4622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4623       conftest$ac_exeext conftest.$ac_ext
4624 LIBS=$ac_check_lib_save_LIBS
4625 fi
4626 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4627 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4628 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
4629   LIBBLKID=`$PKG_CONFIG --libs blkid`;
4630                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4631 else
4632   { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4633 $as_echo "$as_me: error: external blkid library not found" >&2;}
4634    { (exit 1); exit 1; }; }
4635 fi
4636
4637         BLKID_CMT=#
4638         { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4639 $as_echo "Disabling private blkid library" >&6; }
4640 else
4641         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4642         DEPLIBBLKID=$LIBBLKID
4643         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4644         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4645         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4646         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4647         cat >>confdefs.h <<\_ACEOF
4648 #define CONFIG_BUILD_FINDFS 1
4649 _ACEOF
4650
4651         { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4652 $as_echo "Enabling private blkid library" >&6; }
4653 fi
4654
4655 else
4656   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4657 DEPLIBBLKID=$LIBBLKID
4658 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4659 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4660 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4661 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4662 cat >>confdefs.h <<\_ACEOF
4663 #define CONFIG_BUILD_FINDFS 1
4664 _ACEOF
4665
4666 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4667 $as_echo "Enabling private blkid library by default" >&6; }
4668
4669 fi
4670
4671
4672
4673
4674
4675
4676
4677
4678 # Check whether --enable-debugfs was given.
4679 if test "${enable_debugfs+set}" = set; then
4680   enableval=$enable_debugfs; if test "$enableval" = "no"
4681 then
4682         { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4683 $as_echo "Disabling debugfs support" >&6; }
4684         DEBUGFS_CMT="#"
4685 else
4686         DEBUGFS_CMT=
4687         { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4688 $as_echo "Enabling debugfs support" >&6; }
4689 fi
4690
4691 else
4692   { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4693 $as_echo "Enabling debugfs support by default" >&6; }
4694 DEBUGFS_CMT=
4695
4696 fi
4697
4698
4699 # Check whether --enable-imager was given.
4700 if test "${enable_imager+set}" = set; then
4701   enableval=$enable_imager; if test "$enableval" = "no"
4702 then
4703         { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4704 $as_echo "Disabling e2image support" >&6; }
4705         IMAGER_CMT="#"
4706 else
4707         IMAGER_CMT=
4708         { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4709 $as_echo "Enabling e2image support" >&6; }
4710 fi
4711
4712 else
4713   { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4714 $as_echo "Enabling e2image support by default" >&6; }
4715 IMAGER_CMT=
4716
4717 fi
4718
4719
4720 # Check whether --enable-resizer was given.
4721 if test "${enable_resizer+set}" = set; then
4722   enableval=$enable_resizer; if test "$enableval" = "no"
4723 then
4724         { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4725 $as_echo "Disabling e2resize support" >&6; }
4726         RESIZER_CMT="#"
4727 else
4728         RESIZER_CMT=
4729         { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4730 $as_echo "Enabling e2resize support" >&6; }
4731 fi
4732
4733 else
4734   { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4735 $as_echo "Enabling e2resize support by default" >&6; }
4736 RESIZER_CMT=
4737
4738 fi
4739
4740
4741 # Check whether --enable-fsck was given.
4742 if test "${enable_fsck+set}" = set; then
4743   enableval=$enable_fsck; if test "$enableval" = "no"
4744 then
4745         FSCK_PROG='' FSCK_MAN=''
4746         { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4747 $as_echo "Not building fsck wrapper" >&6; }
4748 else
4749         FSCK_PROG=fsck FSCK_MAN=fsck.8
4750         { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4751 $as_echo "Building fsck wrapper" >&6; }
4752 fi
4753
4754 else
4755   case "$host_os" in
4756   gnu*)
4757     FSCK_PROG='' FSCK_MAN=''
4758     { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4759 $as_echo "Not building fsck wrapper by default" >&6; }
4760     ;;
4761   *)
4762     FSCK_PROG=fsck FSCK_MAN=fsck.8
4763     { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4764 $as_echo "Building fsck wrapper by default" >&6; }
4765 esac
4766
4767 fi
4768
4769
4770
4771 # Check whether --enable-e2initrd-helper was given.
4772 if test "${enable_e2initrd_helper+set}" = set; then
4773   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4774 then
4775         E2INITRD_PROG='' E2INITRD_MAN=''
4776         { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4777 $as_echo "Not building e2initrd helper" >&6; }
4778 else
4779         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4780         { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4781 $as_echo "Building e2initrd helper" >&6; }
4782 fi
4783
4784 else
4785   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4786 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4787 $as_echo "Building e2initrd helper by default" >&6; }
4788
4789 fi
4790
4791
4792
4793 # Check whether --enable-tls was given.
4794 if test "${enable_tls+set}" = set; then
4795   enableval=$enable_tls; if test "$enableval" = "no"
4796 then
4797         try_tls=""
4798         { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4799 $as_echo "Disabling thread local support" >&6; }
4800 else
4801         try_tls="yes"
4802         { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4803 $as_echo "Enabling thread local support" >&6; }
4804 fi
4805
4806 else
4807   if test -n "$WITH_DIET_LIBC"
4808 then
4809         try_tls=""
4810         { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4811 $as_echo "Diet libc does not support thread local support" >&6; }
4812 else
4813         try_tls="yes"
4814         { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4815 $as_echo "Try using thread local support by default" >&6; }
4816 fi
4817
4818 fi
4819
4820 if test "$try_tls" = "yes"
4821 then
4822
4823   { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4824 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
4825   if test "${ac_cv_tls+set}" = set; then
4826   $as_echo_n "(cached) " >&6
4827 else
4828
4829     ax_tls_keywords="__thread __declspec(thread) none"
4830     for ax_tls_keyword in $ax_tls_keywords; do
4831        case $ax_tls_keyword in
4832           none) ac_cv_tls=none ; break ;;
4833           *)
4834              cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h.  */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h.  */
4840 #include <stdlib.h>
4841                  static void
4842                  foo(void) {
4843                  static  $ax_tls_keyword  int bar;
4844                  exit(1);
4845                  }
4846 int
4847 main ()
4848 {
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4856 case "(($ac_try" in
4857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858   *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862   (eval "$ac_compile") 2>conftest.er1
4863   ac_status=$?
4864   grep -v '^ *+' conftest.er1 >conftest.err
4865   rm -f conftest.er1
4866   cat conftest.err >&5
4867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } && {
4869          test -z "$ac_c_werror_flag" ||
4870          test ! -s conftest.err
4871        } && test -s conftest.$ac_objext; then
4872   ac_cv_tls=$ax_tls_keyword ; break
4873 else
4874   $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877         ac_cv_tls=none
4878
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882           esac
4883     done
4884
4885 fi
4886
4887
4888   if test "$ac_cv_tls" != "none"; then
4889
4890 cat >>confdefs.h <<_ACEOF
4891 #define TLS $ac_cv_tls
4892 _ACEOF
4893
4894   fi
4895   { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4896 $as_echo "$ac_cv_tls" >&6; }
4897
4898 fi
4899 # Check whether --enable-uuidd was given.
4900 if test "${enable_uuidd+set}" = set; then
4901   enableval=$enable_uuidd; if test "$enableval" = "no"
4902 then
4903         { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4904 $as_echo "Not building uuidd" >&6; }
4905         UUIDD_CMT="#"
4906 else
4907         cat >>confdefs.h <<\_ACEOF
4908 #define USE_UUIDD 1
4909 _ACEOF
4910
4911         UUIDD_CMT=""
4912         { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4913 $as_echo "Building uuidd" >&6; }
4914 fi
4915
4916 else
4917   cat >>confdefs.h <<\_ACEOF
4918 #define USE_UUIDD 1
4919 _ACEOF
4920
4921 UUIDD_CMT=""
4922 { $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4923 $as_echo "Building uuidd by default" >&6; }
4924
4925 fi
4926
4927
4928 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4929
4930 GETTEXT_PACKAGE=e2fsprogs
4931 PACKAGE=e2fsprogs
4932 VERSION="$E2FSPROGS_VERSION"
4933 VERSION=0.14.1
4934 cat >>confdefs.h <<_ACEOF
4935 #define PACKAGE "$PACKAGE"
4936 _ACEOF
4937
4938 cat >>confdefs.h <<_ACEOF
4939 #define VERSION "$VERSION"
4940 _ACEOF
4941
4942
4943
4944
4945
4946 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4947 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4948 set x ${MAKE-make}
4949 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4951   $as_echo_n "(cached) " >&6
4952 else
4953   cat >conftest.make <<\_ACEOF
4954 SHELL = /bin/sh
4955 all:
4956         @echo '@@@%%%=$(MAKE)=@@@%%%'
4957 _ACEOF
4958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4960   *@@@%%%=?*=@@@%%%*)
4961     eval ac_cv_prog_make_${ac_make}_set=yes;;
4962   *)
4963     eval ac_cv_prog_make_${ac_make}_set=no;;
4964 esac
4965 rm -f conftest.make
4966 fi
4967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4968   { $as_echo "$as_me:$LINENO: result: yes" >&5
4969 $as_echo "yes" >&6; }
4970   SET_MAKE=
4971 else
4972   { $as_echo "$as_me:$LINENO: result: no" >&5
4973 $as_echo "no" >&6; }
4974   SET_MAKE="MAKE=${MAKE-make}"
4975 fi
4976
4977 # Find a good install program.  We prefer a C program (faster),
4978 # so one script is as good as another.  But avoid the broken or
4979 # incompatible versions:
4980 # SysV /etc/install, /usr/sbin/install
4981 # SunOS /usr/etc/install
4982 # IRIX /sbin/install
4983 # AIX /bin/install
4984 # AmigaOS /C/install, which installs bootblocks on floppy discs
4985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4988 # OS/2's system install, which has a completely different semantic
4989 # ./install, which can be erroneously created by make from ./install.sh.
4990 # Reject install programs that cannot install multiple files.
4991 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4992 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4993 if test -z "$INSTALL"; then
4994 if test "${ac_cv_path_install+set}" = set; then
4995   $as_echo_n "(cached) " >&6
4996 else
4997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000   IFS=$as_save_IFS
5001   test -z "$as_dir" && as_dir=.
5002   # Account for people who put trailing slashes in PATH elements.
5003 case $as_dir/ in
5004   ./ | .// | /cC/* | \
5005   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5006   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5007   /usr/ucb/* ) ;;
5008   *)
5009     # OSF1 and SCO ODT 3.0 have their own names for install.
5010     # Don't use installbsd from OSF since it installs stuff as root
5011     # by default.
5012     for ac_prog in ginstall scoinst install; do
5013       for ac_exec_ext in '' $ac_executable_extensions; do
5014         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5015           if test $ac_prog = install &&
5016             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5017             # AIX install.  It has an incompatible calling convention.
5018             :
5019           elif test $ac_prog = install &&
5020             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5021             # program-specific install script used by HP pwplus--don't use.
5022             :
5023           else
5024             rm -rf conftest.one conftest.two conftest.dir
5025             echo one > conftest.one
5026             echo two > conftest.two
5027             mkdir conftest.dir
5028             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5029               test -s conftest.one && test -s conftest.two &&
5030               test -s conftest.dir/conftest.one &&
5031               test -s conftest.dir/conftest.two
5032             then
5033               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5034               break 3
5035             fi
5036           fi
5037         fi
5038       done
5039     done
5040     ;;
5041 esac
5042
5043 done
5044 IFS=$as_save_IFS
5045
5046 rm -rf conftest.one conftest.two conftest.dir
5047
5048 fi
5049   if test "${ac_cv_path_install+set}" = set; then
5050     INSTALL=$ac_cv_path_install
5051   else
5052     # As a last resort, use the slow shell script.  Don't cache a
5053     # value for INSTALL within a source directory, because that will
5054     # break other packages using the cache if that directory is
5055     # removed, or if the value is a relative name.
5056     INSTALL=$ac_install_sh
5057   fi
5058 fi
5059 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5060 $as_echo "$INSTALL" >&6; }
5061
5062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5063 # It thinks the first close brace ends the variable substitution.
5064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5065
5066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5067
5068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5069
5070
5071         MKINSTALLDIRS=
5072   if test -n "$ac_aux_dir"; then
5073     case "$ac_aux_dir" in
5074       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5075       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5076     esac
5077   fi
5078   if test -z "$MKINSTALLDIRS"; then
5079     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5080   fi
5081
5082
5083
5084   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5085 $as_echo_n "checking whether NLS is requested... " >&6; }
5086     # Check whether --enable-nls was given.
5087 if test "${enable_nls+set}" = set; then
5088   enableval=$enable_nls; USE_NLS=$enableval
5089 else
5090   USE_NLS=yes
5091 fi
5092
5093   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5094 $as_echo "$USE_NLS" >&6; }
5095
5096
5097
5098
5099
5100
5101 # Prepare PATH_SEPARATOR.
5102 # The user is always right.
5103 if test "${PATH_SEPARATOR+set}" != set; then
5104   echo "#! /bin/sh" >conf$$.sh
5105   echo  "exit 0"   >>conf$$.sh
5106   chmod +x conf$$.sh
5107   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5108     PATH_SEPARATOR=';'
5109   else
5110     PATH_SEPARATOR=:
5111   fi
5112   rm -f conf$$.sh
5113 fi
5114
5115 # Find out how to test for executable files. Don't use a zero-byte file,
5116 # as systems may use methods other than mode bits to determine executability.
5117 cat >conf$$.file <<_ASEOF
5118 #! /bin/sh
5119 exit 0
5120 _ASEOF
5121 chmod +x conf$$.file
5122 if test -x conf$$.file >/dev/null 2>&1; then
5123   ac_executable_p="test -x"
5124 else
5125   ac_executable_p="test -f"
5126 fi
5127 rm -f conf$$.file
5128
5129 # Extract the first word of "msgfmt", so it can be a program name with args.
5130 set dummy msgfmt; ac_word=$2
5131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_path_MSGFMT+set}" = set; then
5134   $as_echo_n "(cached) " >&6
5135 else
5136   case "$MSGFMT" in
5137   [\\/]* | ?:[\\/]*)
5138     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5139     ;;
5140   *)
5141     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5142     for ac_dir in $PATH; do
5143       IFS="$ac_save_IFS"
5144       test -z "$ac_dir" && ac_dir=.
5145       for ac_exec_ext in '' $ac_executable_extensions; do
5146         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5147           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5148      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5149             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5150             break 2
5151           fi
5152         fi
5153       done
5154     done
5155     IFS="$ac_save_IFS"
5156   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5157     ;;
5158 esac
5159 fi
5160 MSGFMT="$ac_cv_path_MSGFMT"
5161 if test "$MSGFMT" != ":"; then
5162   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5163 $as_echo "$MSGFMT" >&6; }
5164 else
5165   { $as_echo "$as_me:$LINENO: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5170 set dummy gmsgfmt; ac_word=$2
5171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5174   $as_echo_n "(cached) " >&6
5175 else
5176   case $GMSGFMT in
5177   [\\/]* | ?:[\\/]*)
5178   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5179   ;;
5180   *)
5181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186   for ac_exec_ext in '' $ac_executable_extensions; do
5187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5197   ;;
5198 esac
5199 fi
5200 GMSGFMT=$ac_cv_path_GMSGFMT
5201 if test -n "$GMSGFMT"; then
5202   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5203 $as_echo "$GMSGFMT" >&6; }
5204 else
5205   { $as_echo "$as_me:$LINENO: result: no" >&5
5206 $as_echo "no" >&6; }
5207 fi
5208
5209
5210
5211
5212 # Prepare PATH_SEPARATOR.
5213 # The user is always right.
5214 if test "${PATH_SEPARATOR+set}" != set; then
5215   echo "#! /bin/sh" >conf$$.sh
5216   echo  "exit 0"   >>conf$$.sh
5217   chmod +x conf$$.sh
5218   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5219     PATH_SEPARATOR=';'
5220   else
5221     PATH_SEPARATOR=:
5222   fi
5223   rm -f conf$$.sh
5224 fi
5225
5226 # Find out how to test for executable files. Don't use a zero-byte file,
5227 # as systems may use methods other than mode bits to determine executability.
5228 cat >conf$$.file <<_ASEOF
5229 #! /bin/sh
5230 exit 0
5231 _ASEOF
5232 chmod +x conf$$.file
5233 if test -x conf$$.file >/dev/null 2>&1; then
5234   ac_executable_p="test -x"
5235 else
5236   ac_executable_p="test -f"
5237 fi
5238 rm -f conf$$.file
5239
5240 # Extract the first word of "xgettext", so it can be a program name with args.
5241 set dummy xgettext; ac_word=$2
5242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5245   $as_echo_n "(cached) " >&6
5246 else
5247   case "$XGETTEXT" in
5248   [\\/]* | ?:[\\/]*)
5249     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5250     ;;
5251   *)
5252     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5253     for ac_dir in $PATH; do
5254       IFS="$ac_save_IFS"
5255       test -z "$ac_dir" && ac_dir=.
5256       for ac_exec_ext in '' $ac_executable_extensions; do
5257         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5258           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5259      (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
5260             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5261             break 2
5262           fi
5263         fi
5264       done
5265     done
5266     IFS="$ac_save_IFS"
5267   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5268     ;;
5269 esac
5270 fi
5271 XGETTEXT="$ac_cv_path_XGETTEXT"
5272 if test "$XGETTEXT" != ":"; then
5273   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5274 $as_echo "$XGETTEXT" >&6; }
5275 else
5276   { $as_echo "$as_me:$LINENO: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280     rm -f messages.po
5281
5282
5283 # Prepare PATH_SEPARATOR.
5284 # The user is always right.
5285 if test "${PATH_SEPARATOR+set}" != set; then
5286   echo "#! /bin/sh" >conf$$.sh
5287   echo  "exit 0"   >>conf$$.sh
5288   chmod +x conf$$.sh
5289   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5290     PATH_SEPARATOR=';'
5291   else
5292     PATH_SEPARATOR=:
5293   fi
5294   rm -f conf$$.sh
5295 fi
5296
5297 # Find out how to test for executable files. Don't use a zero-byte file,
5298 # as systems may use methods other than mode bits to determine executability.
5299 cat >conf$$.file <<_ASEOF
5300 #! /bin/sh
5301 exit 0
5302 _ASEOF
5303 chmod +x conf$$.file
5304 if test -x conf$$.file >/dev/null 2>&1; then
5305   ac_executable_p="test -x"
5306 else
5307   ac_executable_p="test -f"
5308 fi
5309 rm -f conf$$.file
5310
5311 # Extract the first word of "msgmerge", so it can be a program name with args.
5312 set dummy msgmerge; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5316   $as_echo_n "(cached) " >&6
5317 else
5318   case "$MSGMERGE" in
5319   [\\/]* | ?:[\\/]*)
5320     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5321     ;;
5322   *)
5323     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5324     for ac_dir in $PATH; do
5325       IFS="$ac_save_IFS"
5326       test -z "$ac_dir" && ac_dir=.
5327       for ac_exec_ext in '' $ac_executable_extensions; do
5328         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5329           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5330             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5331             break 2
5332           fi
5333         fi
5334       done
5335     done
5336     IFS="$ac_save_IFS"
5337   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5338     ;;
5339 esac
5340 fi
5341 MSGMERGE="$ac_cv_path_MSGMERGE"
5342 if test "$MSGMERGE" != ":"; then
5343   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5344 $as_echo "$MSGMERGE" >&6; }
5345 else
5346   { $as_echo "$as_me:$LINENO: result: no" >&5
5347 $as_echo "no" >&6; }
5348 fi
5349
5350
5351       if test "$GMSGFMT" != ":"; then
5352             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5353        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5354       : ;
5355     else
5356       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5357       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5358 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5359       GMSGFMT=":"
5360     fi
5361   fi
5362
5363       if test "$XGETTEXT" != ":"; then
5364             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5365        (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
5366       : ;
5367     else
5368       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5369 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5370       XGETTEXT=":"
5371     fi
5372         rm -f messages.po
5373   fi
5374
5375   ac_config_commands="$ac_config_commands default-1"
5376
5377
5378 if test -n "$ac_tool_prefix"; then
5379   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_RANLIB+set}" = set; then
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if test -n "$RANLIB"; then
5387   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394   for ac_exec_ext in '' $ac_executable_extensions; do
5395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5397     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 RANLIB=$ac_cv_prog_RANLIB
5407 if test -n "$RANLIB"; then
5408   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5409 $as_echo "$RANLIB" >&6; }
5410 else
5411   { $as_echo "$as_me:$LINENO: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 fi
5417 if test -z "$ac_cv_prog_RANLIB"; then
5418   ac_ct_RANLIB=$RANLIB
5419   # Extract the first word of "ranlib", so it can be a program name with args.
5420 set dummy ranlib; ac_word=$2
5421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$ac_ct_RANLIB"; then
5427   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434   for ac_exec_ext in '' $ac_executable_extensions; do
5435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436     ac_cv_prog_ac_ct_RANLIB="ranlib"
5437     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441 done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5447 if test -n "$ac_ct_RANLIB"; then
5448   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5449 $as_echo "$ac_ct_RANLIB" >&6; }
5450 else
5451   { $as_echo "$as_me:$LINENO: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455   if test "x$ac_ct_RANLIB" = x; then
5456     RANLIB=":"
5457   else
5458     case $cross_compiling:$ac_tool_warned in
5459 yes:)
5460 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned=yes ;;
5463 esac
5464     RANLIB=$ac_ct_RANLIB
5465   fi
5466 else
5467   RANLIB="$ac_cv_prog_RANLIB"
5468 fi
5469
5470
5471         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5472 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5473 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5474   $as_echo_n "(cached) " >&6
5475 else
5476   ac_check_lib_save_LIBS=$LIBS
5477 LIBS="-lcposix  $LIBS"
5478 cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h.  */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h.  */
5484
5485 /* Override any GCC internal prototype to avoid an error.
5486    Use char because int might match the return type of a GCC
5487    builtin and then its argument prototype would still apply.  */
5488 #ifdef __cplusplus
5489 extern "C"
5490 #endif
5491 char strerror ();
5492 int
5493 main ()
5494 {
5495 return strerror ();
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (ac_try="$ac_link"
5502 case "(($ac_try" in
5503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504   *) ac_try_echo=$ac_try;;
5505 esac
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508   (eval "$ac_link") 2>conftest.er1
5509   ac_status=$?
5510   grep -v '^ *+' conftest.er1 >conftest.err
5511   rm -f conftest.er1
5512   cat conftest.err >&5
5513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); } && {
5515          test -z "$ac_c_werror_flag" ||
5516          test ! -s conftest.err
5517        } && test -s conftest$ac_exeext && {
5518          test "$cross_compiling" = yes ||
5519          $as_test_x conftest$ac_exeext
5520        }; then
5521   ac_cv_lib_cposix_strerror=yes
5522 else
5523   $as_echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526         ac_cv_lib_cposix_strerror=no
5527 fi
5528
5529 rm -rf conftest.dSYM
5530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5531       conftest$ac_exeext conftest.$ac_ext
5532 LIBS=$ac_check_lib_save_LIBS
5533 fi
5534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5535 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5536 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
5537   LIBS="$LIBS -lcposix"
5538 fi
5539
5540
5541
5542 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5543 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5544 if test "${ac_cv_c_const+set}" = set; then
5545   $as_echo_n "(cached) " >&6
5546 else
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553
5554 int
5555 main ()
5556 {
5557 /* FIXME: Include the comments suggested by Paul. */
5558 #ifndef __cplusplus
5559   /* Ultrix mips cc rejects this.  */
5560   typedef int charset[2];
5561   const charset cs;
5562   /* SunOS 4.1.1 cc rejects this.  */
5563   char const *const *pcpcc;
5564   char **ppc;
5565   /* NEC SVR4.0.2 mips cc rejects this.  */
5566   struct point {int x, y;};
5567   static struct point const zero = {0,0};
5568   /* AIX XL C 1.02.0.0 rejects this.
5569      It does not let you subtract one const X* pointer from another in
5570      an arm of an if-expression whose if-part is not a constant
5571      expression */
5572   const char *g = "string";
5573   pcpcc = &g + (g ? g-g : 0);
5574   /* HPUX 7.0 cc rejects these. */
5575   ++pcpcc;
5576   ppc = (char**) pcpcc;
5577   pcpcc = (char const *const *) ppc;
5578   { /* SCO 3.2v4 cc rejects this.  */
5579     char *t;
5580     char const *s = 0 ? (char *) 0 : (char const *) 0;
5581
5582     *t++ = 0;
5583     if (s) return 0;
5584   }
5585   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5586     int x[] = {25, 17};
5587     const int *foo = &x[0];
5588     ++foo;
5589   }
5590   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5591     typedef const int *iptr;
5592     iptr p = 0;
5593     ++p;
5594   }
5595   { /* AIX XL C 1.02.0.0 rejects this saying
5596        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5597     struct s { int j; const int *ap[3]; };
5598     struct s *b; b->j = 5;
5599   }
5600   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5601     const int foo = 10;
5602     if (!foo) return 0;
5603   }
5604   return !cs[0] && !zero.x;
5605 #endif
5606
5607   ;
5608   return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5613 case "(($ac_try" in
5614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615   *) ac_try_echo=$ac_try;;
5616 esac
5617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5618 $as_echo "$ac_try_echo") >&5
5619   (eval "$ac_compile") 2>conftest.er1
5620   ac_status=$?
5621   grep -v '^ *+' conftest.er1 >conftest.err
5622   rm -f conftest.er1
5623   cat conftest.err >&5
5624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } && {
5626          test -z "$ac_c_werror_flag" ||
5627          test ! -s conftest.err
5628        } && test -s conftest.$ac_objext; then
5629   ac_cv_c_const=yes
5630 else
5631   $as_echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5633
5634         ac_cv_c_const=no
5635 fi
5636
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 fi
5639 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5640 $as_echo "$ac_cv_c_const" >&6; }
5641 if test $ac_cv_c_const = no; then
5642
5643 cat >>confdefs.h <<\_ACEOF
5644 #define const /**/
5645 _ACEOF
5646
5647 fi
5648
5649
5650   { $as_echo "$as_me:$LINENO: checking for signed" >&5
5651 $as_echo_n "checking for signed... " >&6; }
5652 if test "${bh_cv_c_signed+set}" = set; then
5653   $as_echo_n "(cached) " >&6
5654 else
5655   cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h.  */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h.  */
5661
5662 int
5663 main ()
5664 {
5665 signed char x;
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5672 case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5677 $as_echo "$ac_try_echo") >&5
5678   (eval "$ac_compile") 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } && {
5685          test -z "$ac_c_werror_flag" ||
5686          test ! -s conftest.err
5687        } && test -s conftest.$ac_objext; then
5688   bh_cv_c_signed=yes
5689 else
5690   $as_echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693         bh_cv_c_signed=no
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5699 $as_echo "$bh_cv_c_signed" >&6; }
5700   if test $bh_cv_c_signed = no; then
5701
5702 cat >>confdefs.h <<\_ACEOF
5703 #define signed /**/
5704 _ACEOF
5705
5706   fi
5707
5708 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5709 $as_echo_n "checking for inline... " >&6; }
5710 if test "${ac_cv_c_inline+set}" = set; then
5711   $as_echo_n "(cached) " >&6
5712 else
5713   ac_cv_c_inline=no
5714 for ac_kw in inline __inline__ __inline; do
5715   cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h.  */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h.  */
5721 #ifndef __cplusplus
5722 typedef int foo_t;
5723 static $ac_kw foo_t static_foo () {return 0; }
5724 $ac_kw foo_t foo () {return 0; }
5725 #endif
5726
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (ac_try="$ac_compile"
5730 case "(($ac_try" in
5731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732   *) ac_try_echo=$ac_try;;
5733 esac
5734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5735 $as_echo "$ac_try_echo") >&5
5736   (eval "$ac_compile") 2>conftest.er1
5737   ac_status=$?
5738   grep -v '^ *+' conftest.er1 >conftest.err
5739   rm -f conftest.er1
5740   cat conftest.err >&5
5741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } && {
5743          test -z "$ac_c_werror_flag" ||
5744          test ! -s conftest.err
5745        } && test -s conftest.$ac_objext; then
5746   ac_cv_c_inline=$ac_kw
5747 else
5748   $as_echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751
5752 fi
5753
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755   test "$ac_cv_c_inline" != no && break
5756 done
5757
5758 fi
5759 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5760 $as_echo "$ac_cv_c_inline" >&6; }
5761
5762
5763 case $ac_cv_c_inline in
5764   inline | yes) ;;
5765   *)
5766     case $ac_cv_c_inline in
5767       no) ac_val=;;
5768       *) ac_val=$ac_cv_c_inline;;
5769     esac
5770     cat >>confdefs.h <<_ACEOF
5771 #ifndef __cplusplus
5772 #define inline $ac_val
5773 #endif
5774 _ACEOF
5775     ;;
5776 esac
5777
5778 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5779 $as_echo_n "checking for off_t... " >&6; }
5780 if test "${ac_cv_type_off_t+set}" = set; then
5781   $as_echo_n "(cached) " >&6
5782 else
5783   ac_cv_type_off_t=no
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 $ac_includes_default
5791 int
5792 main ()
5793 {
5794 if (sizeof (off_t))
5795        return 0;
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5802 case "(($ac_try" in
5803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804   *) ac_try_echo=$ac_try;;
5805 esac
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808   (eval "$ac_compile") 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } && {
5815          test -z "$ac_c_werror_flag" ||
5816          test ! -s conftest.err
5817        } && test -s conftest.$ac_objext; then
5818   cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h.  */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h.  */
5824 $ac_includes_default
5825 int
5826 main ()
5827 {
5828 if (sizeof ((off_t)))
5829           return 0;
5830   ;
5831   return 0;
5832 }
5833 _ACEOF
5834 rm -f conftest.$ac_objext
5835 if { (ac_try="$ac_compile"
5836 case "(($ac_try" in
5837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838   *) ac_try_echo=$ac_try;;
5839 esac
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842   (eval "$ac_compile") 2>conftest.er1
5843   ac_status=$?
5844   grep -v '^ *+' conftest.er1 >conftest.err
5845   rm -f conftest.er1
5846   cat conftest.err >&5
5847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); } && {
5849          test -z "$ac_c_werror_flag" ||
5850          test ! -s conftest.err
5851        } && test -s conftest.$ac_objext; then
5852   :
5853 else
5854   $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857         ac_cv_type_off_t=yes
5858 fi
5859
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 else
5862   $as_echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865
5866 fi
5867
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 fi
5870 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5871 $as_echo "$ac_cv_type_off_t" >&6; }
5872 if test "x$ac_cv_type_off_t" = x""yes; then
5873   :
5874 else
5875
5876 cat >>confdefs.h <<_ACEOF
5877 #define off_t long int
5878 _ACEOF
5879
5880 fi
5881
5882 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5883 $as_echo_n "checking for size_t... " >&6; }
5884 if test "${ac_cv_type_size_t+set}" = set; then
5885   $as_echo_n "(cached) " >&6
5886 else
5887   ac_cv_type_size_t=no
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894 $ac_includes_default
5895 int
5896 main ()
5897 {
5898 if (sizeof (size_t))
5899        return 0;
5900   ;
5901   return 0;
5902 }
5903 _ACEOF
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911 $as_echo "$ac_try_echo") >&5
5912   (eval "$ac_compile") 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } && {
5919          test -z "$ac_c_werror_flag" ||
5920          test ! -s conftest.err
5921        } && test -s conftest.$ac_objext; then
5922   cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928 $ac_includes_default
5929 int
5930 main ()
5931 {
5932 if (sizeof ((size_t)))
5933           return 0;
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946   (eval "$ac_compile") 2>conftest.er1
5947   ac_status=$?
5948   grep -v '^ *+' conftest.er1 >conftest.err
5949   rm -f conftest.er1
5950   cat conftest.err >&5
5951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } && {
5953          test -z "$ac_c_werror_flag" ||
5954          test ! -s conftest.err
5955        } && test -s conftest.$ac_objext; then
5956   :
5957 else
5958   $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961         ac_cv_type_size_t=yes
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 else
5966   $as_echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969
5970 fi
5971
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5975 $as_echo "$ac_cv_type_size_t" >&6; }
5976 if test "x$ac_cv_type_size_t" = x""yes; then
5977   :
5978 else
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define size_t unsigned int
5982 _ACEOF
5983
5984 fi
5985
5986
5987   { $as_echo "$as_me:$LINENO: checking for long long" >&5
5988 $as_echo_n "checking for long long... " >&6; }
5989 if test "${ac_cv_type_long_long+set}" = set; then
5990   $as_echo_n "(cached) " >&6
5991 else
5992   cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998 long long ll = 1LL; int i = 63;
5999 int
6000 main ()
6001 {
6002 long long llmax = (long long) -1;
6003      return ll << i | ll >> i | llmax / ll | llmax % ll;
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext conftest$ac_exeext
6009 if { (ac_try="$ac_link"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6015 $as_echo "$ac_try_echo") >&5
6016   (eval "$ac_link") 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } && {
6023          test -z "$ac_c_werror_flag" ||
6024          test ! -s conftest.err
6025        } && test -s conftest$ac_exeext && {
6026          test "$cross_compiling" = yes ||
6027          $as_test_x conftest$ac_exeext
6028        }; then
6029   ac_cv_type_long_long=yes
6030 else
6031   $as_echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034         ac_cv_type_long_long=no
6035 fi
6036
6037 rm -rf conftest.dSYM
6038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6039       conftest$ac_exeext conftest.$ac_ext
6040 fi
6041 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6042 $as_echo "$ac_cv_type_long_long" >&6; }
6043   if test $ac_cv_type_long_long = yes; then
6044
6045 cat >>confdefs.h <<\_ACEOF
6046 #define HAVE_LONG_LONG 1
6047 _ACEOF
6048
6049   fi
6050
6051
6052   { $as_echo "$as_me:$LINENO: checking for long double" >&5
6053 $as_echo_n "checking for long double... " >&6; }
6054 if test "${gt_cv_c_long_double+set}" = set; then
6055   $as_echo_n "(cached) " >&6
6056 else
6057   if test "$GCC" = yes; then
6058        gt_cv_c_long_double=yes
6059      else
6060        cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066
6067          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6068          long double foo = 0.0;
6069          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6070          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6071
6072 int
6073 main ()
6074 {
6075
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6082 case "(($ac_try" in
6083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084   *) ac_try_echo=$ac_try;;
6085 esac
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088   (eval "$ac_compile") 2>conftest.er1
6089   ac_status=$?
6090   grep -v '^ *+' conftest.er1 >conftest.err
6091   rm -f conftest.er1
6092   cat conftest.err >&5
6093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); } && {
6095          test -z "$ac_c_werror_flag" ||
6096          test ! -s conftest.err
6097        } && test -s conftest.$ac_objext; then
6098   gt_cv_c_long_double=yes
6099 else
6100   $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103         gt_cv_c_long_double=no
6104 fi
6105
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107      fi
6108 fi
6109 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6110 $as_echo "$gt_cv_c_long_double" >&6; }
6111   if test $gt_cv_c_long_double = yes; then
6112
6113 cat >>confdefs.h <<\_ACEOF
6114 #define HAVE_LONG_DOUBLE 1
6115 _ACEOF
6116
6117   fi
6118
6119
6120   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6121 $as_echo_n "checking for wchar_t... " >&6; }
6122 if test "${gt_cv_c_wchar_t+set}" = set; then
6123   $as_echo_n "(cached) " >&6
6124 else
6125   cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h.  */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h.  */
6131 #include <stddef.h>
6132        wchar_t foo = (wchar_t)'\0';
6133 int
6134 main ()
6135 {
6136
6137   ;
6138   return 0;
6139 }
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (ac_try="$ac_compile"
6143 case "(($ac_try" in
6144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145   *) ac_try_echo=$ac_try;;
6146 esac
6147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6148 $as_echo "$ac_try_echo") >&5
6149   (eval "$ac_compile") 2>conftest.er1
6150   ac_status=$?
6151   grep -v '^ *+' conftest.er1 >conftest.err
6152   rm -f conftest.er1
6153   cat conftest.err >&5
6154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); } && {
6156          test -z "$ac_c_werror_flag" ||
6157          test ! -s conftest.err
6158        } && test -s conftest.$ac_objext; then
6159   gt_cv_c_wchar_t=yes
6160 else
6161   $as_echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6163
6164         gt_cv_c_wchar_t=no
6165 fi
6166
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 fi
6169 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6170 $as_echo "$gt_cv_c_wchar_t" >&6; }
6171   if test $gt_cv_c_wchar_t = yes; then
6172
6173 cat >>confdefs.h <<\_ACEOF
6174 #define HAVE_WCHAR_T 1
6175 _ACEOF
6176
6177   fi
6178
6179
6180   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6181 $as_echo_n "checking for wint_t... " >&6; }
6182 if test "${gt_cv_c_wint_t+set}" = set; then
6183   $as_echo_n "(cached) " >&6
6184 else
6185   cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191 #include <wchar.h>
6192        wint_t foo = (wchar_t)'\0';
6193 int
6194 main ()
6195 {
6196
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205   *) ac_try_echo=$ac_try;;
6206 esac
6207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208 $as_echo "$ac_try_echo") >&5
6209   (eval "$ac_compile") 2>conftest.er1
6210   ac_status=$?
6211   grep -v '^ *+' conftest.er1 >conftest.err
6212   rm -f conftest.er1
6213   cat conftest.err >&5
6214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); } && {
6216          test -z "$ac_c_werror_flag" ||
6217          test ! -s conftest.err
6218        } && test -s conftest.$ac_objext; then
6219   gt_cv_c_wint_t=yes
6220 else
6221   $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224         gt_cv_c_wint_t=no
6225 fi
6226
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 fi
6229 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6230 $as_echo "$gt_cv_c_wint_t" >&6; }
6231   if test $gt_cv_c_wint_t = yes; then
6232
6233 cat >>confdefs.h <<\_ACEOF
6234 #define HAVE_WINT_T 1
6235 _ACEOF
6236
6237   fi
6238
6239
6240   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6241 $as_echo_n "checking for inttypes.h... " >&6; }
6242 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6243   $as_echo_n "(cached) " >&6
6244 else
6245   cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h.  */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h.  */
6251 #include <sys/types.h>
6252 #include <inttypes.h>
6253 int
6254 main ()
6255 {
6256 uintmax_t i = (uintmax_t) -1;
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (ac_try="$ac_compile"
6263 case "(($ac_try" in
6264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265   *) ac_try_echo=$ac_try;;
6266 esac
6267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6268 $as_echo "$ac_try_echo") >&5
6269   (eval "$ac_compile") 2>conftest.er1
6270   ac_status=$?
6271   grep -v '^ *+' conftest.er1 >conftest.err
6272   rm -f conftest.er1
6273   cat conftest.err >&5
6274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } && {
6276          test -z "$ac_c_werror_flag" ||
6277          test ! -s conftest.err
6278        } && test -s conftest.$ac_objext; then
6279   jm_ac_cv_header_inttypes_h=yes
6280 else
6281   $as_echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284         jm_ac_cv_header_inttypes_h=no
6285 fi
6286
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 fi
6289 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6290 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6291   if test $jm_ac_cv_header_inttypes_h = yes; then
6292
6293 cat >>confdefs.h <<_ACEOF
6294 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6295 _ACEOF
6296
6297   fi
6298
6299
6300   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6301 $as_echo_n "checking for stdint.h... " >&6; }
6302 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6303   $as_echo_n "(cached) " >&6
6304 else
6305   cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311 #include <sys/types.h>
6312 #include <stdint.h>
6313 int
6314 main ()
6315 {
6316 uintmax_t i = (uintmax_t) -1;
6317   ;
6318   return 0;
6319 }
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325   *) ac_try_echo=$ac_try;;
6326 esac
6327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328 $as_echo "$ac_try_echo") >&5
6329   (eval "$ac_compile") 2>conftest.er1
6330   ac_status=$?
6331   grep -v '^ *+' conftest.er1 >conftest.err
6332   rm -f conftest.er1
6333   cat conftest.err >&5
6334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } && {
6336          test -z "$ac_c_werror_flag" ||
6337          test ! -s conftest.err
6338        } && test -s conftest.$ac_objext; then
6339   jm_ac_cv_header_stdint_h=yes
6340 else
6341   $as_echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344         jm_ac_cv_header_stdint_h=no
6345 fi
6346
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6350 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6351   if test $jm_ac_cv_header_stdint_h = yes; then
6352
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_STDINT_H_WITH_UINTMAX 1
6355 _ACEOF
6356
6357   fi
6358
6359
6360
6361
6362   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6363 $as_echo_n "checking for intmax_t... " >&6; }
6364 if test "${gt_cv_c_intmax_t+set}" = set; then
6365   $as_echo_n "(cached) " >&6
6366 else
6367   cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h.  */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h.  */
6373
6374 #include <stddef.h>
6375 #include <stdlib.h>
6376 #if HAVE_STDINT_H_WITH_UINTMAX
6377 #include <stdint.h>
6378 #endif
6379 #if HAVE_INTTYPES_H_WITH_UINTMAX
6380 #include <inttypes.h>
6381 #endif
6382
6383 int
6384 main ()
6385 {
6386 intmax_t x = -1;
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6393 case "(($ac_try" in
6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395   *) ac_try_echo=$ac_try;;
6396 esac
6397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6398 $as_echo "$ac_try_echo") >&5
6399   (eval "$ac_compile") 2>conftest.er1
6400   ac_status=$?
6401   grep -v '^ *+' conftest.er1 >conftest.err
6402   rm -f conftest.er1
6403   cat conftest.err >&5
6404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); } && {
6406          test -z "$ac_c_werror_flag" ||
6407          test ! -s conftest.err
6408        } && test -s conftest.$ac_objext; then
6409   gt_cv_c_intmax_t=yes
6410 else
6411   $as_echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414         gt_cv_c_intmax_t=no
6415 fi
6416
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 fi
6419 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6420 $as_echo "$gt_cv_c_intmax_t" >&6; }
6421   if test $gt_cv_c_intmax_t = yes; then
6422
6423 cat >>confdefs.h <<\_ACEOF
6424 #define HAVE_INTMAX_T 1
6425 _ACEOF
6426
6427   fi
6428
6429
6430
6431   { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6432 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6433 if test "${gt_cv_func_printf_posix+set}" = set; then
6434   $as_echo_n "(cached) " >&6
6435 else
6436
6437       if test "$cross_compiling" = yes; then
6438
6439         cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445
6446 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6447   notposix
6448 #endif
6449
6450 _ACEOF
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452   $EGREP "notposix" >/dev/null 2>&1; then
6453   gt_cv_func_printf_posix="guessing no"
6454 else
6455   gt_cv_func_printf_posix="guessing yes"
6456 fi
6457 rm -f conftest*
6458
6459
6460 else
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467
6468 #include <stdio.h>
6469 #include <string.h>
6470 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6471    dollar expansion (possibly an autoconf bug).  */
6472 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6473 static char buf[100];
6474 int main ()
6475 {
6476   sprintf (buf, format, 33, 55);
6477   return (strcmp (buf, "55 33") != 0);
6478 }
6479 _ACEOF
6480 rm -f conftest$ac_exeext
6481 if { (ac_try="$ac_link"
6482 case "(($ac_try" in
6483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484   *) ac_try_echo=$ac_try;;
6485 esac
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488   (eval "$ac_link") 2>&5
6489   ac_status=$?
6490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6492   { (case "(($ac_try" in
6493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494   *) ac_try_echo=$ac_try;;
6495 esac
6496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6497 $as_echo "$ac_try_echo") >&5
6498   (eval "$ac_try") 2>&5
6499   ac_status=$?
6500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; }; then
6502   gt_cv_func_printf_posix=yes
6503 else
6504   $as_echo "$as_me: program exited with status $ac_status" >&5
6505 $as_echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508 ( exit $ac_status )
6509 gt_cv_func_printf_posix=no
6510 fi
6511 rm -rf conftest.dSYM
6512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6513 fi
6514
6515
6516
6517 fi
6518 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6519 $as_echo "$gt_cv_func_printf_posix" >&6; }
6520   case $gt_cv_func_printf_posix in
6521     *yes)
6522
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HAVE_POSIX_PRINTF 1
6525 _ACEOF
6526
6527       ;;
6528   esac
6529
6530 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6531 # for constant arguments.  Useless!
6532 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6533 $as_echo_n "checking for working alloca.h... " >&6; }
6534 if test "${ac_cv_working_alloca_h+set}" = set; then
6535   $as_echo_n "(cached) " >&6
6536 else
6537   cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h.  */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h.  */
6543 #include <alloca.h>
6544 int
6545 main ()
6546 {
6547 char *p = (char *) alloca (2 * sizeof (int));
6548                           if (p) return 0;
6549   ;
6550   return 0;
6551 }
6552 _ACEOF
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (ac_try="$ac_link"
6555 case "(($ac_try" in
6556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557   *) ac_try_echo=$ac_try;;
6558 esac
6559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6560 $as_echo "$ac_try_echo") >&5
6561   (eval "$ac_link") 2>conftest.er1
6562   ac_status=$?
6563   grep -v '^ *+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } && {
6568          test -z "$ac_c_werror_flag" ||
6569          test ! -s conftest.err
6570        } && test -s conftest$ac_exeext && {
6571          test "$cross_compiling" = yes ||
6572          $as_test_x conftest$ac_exeext
6573        }; then
6574   ac_cv_working_alloca_h=yes
6575 else
6576   $as_echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579         ac_cv_working_alloca_h=no
6580 fi
6581
6582 rm -rf conftest.dSYM
6583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6584       conftest$ac_exeext conftest.$ac_ext
6585 fi
6586 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6587 $as_echo "$ac_cv_working_alloca_h" >&6; }
6588 if test $ac_cv_working_alloca_h = yes; then
6589
6590 cat >>confdefs.h <<\_ACEOF
6591 #define HAVE_ALLOCA_H 1
6592 _ACEOF
6593
6594 fi
6595
6596 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6597 $as_echo_n "checking for alloca... " >&6; }
6598 if test "${ac_cv_func_alloca_works+set}" = set; then
6599   $as_echo_n "(cached) " >&6
6600 else
6601   cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h.  */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h.  */
6607 #ifdef __GNUC__
6608 # define alloca __builtin_alloca
6609 #else
6610 # ifdef _MSC_VER
6611 #  include <malloc.h>
6612 #  define alloca _alloca
6613 # else
6614 #  ifdef HAVE_ALLOCA_H
6615 #   include <alloca.h>
6616 #  else
6617 #   ifdef _AIX
6618  #pragma alloca
6619 #   else
6620 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6621 char *alloca ();
6622 #    endif
6623 #   endif
6624 #  endif
6625 # endif
6626 #endif
6627
6628 int
6629 main ()
6630 {
6631 char *p = (char *) alloca (1);
6632                                     if (p) return 0;
6633   ;
6634   return 0;
6635 }
6636 _ACEOF
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (ac_try="$ac_link"
6639 case "(($ac_try" in
6640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641   *) ac_try_echo=$ac_try;;
6642 esac
6643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6644 $as_echo "$ac_try_echo") >&5
6645   (eval "$ac_link") 2>conftest.er1
6646   ac_status=$?
6647   grep -v '^ *+' conftest.er1 >conftest.err
6648   rm -f conftest.er1
6649   cat conftest.err >&5
6650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); } && {
6652          test -z "$ac_c_werror_flag" ||
6653          test ! -s conftest.err
6654        } && test -s conftest$ac_exeext && {
6655          test "$cross_compiling" = yes ||
6656          $as_test_x conftest$ac_exeext
6657        }; then
6658   ac_cv_func_alloca_works=yes
6659 else
6660   $as_echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6662
6663         ac_cv_func_alloca_works=no
6664 fi
6665
6666 rm -rf conftest.dSYM
6667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6668       conftest$ac_exeext conftest.$ac_ext
6669 fi
6670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6671 $as_echo "$ac_cv_func_alloca_works" >&6; }
6672
6673 if test $ac_cv_func_alloca_works = yes; then
6674
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_ALLOCA 1
6677 _ACEOF
6678
6679 else
6680   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6681 # that cause trouble.  Some versions do not even contain alloca or
6682 # contain a buggy version.  If you still want to use their alloca,
6683 # use ar to extract alloca.o from them instead of compiling alloca.c.
6684
6685 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6686
6687 cat >>confdefs.h <<\_ACEOF
6688 #define C_ALLOCA 1
6689 _ACEOF
6690
6691
6692 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6693 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6694 if test "${ac_cv_os_cray+set}" = set; then
6695   $as_echo_n "(cached) " >&6
6696 else
6697   cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 #if defined CRAY && ! defined CRAY2
6704 webecray
6705 #else
6706 wenotbecray
6707 #endif
6708
6709 _ACEOF
6710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6711   $EGREP "webecray" >/dev/null 2>&1; then
6712   ac_cv_os_cray=yes
6713 else
6714   ac_cv_os_cray=no
6715 fi
6716 rm -f conftest*
6717
6718 fi
6719 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6720 $as_echo "$ac_cv_os_cray" >&6; }
6721 if test $ac_cv_os_cray = yes; then
6722   for ac_func in _getb67 GETB67 getb67; do
6723     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6725 $as_echo_n "checking for $ac_func... " >&6; }
6726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6727   $as_echo_n "(cached) " >&6
6728 else
6729   cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h.  */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h.  */
6735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6737 #define $ac_func innocuous_$ac_func
6738
6739 /* System header to define __stub macros and hopefully few prototypes,
6740     which can conflict with char $ac_func (); below.
6741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6742     <limits.h> exists even on freestanding compilers.  */
6743
6744 #ifdef __STDC__
6745 # include <limits.h>
6746 #else
6747 # include <assert.h>
6748 #endif
6749
6750 #undef $ac_func
6751
6752 /* Override any GCC internal prototype to avoid an error.
6753    Use char because int might match the return type of a GCC
6754    builtin and then its argument prototype would still apply.  */
6755 #ifdef __cplusplus
6756 extern "C"
6757 #endif
6758 char $ac_func ();
6759 /* The GNU C library defines this for functions which it implements
6760     to always fail with ENOSYS.  Some functions are actually named
6761     something starting with __ and the normal name is an alias.  */
6762 #if defined __stub_$ac_func || defined __stub___$ac_func
6763 choke me
6764 #endif
6765
6766 int
6767 main ()
6768 {
6769 return $ac_func ();
6770   ;
6771   return 0;
6772 }
6773 _ACEOF
6774 rm -f conftest.$ac_objext conftest$ac_exeext
6775 if { (ac_try="$ac_link"
6776 case "(($ac_try" in
6777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778   *) ac_try_echo=$ac_try;;
6779 esac
6780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6781 $as_echo "$ac_try_echo") >&5
6782   (eval "$ac_link") 2>conftest.er1
6783   ac_status=$?
6784   grep -v '^ *+' conftest.er1 >conftest.err
6785   rm -f conftest.er1
6786   cat conftest.err >&5
6787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } && {
6789          test -z "$ac_c_werror_flag" ||
6790          test ! -s conftest.err
6791        } && test -s conftest$ac_exeext && {
6792          test "$cross_compiling" = yes ||
6793          $as_test_x conftest$ac_exeext
6794        }; then
6795   eval "$as_ac_var=yes"
6796 else
6797   $as_echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6799
6800         eval "$as_ac_var=no"
6801 fi
6802
6803 rm -rf conftest.dSYM
6804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6805       conftest$ac_exeext conftest.$ac_ext
6806 fi
6807 ac_res=`eval 'as_val=${'$as_ac_var'}
6808                  $as_echo "$as_val"'`
6809                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6810 $as_echo "$ac_res" >&6; }
6811 as_val=`eval 'as_val=${'$as_ac_var'}
6812                  $as_echo "$as_val"'`
6813    if test "x$as_val" = x""yes; then
6814
6815 cat >>confdefs.h <<_ACEOF
6816 #define CRAY_STACKSEG_END $ac_func
6817 _ACEOF
6818
6819     break
6820 fi
6821
6822   done
6823 fi
6824
6825 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6826 $as_echo_n "checking stack direction for C alloca... " >&6; }
6827 if test "${ac_cv_c_stack_direction+set}" = set; then
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test "$cross_compiling" = yes; then
6831   ac_cv_c_stack_direction=0
6832 else
6833   cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 $ac_includes_default
6840 int
6841 find_stack_direction ()
6842 {
6843   static char *addr = 0;
6844   auto char dummy;
6845   if (addr == 0)
6846     {
6847       addr = &dummy;
6848       return find_stack_direction ();
6849     }
6850   else
6851     return (&dummy > addr) ? 1 : -1;
6852 }
6853
6854 int
6855 main ()
6856 {
6857   return find_stack_direction () < 0;
6858 }
6859 _ACEOF
6860 rm -f conftest$ac_exeext
6861 if { (ac_try="$ac_link"
6862 case "(($ac_try" in
6863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864   *) ac_try_echo=$ac_try;;
6865 esac
6866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6867 $as_echo "$ac_try_echo") >&5
6868   (eval "$ac_link") 2>&5
6869   ac_status=$?
6870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6872   { (case "(($ac_try" in
6873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874   *) ac_try_echo=$ac_try;;
6875 esac
6876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877 $as_echo "$ac_try_echo") >&5
6878   (eval "$ac_try") 2>&5
6879   ac_status=$?
6880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882   ac_cv_c_stack_direction=1
6883 else
6884   $as_echo "$as_me: program exited with status $ac_status" >&5
6885 $as_echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ( exit $ac_status )
6889 ac_cv_c_stack_direction=-1
6890 fi
6891 rm -rf conftest.dSYM
6892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6893 fi
6894
6895
6896 fi
6897 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6898 $as_echo "$ac_cv_c_stack_direction" >&6; }
6899
6900 cat >>confdefs.h <<_ACEOF
6901 #define STACK_DIRECTION $ac_cv_c_stack_direction
6902 _ACEOF
6903
6904
6905 fi
6906
6907
6908
6909 for ac_header in stdlib.h unistd.h
6910 do
6911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6913   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6914 $as_echo_n "checking for $ac_header... " >&6; }
6915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6916   $as_echo_n "(cached) " >&6
6917 fi
6918 ac_res=`eval 'as_val=${'$as_ac_Header'}
6919                  $as_echo "$as_val"'`
6920                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6921 $as_echo "$ac_res" >&6; }
6922 else
6923   # Is the header compilable?
6924 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6925 $as_echo_n "checking $ac_header usability... " >&6; }
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h.  */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h.  */
6932 $ac_includes_default
6933 #include <$ac_header>
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (ac_try="$ac_compile"
6937 case "(($ac_try" in
6938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939   *) ac_try_echo=$ac_try;;
6940 esac
6941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6942 $as_echo "$ac_try_echo") >&5
6943   (eval "$ac_compile") 2>conftest.er1
6944   ac_status=$?
6945   grep -v '^ *+' conftest.er1 >conftest.err
6946   rm -f conftest.er1
6947   cat conftest.err >&5
6948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } && {
6950          test -z "$ac_c_werror_flag" ||
6951          test ! -s conftest.err
6952        } && test -s conftest.$ac_objext; then
6953   ac_header_compiler=yes
6954 else
6955   $as_echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958         ac_header_compiler=no
6959 fi
6960
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6963 $as_echo "$ac_header_compiler" >&6; }
6964
6965 # Is the header present?
6966 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6967 $as_echo_n "checking $ac_header presence... " >&6; }
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 #include <$ac_header>
6975 _ACEOF
6976 if { (ac_try="$ac_cpp conftest.$ac_ext"
6977 case "(($ac_try" in
6978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979   *) ac_try_echo=$ac_try;;
6980 esac
6981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6982 $as_echo "$ac_try_echo") >&5
6983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6984   ac_status=$?
6985   grep -v '^ *+' conftest.er1 >conftest.err
6986   rm -f conftest.er1
6987   cat conftest.err >&5
6988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } >/dev/null && {
6990          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6991          test ! -s conftest.err
6992        }; then
6993   ac_header_preproc=yes
6994 else
6995   $as_echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998   ac_header_preproc=no
6999 fi
7000
7001 rm -f conftest.err conftest.$ac_ext
7002 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7003 $as_echo "$ac_header_preproc" >&6; }
7004
7005 # So?  What about this header?
7006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7007   yes:no: )
7008     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7009 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7010     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7011 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7012     ac_header_preproc=yes
7013     ;;
7014   no:yes:* )
7015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7016 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7018 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7020 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7021     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7022 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7023     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7025     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7026 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7027
7028     ;;
7029 esac
7030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7031 $as_echo_n "checking for $ac_header... " >&6; }
7032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7033   $as_echo_n "(cached) " >&6
7034 else
7035   eval "$as_ac_Header=\$ac_header_preproc"
7036 fi
7037 ac_res=`eval 'as_val=${'$as_ac_Header'}
7038                  $as_echo "$as_val"'`
7039                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7040 $as_echo "$ac_res" >&6; }
7041
7042 fi
7043 as_val=`eval 'as_val=${'$as_ac_Header'}
7044                  $as_echo "$as_val"'`
7045    if test "x$as_val" = x""yes; then
7046   cat >>confdefs.h <<_ACEOF
7047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7048 _ACEOF
7049
7050 fi
7051
7052 done
7053
7054
7055 for ac_func in getpagesize
7056 do
7057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7058 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7059 $as_echo_n "checking for $ac_func... " >&6; }
7060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7061   $as_echo_n "(cached) " >&6
7062 else
7063   cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7071 #define $ac_func innocuous_$ac_func
7072
7073 /* System header to define __stub macros and hopefully few prototypes,
7074     which can conflict with char $ac_func (); below.
7075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076     <limits.h> exists even on freestanding compilers.  */
7077
7078 #ifdef __STDC__
7079 # include <limits.h>
7080 #else
7081 # include <assert.h>
7082 #endif
7083
7084 #undef $ac_func
7085
7086 /* Override any GCC internal prototype to avoid an error.
7087    Use char because int might match the return type of a GCC
7088    builtin and then its argument prototype would still apply.  */
7089 #ifdef __cplusplus
7090 extern "C"
7091 #endif
7092 char $ac_func ();
7093 /* The GNU C library defines this for functions which it implements
7094     to always fail with ENOSYS.  Some functions are actually named
7095     something starting with __ and the normal name is an alias.  */
7096 #if defined __stub_$ac_func || defined __stub___$ac_func
7097 choke me
7098 #endif
7099
7100 int
7101 main ()
7102 {
7103 return $ac_func ();
7104   ;
7105   return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext conftest$ac_exeext
7109 if { (ac_try="$ac_link"
7110 case "(($ac_try" in
7111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112   *) ac_try_echo=$ac_try;;
7113 esac
7114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7115 $as_echo "$ac_try_echo") >&5
7116   (eval "$ac_link") 2>conftest.er1
7117   ac_status=$?
7118   grep -v '^ *+' conftest.er1 >conftest.err
7119   rm -f conftest.er1
7120   cat conftest.err >&5
7121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); } && {
7123          test -z "$ac_c_werror_flag" ||
7124          test ! -s conftest.err
7125        } && test -s conftest$ac_exeext && {
7126          test "$cross_compiling" = yes ||
7127          $as_test_x conftest$ac_exeext
7128        }; then
7129   eval "$as_ac_var=yes"
7130 else
7131   $as_echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134         eval "$as_ac_var=no"
7135 fi
7136
7137 rm -rf conftest.dSYM
7138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7139       conftest$ac_exeext conftest.$ac_ext
7140 fi
7141 ac_res=`eval 'as_val=${'$as_ac_var'}
7142                  $as_echo "$as_val"'`
7143                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7144 $as_echo "$ac_res" >&6; }
7145 as_val=`eval 'as_val=${'$as_ac_var'}
7146                  $as_echo "$as_val"'`
7147    if test "x$as_val" = x""yes; then
7148   cat >>confdefs.h <<_ACEOF
7149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7150 _ACEOF
7151
7152 fi
7153 done
7154
7155 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7156 $as_echo_n "checking for working mmap... " >&6; }
7157 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7158   $as_echo_n "(cached) " >&6
7159 else
7160   if test "$cross_compiling" = yes; then
7161   ac_cv_func_mmap_fixed_mapped=no
7162 else
7163   cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 $ac_includes_default
7170 /* malloc might have been renamed as rpl_malloc. */
7171 #undef malloc
7172
7173 /* Thanks to Mike Haertel and Jim Avera for this test.
7174    Here is a matrix of mmap possibilities:
7175         mmap private not fixed
7176         mmap private fixed at somewhere currently unmapped
7177         mmap private fixed at somewhere already mapped
7178         mmap shared not fixed
7179         mmap shared fixed at somewhere currently unmapped
7180         mmap shared fixed at somewhere already mapped
7181    For private mappings, we should verify that changes cannot be read()
7182    back from the file, nor mmap's back from the file at a different
7183    address.  (There have been systems where private was not correctly
7184    implemented like the infamous i386 svr4.0, and systems where the
7185    VM page cache was not coherent with the file system buffer cache
7186    like early versions of FreeBSD and possibly contemporary NetBSD.)
7187    For shared mappings, we should conversely verify that changes get
7188    propagated back to all the places they're supposed to be.
7189
7190    Grep wants private fixed already mapped.
7191    The main things grep needs to know about mmap are:
7192    * does it exist and is it safe to write into the mmap'd area
7193    * how to use it (BSD variants)  */
7194
7195 #include <fcntl.h>
7196 #include <sys/mman.h>
7197
7198 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7199 char *malloc ();
7200 #endif
7201
7202 /* This mess was copied from the GNU getpagesize.h.  */
7203 #ifndef HAVE_GETPAGESIZE
7204 /* Assume that all systems that can run configure have sys/param.h.  */
7205 # ifndef HAVE_SYS_PARAM_H
7206 #  define HAVE_SYS_PARAM_H 1
7207 # endif
7208
7209 # ifdef _SC_PAGESIZE
7210 #  define getpagesize() sysconf(_SC_PAGESIZE)
7211 # else /* no _SC_PAGESIZE */
7212 #  ifdef HAVE_SYS_PARAM_H
7213 #   include <sys/param.h>
7214 #   ifdef EXEC_PAGESIZE
7215 #    define getpagesize() EXEC_PAGESIZE
7216 #   else /* no EXEC_PAGESIZE */
7217 #    ifdef NBPG
7218 #     define getpagesize() NBPG * CLSIZE
7219 #     ifndef CLSIZE
7220 #      define CLSIZE 1
7221 #     endif /* no CLSIZE */
7222 #    else /* no NBPG */
7223 #     ifdef NBPC
7224 #      define getpagesize() NBPC
7225 #     else /* no NBPC */
7226 #      ifdef PAGESIZE
7227 #       define getpagesize() PAGESIZE
7228 #      endif /* PAGESIZE */
7229 #     endif /* no NBPC */
7230 #    endif /* no NBPG */
7231 #   endif /* no EXEC_PAGESIZE */
7232 #  else /* no HAVE_SYS_PARAM_H */
7233 #   define getpagesize() 8192   /* punt totally */
7234 #  endif /* no HAVE_SYS_PARAM_H */
7235 # endif /* no _SC_PAGESIZE */
7236
7237 #endif /* no HAVE_GETPAGESIZE */
7238
7239 int
7240 main ()
7241 {
7242   char *data, *data2, *data3;
7243   int i, pagesize;
7244   int fd;
7245
7246   pagesize = getpagesize ();
7247
7248   /* First, make a file with some known garbage in it. */
7249   data = (char *) malloc (pagesize);
7250   if (!data)
7251     return 1;
7252   for (i = 0; i < pagesize; ++i)
7253     *(data + i) = rand ();
7254   umask (0);
7255   fd = creat ("conftest.mmap", 0600);
7256   if (fd < 0)
7257     return 1;
7258   if (write (fd, data, pagesize) != pagesize)
7259     return 1;
7260   close (fd);
7261
7262   /* Next, try to mmap the file at a fixed address which already has
7263      something else allocated at it.  If we can, also make sure that
7264      we see the same garbage.  */
7265   fd = open ("conftest.mmap", O_RDWR);
7266   if (fd < 0)
7267     return 1;
7268   data2 = (char *) malloc (2 * pagesize);
7269   if (!data2)
7270     return 1;
7271   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7272   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7273                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7274     return 1;
7275   for (i = 0; i < pagesize; ++i)
7276     if (*(data + i) != *(data2 + i))
7277       return 1;
7278
7279   /* Finally, make sure that changes to the mapped area do not
7280      percolate back to the file as seen by read().  (This is a bug on
7281      some variants of i386 svr4.0.)  */
7282   for (i = 0; i < pagesize; ++i)
7283     *(data2 + i) = *(data2 + i) + 1;
7284   data3 = (char *) malloc (pagesize);
7285   if (!data3)
7286     return 1;
7287   if (read (fd, data3, pagesize) != pagesize)
7288     return 1;
7289   for (i = 0; i < pagesize; ++i)
7290     if (*(data + i) != *(data3 + i))
7291       return 1;
7292   close (fd);
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest$ac_exeext
7297 if { (ac_try="$ac_link"
7298 case "(($ac_try" in
7299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300   *) ac_try_echo=$ac_try;;
7301 esac
7302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7303 $as_echo "$ac_try_echo") >&5
7304   (eval "$ac_link") 2>&5
7305   ac_status=$?
7306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7308   { (case "(($ac_try" in
7309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310   *) ac_try_echo=$ac_try;;
7311 esac
7312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7313 $as_echo "$ac_try_echo") >&5
7314   (eval "$ac_try") 2>&5
7315   ac_status=$?
7316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; }; then
7318   ac_cv_func_mmap_fixed_mapped=yes
7319 else
7320   $as_echo "$as_me: program exited with status $ac_status" >&5
7321 $as_echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 ( exit $ac_status )
7325 ac_cv_func_mmap_fixed_mapped=no
7326 fi
7327 rm -rf conftest.dSYM
7328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7329 fi
7330
7331
7332 fi
7333 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7334 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7335 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7336
7337 cat >>confdefs.h <<\_ACEOF
7338 #define HAVE_MMAP 1
7339 _ACEOF
7340
7341 fi
7342 rm -f conftest.mmap
7343
7344
7345     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7346 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7347 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7348   $as_echo_n "(cached) " >&6
7349 else
7350   cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h.  */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h.  */
7356
7357 #include <features.h>
7358 #ifdef __GNU_LIBRARY__
7359  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7360   Lucky GNU user
7361  #endif
7362 #endif
7363
7364 _ACEOF
7365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7366   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7367   ac_cv_gnu_library_2_1=yes
7368 else
7369   ac_cv_gnu_library_2_1=no
7370 fi
7371 rm -f conftest*
7372
7373
7374
7375 fi
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7377 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7378
7379     GLIBC21="$ac_cv_gnu_library_2_1"
7380
7381
7382
7383
7384   { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7385 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7386 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7387   $as_echo_n "(cached) " >&6
7388 else
7389
7390       if test "$cross_compiling" = yes; then
7391
7392           # Guess based on the CPU.
7393           case "$host_cpu" in
7394             alpha* | i3456786 | m68k | s390*)
7395               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7396             *)
7397               gt_cv_int_divbyzero_sigfpe="guessing no";;
7398           esac
7399
7400 else
7401   cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h.  */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h.  */
7407
7408 #include <stdlib.h>
7409 #include <signal.h>
7410
7411 static void
7412 #ifdef __cplusplus
7413 sigfpe_handler (int sig)
7414 #else
7415 sigfpe_handler (sig) int sig;
7416 #endif
7417 {
7418   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7419   exit (sig != SIGFPE);
7420 }
7421
7422 int x = 1;
7423 int y = 0;
7424 int z;
7425 int nan;
7426
7427 int main ()
7428 {
7429   signal (SIGFPE, sigfpe_handler);
7430 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7431 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7432   signal (SIGTRAP, sigfpe_handler);
7433 #endif
7434 /* Linux/SPARC yields signal SIGILL.  */
7435 #if defined (__sparc__) && defined (__linux__)
7436   signal (SIGILL, sigfpe_handler);
7437 #endif
7438
7439   z = x / y;
7440   nan = y / y;
7441   exit (1);
7442 }
7443
7444 _ACEOF
7445 rm -f conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7447 case "(($ac_try" in
7448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449   *) ac_try_echo=$ac_try;;
7450 esac
7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453   (eval "$ac_link") 2>&5
7454   ac_status=$?
7455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457   { (case "(($ac_try" in
7458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459   *) ac_try_echo=$ac_try;;
7460 esac
7461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7462 $as_echo "$ac_try_echo") >&5
7463   (eval "$ac_try") 2>&5
7464   ac_status=$?
7465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); }; }; then
7467   gt_cv_int_divbyzero_sigfpe=yes
7468 else
7469   $as_echo "$as_me: program exited with status $ac_status" >&5
7470 $as_echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7472
7473 ( exit $ac_status )
7474 gt_cv_int_divbyzero_sigfpe=no
7475 fi
7476 rm -rf conftest.dSYM
7477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7478 fi
7479
7480
7481
7482 fi
7483 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7484 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7485   case "$gt_cv_int_divbyzero_sigfpe" in
7486     *yes) value=1;;
7487     *) value=0;;
7488   esac
7489
7490 cat >>confdefs.h <<_ACEOF
7491 #define INTDIV0_RAISES_SIGFPE $value
7492 _ACEOF
7493
7494
7495
7496   { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7497 $as_echo_n "checking for unsigned long long... " >&6; }
7498 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7499   $as_echo_n "(cached) " >&6
7500 else
7501   cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 unsigned long long ull = 1ULL; int i = 63;
7508 int
7509 main ()
7510 {
7511 unsigned long long ullmax = (unsigned long long) -1;
7512      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (ac_try="$ac_link"
7519 case "(($ac_try" in
7520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521   *) ac_try_echo=$ac_try;;
7522 esac
7523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7524 $as_echo "$ac_try_echo") >&5
7525   (eval "$ac_link") 2>conftest.er1
7526   ac_status=$?
7527   grep -v '^ *+' conftest.er1 >conftest.err
7528   rm -f conftest.er1
7529   cat conftest.err >&5
7530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); } && {
7532          test -z "$ac_c_werror_flag" ||
7533          test ! -s conftest.err
7534        } && test -s conftest$ac_exeext && {
7535          test "$cross_compiling" = yes ||
7536          $as_test_x conftest$ac_exeext
7537        }; then
7538   ac_cv_type_unsigned_long_long=yes
7539 else
7540   $as_echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543         ac_cv_type_unsigned_long_long=no
7544 fi
7545
7546 rm -rf conftest.dSYM
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548       conftest$ac_exeext conftest.$ac_ext
7549 fi
7550 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7551 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7552   if test $ac_cv_type_unsigned_long_long = yes; then
7553
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_UNSIGNED_LONG_LONG 1
7556 _ACEOF
7557
7558   fi
7559
7560
7561
7562
7563   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7564
7565     test $ac_cv_type_unsigned_long_long = yes \
7566       && ac_type='unsigned long long' \
7567       || ac_type='unsigned long'
7568
7569 cat >>confdefs.h <<_ACEOF
7570 #define uintmax_t $ac_type
7571 _ACEOF
7572
7573   else
7574
7575 cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_UINTMAX_T 1
7577 _ACEOF
7578
7579   fi
7580
7581
7582   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7583 $as_echo_n "checking for inttypes.h... " >&6; }
7584 if test "${gt_cv_header_inttypes_h+set}" = set; then
7585   $as_echo_n "(cached) " >&6
7586 else
7587
7588     cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594 #include <sys/types.h>
7595 #include <inttypes.h>
7596 int
7597 main ()
7598 {
7599
7600   ;
7601   return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (ac_try="$ac_compile"
7606 case "(($ac_try" in
7607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608   *) ac_try_echo=$ac_try;;
7609 esac
7610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7611 $as_echo "$ac_try_echo") >&5
7612   (eval "$ac_compile") 2>conftest.er1
7613   ac_status=$?
7614   grep -v '^ *+' conftest.er1 >conftest.err
7615   rm -f conftest.er1
7616   cat conftest.err >&5
7617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); } && {
7619          test -z "$ac_c_werror_flag" ||
7620          test ! -s conftest.err
7621        } && test -s conftest.$ac_objext; then
7622   gt_cv_header_inttypes_h=yes
7623 else
7624   $as_echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7626
7627         gt_cv_header_inttypes_h=no
7628 fi
7629
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631
7632 fi
7633 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7634 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7635   if test $gt_cv_header_inttypes_h = yes; then
7636
7637 cat >>confdefs.h <<_ACEOF
7638 #define HAVE_INTTYPES_H 1
7639 _ACEOF
7640
7641   fi
7642
7643
7644
7645   if test $gt_cv_header_inttypes_h = yes; then
7646     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7647 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7648 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7649   $as_echo_n "(cached) " >&6
7650 else
7651
7652         cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658 #include <inttypes.h>
7659 #ifdef PRId32
7660 char *p = PRId32;
7661 #endif
7662
7663 int
7664 main ()
7665 {
7666
7667   ;
7668   return 0;
7669 }
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (ac_try="$ac_compile"
7673 case "(($ac_try" in
7674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675   *) ac_try_echo=$ac_try;;
7676 esac
7677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7678 $as_echo "$ac_try_echo") >&5
7679   (eval "$ac_compile") 2>conftest.er1
7680   ac_status=$?
7681   grep -v '^ *+' conftest.er1 >conftest.err
7682   rm -f conftest.er1
7683   cat conftest.err >&5
7684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); } && {
7686          test -z "$ac_c_werror_flag" ||
7687          test ! -s conftest.err
7688        } && test -s conftest.$ac_objext; then
7689   gt_cv_inttypes_pri_broken=no
7690 else
7691   $as_echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694         gt_cv_inttypes_pri_broken=yes
7695 fi
7696
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698
7699 fi
7700 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7701 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7702   fi
7703   if test "$gt_cv_inttypes_pri_broken" = yes; then
7704
7705 cat >>confdefs.h <<_ACEOF
7706 #define PRI_MACROS_BROKEN 1
7707 _ACEOF
7708
7709   fi
7710
7711
7712
7713 for ac_header in stdint.h
7714 do
7715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7717   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7718 $as_echo_n "checking for $ac_header... " >&6; }
7719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7720   $as_echo_n "(cached) " >&6
7721 fi
7722 ac_res=`eval 'as_val=${'$as_ac_Header'}
7723                  $as_echo "$as_val"'`
7724                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7725 $as_echo "$ac_res" >&6; }
7726 else
7727   # Is the header compilable?
7728 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7729 $as_echo_n "checking $ac_header usability... " >&6; }
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h.  */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h.  */
7736 $ac_includes_default
7737 #include <$ac_header>
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7741 case "(($ac_try" in
7742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743   *) ac_try_echo=$ac_try;;
7744 esac
7745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7746 $as_echo "$ac_try_echo") >&5
7747   (eval "$ac_compile") 2>conftest.er1
7748   ac_status=$?
7749   grep -v '^ *+' conftest.er1 >conftest.err
7750   rm -f conftest.er1
7751   cat conftest.err >&5
7752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); } && {
7754          test -z "$ac_c_werror_flag" ||
7755          test ! -s conftest.err
7756        } && test -s conftest.$ac_objext; then
7757   ac_header_compiler=yes
7758 else
7759   $as_echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7761
7762         ac_header_compiler=no
7763 fi
7764
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767 $as_echo "$ac_header_compiler" >&6; }
7768
7769 # Is the header present?
7770 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7771 $as_echo_n "checking $ac_header presence... " >&6; }
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h.  */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h.  */
7778 #include <$ac_header>
7779 _ACEOF
7780 if { (ac_try="$ac_cpp conftest.$ac_ext"
7781 case "(($ac_try" in
7782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783   *) ac_try_echo=$ac_try;;
7784 esac
7785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7786 $as_echo "$ac_try_echo") >&5
7787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7788   ac_status=$?
7789   grep -v '^ *+' conftest.er1 >conftest.err
7790   rm -f conftest.er1
7791   cat conftest.err >&5
7792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } >/dev/null && {
7794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7795          test ! -s conftest.err
7796        }; then
7797   ac_header_preproc=yes
7798 else
7799   $as_echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7801
7802   ac_header_preproc=no
7803 fi
7804
7805 rm -f conftest.err conftest.$ac_ext
7806 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7807 $as_echo "$ac_header_preproc" >&6; }
7808
7809 # So?  What about this header?
7810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7811   yes:no: )
7812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7813 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7815 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7816     ac_header_preproc=yes
7817     ;;
7818   no:yes:* )
7819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7820 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7822 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7824 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7826 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7827     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7828 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7830 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7831
7832     ;;
7833 esac
7834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7835 $as_echo_n "checking for $ac_header... " >&6; }
7836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7837   $as_echo_n "(cached) " >&6
7838 else
7839   eval "$as_ac_Header=\$ac_header_preproc"
7840 fi
7841 ac_res=`eval 'as_val=${'$as_ac_Header'}
7842                  $as_echo "$as_val"'`
7843                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7844 $as_echo "$ac_res" >&6; }
7845
7846 fi
7847 as_val=`eval 'as_val=${'$as_ac_Header'}
7848                  $as_echo "$as_val"'`
7849    if test "x$as_val" = x""yes; then
7850   cat >>confdefs.h <<_ACEOF
7851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7852 _ACEOF
7853
7854 fi
7855
7856 done
7857
7858     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7859 $as_echo_n "checking for SIZE_MAX... " >&6; }
7860   result=
7861   cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867
7868 #include <limits.h>
7869 #if HAVE_STDINT_H
7870 #include <stdint.h>
7871 #endif
7872 #ifdef SIZE_MAX
7873 Found it
7874 #endif
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878   $EGREP "Found it" >/dev/null 2>&1; then
7879   result=yes
7880 fi
7881 rm -f conftest*
7882
7883   if test -z "$result"; then
7884                     if test "$cross_compiling" = yes; then
7885   # Depending upon the size, compute the lo and hi bounds.
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h.  */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h.  */
7892 #include <stddef.h>
7893 int
7894 main ()
7895 {
7896 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7897 test_array [0] = 0
7898
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7905 case "(($ac_try" in
7906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907   *) ac_try_echo=$ac_try;;
7908 esac
7909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7910 $as_echo "$ac_try_echo") >&5
7911   (eval "$ac_compile") 2>conftest.er1
7912   ac_status=$?
7913   grep -v '^ *+' conftest.er1 >conftest.err
7914   rm -f conftest.er1
7915   cat conftest.err >&5
7916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } && {
7918          test -z "$ac_c_werror_flag" ||
7919          test ! -s conftest.err
7920        } && test -s conftest.$ac_objext; then
7921   ac_lo=0 ac_mid=0
7922   while :; do
7923     cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h.  */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h.  */
7929 #include <stddef.h>
7930 int
7931 main ()
7932 {
7933 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7934 test_array [0] = 0
7935
7936   ;
7937   return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7942 case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948   (eval "$ac_compile") 2>conftest.er1
7949   ac_status=$?
7950   grep -v '^ *+' conftest.er1 >conftest.err
7951   rm -f conftest.er1
7952   cat conftest.err >&5
7953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } && {
7955          test -z "$ac_c_werror_flag" ||
7956          test ! -s conftest.err
7957        } && test -s conftest.$ac_objext; then
7958   ac_hi=$ac_mid; break
7959 else
7960   $as_echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7962
7963         ac_lo=`expr $ac_mid + 1`
7964                         if test $ac_lo -le $ac_mid; then
7965                           ac_lo= ac_hi=
7966                           break
7967                         fi
7968                         ac_mid=`expr 2 '*' $ac_mid + 1`
7969 fi
7970
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972   done
7973 else
7974   $as_echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977         cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h.  */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h.  */
7983 #include <stddef.h>
7984 int
7985 main ()
7986 {
7987 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7988 test_array [0] = 0
7989
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7996 case "(($ac_try" in
7997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998   *) ac_try_echo=$ac_try;;
7999 esac
8000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8001 $as_echo "$ac_try_echo") >&5
8002   (eval "$ac_compile") 2>conftest.er1
8003   ac_status=$?
8004   grep -v '^ *+' conftest.er1 >conftest.err
8005   rm -f conftest.er1
8006   cat conftest.err >&5
8007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); } && {
8009          test -z "$ac_c_werror_flag" ||
8010          test ! -s conftest.err
8011        } && test -s conftest.$ac_objext; then
8012   ac_hi=-1 ac_mid=-1
8013   while :; do
8014     cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h.  */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h.  */
8020 #include <stddef.h>
8021 int
8022 main ()
8023 {
8024 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8025 test_array [0] = 0
8026
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039   (eval "$ac_compile") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && {
8046          test -z "$ac_c_werror_flag" ||
8047          test ! -s conftest.err
8048        } && test -s conftest.$ac_objext; then
8049   ac_lo=$ac_mid; break
8050 else
8051   $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054         ac_hi=`expr '(' $ac_mid ')' - 1`
8055                         if test $ac_mid -le $ac_hi; then
8056                           ac_lo= ac_hi=
8057                           break
8058                         fi
8059                         ac_mid=`expr 2 '*' $ac_mid`
8060 fi
8061
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063   done
8064 else
8065   $as_echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068         ac_lo= ac_hi=
8069 fi
8070
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 fi
8073
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 # Binary search between lo and hi bounds.
8076 while test "x$ac_lo" != "x$ac_hi"; do
8077   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8078   cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084 #include <stddef.h>
8085 int
8086 main ()
8087 {
8088 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8089 test_array [0] = 0
8090
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 rm -f conftest.$ac_objext
8096 if { (ac_try="$ac_compile"
8097 case "(($ac_try" in
8098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099   *) ac_try_echo=$ac_try;;
8100 esac
8101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8102 $as_echo "$ac_try_echo") >&5
8103   (eval "$ac_compile") 2>conftest.er1
8104   ac_status=$?
8105   grep -v '^ *+' conftest.er1 >conftest.err
8106   rm -f conftest.er1
8107   cat conftest.err >&5
8108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } && {
8110          test -z "$ac_c_werror_flag" ||
8111          test ! -s conftest.err
8112        } && test -s conftest.$ac_objext; then
8113   ac_hi=$ac_mid
8114 else
8115   $as_echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118         ac_lo=`expr '(' $ac_mid ')' + 1`
8119 fi
8120
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 done
8123 case $ac_lo in
8124 ?*) res_hi=$ac_lo;;
8125 '') result=? ;;
8126 esac
8127 else
8128   cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h.  */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h.  */
8134 #include <stddef.h>
8135 static long int longval () { return ~(size_t)0 / 10; }
8136 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
8137 #include <stdio.h>
8138 #include <stdlib.h>
8139 int
8140 main ()
8141 {
8142
8143   FILE *f = fopen ("conftest.val", "w");
8144   if (! f)
8145     return 1;
8146   if ((~(size_t)0 / 10) < 0)
8147     {
8148       long int i = longval ();
8149       if (i != (~(size_t)0 / 10))
8150         return 1;
8151       fprintf (f, "%ld", i);
8152     }
8153   else
8154     {
8155       unsigned long int i = ulongval ();
8156       if (i != (~(size_t)0 / 10))
8157         return 1;
8158       fprintf (f, "%lu", i);
8159     }
8160   /* Do not output a trailing newline, as this causes \r\n confusion
8161      on some platforms.  */
8162   return ferror (f) || fclose (f) != 0;
8163
8164   ;
8165   return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8170 case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8175 $as_echo "$ac_try_echo") >&5
8176   (eval "$ac_link") 2>&5
8177   ac_status=$?
8178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8180   { (case "(($ac_try" in
8181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182   *) ac_try_echo=$ac_try;;
8183 esac
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186   (eval "$ac_try") 2>&5
8187   ac_status=$?
8188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   res_hi=`cat conftest.val`
8191 else
8192   $as_echo "$as_me: program exited with status $ac_status" >&5
8193 $as_echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ( exit $ac_status )
8197 result=?
8198 fi
8199 rm -rf conftest.dSYM
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8201 fi
8202 rm -f conftest.val
8203
8204     if test "$cross_compiling" = yes; then
8205   # Depending upon the size, compute the lo and hi bounds.
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h.  */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h.  */
8212 #include <stddef.h>
8213 int
8214 main ()
8215 {
8216 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8217 test_array [0] = 0
8218
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (ac_try="$ac_compile"
8225 case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8230 $as_echo "$ac_try_echo") >&5
8231   (eval "$ac_compile") 2>conftest.er1
8232   ac_status=$?
8233   grep -v '^ *+' conftest.er1 >conftest.err
8234   rm -f conftest.er1
8235   cat conftest.err >&5
8236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } && {
8238          test -z "$ac_c_werror_flag" ||
8239          test ! -s conftest.err
8240        } && test -s conftest.$ac_objext; then
8241   ac_lo=0 ac_mid=0
8242   while :; do
8243     cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h.  */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h.  */
8249 #include <stddef.h>
8250 int
8251 main ()
8252 {
8253 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8254 test_array [0] = 0
8255
8256   ;
8257   return 0;
8258 }
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8262 case "(($ac_try" in
8263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264   *) ac_try_echo=$ac_try;;
8265 esac
8266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8267 $as_echo "$ac_try_echo") >&5
8268   (eval "$ac_compile") 2>conftest.er1
8269   ac_status=$?
8270   grep -v '^ *+' conftest.er1 >conftest.err
8271   rm -f conftest.er1
8272   cat conftest.err >&5
8273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } && {
8275          test -z "$ac_c_werror_flag" ||
8276          test ! -s conftest.err
8277        } && test -s conftest.$ac_objext; then
8278   ac_hi=$ac_mid; break
8279 else
8280   $as_echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283         ac_lo=`expr $ac_mid + 1`
8284                         if test $ac_lo -le $ac_mid; then
8285                           ac_lo= ac_hi=
8286                           break
8287                         fi
8288                         ac_mid=`expr 2 '*' $ac_mid + 1`
8289 fi
8290
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292   done
8293 else
8294   $as_echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297         cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303 #include <stddef.h>
8304 int
8305 main ()
8306 {
8307 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8308 test_array [0] = 0
8309
8310   ;
8311   return 0;
8312 }
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8316 case "(($ac_try" in
8317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318   *) ac_try_echo=$ac_try;;
8319 esac
8320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8321 $as_echo "$ac_try_echo") >&5
8322   (eval "$ac_compile") 2>conftest.er1
8323   ac_status=$?
8324   grep -v '^ *+' conftest.er1 >conftest.err
8325   rm -f conftest.er1
8326   cat conftest.err >&5
8327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } && {
8329          test -z "$ac_c_werror_flag" ||
8330          test ! -s conftest.err
8331        } && test -s conftest.$ac_objext; then
8332   ac_hi=-1 ac_mid=-1
8333   while :; do
8334     cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340 #include <stddef.h>
8341 int
8342 main ()
8343 {
8344 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8345 test_array [0] = 0
8346
8347   ;
8348   return 0;
8349 }
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8353 case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8358 $as_echo "$ac_try_echo") >&5
8359   (eval "$ac_compile") 2>conftest.er1
8360   ac_status=$?
8361   grep -v '^ *+' conftest.er1 >conftest.err
8362   rm -f conftest.er1
8363   cat conftest.err >&5
8364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } && {
8366          test -z "$ac_c_werror_flag" ||
8367          test ! -s conftest.err
8368        } && test -s conftest.$ac_objext; then
8369   ac_lo=$ac_mid; break
8370 else
8371   $as_echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374         ac_hi=`expr '(' $ac_mid ')' - 1`
8375                         if test $ac_mid -le $ac_hi; then
8376                           ac_lo= ac_hi=
8377                           break
8378                         fi
8379                         ac_mid=`expr 2 '*' $ac_mid`
8380 fi
8381
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383   done
8384 else
8385   $as_echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388         ac_lo= ac_hi=
8389 fi
8390
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 fi
8393
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 # Binary search between lo and hi bounds.
8396 while test "x$ac_lo" != "x$ac_hi"; do
8397   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8398   cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404 #include <stddef.h>
8405 int
8406 main ()
8407 {
8408 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8409 test_array [0] = 0
8410
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8417 case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8422 $as_echo "$ac_try_echo") >&5
8423   (eval "$ac_compile") 2>conftest.er1
8424   ac_status=$?
8425   grep -v '^ *+' conftest.er1 >conftest.err
8426   rm -f conftest.er1
8427   cat conftest.err >&5
8428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } && {
8430          test -z "$ac_c_werror_flag" ||
8431          test ! -s conftest.err
8432        } && test -s conftest.$ac_objext; then
8433   ac_hi=$ac_mid
8434 else
8435   $as_echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438         ac_lo=`expr '(' $ac_mid ')' + 1`
8439 fi
8440
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 done
8443 case $ac_lo in
8444 ?*) res_lo=$ac_lo;;
8445 '') result=? ;;
8446 esac
8447 else
8448   cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454 #include <stddef.h>
8455 static long int longval () { return ~(size_t)0 % 10; }
8456 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8457 #include <stdio.h>
8458 #include <stdlib.h>
8459 int
8460 main ()
8461 {
8462
8463   FILE *f = fopen ("conftest.val", "w");
8464   if (! f)
8465     return 1;
8466   if ((~(size_t)0 % 10) < 0)
8467     {
8468       long int i = longval ();
8469       if (i != (~(size_t)0 % 10))
8470         return 1;
8471       fprintf (f, "%ld", i);
8472     }
8473   else
8474     {
8475       unsigned long int i = ulongval ();
8476       if (i != (~(size_t)0 % 10))
8477         return 1;
8478       fprintf (f, "%lu", i);
8479     }
8480   /* Do not output a trailing newline, as this causes \r\n confusion
8481      on some platforms.  */
8482   return ferror (f) || fclose (f) != 0;
8483
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8490 case "(($ac_try" in
8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492   *) ac_try_echo=$ac_try;;
8493 esac
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496   (eval "$ac_link") 2>&5
8497   ac_status=$?
8498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8500   { (case "(($ac_try" in
8501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502   *) ac_try_echo=$ac_try;;
8503 esac
8504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8505 $as_echo "$ac_try_echo") >&5
8506   (eval "$ac_try") 2>&5
8507   ac_status=$?
8508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   res_lo=`cat conftest.val`
8511 else
8512   $as_echo "$as_me: program exited with status $ac_status" >&5
8513 $as_echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ( exit $ac_status )
8517 result=?
8518 fi
8519 rm -rf conftest.dSYM
8520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8521 fi
8522 rm -f conftest.val
8523
8524     if test "$cross_compiling" = yes; then
8525   # Depending upon the size, compute the lo and hi bounds.
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 #include <stddef.h>
8533 int
8534 main ()
8535 {
8536 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8537 test_array [0] = 0
8538
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (ac_try="$ac_compile"
8545 case "(($ac_try" in
8546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547   *) ac_try_echo=$ac_try;;
8548 esac
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551   (eval "$ac_compile") 2>conftest.er1
8552   ac_status=$?
8553   grep -v '^ *+' conftest.er1 >conftest.err
8554   rm -f conftest.er1
8555   cat conftest.err >&5
8556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } && {
8558          test -z "$ac_c_werror_flag" ||
8559          test ! -s conftest.err
8560        } && test -s conftest.$ac_objext; then
8561   ac_lo=0 ac_mid=0
8562   while :; do
8563     cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569 #include <stddef.h>
8570 int
8571 main ()
8572 {
8573 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8574 test_array [0] = 0
8575
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext
8581 if { (ac_try="$ac_compile"
8582 case "(($ac_try" in
8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584   *) ac_try_echo=$ac_try;;
8585 esac
8586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8587 $as_echo "$ac_try_echo") >&5
8588   (eval "$ac_compile") 2>conftest.er1
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
8592   cat conftest.err >&5
8593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } && {
8595          test -z "$ac_c_werror_flag" ||
8596          test ! -s conftest.err
8597        } && test -s conftest.$ac_objext; then
8598   ac_hi=$ac_mid; break
8599 else
8600   $as_echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603         ac_lo=`expr $ac_mid + 1`
8604                         if test $ac_lo -le $ac_mid; then
8605                           ac_lo= ac_hi=
8606                           break
8607                         fi
8608                         ac_mid=`expr 2 '*' $ac_mid + 1`
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612   done
8613 else
8614   $as_echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617         cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h.  */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h.  */
8623 #include <stddef.h>
8624 int
8625 main ()
8626 {
8627 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8628 test_array [0] = 0
8629
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8636 case "(($ac_try" in
8637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638   *) ac_try_echo=$ac_try;;
8639 esac
8640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642   (eval "$ac_compile") 2>conftest.er1
8643   ac_status=$?
8644   grep -v '^ *+' conftest.er1 >conftest.err
8645   rm -f conftest.er1
8646   cat conftest.err >&5
8647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); } && {
8649          test -z "$ac_c_werror_flag" ||
8650          test ! -s conftest.err
8651        } && test -s conftest.$ac_objext; then
8652   ac_hi=-1 ac_mid=-1
8653   while :; do
8654     cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660 #include <stddef.h>
8661 int
8662 main ()
8663 {
8664 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8665 test_array [0] = 0
8666
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8673 case "(($ac_try" in
8674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675   *) ac_try_echo=$ac_try;;
8676 esac
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679   (eval "$ac_compile") 2>conftest.er1
8680   ac_status=$?
8681   grep -v '^ *+' conftest.er1 >conftest.err
8682   rm -f conftest.er1
8683   cat conftest.err >&5
8684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); } && {
8686          test -z "$ac_c_werror_flag" ||
8687          test ! -s conftest.err
8688        } && test -s conftest.$ac_objext; then
8689   ac_lo=$ac_mid; break
8690 else
8691   $as_echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694         ac_hi=`expr '(' $ac_mid ')' - 1`
8695                         if test $ac_mid -le $ac_hi; then
8696                           ac_lo= ac_hi=
8697                           break
8698                         fi
8699                         ac_mid=`expr 2 '*' $ac_mid`
8700 fi
8701
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703   done
8704 else
8705   $as_echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708         ac_lo= ac_hi=
8709 fi
8710
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 fi
8713
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 # Binary search between lo and hi bounds.
8716 while test "x$ac_lo" != "x$ac_hi"; do
8717   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8718   cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724 #include <stddef.h>
8725 int
8726 main ()
8727 {
8728 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8729 test_array [0] = 0
8730
8731   ;
8732   return 0;
8733 }
8734 _ACEOF
8735 rm -f conftest.$ac_objext
8736 if { (ac_try="$ac_compile"
8737 case "(($ac_try" in
8738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739   *) ac_try_echo=$ac_try;;
8740 esac
8741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742 $as_echo "$ac_try_echo") >&5
8743   (eval "$ac_compile") 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } && {
8750          test -z "$ac_c_werror_flag" ||
8751          test ! -s conftest.err
8752        } && test -s conftest.$ac_objext; then
8753   ac_hi=$ac_mid
8754 else
8755   $as_echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758         ac_lo=`expr '(' $ac_mid ')' + 1`
8759 fi
8760
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 done
8763 case $ac_lo in
8764 ?*) fits_in_uint=$ac_lo;;
8765 '') result=? ;;
8766 esac
8767 else
8768   cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h.  */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h.  */
8774 #include <stddef.h>
8775 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8776 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8777 #include <stdio.h>
8778 #include <stdlib.h>
8779 int
8780 main ()
8781 {
8782
8783   FILE *f = fopen ("conftest.val", "w");
8784   if (! f)
8785     return 1;
8786   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8787     {
8788       long int i = longval ();
8789       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8790         return 1;
8791       fprintf (f, "%ld", i);
8792     }
8793   else
8794     {
8795       unsigned long int i = ulongval ();
8796       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8797         return 1;
8798       fprintf (f, "%lu", i);
8799     }
8800   /* Do not output a trailing newline, as this causes \r\n confusion
8801      on some platforms.  */
8802   return ferror (f) || fclose (f) != 0;
8803
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest$ac_exeext
8809 if { (ac_try="$ac_link"
8810 case "(($ac_try" in
8811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812   *) ac_try_echo=$ac_try;;
8813 esac
8814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815 $as_echo "$ac_try_echo") >&5
8816   (eval "$ac_link") 2>&5
8817   ac_status=$?
8818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8820   { (case "(($ac_try" in
8821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822   *) ac_try_echo=$ac_try;;
8823 esac
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826   (eval "$ac_try") 2>&5
8827   ac_status=$?
8828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   fits_in_uint=`cat conftest.val`
8831 else
8832   $as_echo "$as_me: program exited with status $ac_status" >&5
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836 ( exit $ac_status )
8837 result=?
8838 fi
8839 rm -rf conftest.dSYM
8840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8841 fi
8842 rm -f conftest.val
8843
8844     if test "$fits_in_uint" = 1; then
8845                   cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h.  */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h.  */
8851 #include <stddef.h>
8852         extern size_t foo;
8853         extern unsigned long foo;
8854
8855 int
8856 main ()
8857 {
8858
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8865 case "(($ac_try" in
8866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867   *) ac_try_echo=$ac_try;;
8868 esac
8869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8870 $as_echo "$ac_try_echo") >&5
8871   (eval "$ac_compile") 2>conftest.er1
8872   ac_status=$?
8873   grep -v '^ *+' conftest.er1 >conftest.err
8874   rm -f conftest.er1
8875   cat conftest.err >&5
8876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); } && {
8878          test -z "$ac_c_werror_flag" ||
8879          test ! -s conftest.err
8880        } && test -s conftest.$ac_objext; then
8881   fits_in_uint=0
8882 else
8883   $as_echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886
8887 fi
8888
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890     fi
8891     if test -z "$result"; then
8892       if test "$fits_in_uint" = 1; then
8893         result="$res_hi$res_lo"U
8894       else
8895         result="$res_hi$res_lo"UL
8896       fi
8897     else
8898             result='~(size_t)0'
8899     fi
8900   fi
8901   { $as_echo "$as_me:$LINENO: result: $result" >&5
8902 $as_echo "$result" >&6; }
8903   if test "$result" != yes; then
8904
8905 cat >>confdefs.h <<_ACEOF
8906 #define SIZE_MAX $result
8907 _ACEOF
8908
8909   fi
8910
8911
8912
8913
8914 for ac_header in stdint.h
8915 do
8916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8918   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8919 $as_echo_n "checking for $ac_header... " >&6; }
8920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8921   $as_echo_n "(cached) " >&6
8922 fi
8923 ac_res=`eval 'as_val=${'$as_ac_Header'}
8924                  $as_echo "$as_val"'`
8925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8926 $as_echo "$ac_res" >&6; }
8927 else
8928   # Is the header compilable?
8929 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8930 $as_echo_n "checking $ac_header usability... " >&6; }
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 $ac_includes_default
8938 #include <$ac_header>
8939 _ACEOF
8940 rm -f conftest.$ac_objext
8941 if { (ac_try="$ac_compile"
8942 case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948   (eval "$ac_compile") 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } && {
8955          test -z "$ac_c_werror_flag" ||
8956          test ! -s conftest.err
8957        } && test -s conftest.$ac_objext; then
8958   ac_header_compiler=yes
8959 else
8960   $as_echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963         ac_header_compiler=no
8964 fi
8965
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8968 $as_echo "$ac_header_compiler" >&6; }
8969
8970 # Is the header present?
8971 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8972 $as_echo_n "checking $ac_header presence... " >&6; }
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h.  */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h.  */
8979 #include <$ac_header>
8980 _ACEOF
8981 if { (ac_try="$ac_cpp conftest.$ac_ext"
8982 case "(($ac_try" in
8983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984   *) ac_try_echo=$ac_try;;
8985 esac
8986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8987 $as_echo "$ac_try_echo") >&5
8988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8989   ac_status=$?
8990   grep -v '^ *+' conftest.er1 >conftest.err
8991   rm -f conftest.er1
8992   cat conftest.err >&5
8993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); } >/dev/null && {
8995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8996          test ! -s conftest.err
8997        }; then
8998   ac_header_preproc=yes
8999 else
9000   $as_echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003   ac_header_preproc=no
9004 fi
9005
9006 rm -f conftest.err conftest.$ac_ext
9007 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9008 $as_echo "$ac_header_preproc" >&6; }
9009
9010 # So?  What about this header?
9011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9012   yes:no: )
9013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9014 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9017     ac_header_preproc=yes
9018     ;;
9019   no:yes:* )
9020     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9021 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9023 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9024     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9025 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9027 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9030     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9031 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9032
9033     ;;
9034 esac
9035 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9036 $as_echo_n "checking for $ac_header... " >&6; }
9037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9038   $as_echo_n "(cached) " >&6
9039 else
9040   eval "$as_ac_Header=\$ac_header_preproc"
9041 fi
9042 ac_res=`eval 'as_val=${'$as_ac_Header'}
9043                  $as_echo "$as_val"'`
9044                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9045 $as_echo "$ac_res" >&6; }
9046
9047 fi
9048 as_val=`eval 'as_val=${'$as_ac_Header'}
9049                  $as_echo "$as_val"'`
9050    if test "x$as_val" = x""yes; then
9051   cat >>confdefs.h <<_ACEOF
9052 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9053 _ACEOF
9054
9055 fi
9056
9057 done
9058
9059
9060
9061       if test "X$prefix" = "XNONE"; then
9062     acl_final_prefix="$ac_default_prefix"
9063   else
9064     acl_final_prefix="$prefix"
9065   fi
9066   if test "X$exec_prefix" = "XNONE"; then
9067     acl_final_exec_prefix='${prefix}'
9068   else
9069     acl_final_exec_prefix="$exec_prefix"
9070   fi
9071   acl_save_prefix="$prefix"
9072   prefix="$acl_final_prefix"
9073   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9074   prefix="$acl_save_prefix"
9075
9076
9077 # Check whether --with-gnu-ld was given.
9078 if test "${with_gnu_ld+set}" = set; then
9079   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9080 else
9081   with_gnu_ld=no
9082 fi
9083
9084 # Prepare PATH_SEPARATOR.
9085 # The user is always right.
9086 if test "${PATH_SEPARATOR+set}" != set; then
9087   echo "#! /bin/sh" >conf$$.sh
9088   echo  "exit 0"   >>conf$$.sh
9089   chmod +x conf$$.sh
9090   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9091     PATH_SEPARATOR=';'
9092   else
9093     PATH_SEPARATOR=:
9094   fi
9095   rm -f conf$$.sh
9096 fi
9097 ac_prog=ld
9098 if test "$GCC" = yes; then
9099   # Check if gcc -print-prog-name=ld gives a path.
9100   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9101 $as_echo_n "checking for ld used by GCC... " >&6; }
9102   case $host in
9103   *-*-mingw*)
9104     # gcc leaves a trailing carriage return which upsets mingw
9105     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9106   *)
9107     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9108   esac
9109   case $ac_prog in
9110     # Accept absolute paths.
9111     [\\/]* | [A-Za-z]:[\\/]*)
9112       re_direlt='/[^/][^/]*/\.\./'
9113       # Canonicalize the path of ld
9114       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9115       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9116         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9117       done
9118       test -z "$LD" && LD="$ac_prog"
9119       ;;
9120   "")
9121     # If it fails, then pretend we aren't using GCC.
9122     ac_prog=ld
9123     ;;
9124   *)
9125     # If it is relative, then search for the first ld in PATH.
9126     with_gnu_ld=unknown
9127     ;;
9128   esac
9129 elif test "$with_gnu_ld" = yes; then
9130   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9131 $as_echo_n "checking for GNU ld... " >&6; }
9132 else
9133   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9134 $as_echo_n "checking for non-GNU ld... " >&6; }
9135 fi
9136 if test "${acl_cv_path_LD+set}" = set; then
9137   $as_echo_n "(cached) " >&6
9138 else
9139   if test -z "$LD"; then
9140   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9141   for ac_dir in $PATH; do
9142     test -z "$ac_dir" && ac_dir=.
9143     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9144       acl_cv_path_LD="$ac_dir/$ac_prog"
9145       # Check to see if the program is GNU ld.  I'd rather use --version,
9146       # but apparently some GNU ld's only accept -v.
9147       # Break only if it was the GNU/non-GNU ld that we prefer.
9148       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9149       *GNU* | *'with BFD'*)
9150         test "$with_gnu_ld" != no && break ;;
9151       *)
9152         test "$with_gnu_ld" != yes && break ;;
9153       esac
9154     fi
9155   done
9156   IFS="$ac_save_ifs"
9157 else
9158   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9159 fi
9160 fi
9161
9162 LD="$acl_cv_path_LD"
9163 if test -n "$LD"; then
9164   { $as_echo "$as_me:$LINENO: result: $LD" >&5
9165 $as_echo "$LD" >&6; }
9166 else
9167   { $as_echo "$as_me:$LINENO: result: no" >&5
9168 $as_echo "no" >&6; }
9169 fi
9170 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9171 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9172    { (exit 1); exit 1; }; }
9173 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9174 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9175 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9176   $as_echo_n "(cached) " >&6
9177 else
9178   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9179 case `$LD -v 2>&1 </dev/null` in
9180 *GNU* | *'with BFD'*)
9181   acl_cv_prog_gnu_ld=yes ;;
9182 *)
9183   acl_cv_prog_gnu_ld=no ;;
9184 esac
9185 fi
9186 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9187 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9188 with_gnu_ld=$acl_cv_prog_gnu_ld
9189
9190
9191
9192                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9193 $as_echo_n "checking for shared library run path origin... " >&6; }
9194 if test "${acl_cv_rpath+set}" = set; then
9195   $as_echo_n "(cached) " >&6
9196 else
9197
9198     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9199     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9200     . ./conftest.sh
9201     rm -f ./conftest.sh
9202     acl_cv_rpath=done
9203
9204 fi
9205 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9206 $as_echo "$acl_cv_rpath" >&6; }
9207   wl="$acl_cv_wl"
9208   libext="$acl_cv_libext"
9209   shlibext="$acl_cv_shlibext"
9210   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9211   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9212   hardcode_direct="$acl_cv_hardcode_direct"
9213   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9214     # Check whether --enable-rpath was given.
9215 if test "${enable_rpath+set}" = set; then
9216   enableval=$enable_rpath; :
9217 else
9218   enable_rpath=yes
9219 fi
9220
9221
9222
9223
9224
9225
9226
9227
9228     use_additional=yes
9229
9230   acl_save_prefix="$prefix"
9231   prefix="$acl_final_prefix"
9232   acl_save_exec_prefix="$exec_prefix"
9233   exec_prefix="$acl_final_exec_prefix"
9234
9235     eval additional_includedir=\"$includedir\"
9236     eval additional_libdir=\"$libdir\"
9237
9238   exec_prefix="$acl_save_exec_prefix"
9239   prefix="$acl_save_prefix"
9240
9241
9242 # Check whether --with-libiconv-prefix was given.
9243 if test "${with_libiconv_prefix+set}" = set; then
9244   withval=$with_libiconv_prefix;
9245     if test "X$withval" = "Xno"; then
9246       use_additional=no
9247     else
9248       if test "X$withval" = "X"; then
9249
9250   acl_save_prefix="$prefix"
9251   prefix="$acl_final_prefix"
9252   acl_save_exec_prefix="$exec_prefix"
9253   exec_prefix="$acl_final_exec_prefix"
9254
9255           eval additional_includedir=\"$includedir\"
9256           eval additional_libdir=\"$libdir\"
9257
9258   exec_prefix="$acl_save_exec_prefix"
9259   prefix="$acl_save_prefix"
9260
9261       else
9262         additional_includedir="$withval/include"
9263         additional_libdir="$withval/lib"
9264       fi
9265     fi
9266
9267 fi
9268
9269       LIBICONV=
9270   LTLIBICONV=
9271   INCICONV=
9272   rpathdirs=
9273   ltrpathdirs=
9274   names_already_handled=
9275   names_next_round='iconv '
9276   while test -n "$names_next_round"; do
9277     names_this_round="$names_next_round"
9278     names_next_round=
9279     for name in $names_this_round; do
9280       already_handled=
9281       for n in $names_already_handled; do
9282         if test "$n" = "$name"; then
9283           already_handled=yes
9284           break
9285         fi
9286       done
9287       if test -z "$already_handled"; then
9288         names_already_handled="$names_already_handled $name"
9289                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9290         eval value=\"\$HAVE_LIB$uppername\"
9291         if test -n "$value"; then
9292           if test "$value" = yes; then
9293             eval value=\"\$LIB$uppername\"
9294             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9295             eval value=\"\$LTLIB$uppername\"
9296             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9297           else
9298                                     :
9299           fi
9300         else
9301                               found_dir=
9302           found_la=
9303           found_so=
9304           found_a=
9305           if test $use_additional = yes; then
9306             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9307               found_dir="$additional_libdir"
9308               found_so="$additional_libdir/lib$name.$shlibext"
9309               if test -f "$additional_libdir/lib$name.la"; then
9310                 found_la="$additional_libdir/lib$name.la"
9311               fi
9312             else
9313               if test -f "$additional_libdir/lib$name.$libext"; then
9314                 found_dir="$additional_libdir"
9315                 found_a="$additional_libdir/lib$name.$libext"
9316                 if test -f "$additional_libdir/lib$name.la"; then
9317                   found_la="$additional_libdir/lib$name.la"
9318                 fi
9319               fi
9320             fi
9321           fi
9322           if test "X$found_dir" = "X"; then
9323             for x in $LDFLAGS $LTLIBICONV; do
9324
9325   acl_save_prefix="$prefix"
9326   prefix="$acl_final_prefix"
9327   acl_save_exec_prefix="$exec_prefix"
9328   exec_prefix="$acl_final_exec_prefix"
9329   eval x=\"$x\"
9330   exec_prefix="$acl_save_exec_prefix"
9331   prefix="$acl_save_prefix"
9332
9333               case "$x" in
9334                 -L*)
9335                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9336                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9337                     found_dir="$dir"
9338                     found_so="$dir/lib$name.$shlibext"
9339                     if test -f "$dir/lib$name.la"; then
9340                       found_la="$dir/lib$name.la"
9341                     fi
9342                   else
9343                     if test -f "$dir/lib$name.$libext"; then
9344                       found_dir="$dir"
9345                       found_a="$dir/lib$name.$libext"
9346                       if test -f "$dir/lib$name.la"; then
9347                         found_la="$dir/lib$name.la"
9348                       fi
9349                     fi
9350                   fi
9351                   ;;
9352               esac
9353               if test "X$found_dir" != "X"; then
9354                 break
9355               fi
9356             done
9357           fi
9358           if test "X$found_dir" != "X"; then
9359                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9360             if test "X$found_so" != "X"; then
9361                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9362                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9363               else
9364                                                                                 haveit=
9365                 for x in $ltrpathdirs; do
9366                   if test "X$x" = "X$found_dir"; then
9367                     haveit=yes
9368                     break
9369                   fi
9370                 done
9371                 if test -z "$haveit"; then
9372                   ltrpathdirs="$ltrpathdirs $found_dir"
9373                 fi
9374                                 if test "$hardcode_direct" = yes; then
9375                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9376                 else
9377                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9378                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9379                                                             haveit=
9380                     for x in $rpathdirs; do
9381                       if test "X$x" = "X$found_dir"; then
9382                         haveit=yes
9383                         break
9384                       fi
9385                     done
9386                     if test -z "$haveit"; then
9387                       rpathdirs="$rpathdirs $found_dir"
9388                     fi
9389                   else
9390                                                                                 haveit=
9391                     for x in $LDFLAGS $LIBICONV; do
9392
9393   acl_save_prefix="$prefix"
9394   prefix="$acl_final_prefix"
9395   acl_save_exec_prefix="$exec_prefix"
9396   exec_prefix="$acl_final_exec_prefix"
9397   eval x=\"$x\"
9398   exec_prefix="$acl_save_exec_prefix"
9399   prefix="$acl_save_prefix"
9400
9401                       if test "X$x" = "X-L$found_dir"; then
9402                         haveit=yes
9403                         break
9404                       fi
9405                     done
9406                     if test -z "$haveit"; then
9407                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9408                     fi
9409                     if test "$hardcode_minus_L" != no; then
9410                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9411                     else
9412                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9413                     fi
9414                   fi
9415                 fi
9416               fi
9417             else
9418               if test "X$found_a" != "X"; then
9419                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9420               else
9421                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9422               fi
9423             fi
9424                         additional_includedir=
9425             case "$found_dir" in
9426               */lib | */lib/)
9427                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9428                 additional_includedir="$basedir/include"
9429                 ;;
9430             esac
9431             if test "X$additional_includedir" != "X"; then
9432                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9433                 haveit=
9434                 if test "X$additional_includedir" = "X/usr/local/include"; then
9435                   if test -n "$GCC"; then
9436                     case $host_os in
9437                       linux*) haveit=yes;;
9438                     esac
9439                   fi
9440                 fi
9441                 if test -z "$haveit"; then
9442                   for x in $CPPFLAGS $INCICONV; do
9443
9444   acl_save_prefix="$prefix"
9445   prefix="$acl_final_prefix"
9446   acl_save_exec_prefix="$exec_prefix"
9447   exec_prefix="$acl_final_exec_prefix"
9448   eval x=\"$x\"
9449   exec_prefix="$acl_save_exec_prefix"
9450   prefix="$acl_save_prefix"
9451
9452                     if test "X$x" = "X-I$additional_includedir"; then
9453                       haveit=yes
9454                       break
9455                     fi
9456                   done
9457                   if test -z "$haveit"; then
9458                     if test -d "$additional_includedir"; then
9459                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9460                     fi
9461                   fi
9462                 fi
9463               fi
9464             fi
9465                         if test -n "$found_la"; then
9466                                                         save_libdir="$libdir"
9467               case "$found_la" in
9468                 */* | *\\*) . "$found_la" ;;
9469                 *) . "./$found_la" ;;
9470               esac
9471               libdir="$save_libdir"
9472                             for dep in $dependency_libs; do
9473                 case "$dep" in
9474                   -L*)
9475                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9476                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9477                       haveit=
9478                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9479                         if test -n "$GCC"; then
9480                           case $host_os in
9481                             linux*) haveit=yes;;
9482                           esac
9483                         fi
9484                       fi
9485                       if test -z "$haveit"; then
9486                         haveit=
9487                         for x in $LDFLAGS $LIBICONV; do
9488
9489   acl_save_prefix="$prefix"
9490   prefix="$acl_final_prefix"
9491   acl_save_exec_prefix="$exec_prefix"
9492   exec_prefix="$acl_final_exec_prefix"
9493   eval x=\"$x\"
9494   exec_prefix="$acl_save_exec_prefix"
9495   prefix="$acl_save_prefix"
9496
9497                           if test "X$x" = "X-L$additional_libdir"; then
9498                             haveit=yes
9499                             break
9500                           fi
9501                         done
9502                         if test -z "$haveit"; then
9503                           if test -d "$additional_libdir"; then
9504                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9505                           fi
9506                         fi
9507                         haveit=
9508                         for x in $LDFLAGS $LTLIBICONV; do
9509
9510   acl_save_prefix="$prefix"
9511   prefix="$acl_final_prefix"
9512   acl_save_exec_prefix="$exec_prefix"
9513   exec_prefix="$acl_final_exec_prefix"
9514   eval x=\"$x\"
9515   exec_prefix="$acl_save_exec_prefix"
9516   prefix="$acl_save_prefix"
9517
9518                           if test "X$x" = "X-L$additional_libdir"; then
9519                             haveit=yes
9520                             break
9521                           fi
9522                         done
9523                         if test -z "$haveit"; then
9524                           if test -d "$additional_libdir"; then
9525                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9526                           fi
9527                         fi
9528                       fi
9529                     fi
9530                     ;;
9531                   -R*)
9532                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9533                     if test "$enable_rpath" != no; then
9534                                                                   haveit=
9535                       for x in $rpathdirs; do
9536                         if test "X$x" = "X$dir"; then
9537                           haveit=yes
9538                           break
9539                         fi
9540                       done
9541                       if test -z "$haveit"; then
9542                         rpathdirs="$rpathdirs $dir"
9543                       fi
9544                                                                   haveit=
9545                       for x in $ltrpathdirs; do
9546                         if test "X$x" = "X$dir"; then
9547                           haveit=yes
9548                           break
9549                         fi
9550                       done
9551                       if test -z "$haveit"; then
9552                         ltrpathdirs="$ltrpathdirs $dir"
9553                       fi
9554                     fi
9555                     ;;
9556                   -l*)
9557                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9558                     ;;
9559                   *.la)
9560                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9561                     ;;
9562                   *)
9563                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9564                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9565                     ;;
9566                 esac
9567               done
9568             fi
9569           else
9570                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9571             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9572           fi
9573         fi
9574       fi
9575     done
9576   done
9577   if test "X$rpathdirs" != "X"; then
9578     if test -n "$hardcode_libdir_separator"; then
9579                         alldirs=
9580       for found_dir in $rpathdirs; do
9581         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9582       done
9583             acl_save_libdir="$libdir"
9584       libdir="$alldirs"
9585       eval flag=\"$hardcode_libdir_flag_spec\"
9586       libdir="$acl_save_libdir"
9587       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9588     else
9589             for found_dir in $rpathdirs; do
9590         acl_save_libdir="$libdir"
9591         libdir="$found_dir"
9592         eval flag=\"$hardcode_libdir_flag_spec\"
9593         libdir="$acl_save_libdir"
9594         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9595       done
9596     fi
9597   fi
9598   if test "X$ltrpathdirs" != "X"; then
9599             for found_dir in $ltrpathdirs; do
9600       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9601     done
9602   fi
9603
9604
9605
9606
9607
9608
9609
9610
9611   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9612 $as_echo_n "checking for ptrdiff_t... " >&6; }
9613 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9614   $as_echo_n "(cached) " >&6
9615 else
9616   ac_cv_type_ptrdiff_t=no
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h.  */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h.  */
9623 $ac_includes_default
9624 int
9625 main ()
9626 {
9627 if (sizeof (ptrdiff_t))
9628        return 0;
9629   ;
9630   return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext
9634 if { (ac_try="$ac_compile"
9635 case "(($ac_try" in
9636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637   *) ac_try_echo=$ac_try;;
9638 esac
9639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9640 $as_echo "$ac_try_echo") >&5
9641   (eval "$ac_compile") 2>conftest.er1
9642   ac_status=$?
9643   grep -v '^ *+' conftest.er1 >conftest.err
9644   rm -f conftest.er1
9645   cat conftest.err >&5
9646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } && {
9648          test -z "$ac_c_werror_flag" ||
9649          test ! -s conftest.err
9650        } && test -s conftest.$ac_objext; then
9651   cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h.  */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h.  */
9657 $ac_includes_default
9658 int
9659 main ()
9660 {
9661 if (sizeof ((ptrdiff_t)))
9662           return 0;
9663   ;
9664   return 0;
9665 }
9666 _ACEOF
9667 rm -f conftest.$ac_objext
9668 if { (ac_try="$ac_compile"
9669 case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9674 $as_echo "$ac_try_echo") >&5
9675   (eval "$ac_compile") 2>conftest.er1
9676   ac_status=$?
9677   grep -v '^ *+' conftest.er1 >conftest.err
9678   rm -f conftest.er1
9679   cat conftest.err >&5
9680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } && {
9682          test -z "$ac_c_werror_flag" ||
9683          test ! -s conftest.err
9684        } && test -s conftest.$ac_objext; then
9685   :
9686 else
9687   $as_echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9689
9690         ac_cv_type_ptrdiff_t=yes
9691 fi
9692
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 else
9695   $as_echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698
9699 fi
9700
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702 fi
9703 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9704 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9705 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
9706   :
9707 else
9708
9709 cat >>confdefs.h <<\_ACEOF
9710 #define ptrdiff_t long
9711 _ACEOF
9712
9713
9714 fi
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9727 stdlib.h string.h unistd.h sys/param.h
9728 do
9729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9731   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9732 $as_echo_n "checking for $ac_header... " >&6; }
9733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734   $as_echo_n "(cached) " >&6
9735 fi
9736 ac_res=`eval 'as_val=${'$as_ac_Header'}
9737                  $as_echo "$as_val"'`
9738                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9739 $as_echo "$ac_res" >&6; }
9740 else
9741   # Is the header compilable?
9742 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743 $as_echo_n "checking $ac_header usability... " >&6; }
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750 $ac_includes_default
9751 #include <$ac_header>
9752 _ACEOF
9753 rm -f conftest.$ac_objext
9754 if { (ac_try="$ac_compile"
9755 case "(($ac_try" in
9756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757   *) ac_try_echo=$ac_try;;
9758 esac
9759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 $as_echo "$ac_try_echo") >&5
9761   (eval "$ac_compile") 2>conftest.er1
9762   ac_status=$?
9763   grep -v '^ *+' conftest.er1 >conftest.err
9764   rm -f conftest.er1
9765   cat conftest.err >&5
9766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } && {
9768          test -z "$ac_c_werror_flag" ||
9769          test ! -s conftest.err
9770        } && test -s conftest.$ac_objext; then
9771   ac_header_compiler=yes
9772 else
9773   $as_echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776         ac_header_compiler=no
9777 fi
9778
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781 $as_echo "$ac_header_compiler" >&6; }
9782
9783 # Is the header present?
9784 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785 $as_echo_n "checking $ac_header presence... " >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 #include <$ac_header>
9793 _ACEOF
9794 if { (ac_try="$ac_cpp conftest.$ac_ext"
9795 case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800 $as_echo "$ac_try_echo") >&5
9801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } >/dev/null && {
9808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809          test ! -s conftest.err
9810        }; then
9811   ac_header_preproc=yes
9812 else
9813   $as_echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816   ac_header_preproc=no
9817 fi
9818
9819 rm -f conftest.err conftest.$ac_ext
9820 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821 $as_echo "$ac_header_preproc" >&6; }
9822
9823 # So?  What about this header?
9824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9825   yes:no: )
9826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830     ac_header_preproc=yes
9831     ;;
9832   no:yes:* )
9833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9836 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9837     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9840 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9841     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9845
9846     ;;
9847 esac
9848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9849 $as_echo_n "checking for $ac_header... " >&6; }
9850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9851   $as_echo_n "(cached) " >&6
9852 else
9853   eval "$as_ac_Header=\$ac_header_preproc"
9854 fi
9855 ac_res=`eval 'as_val=${'$as_ac_Header'}
9856                  $as_echo "$as_val"'`
9857                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9858 $as_echo "$ac_res" >&6; }
9859
9860 fi
9861 as_val=`eval 'as_val=${'$as_ac_Header'}
9862                  $as_echo "$as_val"'`
9863    if test "x$as_val" = x""yes; then
9864   cat >>confdefs.h <<_ACEOF
9865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9866 _ACEOF
9867
9868 fi
9869
9870 done
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9896 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9897 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9898 __fsetlocking
9899 do
9900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9902 $as_echo_n "checking for $ac_func... " >&6; }
9903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9904   $as_echo_n "(cached) " >&6
9905 else
9906   cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9914 #define $ac_func innocuous_$ac_func
9915
9916 /* System header to define __stub macros and hopefully few prototypes,
9917     which can conflict with char $ac_func (); below.
9918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919     <limits.h> exists even on freestanding compilers.  */
9920
9921 #ifdef __STDC__
9922 # include <limits.h>
9923 #else
9924 # include <assert.h>
9925 #endif
9926
9927 #undef $ac_func
9928
9929 /* Override any GCC internal prototype to avoid an error.
9930    Use char because int might match the return type of a GCC
9931    builtin and then its argument prototype would still apply.  */
9932 #ifdef __cplusplus
9933 extern "C"
9934 #endif
9935 char $ac_func ();
9936 /* The GNU C library defines this for functions which it implements
9937     to always fail with ENOSYS.  Some functions are actually named
9938     something starting with __ and the normal name is an alias.  */
9939 #if defined __stub_$ac_func || defined __stub___$ac_func
9940 choke me
9941 #endif
9942
9943 int
9944 main ()
9945 {
9946 return $ac_func ();
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9953 case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9958 $as_echo "$ac_try_echo") >&5
9959   (eval "$ac_link") 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } && {
9966          test -z "$ac_c_werror_flag" ||
9967          test ! -s conftest.err
9968        } && test -s conftest$ac_exeext && {
9969          test "$cross_compiling" = yes ||
9970          $as_test_x conftest$ac_exeext
9971        }; then
9972   eval "$as_ac_var=yes"
9973 else
9974   $as_echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977         eval "$as_ac_var=no"
9978 fi
9979
9980 rm -rf conftest.dSYM
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982       conftest$ac_exeext conftest.$ac_ext
9983 fi
9984 ac_res=`eval 'as_val=${'$as_ac_var'}
9985                  $as_echo "$as_val"'`
9986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9987 $as_echo "$ac_res" >&6; }
9988 as_val=`eval 'as_val=${'$as_ac_var'}
9989                  $as_echo "$as_val"'`
9990    if test "x$as_val" = x""yes; then
9991   cat >>confdefs.h <<_ACEOF
9992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9993 _ACEOF
9994
9995 fi
9996 done
9997
9998
9999
10000   { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10001 $as_echo_n "checking whether _snprintf is declared... " >&6; }
10002 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10003   $as_echo_n "(cached) " >&6
10004 else
10005   cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011 #include <stdio.h>
10012 int
10013 main ()
10014 {
10015
10016 #ifndef _snprintf
10017   char *p = (char *) _snprintf;
10018 #endif
10019
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext
10025 if { (ac_try="$ac_compile"
10026 case "(($ac_try" in
10027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028   *) ac_try_echo=$ac_try;;
10029 esac
10030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10031 $as_echo "$ac_try_echo") >&5
10032   (eval "$ac_compile") 2>conftest.er1
10033   ac_status=$?
10034   grep -v '^ *+' conftest.er1 >conftest.err
10035   rm -f conftest.er1
10036   cat conftest.err >&5
10037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); } && {
10039          test -z "$ac_c_werror_flag" ||
10040          test ! -s conftest.err
10041        } && test -s conftest.$ac_objext; then
10042   ac_cv_have_decl__snprintf=yes
10043 else
10044   $as_echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047         ac_cv_have_decl__snprintf=no
10048 fi
10049
10050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051 fi
10052 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10053 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
10054   if test $ac_cv_have_decl__snprintf = yes; then
10055     gt_value=1
10056   else
10057     gt_value=0
10058   fi
10059
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_DECL__SNPRINTF $gt_value
10062 _ACEOF
10063
10064
10065
10066   { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10067 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
10068 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10069   $as_echo_n "(cached) " >&6
10070 else
10071   cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h.  */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h.  */
10077 #include <stdio.h>
10078 int
10079 main ()
10080 {
10081
10082 #ifndef _snwprintf
10083   char *p = (char *) _snwprintf;
10084 #endif
10085
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext
10091 if { (ac_try="$ac_compile"
10092 case "(($ac_try" in
10093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094   *) ac_try_echo=$ac_try;;
10095 esac
10096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10097 $as_echo "$ac_try_echo") >&5
10098   (eval "$ac_compile") 2>conftest.er1
10099   ac_status=$?
10100   grep -v '^ *+' conftest.er1 >conftest.err
10101   rm -f conftest.er1
10102   cat conftest.err >&5
10103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } && {
10105          test -z "$ac_c_werror_flag" ||
10106          test ! -s conftest.err
10107        } && test -s conftest.$ac_objext; then
10108   ac_cv_have_decl__snwprintf=yes
10109 else
10110   $as_echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113         ac_cv_have_decl__snwprintf=no
10114 fi
10115
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117 fi
10118 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10119 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
10120   if test $ac_cv_have_decl__snwprintf = yes; then
10121     gt_value=1
10122   else
10123     gt_value=0
10124   fi
10125
10126 cat >>confdefs.h <<_ACEOF
10127 #define HAVE_DECL__SNWPRINTF $gt_value
10128 _ACEOF
10129
10130
10131
10132
10133   { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10134 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10135 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10136   $as_echo_n "(cached) " >&6
10137 else
10138   cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144 #include <stdio.h>
10145 int
10146 main ()
10147 {
10148
10149 #ifndef feof_unlocked
10150   char *p = (char *) feof_unlocked;
10151 #endif
10152
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext
10158 if { (ac_try="$ac_compile"
10159 case "(($ac_try" in
10160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161   *) ac_try_echo=$ac_try;;
10162 esac
10163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164 $as_echo "$ac_try_echo") >&5
10165   (eval "$ac_compile") 2>conftest.er1
10166   ac_status=$?
10167   grep -v '^ *+' conftest.er1 >conftest.err
10168   rm -f conftest.er1
10169   cat conftest.err >&5
10170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } && {
10172          test -z "$ac_c_werror_flag" ||
10173          test ! -s conftest.err
10174        } && test -s conftest.$ac_objext; then
10175   ac_cv_have_decl_feof_unlocked=yes
10176 else
10177   $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10179
10180         ac_cv_have_decl_feof_unlocked=no
10181 fi
10182
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184 fi
10185 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10186 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10187   if test $ac_cv_have_decl_feof_unlocked = yes; then
10188     gt_value=1
10189   else
10190     gt_value=0
10191   fi
10192
10193 cat >>confdefs.h <<_ACEOF
10194 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10195 _ACEOF
10196
10197
10198
10199   { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10200 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10201 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10202   $as_echo_n "(cached) " >&6
10203 else
10204   cat >conftest.$ac_ext <<_ACEOF
10205 /* confdefs.h.  */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h.  */
10210 #include <stdio.h>
10211 int
10212 main ()
10213 {
10214
10215 #ifndef fgets_unlocked
10216   char *p = (char *) fgets_unlocked;
10217 #endif
10218
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext
10224 if { (ac_try="$ac_compile"
10225 case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10230 $as_echo "$ac_try_echo") >&5
10231   (eval "$ac_compile") 2>conftest.er1
10232   ac_status=$?
10233   grep -v '^ *+' conftest.er1 >conftest.err
10234   rm -f conftest.er1
10235   cat conftest.err >&5
10236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } && {
10238          test -z "$ac_c_werror_flag" ||
10239          test ! -s conftest.err
10240        } && test -s conftest.$ac_objext; then
10241   ac_cv_have_decl_fgets_unlocked=yes
10242 else
10243   $as_echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246         ac_cv_have_decl_fgets_unlocked=no
10247 fi
10248
10249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10250 fi
10251 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10252 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10253   if test $ac_cv_have_decl_fgets_unlocked = yes; then
10254     gt_value=1
10255   else
10256     gt_value=0
10257   fi
10258
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10261 _ACEOF
10262
10263
10264
10265   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10266 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10267 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10268   $as_echo_n "(cached) " >&6
10269 else
10270   cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h.  */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h.  */
10276 #include <stdio.h>
10277 int
10278 main ()
10279 {
10280
10281 #ifndef getc_unlocked
10282   char *p = (char *) getc_unlocked;
10283 #endif
10284
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (ac_try="$ac_compile"
10291 case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10296 $as_echo "$ac_try_echo") >&5
10297   (eval "$ac_compile") 2>conftest.er1
10298   ac_status=$?
10299   grep -v '^ *+' conftest.er1 >conftest.err
10300   rm -f conftest.er1
10301   cat conftest.err >&5
10302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } && {
10304          test -z "$ac_c_werror_flag" ||
10305          test ! -s conftest.err
10306        } && test -s conftest.$ac_objext; then
10307   ac_cv_have_decl_getc_unlocked=yes
10308 else
10309   $as_echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312         ac_cv_have_decl_getc_unlocked=no
10313 fi
10314
10315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10316 fi
10317 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10318 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10319   if test $ac_cv_have_decl_getc_unlocked = yes; then
10320     gt_value=1
10321   else
10322     gt_value=0
10323   fi
10324
10325 cat >>confdefs.h <<_ACEOF
10326 #define HAVE_DECL_GETC_UNLOCKED $gt_value
10327 _ACEOF
10328
10329
10330
10331   case $gt_cv_func_printf_posix in
10332     *yes) HAVE_POSIX_PRINTF=1 ;;
10333     *) HAVE_POSIX_PRINTF=0 ;;
10334   esac
10335
10336   if test "$ac_cv_func_asprintf" = yes; then
10337     HAVE_ASPRINTF=1
10338   else
10339     HAVE_ASPRINTF=0
10340   fi
10341
10342   if test "$ac_cv_func_snprintf" = yes; then
10343     HAVE_SNPRINTF=1
10344   else
10345     HAVE_SNPRINTF=0
10346   fi
10347
10348   if test "$ac_cv_func_wprintf" = yes; then
10349     HAVE_WPRINTF=1
10350   else
10351     HAVE_WPRINTF=0
10352   fi
10353
10354
10355
10356
10357
10358
10359
10360           am_save_CPPFLAGS="$CPPFLAGS"
10361
10362   for element in $INCICONV; do
10363     haveit=
10364     for x in $CPPFLAGS; do
10365
10366   acl_save_prefix="$prefix"
10367   prefix="$acl_final_prefix"
10368   acl_save_exec_prefix="$exec_prefix"
10369   exec_prefix="$acl_final_exec_prefix"
10370   eval x=\"$x\"
10371   exec_prefix="$acl_save_exec_prefix"
10372   prefix="$acl_save_prefix"
10373
10374       if test "X$x" = "X$element"; then
10375         haveit=yes
10376         break
10377       fi
10378     done
10379     if test -z "$haveit"; then
10380       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10381     fi
10382   done
10383
10384
10385   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10386 $as_echo_n "checking for iconv... " >&6; }
10387 if test "${am_cv_func_iconv+set}" = set; then
10388   $as_echo_n "(cached) " >&6
10389 else
10390
10391     am_cv_func_iconv="no, consider installing GNU libiconv"
10392     am_cv_lib_iconv=no
10393     cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h.  */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h.  */
10399 #include <stdlib.h>
10400 #include <iconv.h>
10401 int
10402 main ()
10403 {
10404 iconv_t cd = iconv_open("","");
10405        iconv(cd,NULL,NULL,NULL,NULL);
10406        iconv_close(cd);
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10418 $as_echo "$ac_try_echo") >&5
10419   (eval "$ac_link") 2>conftest.er1
10420   ac_status=$?
10421   grep -v '^ *+' conftest.er1 >conftest.err
10422   rm -f conftest.er1
10423   cat conftest.err >&5
10424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } && {
10426          test -z "$ac_c_werror_flag" ||
10427          test ! -s conftest.err
10428        } && test -s conftest$ac_exeext && {
10429          test "$cross_compiling" = yes ||
10430          $as_test_x conftest$ac_exeext
10431        }; then
10432   am_cv_func_iconv=yes
10433 else
10434   $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437
10438 fi
10439
10440 rm -rf conftest.dSYM
10441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442       conftest$ac_exeext conftest.$ac_ext
10443     if test "$am_cv_func_iconv" != yes; then
10444       am_save_LIBS="$LIBS"
10445       LIBS="$LIBS $LIBICONV"
10446       cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h.  */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h.  */
10452 #include <stdlib.h>
10453 #include <iconv.h>
10454 int
10455 main ()
10456 {
10457 iconv_t cd = iconv_open("","");
10458          iconv(cd,NULL,NULL,NULL,NULL);
10459          iconv_close(cd);
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (ac_try="$ac_link"
10466 case "(($ac_try" in
10467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468   *) ac_try_echo=$ac_try;;
10469 esac
10470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10471 $as_echo "$ac_try_echo") >&5
10472   (eval "$ac_link") 2>conftest.er1
10473   ac_status=$?
10474   grep -v '^ *+' conftest.er1 >conftest.err
10475   rm -f conftest.er1
10476   cat conftest.err >&5
10477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } && {
10479          test -z "$ac_c_werror_flag" ||
10480          test ! -s conftest.err
10481        } && test -s conftest$ac_exeext && {
10482          test "$cross_compiling" = yes ||
10483          $as_test_x conftest$ac_exeext
10484        }; then
10485   am_cv_lib_iconv=yes
10486         am_cv_func_iconv=yes
10487 else
10488   $as_echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491
10492 fi
10493
10494 rm -rf conftest.dSYM
10495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10496       conftest$ac_exeext conftest.$ac_ext
10497       LIBS="$am_save_LIBS"
10498     fi
10499
10500 fi
10501 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10502 $as_echo "$am_cv_func_iconv" >&6; }
10503   if test "$am_cv_func_iconv" = yes; then
10504
10505 cat >>confdefs.h <<\_ACEOF
10506 #define HAVE_ICONV 1
10507 _ACEOF
10508
10509   fi
10510   if test "$am_cv_lib_iconv" = yes; then
10511     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10512 $as_echo_n "checking how to link with libiconv... " >&6; }
10513     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10514 $as_echo "$LIBICONV" >&6; }
10515   else
10516             CPPFLAGS="$am_save_CPPFLAGS"
10517     LIBICONV=
10518     LTLIBICONV=
10519   fi
10520
10521
10522
10523   if test "$am_cv_func_iconv" = yes; then
10524     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10525 $as_echo_n "checking for iconv declaration... " >&6; }
10526     if test "${am_cv_proto_iconv+set}" = set; then
10527   $as_echo_n "(cached) " >&6
10528 else
10529
10530       cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536
10537 #include <stdlib.h>
10538 #include <iconv.h>
10539 extern
10540 #ifdef __cplusplus
10541 "C"
10542 #endif
10543 #if defined(__STDC__) || defined(__cplusplus)
10544 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10545 #else
10546 size_t iconv();
10547 #endif
10548
10549 int
10550 main ()
10551 {
10552
10553   ;
10554   return 0;
10555 }
10556 _ACEOF
10557 rm -f conftest.$ac_objext
10558 if { (ac_try="$ac_compile"
10559 case "(($ac_try" in
10560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561   *) ac_try_echo=$ac_try;;
10562 esac
10563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10564 $as_echo "$ac_try_echo") >&5
10565   (eval "$ac_compile") 2>conftest.er1
10566   ac_status=$?
10567   grep -v '^ *+' conftest.er1 >conftest.err
10568   rm -f conftest.er1
10569   cat conftest.err >&5
10570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); } && {
10572          test -z "$ac_c_werror_flag" ||
10573          test ! -s conftest.err
10574        } && test -s conftest.$ac_objext; then
10575   am_cv_proto_iconv_arg1=""
10576 else
10577   $as_echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580         am_cv_proto_iconv_arg1="const"
10581 fi
10582
10583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10584       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);"
10585 fi
10586
10587     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10588     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10589          }$am_cv_proto_iconv" >&5
10590 $as_echo "${ac_t:-
10591          }$am_cv_proto_iconv" >&6; }
10592
10593 cat >>confdefs.h <<_ACEOF
10594 #define ICONV_CONST $am_cv_proto_iconv_arg1
10595 _ACEOF
10596
10597   fi
10598
10599
10600   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10601 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10602 if test "${am_cv_langinfo_codeset+set}" = set; then
10603   $as_echo_n "(cached) " >&6
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 #include <langinfo.h>
10612 int
10613 main ()
10614 {
10615 char* cs = nl_langinfo(CODESET);
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest.$ac_objext conftest$ac_exeext
10621 if { (ac_try="$ac_link"
10622 case "(($ac_try" in
10623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624   *) ac_try_echo=$ac_try;;
10625 esac
10626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627 $as_echo "$ac_try_echo") >&5
10628   (eval "$ac_link") 2>conftest.er1
10629   ac_status=$?
10630   grep -v '^ *+' conftest.er1 >conftest.err
10631   rm -f conftest.er1
10632   cat conftest.err >&5
10633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); } && {
10635          test -z "$ac_c_werror_flag" ||
10636          test ! -s conftest.err
10637        } && test -s conftest$ac_exeext && {
10638          test "$cross_compiling" = yes ||
10639          $as_test_x conftest$ac_exeext
10640        }; then
10641   am_cv_langinfo_codeset=yes
10642 else
10643   $as_echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646         am_cv_langinfo_codeset=no
10647 fi
10648
10649 rm -rf conftest.dSYM
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651       conftest$ac_exeext conftest.$ac_ext
10652
10653 fi
10654 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10655 $as_echo "$am_cv_langinfo_codeset" >&6; }
10656   if test $am_cv_langinfo_codeset = yes; then
10657
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_LANGINFO_CODESET 1
10660 _ACEOF
10661
10662   fi
10663
10664   if test $ac_cv_header_locale_h = yes; then
10665
10666   { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10667 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10668 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10669   $as_echo_n "(cached) " >&6
10670 else
10671   cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h.  */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h.  */
10677 #include <locale.h>
10678 int
10679 main ()
10680 {
10681 return LC_MESSAGES
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690   *) ac_try_echo=$ac_try;;
10691 esac
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694   (eval "$ac_link") 2>conftest.er1
10695   ac_status=$?
10696   grep -v '^ *+' conftest.er1 >conftest.err
10697   rm -f conftest.er1
10698   cat conftest.err >&5
10699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } && {
10701          test -z "$ac_c_werror_flag" ||
10702          test ! -s conftest.err
10703        } && test -s conftest$ac_exeext && {
10704          test "$cross_compiling" = yes ||
10705          $as_test_x conftest$ac_exeext
10706        }; then
10707   am_cv_val_LC_MESSAGES=yes
10708 else
10709   $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712         am_cv_val_LC_MESSAGES=no
10713 fi
10714
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717       conftest$ac_exeext conftest.$ac_ext
10718 fi
10719 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10720 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10721   if test $am_cv_val_LC_MESSAGES = yes; then
10722
10723 cat >>confdefs.h <<\_ACEOF
10724 #define HAVE_LC_MESSAGES 1
10725 _ACEOF
10726
10727   fi
10728
10729   fi
10730
10731                       for ac_prog in bison
10732 do
10733   # Extract the first word of "$ac_prog", so it can be a program name with args.
10734 set dummy $ac_prog; ac_word=$2
10735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10736 $as_echo_n "checking for $ac_word... " >&6; }
10737 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10738   $as_echo_n "(cached) " >&6
10739 else
10740   if test -n "$INTLBISON"; then
10741   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10742 else
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10745 do
10746   IFS=$as_save_IFS
10747   test -z "$as_dir" && as_dir=.
10748   for ac_exec_ext in '' $ac_executable_extensions; do
10749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10750     ac_cv_prog_INTLBISON="$ac_prog"
10751     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10752     break 2
10753   fi
10754 done
10755 done
10756 IFS=$as_save_IFS
10757
10758 fi
10759 fi
10760 INTLBISON=$ac_cv_prog_INTLBISON
10761 if test -n "$INTLBISON"; then
10762   { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10763 $as_echo "$INTLBISON" >&6; }
10764 else
10765   { $as_echo "$as_me:$LINENO: result: no" >&5
10766 $as_echo "no" >&6; }
10767 fi
10768
10769
10770   test -n "$INTLBISON" && break
10771 done
10772
10773   if test -z "$INTLBISON"; then
10774     ac_verc_fail=yes
10775   else
10776         { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10777 $as_echo_n "checking version of bison... " >&6; }
10778     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10779     case $ac_prog_version in
10780       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10781       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10782          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10783       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10784     esac
10785     { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10786 $as_echo "$ac_prog_version" >&6; }
10787   fi
10788   if test $ac_verc_fail = yes; then
10789     INTLBISON=:
10790   fi
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10808 $as_echo_n "checking whether NLS is requested... " >&6; }
10809     # Check whether --enable-nls was given.
10810 if test "${enable_nls+set}" = set; then
10811   enableval=$enable_nls; USE_NLS=$enableval
10812 else
10813   USE_NLS=yes
10814 fi
10815
10816   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10817 $as_echo "$USE_NLS" >&6; }
10818
10819
10820
10821
10822     BUILD_INCLUDED_LIBINTL=no
10823     USE_INCLUDED_LIBINTL=no
10824
10825   LIBINTL=
10826   LTLIBINTL=
10827   POSUB=
10828
10829     if test "$USE_NLS" = "yes"; then
10830     gt_use_preinstalled_gnugettext=no
10831
10832       { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10833 $as_echo_n "checking whether included gettext is requested... " >&6; }
10834
10835 # Check whether --with-included-gettext was given.
10836 if test "${with_included_gettext+set}" = set; then
10837   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10838 else
10839   nls_cv_force_use_gnu_gettext=no
10840 fi
10841
10842       { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10843 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10844
10845       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10846       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10847
10848
10849
10850
10851
10852
10853         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10854 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10855 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10856   $as_echo_n "(cached) " >&6
10857 else
10858   cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 #include <libintl.h>
10865 extern int _nl_msg_cat_cntr;
10866 extern int *_nl_domain_bindings;
10867 int
10868 main ()
10869 {
10870 bindtextdomain ("", "");
10871 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10883 $as_echo "$ac_try_echo") >&5
10884   (eval "$ac_link") 2>conftest.er1
10885   ac_status=$?
10886   grep -v '^ *+' conftest.er1 >conftest.err
10887   rm -f conftest.er1
10888   cat conftest.err >&5
10889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } && {
10891          test -z "$ac_c_werror_flag" ||
10892          test ! -s conftest.err
10893        } && test -s conftest$ac_exeext && {
10894          test "$cross_compiling" = yes ||
10895          $as_test_x conftest$ac_exeext
10896        }; then
10897   gt_cv_func_gnugettext1_libc=yes
10898 else
10899   $as_echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902         gt_cv_func_gnugettext1_libc=no
10903 fi
10904
10905 rm -rf conftest.dSYM
10906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10907       conftest$ac_exeext conftest.$ac_ext
10908 fi
10909 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10910 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
10911
10912         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10913
10914
10915
10916     use_additional=yes
10917
10918   acl_save_prefix="$prefix"
10919   prefix="$acl_final_prefix"
10920   acl_save_exec_prefix="$exec_prefix"
10921   exec_prefix="$acl_final_exec_prefix"
10922
10923     eval additional_includedir=\"$includedir\"
10924     eval additional_libdir=\"$libdir\"
10925
10926   exec_prefix="$acl_save_exec_prefix"
10927   prefix="$acl_save_prefix"
10928
10929
10930 # Check whether --with-libintl-prefix was given.
10931 if test "${with_libintl_prefix+set}" = set; then
10932   withval=$with_libintl_prefix;
10933     if test "X$withval" = "Xno"; then
10934       use_additional=no
10935     else
10936       if test "X$withval" = "X"; then
10937
10938   acl_save_prefix="$prefix"
10939   prefix="$acl_final_prefix"
10940   acl_save_exec_prefix="$exec_prefix"
10941   exec_prefix="$acl_final_exec_prefix"
10942
10943           eval additional_includedir=\"$includedir\"
10944           eval additional_libdir=\"$libdir\"
10945
10946   exec_prefix="$acl_save_exec_prefix"
10947   prefix="$acl_save_prefix"
10948
10949       else
10950         additional_includedir="$withval/include"
10951         additional_libdir="$withval/lib"
10952       fi
10953     fi
10954
10955 fi
10956
10957       LIBINTL=
10958   LTLIBINTL=
10959   INCINTL=
10960   rpathdirs=
10961   ltrpathdirs=
10962   names_already_handled=
10963   names_next_round='intl '
10964   while test -n "$names_next_round"; do
10965     names_this_round="$names_next_round"
10966     names_next_round=
10967     for name in $names_this_round; do
10968       already_handled=
10969       for n in $names_already_handled; do
10970         if test "$n" = "$name"; then
10971           already_handled=yes
10972           break
10973         fi
10974       done
10975       if test -z "$already_handled"; then
10976         names_already_handled="$names_already_handled $name"
10977                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10978         eval value=\"\$HAVE_LIB$uppername\"
10979         if test -n "$value"; then
10980           if test "$value" = yes; then
10981             eval value=\"\$LIB$uppername\"
10982             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10983             eval value=\"\$LTLIB$uppername\"
10984             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10985           else
10986                                     :
10987           fi
10988         else
10989                               found_dir=
10990           found_la=
10991           found_so=
10992           found_a=
10993           if test $use_additional = yes; then
10994             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10995               found_dir="$additional_libdir"
10996               found_so="$additional_libdir/lib$name.$shlibext"
10997               if test -f "$additional_libdir/lib$name.la"; then
10998                 found_la="$additional_libdir/lib$name.la"
10999               fi
11000             else
11001               if test -f "$additional_libdir/lib$name.$libext"; then
11002                 found_dir="$additional_libdir"
11003                 found_a="$additional_libdir/lib$name.$libext"
11004                 if test -f "$additional_libdir/lib$name.la"; then
11005                   found_la="$additional_libdir/lib$name.la"
11006                 fi
11007               fi
11008             fi
11009           fi
11010           if test "X$found_dir" = "X"; then
11011             for x in $LDFLAGS $LTLIBINTL; do
11012
11013   acl_save_prefix="$prefix"
11014   prefix="$acl_final_prefix"
11015   acl_save_exec_prefix="$exec_prefix"
11016   exec_prefix="$acl_final_exec_prefix"
11017   eval x=\"$x\"
11018   exec_prefix="$acl_save_exec_prefix"
11019   prefix="$acl_save_prefix"
11020
11021               case "$x" in
11022                 -L*)
11023                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11024                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11025                     found_dir="$dir"
11026                     found_so="$dir/lib$name.$shlibext"
11027                     if test -f "$dir/lib$name.la"; then
11028                       found_la="$dir/lib$name.la"
11029                     fi
11030                   else
11031                     if test -f "$dir/lib$name.$libext"; then
11032                       found_dir="$dir"
11033                       found_a="$dir/lib$name.$libext"
11034                       if test -f "$dir/lib$name.la"; then
11035                         found_la="$dir/lib$name.la"
11036                       fi
11037                     fi
11038                   fi
11039                   ;;
11040               esac
11041               if test "X$found_dir" != "X"; then
11042                 break
11043               fi
11044             done
11045           fi
11046           if test "X$found_dir" != "X"; then
11047                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11048             if test "X$found_so" != "X"; then
11049                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11050                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11051               else
11052                                                                                 haveit=
11053                 for x in $ltrpathdirs; do
11054                   if test "X$x" = "X$found_dir"; then
11055                     haveit=yes
11056                     break
11057                   fi
11058                 done
11059                 if test -z "$haveit"; then
11060                   ltrpathdirs="$ltrpathdirs $found_dir"
11061                 fi
11062                                 if test "$hardcode_direct" = yes; then
11063                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11064                 else
11065                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11066                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11067                                                             haveit=
11068                     for x in $rpathdirs; do
11069                       if test "X$x" = "X$found_dir"; then
11070                         haveit=yes
11071                         break
11072                       fi
11073                     done
11074                     if test -z "$haveit"; then
11075                       rpathdirs="$rpathdirs $found_dir"
11076                     fi
11077                   else
11078                                                                                 haveit=
11079                     for x in $LDFLAGS $LIBINTL; do
11080
11081   acl_save_prefix="$prefix"
11082   prefix="$acl_final_prefix"
11083   acl_save_exec_prefix="$exec_prefix"
11084   exec_prefix="$acl_final_exec_prefix"
11085   eval x=\"$x\"
11086   exec_prefix="$acl_save_exec_prefix"
11087   prefix="$acl_save_prefix"
11088
11089                       if test "X$x" = "X-L$found_dir"; then
11090                         haveit=yes
11091                         break
11092                       fi
11093                     done
11094                     if test -z "$haveit"; then
11095                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11096                     fi
11097                     if test "$hardcode_minus_L" != no; then
11098                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11099                     else
11100                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11101                     fi
11102                   fi
11103                 fi
11104               fi
11105             else
11106               if test "X$found_a" != "X"; then
11107                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11108               else
11109                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11110               fi
11111             fi
11112                         additional_includedir=
11113             case "$found_dir" in
11114               */lib | */lib/)
11115                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11116                 additional_includedir="$basedir/include"
11117                 ;;
11118             esac
11119             if test "X$additional_includedir" != "X"; then
11120                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11121                 haveit=
11122                 if test "X$additional_includedir" = "X/usr/local/include"; then
11123                   if test -n "$GCC"; then
11124                     case $host_os in
11125                       linux*) haveit=yes;;
11126                     esac
11127                   fi
11128                 fi
11129                 if test -z "$haveit"; then
11130                   for x in $CPPFLAGS $INCINTL; do
11131
11132   acl_save_prefix="$prefix"
11133   prefix="$acl_final_prefix"
11134   acl_save_exec_prefix="$exec_prefix"
11135   exec_prefix="$acl_final_exec_prefix"
11136   eval x=\"$x\"
11137   exec_prefix="$acl_save_exec_prefix"
11138   prefix="$acl_save_prefix"
11139
11140                     if test "X$x" = "X-I$additional_includedir"; then
11141                       haveit=yes
11142                       break
11143                     fi
11144                   done
11145                   if test -z "$haveit"; then
11146                     if test -d "$additional_includedir"; then
11147                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11148                     fi
11149                   fi
11150                 fi
11151               fi
11152             fi
11153                         if test -n "$found_la"; then
11154                                                         save_libdir="$libdir"
11155               case "$found_la" in
11156                 */* | *\\*) . "$found_la" ;;
11157                 *) . "./$found_la" ;;
11158               esac
11159               libdir="$save_libdir"
11160                             for dep in $dependency_libs; do
11161                 case "$dep" in
11162                   -L*)
11163                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11164                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11165                       haveit=
11166                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11167                         if test -n "$GCC"; then
11168                           case $host_os in
11169                             linux*) haveit=yes;;
11170                           esac
11171                         fi
11172                       fi
11173                       if test -z "$haveit"; then
11174                         haveit=
11175                         for x in $LDFLAGS $LIBINTL; do
11176
11177   acl_save_prefix="$prefix"
11178   prefix="$acl_final_prefix"
11179   acl_save_exec_prefix="$exec_prefix"
11180   exec_prefix="$acl_final_exec_prefix"
11181   eval x=\"$x\"
11182   exec_prefix="$acl_save_exec_prefix"
11183   prefix="$acl_save_prefix"
11184
11185                           if test "X$x" = "X-L$additional_libdir"; then
11186                             haveit=yes
11187                             break
11188                           fi
11189                         done
11190                         if test -z "$haveit"; then
11191                           if test -d "$additional_libdir"; then
11192                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11193                           fi
11194                         fi
11195                         haveit=
11196                         for x in $LDFLAGS $LTLIBINTL; do
11197
11198   acl_save_prefix="$prefix"
11199   prefix="$acl_final_prefix"
11200   acl_save_exec_prefix="$exec_prefix"
11201   exec_prefix="$acl_final_exec_prefix"
11202   eval x=\"$x\"
11203   exec_prefix="$acl_save_exec_prefix"
11204   prefix="$acl_save_prefix"
11205
11206                           if test "X$x" = "X-L$additional_libdir"; then
11207                             haveit=yes
11208                             break
11209                           fi
11210                         done
11211                         if test -z "$haveit"; then
11212                           if test -d "$additional_libdir"; then
11213                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11214                           fi
11215                         fi
11216                       fi
11217                     fi
11218                     ;;
11219                   -R*)
11220                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11221                     if test "$enable_rpath" != no; then
11222                                                                   haveit=
11223                       for x in $rpathdirs; do
11224                         if test "X$x" = "X$dir"; then
11225                           haveit=yes
11226                           break
11227                         fi
11228                       done
11229                       if test -z "$haveit"; then
11230                         rpathdirs="$rpathdirs $dir"
11231                       fi
11232                                                                   haveit=
11233                       for x in $ltrpathdirs; do
11234                         if test "X$x" = "X$dir"; then
11235                           haveit=yes
11236                           break
11237                         fi
11238                       done
11239                       if test -z "$haveit"; then
11240                         ltrpathdirs="$ltrpathdirs $dir"
11241                       fi
11242                     fi
11243                     ;;
11244                   -l*)
11245                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11246                     ;;
11247                   *.la)
11248                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11249                     ;;
11250                   *)
11251                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11252                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11253                     ;;
11254                 esac
11255               done
11256             fi
11257           else
11258                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11259             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11260           fi
11261         fi
11262       fi
11263     done
11264   done
11265   if test "X$rpathdirs" != "X"; then
11266     if test -n "$hardcode_libdir_separator"; then
11267                         alldirs=
11268       for found_dir in $rpathdirs; do
11269         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11270       done
11271             acl_save_libdir="$libdir"
11272       libdir="$alldirs"
11273       eval flag=\"$hardcode_libdir_flag_spec\"
11274       libdir="$acl_save_libdir"
11275       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11276     else
11277             for found_dir in $rpathdirs; do
11278         acl_save_libdir="$libdir"
11279         libdir="$found_dir"
11280         eval flag=\"$hardcode_libdir_flag_spec\"
11281         libdir="$acl_save_libdir"
11282         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11283       done
11284     fi
11285   fi
11286   if test "X$ltrpathdirs" != "X"; then
11287             for found_dir in $ltrpathdirs; do
11288       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11289     done
11290   fi
11291
11292           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11293 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11294 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11295   $as_echo_n "(cached) " >&6
11296 else
11297   gt_save_CPPFLAGS="$CPPFLAGS"
11298             CPPFLAGS="$CPPFLAGS $INCINTL"
11299             gt_save_LIBS="$LIBS"
11300             LIBS="$LIBS $LIBINTL"
11301                         cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 #include <libintl.h>
11308 extern int _nl_msg_cat_cntr;
11309 extern
11310 #ifdef __cplusplus
11311 "C"
11312 #endif
11313 const char *_nl_expand_alias ();
11314 int
11315 main ()
11316 {
11317 bindtextdomain ("", "");
11318 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (ac_try="$ac_link"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330 $as_echo "$ac_try_echo") >&5
11331   (eval "$ac_link") 2>conftest.er1
11332   ac_status=$?
11333   grep -v '^ *+' conftest.er1 >conftest.err
11334   rm -f conftest.er1
11335   cat conftest.err >&5
11336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); } && {
11338          test -z "$ac_c_werror_flag" ||
11339          test ! -s conftest.err
11340        } && test -s conftest$ac_exeext && {
11341          test "$cross_compiling" = yes ||
11342          $as_test_x conftest$ac_exeext
11343        }; then
11344   gt_cv_func_gnugettext1_libintl=yes
11345 else
11346   $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11348
11349         gt_cv_func_gnugettext1_libintl=no
11350 fi
11351
11352 rm -rf conftest.dSYM
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354       conftest$ac_exeext conftest.$ac_ext
11355                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11356               LIBS="$LIBS $LIBICONV"
11357               cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363 #include <libintl.h>
11364 extern int _nl_msg_cat_cntr;
11365 extern
11366 #ifdef __cplusplus
11367 "C"
11368 #endif
11369 const char *_nl_expand_alias ();
11370 int
11371 main ()
11372 {
11373 bindtextdomain ("", "");
11374 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (ac_try="$ac_link"
11381 case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11386 $as_echo "$ac_try_echo") >&5
11387   (eval "$ac_link") 2>conftest.er1
11388   ac_status=$?
11389   grep -v '^ *+' conftest.er1 >conftest.err
11390   rm -f conftest.er1
11391   cat conftest.err >&5
11392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); } && {
11394          test -z "$ac_c_werror_flag" ||
11395          test ! -s conftest.err
11396        } && test -s conftest$ac_exeext && {
11397          test "$cross_compiling" = yes ||
11398          $as_test_x conftest$ac_exeext
11399        }; then
11400   LIBINTL="$LIBINTL $LIBICONV"
11401                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11402                 gt_cv_func_gnugettext1_libintl=yes
11403
11404 else
11405   $as_echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11407
11408
11409 fi
11410
11411 rm -rf conftest.dSYM
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413       conftest$ac_exeext conftest.$ac_ext
11414             fi
11415             CPPFLAGS="$gt_save_CPPFLAGS"
11416             LIBS="$gt_save_LIBS"
11417 fi
11418 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11419 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
11420         fi
11421
11422                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11423            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11424                 && test "$PACKAGE" != gettext-runtime \
11425                 && test "$PACKAGE" != gettext-tools; }; then
11426           gt_use_preinstalled_gnugettext=yes
11427         else
11428                     LIBINTL=
11429           LTLIBINTL=
11430           INCINTL=
11431         fi
11432
11433
11434         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11435                               nls_cv_use_gnu_gettext=yes
11436         fi
11437       fi
11438
11439       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11440                 BUILD_INCLUDED_LIBINTL=yes
11441         USE_INCLUDED_LIBINTL=yes
11442         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11443         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11444         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11445       fi
11446
11447       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11448          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11449                 CATOBJEXT=.gmo
11450       fi
11451
11452
11453     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11454        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11455
11456 cat >>confdefs.h <<\_ACEOF
11457 #define ENABLE_NLS 1
11458 _ACEOF
11459
11460     else
11461       USE_NLS=no
11462     fi
11463   fi
11464
11465   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11466 $as_echo_n "checking whether to use NLS... " >&6; }
11467   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11468 $as_echo "$USE_NLS" >&6; }
11469   if test "$USE_NLS" = "yes"; then
11470     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11471 $as_echo_n "checking where the gettext function comes from... " >&6; }
11472     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11473       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11474         gt_source="external libintl"
11475       else
11476         gt_source="libc"
11477       fi
11478     else
11479       gt_source="included intl directory"
11480     fi
11481     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11482 $as_echo "$gt_source" >&6; }
11483   fi
11484
11485   if test "$USE_NLS" = "yes"; then
11486
11487     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11488       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11489         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11490 $as_echo_n "checking how to link with libintl... " >&6; }
11491         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11492 $as_echo "$LIBINTL" >&6; }
11493
11494   for element in $INCINTL; do
11495     haveit=
11496     for x in $CPPFLAGS; do
11497
11498   acl_save_prefix="$prefix"
11499   prefix="$acl_final_prefix"
11500   acl_save_exec_prefix="$exec_prefix"
11501   exec_prefix="$acl_final_exec_prefix"
11502   eval x=\"$x\"
11503   exec_prefix="$acl_save_exec_prefix"
11504   prefix="$acl_save_prefix"
11505
11506       if test "X$x" = "X$element"; then
11507         haveit=yes
11508         break
11509       fi
11510     done
11511     if test -z "$haveit"; then
11512       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11513     fi
11514   done
11515
11516       fi
11517
11518
11519 cat >>confdefs.h <<\_ACEOF
11520 #define HAVE_GETTEXT 1
11521 _ACEOF
11522
11523
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_DCGETTEXT 1
11526 _ACEOF
11527
11528     fi
11529
11530         POSUB=po
11531   fi
11532
11533
11534             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11535       BUILD_INCLUDED_LIBINTL=yes
11536     fi
11537
11538
11539
11540
11541
11542         nls_cv_header_intl=
11543     nls_cv_header_libgt=
11544
11545         DATADIRNAME=share
11546
11547
11548         INSTOBJEXT=.mo
11549
11550
11551         GENCAT=gencat
11552
11553
11554         if test "$USE_INCLUDED_LIBINTL" = yes; then
11555       INTLOBJS="\$(GETTOBJS)"
11556     fi
11557
11558
11559         INTL_LIBTOOL_SUFFIX_PREFIX=
11560
11561
11562
11563     INTLLIBS="$LIBINTL"
11564
11565
11566
11567
11568
11569
11570
11571 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11573 set x ${MAKE-make}
11574 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11575 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11576   $as_echo_n "(cached) " >&6
11577 else
11578   cat >conftest.make <<\_ACEOF
11579 SHELL = /bin/sh
11580 all:
11581         @echo '@@@%%%=$(MAKE)=@@@%%%'
11582 _ACEOF
11583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11585   *@@@%%%=?*=@@@%%%*)
11586     eval ac_cv_prog_make_${ac_make}_set=yes;;
11587   *)
11588     eval ac_cv_prog_make_${ac_make}_set=no;;
11589 esac
11590 rm -f conftest.make
11591 fi
11592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11593   { $as_echo "$as_me:$LINENO: result: yes" >&5
11594 $as_echo "yes" >&6; }
11595   SET_MAKE=
11596 else
11597   { $as_echo "$as_me:$LINENO: result: no" >&5
11598 $as_echo "no" >&6; }
11599   SET_MAKE="MAKE=${MAKE-make}"
11600 fi
11601
11602 # Extract the first word of "ln", so it can be a program name with args.
11603 set dummy ln; ac_word=$2
11604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if test "${ac_cv_path_LN+set}" = set; then
11607   $as_echo_n "(cached) " >&6
11608 else
11609   case $LN in
11610   [\\/]* | ?:[\\/]*)
11611   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11612   ;;
11613   *)
11614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11616 do
11617   IFS=$as_save_IFS
11618   test -z "$as_dir" && as_dir=.
11619   for ac_exec_ext in '' $ac_executable_extensions; do
11620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11621     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11623     break 2
11624   fi
11625 done
11626 done
11627 IFS=$as_save_IFS
11628
11629   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11630   ;;
11631 esac
11632 fi
11633 LN=$ac_cv_path_LN
11634 if test -n "$LN"; then
11635   { $as_echo "$as_me:$LINENO: result: $LN" >&5
11636 $as_echo "$LN" >&6; }
11637 else
11638   { $as_echo "$as_me:$LINENO: result: no" >&5
11639 $as_echo "no" >&6; }
11640 fi
11641
11642
11643 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11644 $as_echo_n "checking whether ln -s works... " >&6; }
11645 LN_S=$as_ln_s
11646 if test "$LN_S" = "ln -s"; then
11647   { $as_echo "$as_me:$LINENO: result: yes" >&5
11648 $as_echo "yes" >&6; }
11649 else
11650   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11651 $as_echo "no, using $LN_S" >&6; }
11652 fi
11653
11654 # Extract the first word of "mv", so it can be a program name with args.
11655 set dummy mv; ac_word=$2
11656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_path_MV+set}" = set; then
11659   $as_echo_n "(cached) " >&6
11660 else
11661   case $MV in
11662   [\\/]* | ?:[\\/]*)
11663   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11664   ;;
11665   *)
11666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669   IFS=$as_save_IFS
11670   test -z "$as_dir" && as_dir=.
11671   for ac_exec_ext in '' $ac_executable_extensions; do
11672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11674     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11675     break 2
11676   fi
11677 done
11678 done
11679 IFS=$as_save_IFS
11680
11681   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11682   ;;
11683 esac
11684 fi
11685 MV=$ac_cv_path_MV
11686 if test -n "$MV"; then
11687   { $as_echo "$as_me:$LINENO: result: $MV" >&5
11688 $as_echo "$MV" >&6; }
11689 else
11690   { $as_echo "$as_me:$LINENO: result: no" >&5
11691 $as_echo "no" >&6; }
11692 fi
11693
11694
11695 # Extract the first word of "cp", so it can be a program name with args.
11696 set dummy cp; ac_word=$2
11697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if test "${ac_cv_path_CP+set}" = set; then
11700   $as_echo_n "(cached) " >&6
11701 else
11702   case $CP in
11703   [\\/]* | ?:[\\/]*)
11704   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11705   ;;
11706   *)
11707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11709 do
11710   IFS=$as_save_IFS
11711   test -z "$as_dir" && as_dir=.
11712   for ac_exec_ext in '' $ac_executable_extensions; do
11713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11714     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11715     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11716     break 2
11717   fi
11718 done
11719 done
11720 IFS=$as_save_IFS
11721
11722   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11723   ;;
11724 esac
11725 fi
11726 CP=$ac_cv_path_CP
11727 if test -n "$CP"; then
11728   { $as_echo "$as_me:$LINENO: result: $CP" >&5
11729 $as_echo "$CP" >&6; }
11730 else
11731   { $as_echo "$as_me:$LINENO: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734
11735
11736 # Extract the first word of "rm", so it can be a program name with args.
11737 set dummy rm; ac_word=$2
11738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if test "${ac_cv_path_RM+set}" = set; then
11741   $as_echo_n "(cached) " >&6
11742 else
11743   case $RM in
11744   [\\/]* | ?:[\\/]*)
11745   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11746   ;;
11747   *)
11748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11750 do
11751   IFS=$as_save_IFS
11752   test -z "$as_dir" && as_dir=.
11753   for ac_exec_ext in '' $ac_executable_extensions; do
11754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11756     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11757     break 2
11758   fi
11759 done
11760 done
11761 IFS=$as_save_IFS
11762
11763   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11764   ;;
11765 esac
11766 fi
11767 RM=$ac_cv_path_RM
11768 if test -n "$RM"; then
11769   { $as_echo "$as_me:$LINENO: result: $RM" >&5
11770 $as_echo "$RM" >&6; }
11771 else
11772   { $as_echo "$as_me:$LINENO: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775
11776
11777 # Extract the first word of "chmod", so it can be a program name with args.
11778 set dummy chmod; ac_word=$2
11779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if test "${ac_cv_path_CHMOD+set}" = set; then
11782   $as_echo_n "(cached) " >&6
11783 else
11784   case $CHMOD in
11785   [\\/]* | ?:[\\/]*)
11786   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11787   ;;
11788   *)
11789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11791 do
11792   IFS=$as_save_IFS
11793   test -z "$as_dir" && as_dir=.
11794   for ac_exec_ext in '' $ac_executable_extensions; do
11795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11796     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11797     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11798     break 2
11799   fi
11800 done
11801 done
11802 IFS=$as_save_IFS
11803
11804   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11805   ;;
11806 esac
11807 fi
11808 CHMOD=$ac_cv_path_CHMOD
11809 if test -n "$CHMOD"; then
11810   { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11811 $as_echo "$CHMOD" >&6; }
11812 else
11813   { $as_echo "$as_me:$LINENO: result: no" >&5
11814 $as_echo "no" >&6; }
11815 fi
11816
11817
11818 for ac_prog in gawk mawk nawk awk
11819 do
11820   # Extract the first word of "$ac_prog", so it can be a program name with args.
11821 set dummy $ac_prog; ac_word=$2
11822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if test "${ac_cv_prog_AWK+set}" = set; then
11825   $as_echo_n "(cached) " >&6
11826 else
11827   if test -n "$AWK"; then
11828   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11829 else
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833   IFS=$as_save_IFS
11834   test -z "$as_dir" && as_dir=.
11835   for ac_exec_ext in '' $ac_executable_extensions; do
11836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11837     ac_cv_prog_AWK="$ac_prog"
11838     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11839     break 2
11840   fi
11841 done
11842 done
11843 IFS=$as_save_IFS
11844
11845 fi
11846 fi
11847 AWK=$ac_cv_prog_AWK
11848 if test -n "$AWK"; then
11849   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11850 $as_echo "$AWK" >&6; }
11851 else
11852   { $as_echo "$as_me:$LINENO: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857   test -n "$AWK" && break
11858 done
11859
11860 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
11861 $as_echo_n "checking for egrep... " >&6; }
11862 if test "${ac_cv_path_EGREP+set}" = set; then
11863   $as_echo_n "(cached) " >&6
11864 else
11865   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11866    then ac_cv_path_EGREP="$GREP -E"
11867    else
11868      if test -z "$EGREP"; then
11869   ac_path_EGREP_found=false
11870   # Loop through the user's path and test for each of PROGNAME-LIST
11871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876   for ac_prog in egrep; do
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11879       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11880 # Check for GNU ac_path_EGREP and select it if it is found.
11881   # Check for GNU $ac_path_EGREP
11882 case `"$ac_path_EGREP" --version 2>&1` in
11883 *GNU*)
11884   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11885 *)
11886   ac_count=0
11887   $as_echo_n 0123456789 >"conftest.in"
11888   while :
11889   do
11890     cat "conftest.in" "conftest.in" >"conftest.tmp"
11891     mv "conftest.tmp" "conftest.in"
11892     cp "conftest.in" "conftest.nl"
11893     $as_echo 'EGREP' >> "conftest.nl"
11894     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11896     ac_count=`expr $ac_count + 1`
11897     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11898       # Best one so far, save it but keep looking for a better one
11899       ac_cv_path_EGREP="$ac_path_EGREP"
11900       ac_path_EGREP_max=$ac_count
11901     fi
11902     # 10*(2^10) chars as input seems more than enough
11903     test $ac_count -gt 10 && break
11904   done
11905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11906 esac
11907
11908       $ac_path_EGREP_found && break 3
11909     done
11910   done
11911 done
11912 IFS=$as_save_IFS
11913   if test -z "$ac_cv_path_EGREP"; then
11914     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11915 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11916    { (exit 1); exit 1; }; }
11917   fi
11918 else
11919   ac_cv_path_EGREP=$EGREP
11920 fi
11921
11922    fi
11923 fi
11924 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11925 $as_echo "$ac_cv_path_EGREP" >&6; }
11926  EGREP="$ac_cv_path_EGREP"
11927
11928
11929 # Extract the first word of "sed", so it can be a program name with args.
11930 set dummy sed; ac_word=$2
11931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if test "${ac_cv_path_SED+set}" = set; then
11934   $as_echo_n "(cached) " >&6
11935 else
11936   case $SED in
11937   [\\/]* | ?:[\\/]*)
11938   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11939   ;;
11940   *)
11941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11943 do
11944   IFS=$as_save_IFS
11945   test -z "$as_dir" && as_dir=.
11946   for ac_exec_ext in '' $ac_executable_extensions; do
11947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11948     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11950     break 2
11951   fi
11952 done
11953 done
11954 IFS=$as_save_IFS
11955
11956   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11957   ;;
11958 esac
11959 fi
11960 SED=$ac_cv_path_SED
11961 if test -n "$SED"; then
11962   { $as_echo "$as_me:$LINENO: result: $SED" >&5
11963 $as_echo "$SED" >&6; }
11964 else
11965   { $as_echo "$as_me:$LINENO: result: no" >&5
11966 $as_echo "no" >&6; }
11967 fi
11968
11969
11970 # Extract the first word of "perl", so it can be a program name with args.
11971 set dummy perl; ac_word=$2
11972 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if test "${ac_cv_path_PERL+set}" = set; then
11975   $as_echo_n "(cached) " >&6
11976 else
11977   case $PERL in
11978   [\\/]* | ?:[\\/]*)
11979   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11980   ;;
11981   *)
11982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11984 do
11985   IFS=$as_save_IFS
11986   test -z "$as_dir" && as_dir=.
11987   for ac_exec_ext in '' $ac_executable_extensions; do
11988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11989     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11990     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11991     break 2
11992   fi
11993 done
11994 done
11995 IFS=$as_save_IFS
11996
11997   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11998   ;;
11999 esac
12000 fi
12001 PERL=$ac_cv_path_PERL
12002 if test -n "$PERL"; then
12003   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12004 $as_echo "$PERL" >&6; }
12005 else
12006   { $as_echo "$as_me:$LINENO: result: no" >&5
12007 $as_echo "no" >&6; }
12008 fi
12009
12010
12011 # Extract the first word of "ldconfig", so it can be a program name with args.
12012 set dummy ldconfig; ac_word=$2
12013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12014 $as_echo_n "checking for $ac_word... " >&6; }
12015 if test "${ac_cv_path_LDCONFIG+set}" = set; then
12016   $as_echo_n "(cached) " >&6
12017 else
12018   case $LDCONFIG in
12019   [\\/]* | ?:[\\/]*)
12020   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12021   ;;
12022   *)
12023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12025 do
12026   IFS=$as_save_IFS
12027   test -z "$as_dir" && as_dir=.
12028   for ac_exec_ext in '' $ac_executable_extensions; do
12029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12030     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12031     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12032     break 2
12033   fi
12034 done
12035 done
12036 IFS=$as_save_IFS
12037
12038   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12039   ;;
12040 esac
12041 fi
12042 LDCONFIG=$ac_cv_path_LDCONFIG
12043 if test -n "$LDCONFIG"; then
12044   { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12045 $as_echo "$LDCONFIG" >&6; }
12046 else
12047   { $as_echo "$as_me:$LINENO: result: no" >&5
12048 $as_echo "no" >&6; }
12049 fi
12050
12051
12052 if test -n "$ac_tool_prefix"; then
12053   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12054 set dummy ${ac_tool_prefix}ar; ac_word=$2
12055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if test "${ac_cv_prog_AR+set}" = set; then
12058   $as_echo_n "(cached) " >&6
12059 else
12060   if test -n "$AR"; then
12061   ac_cv_prog_AR="$AR" # Let the user override the test.
12062 else
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_prog_AR="${ac_tool_prefix}ar"
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 fi
12079 fi
12080 AR=$ac_cv_prog_AR
12081 if test -n "$AR"; then
12082   { $as_echo "$as_me:$LINENO: result: $AR" >&5
12083 $as_echo "$AR" >&6; }
12084 else
12085   { $as_echo "$as_me:$LINENO: result: no" >&5
12086 $as_echo "no" >&6; }
12087 fi
12088
12089
12090 fi
12091 if test -z "$ac_cv_prog_AR"; then
12092   ac_ct_AR=$AR
12093   # Extract the first word of "ar", so it can be a program name with args.
12094 set dummy 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_ac_ct_AR+set}" = set; then
12098   $as_echo_n "(cached) " >&6
12099 else
12100   if test -n "$ac_ct_AR"; then
12101   ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12121 if test -n "$ac_ct_AR"; then
12122   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12123 $as_echo "$ac_ct_AR" >&6; }
12124 else
12125   { $as_echo "$as_me:$LINENO: result: no" >&5
12126 $as_echo "no" >&6; }
12127 fi
12128
12129   if test "x$ac_ct_AR" = x; then
12130     AR="ar"
12131   else
12132     case $cross_compiling:$ac_tool_warned in
12133 yes:)
12134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12136 ac_tool_warned=yes ;;
12137 esac
12138     AR=$ac_ct_AR
12139   fi
12140 else
12141   AR="$ac_cv_prog_AR"
12142 fi
12143
12144 if test -n "$ac_tool_prefix"; then
12145   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if test "${ac_cv_prog_RANLIB+set}" = set; then
12150   $as_echo_n "(cached) " >&6
12151 else
12152   if test -n "$RANLIB"; then
12153   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12154 else
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12157 do
12158   IFS=$as_save_IFS
12159   test -z "$as_dir" && as_dir=.
12160   for ac_exec_ext in '' $ac_executable_extensions; do
12161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12162     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12163     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12164     break 2
12165   fi
12166 done
12167 done
12168 IFS=$as_save_IFS
12169
12170 fi
12171 fi
12172 RANLIB=$ac_cv_prog_RANLIB
12173 if test -n "$RANLIB"; then
12174   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12175 $as_echo "$RANLIB" >&6; }
12176 else
12177   { $as_echo "$as_me:$LINENO: result: no" >&5
12178 $as_echo "no" >&6; }
12179 fi
12180
12181
12182 fi
12183 if test -z "$ac_cv_prog_RANLIB"; then
12184   ac_ct_RANLIB=$RANLIB
12185   # Extract the first word of "ranlib", so it can be a program name with args.
12186 set dummy 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_ac_ct_RANLIB+set}" = set; then
12190   $as_echo_n "(cached) " >&6
12191 else
12192   if test -n "$ac_ct_RANLIB"; then
12193   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12213 if test -n "$ac_ct_RANLIB"; then
12214   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12215 $as_echo "$ac_ct_RANLIB" >&6; }
12216 else
12217   { $as_echo "$as_me:$LINENO: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221   if test "x$ac_ct_RANLIB" = x; then
12222     RANLIB=":"
12223   else
12224     case $cross_compiling:$ac_tool_warned in
12225 yes:)
12226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12228 ac_tool_warned=yes ;;
12229 esac
12230     RANLIB=$ac_ct_RANLIB
12231   fi
12232 else
12233   RANLIB="$ac_cv_prog_RANLIB"
12234 fi
12235
12236 if test -n "$ac_tool_prefix"; then
12237   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12238 set dummy ${ac_tool_prefix}strip; ac_word=$2
12239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12240 $as_echo_n "checking for $ac_word... " >&6; }
12241 if test "${ac_cv_prog_STRIP+set}" = set; then
12242   $as_echo_n "(cached) " >&6
12243 else
12244   if test -n "$STRIP"; then
12245   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12246 else
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12249 do
12250   IFS=$as_save_IFS
12251   test -z "$as_dir" && as_dir=.
12252   for ac_exec_ext in '' $ac_executable_extensions; do
12253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12255     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12256     break 2
12257   fi
12258 done
12259 done
12260 IFS=$as_save_IFS
12261
12262 fi
12263 fi
12264 STRIP=$ac_cv_prog_STRIP
12265 if test -n "$STRIP"; then
12266   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12267 $as_echo "$STRIP" >&6; }
12268 else
12269   { $as_echo "$as_me:$LINENO: result: no" >&5
12270 $as_echo "no" >&6; }
12271 fi
12272
12273
12274 fi
12275 if test -z "$ac_cv_prog_STRIP"; then
12276   ac_ct_STRIP=$STRIP
12277   # Extract the first word of "strip", so it can be a program name with args.
12278 set dummy 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_ac_ct_STRIP+set}" = set; then
12282   $as_echo_n "(cached) " >&6
12283 else
12284   if test -n "$ac_ct_STRIP"; then
12285   ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12305 if test -n "$ac_ct_STRIP"; then
12306   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12307 $as_echo "$ac_ct_STRIP" >&6; }
12308 else
12309   { $as_echo "$as_me:$LINENO: result: no" >&5
12310 $as_echo "no" >&6; }
12311 fi
12312
12313   if test "x$ac_ct_STRIP" = x; then
12314     STRIP=":"
12315   else
12316     case $cross_compiling:$ac_tool_warned in
12317 yes:)
12318 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12320 ac_tool_warned=yes ;;
12321 esac
12322     STRIP=$ac_ct_STRIP
12323   fi
12324 else
12325   STRIP="$ac_cv_prog_STRIP"
12326 fi
12327
12328 # Extract the first word of "makeinfo", so it can be a program name with args.
12329 set dummy makeinfo; ac_word=$2
12330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12333   $as_echo_n "(cached) " >&6
12334 else
12335   if test -n "$MAKEINFO"; then
12336   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12337 else
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12340 do
12341   IFS=$as_save_IFS
12342   test -z "$as_dir" && as_dir=.
12343   for ac_exec_ext in '' $ac_executable_extensions; do
12344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345     ac_cv_prog_MAKEINFO="makeinfo"
12346     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12347     break 2
12348   fi
12349 done
12350 done
12351 IFS=$as_save_IFS
12352
12353 fi
12354 fi
12355 MAKEINFO=$ac_cv_prog_MAKEINFO
12356 if test -n "$MAKEINFO"; then
12357   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12358 $as_echo "$MAKEINFO" >&6; }
12359 else
12360   { $as_echo "$as_me:$LINENO: result: no" >&5
12361 $as_echo "no" >&6; }
12362 fi
12363
12364
12365 if test "_$MAKEINFO" = "_"; then
12366     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12367 else
12368     case "$MAKEINFO" in
12369       */missing.*)
12370         { $as_echo "$as_me:$LINENO: WARNING:
12371 *** Makeinfo is missing. Info documentation will not be built." >&5
12372 $as_echo "$as_me: WARNING:
12373 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12374         ;;
12375       *)
12376         ;;
12377     esac
12378 fi
12379
12380 # Find a good install program.  We prefer a C program (faster),
12381 # so one script is as good as another.  But avoid the broken or
12382 # incompatible versions:
12383 # SysV /etc/install, /usr/sbin/install
12384 # SunOS /usr/etc/install
12385 # IRIX /sbin/install
12386 # AIX /bin/install
12387 # AmigaOS /C/install, which installs bootblocks on floppy discs
12388 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12391 # OS/2's system install, which has a completely different semantic
12392 # ./install, which can be erroneously created by make from ./install.sh.
12393 # Reject install programs that cannot install multiple files.
12394 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12395 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12396 if test -z "$INSTALL"; then
12397 if test "${ac_cv_path_install+set}" = set; then
12398   $as_echo_n "(cached) " >&6
12399 else
12400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403   IFS=$as_save_IFS
12404   test -z "$as_dir" && as_dir=.
12405   # Account for people who put trailing slashes in PATH elements.
12406 case $as_dir/ in
12407   ./ | .// | /cC/* | \
12408   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12409   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12410   /usr/ucb/* ) ;;
12411   *)
12412     # OSF1 and SCO ODT 3.0 have their own names for install.
12413     # Don't use installbsd from OSF since it installs stuff as root
12414     # by default.
12415     for ac_prog in ginstall scoinst install; do
12416       for ac_exec_ext in '' $ac_executable_extensions; do
12417         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12418           if test $ac_prog = install &&
12419             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12420             # AIX install.  It has an incompatible calling convention.
12421             :
12422           elif test $ac_prog = install &&
12423             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12424             # program-specific install script used by HP pwplus--don't use.
12425             :
12426           else
12427             rm -rf conftest.one conftest.two conftest.dir
12428             echo one > conftest.one
12429             echo two > conftest.two
12430             mkdir conftest.dir
12431             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12432               test -s conftest.one && test -s conftest.two &&
12433               test -s conftest.dir/conftest.one &&
12434               test -s conftest.dir/conftest.two
12435             then
12436               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12437               break 3
12438             fi
12439           fi
12440         fi
12441       done
12442     done
12443     ;;
12444 esac
12445
12446 done
12447 IFS=$as_save_IFS
12448
12449 rm -rf conftest.one conftest.two conftest.dir
12450
12451 fi
12452   if test "${ac_cv_path_install+set}" = set; then
12453     INSTALL=$ac_cv_path_install
12454   else
12455     # As a last resort, use the slow shell script.  Don't cache a
12456     # value for INSTALL within a source directory, because that will
12457     # break other packages using the cache if that directory is
12458     # removed, or if the value is a relative name.
12459     INSTALL=$ac_install_sh
12460   fi
12461 fi
12462 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12463 $as_echo "$INSTALL" >&6; }
12464
12465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12466 # It thinks the first close brace ends the variable substitution.
12467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12468
12469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12470
12471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12472
12473 # See if we need a separate native compiler.
12474 if test $cross_compiling = no; then
12475   BUILD_CC="$CC"
12476
12477 else
12478   for ac_prog in gcc cc
12479 do
12480   # Extract the first word of "$ac_prog", so it can be a program name with args.
12481 set dummy $ac_prog; ac_word=$2
12482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12485   $as_echo_n "(cached) " >&6
12486 else
12487   if test -n "$BUILD_CC"; then
12488   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12489 else
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12492 do
12493   IFS=$as_save_IFS
12494   test -z "$as_dir" && as_dir=.
12495   for ac_exec_ext in '' $ac_executable_extensions; do
12496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12497     ac_cv_prog_BUILD_CC="$ac_prog"
12498     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12499     break 2
12500   fi
12501 done
12502 done
12503 IFS=$as_save_IFS
12504
12505 fi
12506 fi
12507 BUILD_CC=$ac_cv_prog_BUILD_CC
12508 if test -n "$BUILD_CC"; then
12509   { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12510 $as_echo "$BUILD_CC" >&6; }
12511 else
12512   { $as_echo "$as_me:$LINENO: result: no" >&5
12513 $as_echo "no" >&6; }
12514 fi
12515
12516
12517   test -n "$BUILD_CC" && break
12518 done
12519
12520 fi
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 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
12560 do
12561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12563   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12564 $as_echo_n "checking for $ac_header... " >&6; }
12565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12566   $as_echo_n "(cached) " >&6
12567 fi
12568 ac_res=`eval 'as_val=${'$as_ac_Header'}
12569                  $as_echo "$as_val"'`
12570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12571 $as_echo "$ac_res" >&6; }
12572 else
12573   # Is the header compilable?
12574 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12575 $as_echo_n "checking $ac_header usability... " >&6; }
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582 $ac_includes_default
12583 #include <$ac_header>
12584 _ACEOF
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593   (eval "$ac_compile") 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } && {
12600          test -z "$ac_c_werror_flag" ||
12601          test ! -s conftest.err
12602        } && test -s conftest.$ac_objext; then
12603   ac_header_compiler=yes
12604 else
12605   $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608         ac_header_compiler=no
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12613 $as_echo "$ac_header_compiler" >&6; }
12614
12615 # Is the header present?
12616 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12617 $as_echo_n "checking $ac_header presence... " >&6; }
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h.  */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h.  */
12624 #include <$ac_header>
12625 _ACEOF
12626 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
12640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12641          test ! -s conftest.err
12642        }; then
12643   ac_header_preproc=yes
12644 else
12645   $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648   ac_header_preproc=no
12649 fi
12650
12651 rm -f conftest.err conftest.$ac_ext
12652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12653 $as_echo "$ac_header_preproc" >&6; }
12654
12655 # So?  What about this header?
12656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12657   yes:no: )
12658     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12659 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12660     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12662     ac_header_preproc=yes
12663     ;;
12664   no:yes:* )
12665     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12666 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12667     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12668 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12669     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12670 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12671     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12672 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12673     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12675     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12676 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12677
12678     ;;
12679 esac
12680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12681 $as_echo_n "checking for $ac_header... " >&6; }
12682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12683   $as_echo_n "(cached) " >&6
12684 else
12685   eval "$as_ac_Header=\$ac_header_preproc"
12686 fi
12687 ac_res=`eval 'as_val=${'$as_ac_Header'}
12688                  $as_echo "$as_val"'`
12689                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12690 $as_echo "$ac_res" >&6; }
12691
12692 fi
12693 as_val=`eval 'as_val=${'$as_ac_Header'}
12694                  $as_echo "$as_val"'`
12695    if test "x$as_val" = x""yes; then
12696   cat >>confdefs.h <<_ACEOF
12697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12698 _ACEOF
12699
12700 fi
12701
12702 done
12703
12704
12705
12706 for ac_header in sys/disk.h sys/mount.h
12707 do
12708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12710 $as_echo_n "checking for $ac_header... " >&6; }
12711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12712   $as_echo_n "(cached) " >&6
12713 else
12714   cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h.  */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h.  */
12720
12721 #if HAVE_SYS_QUEUE_H
12722 #include <sys/queue.h>
12723 #endif
12724
12725
12726 #include <$ac_header>
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (ac_try="$ac_compile"
12730 case "(($ac_try" in
12731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732   *) ac_try_echo=$ac_try;;
12733 esac
12734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12735 $as_echo "$ac_try_echo") >&5
12736   (eval "$ac_compile") 2>conftest.er1
12737   ac_status=$?
12738   grep -v '^ *+' conftest.er1 >conftest.err
12739   rm -f conftest.er1
12740   cat conftest.err >&5
12741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); } && {
12743          test -z "$ac_c_werror_flag" ||
12744          test ! -s conftest.err
12745        } && test -s conftest.$ac_objext; then
12746   eval "$as_ac_Header=yes"
12747 else
12748   $as_echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751         eval "$as_ac_Header=no"
12752 fi
12753
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755 fi
12756 ac_res=`eval 'as_val=${'$as_ac_Header'}
12757                  $as_echo "$as_val"'`
12758                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12759 $as_echo "$ac_res" >&6; }
12760 as_val=`eval 'as_val=${'$as_ac_Header'}
12761                  $as_echo "$as_val"'`
12762    if test "x$as_val" = x""yes; then
12763   cat >>confdefs.h <<_ACEOF
12764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12765 _ACEOF
12766
12767 fi
12768
12769 done
12770
12771
12772 for ac_header in net/if.h
12773 do
12774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12776 $as_echo_n "checking for $ac_header... " >&6; }
12777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12778   $as_echo_n "(cached) " >&6
12779 else
12780   cat >conftest.$ac_ext <<_ACEOF
12781 /* confdefs.h.  */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h.  */
12786
12787 #if HAVE_SYS_TYPES_H
12788 #include <sys/types.h>
12789 #endif
12790 #if HAVE_SYS_SOCKET
12791 #include <sys/socket.h>
12792 #endif
12793
12794
12795 #include <$ac_header>
12796 _ACEOF
12797 rm -f conftest.$ac_objext
12798 if { (ac_try="$ac_compile"
12799 case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804 $as_echo "$ac_try_echo") >&5
12805   (eval "$ac_compile") 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } && {
12812          test -z "$ac_c_werror_flag" ||
12813          test ! -s conftest.err
12814        } && test -s conftest.$ac_objext; then
12815   eval "$as_ac_Header=yes"
12816 else
12817   $as_echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12819
12820         eval "$as_ac_Header=no"
12821 fi
12822
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 fi
12825 ac_res=`eval 'as_val=${'$as_ac_Header'}
12826                  $as_echo "$as_val"'`
12827                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12828 $as_echo "$ac_res" >&6; }
12829 as_val=`eval 'as_val=${'$as_ac_Header'}
12830                  $as_echo "$as_val"'`
12831    if test "x$as_val" = x""yes; then
12832   cat >>confdefs.h <<_ACEOF
12833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12834 _ACEOF
12835
12836 fi
12837
12838 done
12839
12840
12841 for ac_func in vprintf
12842 do
12843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12845 $as_echo_n "checking for $ac_func... " >&6; }
12846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12847   $as_echo_n "(cached) " >&6
12848 else
12849   cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h.  */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h.  */
12855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12857 #define $ac_func innocuous_$ac_func
12858
12859 /* System header to define __stub macros and hopefully few prototypes,
12860     which can conflict with char $ac_func (); below.
12861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12862     <limits.h> exists even on freestanding compilers.  */
12863
12864 #ifdef __STDC__
12865 # include <limits.h>
12866 #else
12867 # include <assert.h>
12868 #endif
12869
12870 #undef $ac_func
12871
12872 /* Override any GCC internal prototype to avoid an error.
12873    Use char because int might match the return type of a GCC
12874    builtin and then its argument prototype would still apply.  */
12875 #ifdef __cplusplus
12876 extern "C"
12877 #endif
12878 char $ac_func ();
12879 /* The GNU C library defines this for functions which it implements
12880     to always fail with ENOSYS.  Some functions are actually named
12881     something starting with __ and the normal name is an alias.  */
12882 #if defined __stub_$ac_func || defined __stub___$ac_func
12883 choke me
12884 #endif
12885
12886 int
12887 main ()
12888 {
12889 return $ac_func ();
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12901 $as_echo "$ac_try_echo") >&5
12902   (eval "$ac_link") 2>conftest.er1
12903   ac_status=$?
12904   grep -v '^ *+' conftest.er1 >conftest.err
12905   rm -f conftest.er1
12906   cat conftest.err >&5
12907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } && {
12909          test -z "$ac_c_werror_flag" ||
12910          test ! -s conftest.err
12911        } && test -s conftest$ac_exeext && {
12912          test "$cross_compiling" = yes ||
12913          $as_test_x conftest$ac_exeext
12914        }; then
12915   eval "$as_ac_var=yes"
12916 else
12917   $as_echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920         eval "$as_ac_var=no"
12921 fi
12922
12923 rm -rf conftest.dSYM
12924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12925       conftest$ac_exeext conftest.$ac_ext
12926 fi
12927 ac_res=`eval 'as_val=${'$as_ac_var'}
12928                  $as_echo "$as_val"'`
12929                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12930 $as_echo "$ac_res" >&6; }
12931 as_val=`eval 'as_val=${'$as_ac_var'}
12932                  $as_echo "$as_val"'`
12933    if test "x$as_val" = x""yes; then
12934   cat >>confdefs.h <<_ACEOF
12935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12936 _ACEOF
12937
12938 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12939 $as_echo_n "checking for _doprnt... " >&6; }
12940 if test "${ac_cv_func__doprnt+set}" = set; then
12941   $as_echo_n "(cached) " >&6
12942 else
12943   cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h.  */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h.  */
12949 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12951 #define _doprnt innocuous__doprnt
12952
12953 /* System header to define __stub macros and hopefully few prototypes,
12954     which can conflict with char _doprnt (); below.
12955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12956     <limits.h> exists even on freestanding compilers.  */
12957
12958 #ifdef __STDC__
12959 # include <limits.h>
12960 #else
12961 # include <assert.h>
12962 #endif
12963
12964 #undef _doprnt
12965
12966 /* Override any GCC internal prototype to avoid an error.
12967    Use char because int might match the return type of a GCC
12968    builtin and then its argument prototype would still apply.  */
12969 #ifdef __cplusplus
12970 extern "C"
12971 #endif
12972 char _doprnt ();
12973 /* The GNU C library defines this for functions which it implements
12974     to always fail with ENOSYS.  Some functions are actually named
12975     something starting with __ and the normal name is an alias.  */
12976 #if defined __stub__doprnt || defined __stub____doprnt
12977 choke me
12978 #endif
12979
12980 int
12981 main ()
12982 {
12983 return _doprnt ();
12984   ;
12985   return 0;
12986 }
12987 _ACEOF
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992   *) ac_try_echo=$ac_try;;
12993 esac
12994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12995 $as_echo "$ac_try_echo") >&5
12996   (eval "$ac_link") 2>conftest.er1
12997   ac_status=$?
12998   grep -v '^ *+' conftest.er1 >conftest.err
12999   rm -f conftest.er1
13000   cat conftest.err >&5
13001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); } && {
13003          test -z "$ac_c_werror_flag" ||
13004          test ! -s conftest.err
13005        } && test -s conftest$ac_exeext && {
13006          test "$cross_compiling" = yes ||
13007          $as_test_x conftest$ac_exeext
13008        }; then
13009   ac_cv_func__doprnt=yes
13010 else
13011   $as_echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014         ac_cv_func__doprnt=no
13015 fi
13016
13017 rm -rf conftest.dSYM
13018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13019       conftest$ac_exeext conftest.$ac_ext
13020 fi
13021 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13022 $as_echo "$ac_cv_func__doprnt" >&6; }
13023 if test "x$ac_cv_func__doprnt" = x""yes; then
13024
13025 cat >>confdefs.h <<\_ACEOF
13026 #define HAVE_DOPRNT 1
13027 _ACEOF
13028
13029 fi
13030
13031 fi
13032 done
13033
13034
13035 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13036 $as_echo_n "checking for struct dirent.d_reclen... " >&6; }
13037 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
13038   $as_echo_n "(cached) " >&6
13039 else
13040   cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13046 #include <dirent.h>
13047
13048 int
13049 main ()
13050 {
13051 static struct dirent ac_aggr;
13052 if (ac_aggr.d_reclen)
13053 return 0;
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext
13059 if { (ac_try="$ac_compile"
13060 case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13065 $as_echo "$ac_try_echo") >&5
13066   (eval "$ac_compile") 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } && {
13073          test -z "$ac_c_werror_flag" ||
13074          test ! -s conftest.err
13075        } && test -s conftest.$ac_objext; then
13076   ac_cv_member_struct_dirent_d_reclen=yes
13077 else
13078   $as_echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081         cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 #include <dirent.h>
13088
13089 int
13090 main ()
13091 {
13092 static struct dirent ac_aggr;
13093 if (sizeof ac_aggr.d_reclen)
13094 return 0;
13095   ;
13096   return 0;
13097 }
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (ac_try="$ac_compile"
13101 case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13106 $as_echo "$ac_try_echo") >&5
13107   (eval "$ac_compile") 2>conftest.er1
13108   ac_status=$?
13109   grep -v '^ *+' conftest.er1 >conftest.err
13110   rm -f conftest.er1
13111   cat conftest.err >&5
13112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); } && {
13114          test -z "$ac_c_werror_flag" ||
13115          test ! -s conftest.err
13116        } && test -s conftest.$ac_objext; then
13117   ac_cv_member_struct_dirent_d_reclen=yes
13118 else
13119   $as_echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122         ac_cv_member_struct_dirent_d_reclen=no
13123 fi
13124
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 fi
13127
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129 fi
13130 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13131 $as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13132 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
13133   cat >>confdefs.h <<\_ACEOF
13134 #define HAVE_RECLEN_DIRENT 1
13135 _ACEOF
13136
13137 fi
13138
13139 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13140 $as_echo_n "checking for ssize_t... " >&6; }
13141 if test "${ac_cv_type_ssize_t+set}" = set; then
13142   $as_echo_n "(cached) " >&6
13143 else
13144   ac_cv_type_ssize_t=no
13145 cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151 #include <sys/types.h>
13152
13153 int
13154 main ()
13155 {
13156 if (sizeof (ssize_t))
13157        return 0;
13158   ;
13159   return 0;
13160 }
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166   *) ac_try_echo=$ac_try;;
13167 esac
13168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170   (eval "$ac_compile") 2>conftest.er1
13171   ac_status=$?
13172   grep -v '^ *+' conftest.er1 >conftest.err
13173   rm -f conftest.er1
13174   cat conftest.err >&5
13175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); } && {
13177          test -z "$ac_c_werror_flag" ||
13178          test ! -s conftest.err
13179        } && test -s conftest.$ac_objext; then
13180   cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h.  */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h.  */
13186 #include <sys/types.h>
13187
13188 int
13189 main ()
13190 {
13191 if (sizeof ((ssize_t)))
13192           return 0;
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext
13198 if { (ac_try="$ac_compile"
13199 case "(($ac_try" in
13200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201   *) ac_try_echo=$ac_try;;
13202 esac
13203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13204 $as_echo "$ac_try_echo") >&5
13205   (eval "$ac_compile") 2>conftest.er1
13206   ac_status=$?
13207   grep -v '^ *+' conftest.er1 >conftest.err
13208   rm -f conftest.er1
13209   cat conftest.err >&5
13210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); } && {
13212          test -z "$ac_c_werror_flag" ||
13213          test ! -s conftest.err
13214        } && test -s conftest.$ac_objext; then
13215   :
13216 else
13217   $as_echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13219
13220         ac_cv_type_ssize_t=yes
13221 fi
13222
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 else
13225   $as_echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228
13229 fi
13230
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 fi
13233 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13234 $as_echo "$ac_cv_type_ssize_t" >&6; }
13235 if test "x$ac_cv_type_ssize_t" = x""yes; then
13236   cat >>confdefs.h <<\_ACEOF
13237 #define HAVE_TYPE_SSIZE_T 1
13238 _ACEOF
13239
13240 fi
13241
13242 { $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13243 $as_echo_n "checking whether llseek is declared... " >&6; }
13244 if test "${ac_cv_have_decl_llseek+set}" = set; then
13245   $as_echo_n "(cached) " >&6
13246 else
13247   cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h.  */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h.  */
13253 #include <unistd.h>
13254
13255 int
13256 main ()
13257 {
13258 #ifndef llseek
13259   (void) llseek;
13260 #endif
13261
13262   ;
13263   return 0;
13264 }
13265 _ACEOF
13266 rm -f conftest.$ac_objext
13267 if { (ac_try="$ac_compile"
13268 case "(($ac_try" in
13269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270   *) ac_try_echo=$ac_try;;
13271 esac
13272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13273 $as_echo "$ac_try_echo") >&5
13274   (eval "$ac_compile") 2>conftest.er1
13275   ac_status=$?
13276   grep -v '^ *+' conftest.er1 >conftest.err
13277   rm -f conftest.er1
13278   cat conftest.err >&5
13279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); } && {
13281          test -z "$ac_c_werror_flag" ||
13282          test ! -s conftest.err
13283        } && test -s conftest.$ac_objext; then
13284   ac_cv_have_decl_llseek=yes
13285 else
13286   $as_echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289         ac_cv_have_decl_llseek=no
13290 fi
13291
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 fi
13294 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13295 $as_echo "$ac_cv_have_decl_llseek" >&6; }
13296 if test "x$ac_cv_have_decl_llseek" = x""yes; then
13297   cat >>confdefs.h <<\_ACEOF
13298 #define HAVE_LLSEEK_PROTOTYPE 1
13299 _ACEOF
13300
13301 fi
13302
13303 { $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13304 $as_echo_n "checking whether lseek64 is declared... " >&6; }
13305 if test "${ac_cv_have_decl_lseek64+set}" = set; then
13306   $as_echo_n "(cached) " >&6
13307 else
13308   cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h.  */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h.  */
13314 #define _LARGEFILE_SOURCE
13315                  #define _LARGEFILE64_SOURCE
13316                  #include <unistd.h>
13317
13318 int
13319 main ()
13320 {
13321 #ifndef lseek64
13322   (void) lseek64;
13323 #endif
13324
13325   ;
13326   return 0;
13327 }
13328 _ACEOF
13329 rm -f conftest.$ac_objext
13330 if { (ac_try="$ac_compile"
13331 case "(($ac_try" in
13332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333   *) ac_try_echo=$ac_try;;
13334 esac
13335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13336 $as_echo "$ac_try_echo") >&5
13337   (eval "$ac_compile") 2>conftest.er1
13338   ac_status=$?
13339   grep -v '^ *+' conftest.er1 >conftest.err
13340   rm -f conftest.er1
13341   cat conftest.err >&5
13342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); } && {
13344          test -z "$ac_c_werror_flag" ||
13345          test ! -s conftest.err
13346        } && test -s conftest.$ac_objext; then
13347   ac_cv_have_decl_lseek64=yes
13348 else
13349   $as_echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352         ac_cv_have_decl_lseek64=no
13353 fi
13354
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356 fi
13357 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13358 $as_echo "$ac_cv_have_decl_lseek64" >&6; }
13359 if test "x$ac_cv_have_decl_lseek64" = x""yes; then
13360   cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_LSEEK64_PROTOTYPE 1
13362 _ACEOF
13363
13364 fi
13365
13366 # The cast to long int works around a bug in the HP C Compiler
13367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13369 # This bug is HP SR number 8606223364.
13370 { $as_echo "$as_me:$LINENO: checking size of short" >&5
13371 $as_echo_n "checking size of short... " >&6; }
13372 if test "${ac_cv_sizeof_short+set}" = set; then
13373   $as_echo_n "(cached) " >&6
13374 else
13375   if test "$cross_compiling" = yes; then
13376   # Depending upon the size, compute the lo and hi bounds.
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h.  */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h.  */
13383 $ac_includes_default
13384 int
13385 main ()
13386 {
13387 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
13388 test_array [0] = 0
13389
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 rm -f conftest.$ac_objext
13395 if { (ac_try="$ac_compile"
13396 case "(($ac_try" in
13397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398   *) ac_try_echo=$ac_try;;
13399 esac
13400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13401 $as_echo "$ac_try_echo") >&5
13402   (eval "$ac_compile") 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } && {
13409          test -z "$ac_c_werror_flag" ||
13410          test ! -s conftest.err
13411        } && test -s conftest.$ac_objext; then
13412   ac_lo=0 ac_mid=0
13413   while :; do
13414     cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420 $ac_includes_default
13421 int
13422 main ()
13423 {
13424 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13425 test_array [0] = 0
13426
13427   ;
13428   return 0;
13429 }
13430 _ACEOF
13431 rm -f conftest.$ac_objext
13432 if { (ac_try="$ac_compile"
13433 case "(($ac_try" in
13434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435   *) ac_try_echo=$ac_try;;
13436 esac
13437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13438 $as_echo "$ac_try_echo") >&5
13439   (eval "$ac_compile") 2>conftest.er1
13440   ac_status=$?
13441   grep -v '^ *+' conftest.er1 >conftest.err
13442   rm -f conftest.er1
13443   cat conftest.err >&5
13444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); } && {
13446          test -z "$ac_c_werror_flag" ||
13447          test ! -s conftest.err
13448        } && test -s conftest.$ac_objext; then
13449   ac_hi=$ac_mid; break
13450 else
13451   $as_echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13453
13454         ac_lo=`expr $ac_mid + 1`
13455                         if test $ac_lo -le $ac_mid; then
13456                           ac_lo= ac_hi=
13457                           break
13458                         fi
13459                         ac_mid=`expr 2 '*' $ac_mid + 1`
13460 fi
13461
13462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463   done
13464 else
13465   $as_echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468         cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474 $ac_includes_default
13475 int
13476 main ()
13477 {
13478 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
13479 test_array [0] = 0
13480
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492 $as_echo "$ac_try_echo") >&5
13493   (eval "$ac_compile") 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } && {
13500          test -z "$ac_c_werror_flag" ||
13501          test ! -s conftest.err
13502        } && test -s conftest.$ac_objext; then
13503   ac_hi=-1 ac_mid=-1
13504   while :; do
13505     cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h.  */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h.  */
13511 $ac_includes_default
13512 int
13513 main ()
13514 {
13515 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
13516 test_array [0] = 0
13517
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (ac_try="$ac_compile"
13524 case "(($ac_try" in
13525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526   *) ac_try_echo=$ac_try;;
13527 esac
13528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13529 $as_echo "$ac_try_echo") >&5
13530   (eval "$ac_compile") 2>conftest.er1
13531   ac_status=$?
13532   grep -v '^ *+' conftest.er1 >conftest.err
13533   rm -f conftest.er1
13534   cat conftest.err >&5
13535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } && {
13537          test -z "$ac_c_werror_flag" ||
13538          test ! -s conftest.err
13539        } && test -s conftest.$ac_objext; then
13540   ac_lo=$ac_mid; break
13541 else
13542   $as_echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545         ac_hi=`expr '(' $ac_mid ')' - 1`
13546                         if test $ac_mid -le $ac_hi; then
13547                           ac_lo= ac_hi=
13548                           break
13549                         fi
13550                         ac_mid=`expr 2 '*' $ac_mid`
13551 fi
13552
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554   done
13555 else
13556   $as_echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559         ac_lo= ac_hi=
13560 fi
13561
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 fi
13564
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 # Binary search between lo and hi bounds.
13567 while test "x$ac_lo" != "x$ac_hi"; do
13568   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13569   cat >conftest.$ac_ext <<_ACEOF
13570 /* confdefs.h.  */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h.  */
13575 $ac_includes_default
13576 int
13577 main ()
13578 {
13579 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13580 test_array [0] = 0
13581
13582   ;
13583   return 0;
13584 }
13585 _ACEOF
13586 rm -f conftest.$ac_objext
13587 if { (ac_try="$ac_compile"
13588 case "(($ac_try" in
13589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590   *) ac_try_echo=$ac_try;;
13591 esac
13592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13593 $as_echo "$ac_try_echo") >&5
13594   (eval "$ac_compile") 2>conftest.er1
13595   ac_status=$?
13596   grep -v '^ *+' conftest.er1 >conftest.err
13597   rm -f conftest.er1
13598   cat conftest.err >&5
13599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); } && {
13601          test -z "$ac_c_werror_flag" ||
13602          test ! -s conftest.err
13603        } && test -s conftest.$ac_objext; then
13604   ac_hi=$ac_mid
13605 else
13606   $as_echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13608
13609         ac_lo=`expr '(' $ac_mid ')' + 1`
13610 fi
13611
13612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613 done
13614 case $ac_lo in
13615 ?*) ac_cv_sizeof_short=$ac_lo;;
13616 '') if test "$ac_cv_type_short" = yes; then
13617      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13619 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13620 See \`config.log' for more details." >&5
13621 $as_echo "$as_me: error: cannot compute sizeof (short)
13622 See \`config.log' for more details." >&2;}
13623    { (exit 77); exit 77; }; }; }
13624    else
13625      ac_cv_sizeof_short=0
13626    fi ;;
13627 esac
13628 else
13629   cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635 $ac_includes_default
13636 static long int longval () { return (long int) (sizeof (short)); }
13637 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
13638 #include <stdio.h>
13639 #include <stdlib.h>
13640 int
13641 main ()
13642 {
13643
13644   FILE *f = fopen ("conftest.val", "w");
13645   if (! f)
13646     return 1;
13647   if (((long int) (sizeof (short))) < 0)
13648     {
13649       long int i = longval ();
13650       if (i != ((long int) (sizeof (short))))
13651         return 1;
13652       fprintf (f, "%ld", i);
13653     }
13654   else
13655     {
13656       unsigned long int i = ulongval ();
13657       if (i != ((long int) (sizeof (short))))
13658         return 1;
13659       fprintf (f, "%lu", i);
13660     }
13661   /* Do not output a trailing newline, as this causes \r\n confusion
13662      on some platforms.  */
13663   return ferror (f) || fclose (f) != 0;
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest$ac_exeext
13670 if { (ac_try="$ac_link"
13671 case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13676 $as_echo "$ac_try_echo") >&5
13677   (eval "$ac_link") 2>&5
13678   ac_status=$?
13679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13681   { (case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13686 $as_echo "$ac_try_echo") >&5
13687   (eval "$ac_try") 2>&5
13688   ac_status=$?
13689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }; then
13691   ac_cv_sizeof_short=`cat conftest.val`
13692 else
13693   $as_echo "$as_me: program exited with status $ac_status" >&5
13694 $as_echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ( exit $ac_status )
13698 if test "$ac_cv_type_short" = yes; then
13699      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13701 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13702 See \`config.log' for more details." >&5
13703 $as_echo "$as_me: error: cannot compute sizeof (short)
13704 See \`config.log' for more details." >&2;}
13705    { (exit 77); exit 77; }; }; }
13706    else
13707      ac_cv_sizeof_short=0
13708    fi
13709 fi
13710 rm -rf conftest.dSYM
13711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13712 fi
13713 rm -f conftest.val
13714 fi
13715 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13716 $as_echo "$ac_cv_sizeof_short" >&6; }
13717
13718
13719
13720 cat >>confdefs.h <<_ACEOF
13721 #define SIZEOF_SHORT $ac_cv_sizeof_short
13722 _ACEOF
13723
13724
13725 # The cast to long int works around a bug in the HP C Compiler
13726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13728 # This bug is HP SR number 8606223364.
13729 { $as_echo "$as_me:$LINENO: checking size of int" >&5
13730 $as_echo_n "checking size of int... " >&6; }
13731 if test "${ac_cv_sizeof_int+set}" = set; then
13732   $as_echo_n "(cached) " >&6
13733 else
13734   if test "$cross_compiling" = yes; then
13735   # Depending upon the size, compute the lo and hi bounds.
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742 $ac_includes_default
13743 int
13744 main ()
13745 {
13746 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
13747 test_array [0] = 0
13748
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (ac_try="$ac_compile"
13755 case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13760 $as_echo "$ac_try_echo") >&5
13761   (eval "$ac_compile") 2>conftest.er1
13762   ac_status=$?
13763   grep -v '^ *+' conftest.er1 >conftest.err
13764   rm -f conftest.er1
13765   cat conftest.err >&5
13766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); } && {
13768          test -z "$ac_c_werror_flag" ||
13769          test ! -s conftest.err
13770        } && test -s conftest.$ac_objext; then
13771   ac_lo=0 ac_mid=0
13772   while :; do
13773     cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h.  */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h.  */
13779 $ac_includes_default
13780 int
13781 main ()
13782 {
13783 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13784 test_array [0] = 0
13785
13786   ;
13787   return 0;
13788 }
13789 _ACEOF
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13797 $as_echo "$ac_try_echo") >&5
13798   (eval "$ac_compile") 2>conftest.er1
13799   ac_status=$?
13800   grep -v '^ *+' conftest.er1 >conftest.err
13801   rm -f conftest.er1
13802   cat conftest.err >&5
13803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } && {
13805          test -z "$ac_c_werror_flag" ||
13806          test ! -s conftest.err
13807        } && test -s conftest.$ac_objext; then
13808   ac_hi=$ac_mid; break
13809 else
13810   $as_echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813         ac_lo=`expr $ac_mid + 1`
13814                         if test $ac_lo -le $ac_mid; then
13815                           ac_lo= ac_hi=
13816                           break
13817                         fi
13818                         ac_mid=`expr 2 '*' $ac_mid + 1`
13819 fi
13820
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822   done
13823 else
13824   $as_echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827         cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 $ac_includes_default
13834 int
13835 main ()
13836 {
13837 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
13838 test_array [0] = 0
13839
13840   ;
13841   return 0;
13842 }
13843 _ACEOF
13844 rm -f conftest.$ac_objext
13845 if { (ac_try="$ac_compile"
13846 case "(($ac_try" in
13847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848   *) ac_try_echo=$ac_try;;
13849 esac
13850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13851 $as_echo "$ac_try_echo") >&5
13852   (eval "$ac_compile") 2>conftest.er1
13853   ac_status=$?
13854   grep -v '^ *+' conftest.er1 >conftest.err
13855   rm -f conftest.er1
13856   cat conftest.err >&5
13857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); } && {
13859          test -z "$ac_c_werror_flag" ||
13860          test ! -s conftest.err
13861        } && test -s conftest.$ac_objext; then
13862   ac_hi=-1 ac_mid=-1
13863   while :; do
13864     cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 $ac_includes_default
13871 int
13872 main ()
13873 {
13874 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
13875 test_array [0] = 0
13876
13877   ;
13878   return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888 $as_echo "$ac_try_echo") >&5
13889   (eval "$ac_compile") 2>conftest.er1
13890   ac_status=$?
13891   grep -v '^ *+' conftest.er1 >conftest.err
13892   rm -f conftest.er1
13893   cat conftest.err >&5
13894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } && {
13896          test -z "$ac_c_werror_flag" ||
13897          test ! -s conftest.err
13898        } && test -s conftest.$ac_objext; then
13899   ac_lo=$ac_mid; break
13900 else
13901   $as_echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904         ac_hi=`expr '(' $ac_mid ')' - 1`
13905                         if test $ac_mid -le $ac_hi; then
13906                           ac_lo= ac_hi=
13907                           break
13908                         fi
13909                         ac_mid=`expr 2 '*' $ac_mid`
13910 fi
13911
13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913   done
13914 else
13915   $as_echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918         ac_lo= ac_hi=
13919 fi
13920
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 fi
13923
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 # Binary search between lo and hi bounds.
13926 while test "x$ac_lo" != "x$ac_hi"; do
13927   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13928   cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 $ac_includes_default
13935 int
13936 main ()
13937 {
13938 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13939 test_array [0] = 0
13940
13941   ;
13942   return 0;
13943 }
13944 _ACEOF
13945 rm -f conftest.$ac_objext
13946 if { (ac_try="$ac_compile"
13947 case "(($ac_try" in
13948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949   *) ac_try_echo=$ac_try;;
13950 esac
13951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13952 $as_echo "$ac_try_echo") >&5
13953   (eval "$ac_compile") 2>conftest.er1
13954   ac_status=$?
13955   grep -v '^ *+' conftest.er1 >conftest.err
13956   rm -f conftest.er1
13957   cat conftest.err >&5
13958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } && {
13960          test -z "$ac_c_werror_flag" ||
13961          test ! -s conftest.err
13962        } && test -s conftest.$ac_objext; then
13963   ac_hi=$ac_mid
13964 else
13965   $as_echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968         ac_lo=`expr '(' $ac_mid ')' + 1`
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 done
13973 case $ac_lo in
13974 ?*) ac_cv_sizeof_int=$ac_lo;;
13975 '') if test "$ac_cv_type_int" = yes; then
13976      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13978 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13979 See \`config.log' for more details." >&5
13980 $as_echo "$as_me: error: cannot compute sizeof (int)
13981 See \`config.log' for more details." >&2;}
13982    { (exit 77); exit 77; }; }; }
13983    else
13984      ac_cv_sizeof_int=0
13985    fi ;;
13986 esac
13987 else
13988   cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h.  */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h.  */
13994 $ac_includes_default
13995 static long int longval () { return (long int) (sizeof (int)); }
13996 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
13997 #include <stdio.h>
13998 #include <stdlib.h>
13999 int
14000 main ()
14001 {
14002
14003   FILE *f = fopen ("conftest.val", "w");
14004   if (! f)
14005     return 1;
14006   if (((long int) (sizeof (int))) < 0)
14007     {
14008       long int i = longval ();
14009       if (i != ((long int) (sizeof (int))))
14010         return 1;
14011       fprintf (f, "%ld", i);
14012     }
14013   else
14014     {
14015       unsigned long int i = ulongval ();
14016       if (i != ((long int) (sizeof (int))))
14017         return 1;
14018       fprintf (f, "%lu", i);
14019     }
14020   /* Do not output a trailing newline, as this causes \r\n confusion
14021      on some platforms.  */
14022   return ferror (f) || fclose (f) != 0;
14023
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032   *) ac_try_echo=$ac_try;;
14033 esac
14034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14035 $as_echo "$ac_try_echo") >&5
14036   (eval "$ac_link") 2>&5
14037   ac_status=$?
14038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14040   { (case "(($ac_try" in
14041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042   *) ac_try_echo=$ac_try;;
14043 esac
14044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14045 $as_echo "$ac_try_echo") >&5
14046   (eval "$ac_try") 2>&5
14047   ac_status=$?
14048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050   ac_cv_sizeof_int=`cat conftest.val`
14051 else
14052   $as_echo "$as_me: program exited with status $ac_status" >&5
14053 $as_echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056 ( exit $ac_status )
14057 if test "$ac_cv_type_int" = yes; then
14058      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14060 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14061 See \`config.log' for more details." >&5
14062 $as_echo "$as_me: error: cannot compute sizeof (int)
14063 See \`config.log' for more details." >&2;}
14064    { (exit 77); exit 77; }; }; }
14065    else
14066      ac_cv_sizeof_int=0
14067    fi
14068 fi
14069 rm -rf conftest.dSYM
14070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14071 fi
14072 rm -f conftest.val
14073 fi
14074 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14075 $as_echo "$ac_cv_sizeof_int" >&6; }
14076
14077
14078
14079 cat >>confdefs.h <<_ACEOF
14080 #define SIZEOF_INT $ac_cv_sizeof_int
14081 _ACEOF
14082
14083
14084 # The cast to long int works around a bug in the HP C Compiler
14085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14087 # This bug is HP SR number 8606223364.
14088 { $as_echo "$as_me:$LINENO: checking size of long" >&5
14089 $as_echo_n "checking size of long... " >&6; }
14090 if test "${ac_cv_sizeof_long+set}" = set; then
14091   $as_echo_n "(cached) " >&6
14092 else
14093   if test "$cross_compiling" = yes; then
14094   # Depending upon the size, compute the lo and hi bounds.
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h.  */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h.  */
14101 $ac_includes_default
14102 int
14103 main ()
14104 {
14105 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
14106 test_array [0] = 0
14107
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 rm -f conftest.$ac_objext
14113 if { (ac_try="$ac_compile"
14114 case "(($ac_try" in
14115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116   *) ac_try_echo=$ac_try;;
14117 esac
14118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14119 $as_echo "$ac_try_echo") >&5
14120   (eval "$ac_compile") 2>conftest.er1
14121   ac_status=$?
14122   grep -v '^ *+' conftest.er1 >conftest.err
14123   rm -f conftest.er1
14124   cat conftest.err >&5
14125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); } && {
14127          test -z "$ac_c_werror_flag" ||
14128          test ! -s conftest.err
14129        } && test -s conftest.$ac_objext; then
14130   ac_lo=0 ac_mid=0
14131   while :; do
14132     cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h.  */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h.  */
14138 $ac_includes_default
14139 int
14140 main ()
14141 {
14142 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14143 test_array [0] = 0
14144
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153   *) ac_try_echo=$ac_try;;
14154 esac
14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156 $as_echo "$ac_try_echo") >&5
14157   (eval "$ac_compile") 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } && {
14164          test -z "$ac_c_werror_flag" ||
14165          test ! -s conftest.err
14166        } && test -s conftest.$ac_objext; then
14167   ac_hi=$ac_mid; break
14168 else
14169   $as_echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172         ac_lo=`expr $ac_mid + 1`
14173                         if test $ac_lo -le $ac_mid; then
14174                           ac_lo= ac_hi=
14175                           break
14176                         fi
14177                         ac_mid=`expr 2 '*' $ac_mid + 1`
14178 fi
14179
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181   done
14182 else
14183   $as_echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14185
14186         cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h.  */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h.  */
14192 $ac_includes_default
14193 int
14194 main ()
14195 {
14196 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
14197 test_array [0] = 0
14198
14199   ;
14200   return 0;
14201 }
14202 _ACEOF
14203 rm -f conftest.$ac_objext
14204 if { (ac_try="$ac_compile"
14205 case "(($ac_try" in
14206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207   *) ac_try_echo=$ac_try;;
14208 esac
14209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14210 $as_echo "$ac_try_echo") >&5
14211   (eval "$ac_compile") 2>conftest.er1
14212   ac_status=$?
14213   grep -v '^ *+' conftest.er1 >conftest.err
14214   rm -f conftest.er1
14215   cat conftest.err >&5
14216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); } && {
14218          test -z "$ac_c_werror_flag" ||
14219          test ! -s conftest.err
14220        } && test -s conftest.$ac_objext; then
14221   ac_hi=-1 ac_mid=-1
14222   while :; do
14223     cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229 $ac_includes_default
14230 int
14231 main ()
14232 {
14233 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
14234 test_array [0] = 0
14235
14236   ;
14237   return 0;
14238 }
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248   (eval "$ac_compile") 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } && {
14255          test -z "$ac_c_werror_flag" ||
14256          test ! -s conftest.err
14257        } && test -s conftest.$ac_objext; then
14258   ac_lo=$ac_mid; break
14259 else
14260   $as_echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263         ac_hi=`expr '(' $ac_mid ')' - 1`
14264                         if test $ac_mid -le $ac_hi; then
14265                           ac_lo= ac_hi=
14266                           break
14267                         fi
14268                         ac_mid=`expr 2 '*' $ac_mid`
14269 fi
14270
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272   done
14273 else
14274   $as_echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277         ac_lo= ac_hi=
14278 fi
14279
14280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 fi
14282
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 # Binary search between lo and hi bounds.
14285 while test "x$ac_lo" != "x$ac_hi"; do
14286   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 $ac_includes_default
14294 int
14295 main ()
14296 {
14297 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14298 test_array [0] = 0
14299
14300   ;
14301   return 0;
14302 }
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
14306 case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14311 $as_echo "$ac_try_echo") >&5
14312   (eval "$ac_compile") 2>conftest.er1
14313   ac_status=$?
14314   grep -v '^ *+' conftest.er1 >conftest.err
14315   rm -f conftest.er1
14316   cat conftest.err >&5
14317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } && {
14319          test -z "$ac_c_werror_flag" ||
14320          test ! -s conftest.err
14321        } && test -s conftest.$ac_objext; then
14322   ac_hi=$ac_mid
14323 else
14324   $as_echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14326
14327         ac_lo=`expr '(' $ac_mid ')' + 1`
14328 fi
14329
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 done
14332 case $ac_lo in
14333 ?*) ac_cv_sizeof_long=$ac_lo;;
14334 '') if test "$ac_cv_type_long" = yes; then
14335      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14337 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14338 See \`config.log' for more details." >&5
14339 $as_echo "$as_me: error: cannot compute sizeof (long)
14340 See \`config.log' for more details." >&2;}
14341    { (exit 77); exit 77; }; }; }
14342    else
14343      ac_cv_sizeof_long=0
14344    fi ;;
14345 esac
14346 else
14347   cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353 $ac_includes_default
14354 static long int longval () { return (long int) (sizeof (long)); }
14355 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
14356 #include <stdio.h>
14357 #include <stdlib.h>
14358 int
14359 main ()
14360 {
14361
14362   FILE *f = fopen ("conftest.val", "w");
14363   if (! f)
14364     return 1;
14365   if (((long int) (sizeof (long))) < 0)
14366     {
14367       long int i = longval ();
14368       if (i != ((long int) (sizeof (long))))
14369         return 1;
14370       fprintf (f, "%ld", i);
14371     }
14372   else
14373     {
14374       unsigned long int i = ulongval ();
14375       if (i != ((long int) (sizeof (long))))
14376         return 1;
14377       fprintf (f, "%lu", i);
14378     }
14379   /* Do not output a trailing newline, as this causes \r\n confusion
14380      on some platforms.  */
14381   return ferror (f) || fclose (f) != 0;
14382
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest$ac_exeext
14388 if { (ac_try="$ac_link"
14389 case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394 $as_echo "$ac_try_echo") >&5
14395   (eval "$ac_link") 2>&5
14396   ac_status=$?
14397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14399   { (case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404 $as_echo "$ac_try_echo") >&5
14405   (eval "$ac_try") 2>&5
14406   ac_status=$?
14407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   ac_cv_sizeof_long=`cat conftest.val`
14410 else
14411   $as_echo "$as_me: program exited with status $ac_status" >&5
14412 $as_echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 ( exit $ac_status )
14416 if test "$ac_cv_type_long" = yes; then
14417      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14419 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14420 See \`config.log' for more details." >&5
14421 $as_echo "$as_me: error: cannot compute sizeof (long)
14422 See \`config.log' for more details." >&2;}
14423    { (exit 77); exit 77; }; }; }
14424    else
14425      ac_cv_sizeof_long=0
14426    fi
14427 fi
14428 rm -rf conftest.dSYM
14429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14430 fi
14431 rm -f conftest.val
14432 fi
14433 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14434 $as_echo "$ac_cv_sizeof_long" >&6; }
14435
14436
14437
14438 cat >>confdefs.h <<_ACEOF
14439 #define SIZEOF_LONG $ac_cv_sizeof_long
14440 _ACEOF
14441
14442
14443 # The cast to long int works around a bug in the HP C Compiler
14444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14446 # This bug is HP SR number 8606223364.
14447 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
14448 $as_echo_n "checking size of long long... " >&6; }
14449 if test "${ac_cv_sizeof_long_long+set}" = set; then
14450   $as_echo_n "(cached) " >&6
14451 else
14452   if test "$cross_compiling" = yes; then
14453   # Depending upon the size, compute the lo and hi bounds.
14454 cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460 $ac_includes_default
14461 int
14462 main ()
14463 {
14464 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
14465 test_array [0] = 0
14466
14467   ;
14468   return 0;
14469 }
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14478 $as_echo "$ac_try_echo") >&5
14479   (eval "$ac_compile") 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } && {
14486          test -z "$ac_c_werror_flag" ||
14487          test ! -s conftest.err
14488        } && test -s conftest.$ac_objext; then
14489   ac_lo=0 ac_mid=0
14490   while :; do
14491     cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h.  */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h.  */
14497 $ac_includes_default
14498 int
14499 main ()
14500 {
14501 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14502 test_array [0] = 0
14503
14504   ;
14505   return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515 $as_echo "$ac_try_echo") >&5
14516   (eval "$ac_compile") 2>conftest.er1
14517   ac_status=$?
14518   grep -v '^ *+' conftest.er1 >conftest.err
14519   rm -f conftest.er1
14520   cat conftest.err >&5
14521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } && {
14523          test -z "$ac_c_werror_flag" ||
14524          test ! -s conftest.err
14525        } && test -s conftest.$ac_objext; then
14526   ac_hi=$ac_mid; break
14527 else
14528   $as_echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14530
14531         ac_lo=`expr $ac_mid + 1`
14532                         if test $ac_lo -le $ac_mid; then
14533                           ac_lo= ac_hi=
14534                           break
14535                         fi
14536                         ac_mid=`expr 2 '*' $ac_mid + 1`
14537 fi
14538
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540   done
14541 else
14542   $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545         cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h.  */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h.  */
14551 $ac_includes_default
14552 int
14553 main ()
14554 {
14555 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
14556 test_array [0] = 0
14557
14558   ;
14559   return 0;
14560 }
14561 _ACEOF
14562 rm -f conftest.$ac_objext
14563 if { (ac_try="$ac_compile"
14564 case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569 $as_echo "$ac_try_echo") >&5
14570   (eval "$ac_compile") 2>conftest.er1
14571   ac_status=$?
14572   grep -v '^ *+' conftest.er1 >conftest.err
14573   rm -f conftest.er1
14574   cat conftest.err >&5
14575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } && {
14577          test -z "$ac_c_werror_flag" ||
14578          test ! -s conftest.err
14579        } && test -s conftest.$ac_objext; then
14580   ac_hi=-1 ac_mid=-1
14581   while :; do
14582     cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h.  */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h.  */
14588 $ac_includes_default
14589 int
14590 main ()
14591 {
14592 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
14593 test_array [0] = 0
14594
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (ac_try="$ac_compile"
14601 case "(($ac_try" in
14602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603   *) ac_try_echo=$ac_try;;
14604 esac
14605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606 $as_echo "$ac_try_echo") >&5
14607   (eval "$ac_compile") 2>conftest.er1
14608   ac_status=$?
14609   grep -v '^ *+' conftest.er1 >conftest.err
14610   rm -f conftest.er1
14611   cat conftest.err >&5
14612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); } && {
14614          test -z "$ac_c_werror_flag" ||
14615          test ! -s conftest.err
14616        } && test -s conftest.$ac_objext; then
14617   ac_lo=$ac_mid; break
14618 else
14619   $as_echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622         ac_hi=`expr '(' $ac_mid ')' - 1`
14623                         if test $ac_mid -le $ac_hi; then
14624                           ac_lo= ac_hi=
14625                           break
14626                         fi
14627                         ac_mid=`expr 2 '*' $ac_mid`
14628 fi
14629
14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631   done
14632 else
14633   $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636         ac_lo= ac_hi=
14637 fi
14638
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 fi
14641
14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 # Binary search between lo and hi bounds.
14644 while test "x$ac_lo" != "x$ac_hi"; do
14645   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14646   cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 $ac_includes_default
14653 int
14654 main ()
14655 {
14656 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14657 test_array [0] = 0
14658
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667   *) ac_try_echo=$ac_try;;
14668 esac
14669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14670 $as_echo "$ac_try_echo") >&5
14671   (eval "$ac_compile") 2>conftest.er1
14672   ac_status=$?
14673   grep -v '^ *+' conftest.er1 >conftest.err
14674   rm -f conftest.er1
14675   cat conftest.err >&5
14676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } && {
14678          test -z "$ac_c_werror_flag" ||
14679          test ! -s conftest.err
14680        } && test -s conftest.$ac_objext; then
14681   ac_hi=$ac_mid
14682 else
14683   $as_echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686         ac_lo=`expr '(' $ac_mid ')' + 1`
14687 fi
14688
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 done
14691 case $ac_lo in
14692 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14693 '') if test "$ac_cv_type_long_long" = yes; then
14694      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14696 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14697 See \`config.log' for more details." >&5
14698 $as_echo "$as_me: error: cannot compute sizeof (long long)
14699 See \`config.log' for more details." >&2;}
14700    { (exit 77); exit 77; }; }; }
14701    else
14702      ac_cv_sizeof_long_long=0
14703    fi ;;
14704 esac
14705 else
14706   cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 $ac_includes_default
14713 static long int longval () { return (long int) (sizeof (long long)); }
14714 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
14715 #include <stdio.h>
14716 #include <stdlib.h>
14717 int
14718 main ()
14719 {
14720
14721   FILE *f = fopen ("conftest.val", "w");
14722   if (! f)
14723     return 1;
14724   if (((long int) (sizeof (long long))) < 0)
14725     {
14726       long int i = longval ();
14727       if (i != ((long int) (sizeof (long long))))
14728         return 1;
14729       fprintf (f, "%ld", i);
14730     }
14731   else
14732     {
14733       unsigned long int i = ulongval ();
14734       if (i != ((long int) (sizeof (long long))))
14735         return 1;
14736       fprintf (f, "%lu", i);
14737     }
14738   /* Do not output a trailing newline, as this causes \r\n confusion
14739      on some platforms.  */
14740   return ferror (f) || fclose (f) != 0;
14741
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest$ac_exeext
14747 if { (ac_try="$ac_link"
14748 case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14753 $as_echo "$ac_try_echo") >&5
14754   (eval "$ac_link") 2>&5
14755   ac_status=$?
14756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14758   { (case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14763 $as_echo "$ac_try_echo") >&5
14764   (eval "$ac_try") 2>&5
14765   ac_status=$?
14766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; }; then
14768   ac_cv_sizeof_long_long=`cat conftest.val`
14769 else
14770   $as_echo "$as_me: program exited with status $ac_status" >&5
14771 $as_echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774 ( exit $ac_status )
14775 if test "$ac_cv_type_long_long" = yes; then
14776      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14778 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14779 See \`config.log' for more details." >&5
14780 $as_echo "$as_me: error: cannot compute sizeof (long long)
14781 See \`config.log' for more details." >&2;}
14782    { (exit 77); exit 77; }; }; }
14783    else
14784      ac_cv_sizeof_long_long=0
14785    fi
14786 fi
14787 rm -rf conftest.dSYM
14788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14789 fi
14790 rm -f conftest.val
14791 fi
14792 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14793 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14794
14795
14796
14797 cat >>confdefs.h <<_ACEOF
14798 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14799 _ACEOF
14800
14801
14802 SIZEOF_SHORT=$ac_cv_sizeof_short
14803 SIZEOF_INT=$ac_cv_sizeof_int
14804 SIZEOF_LONG=$ac_cv_sizeof_long
14805 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14806
14807
14808
14809
14810
14811  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14812 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14813 if test "${ac_cv_c_bigendian+set}" = set; then
14814   $as_echo_n "(cached) " >&6
14815 else
14816   ac_cv_c_bigendian=unknown
14817     # See if we're dealing with a universal compiler.
14818     cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824 #ifndef __APPLE_CC__
14825                not a universal capable compiler
14826              #endif
14827              typedef int dummy;
14828
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834   *) ac_try_echo=$ac_try;;
14835 esac
14836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14837 $as_echo "$ac_try_echo") >&5
14838   (eval "$ac_compile") 2>conftest.er1
14839   ac_status=$?
14840   grep -v '^ *+' conftest.er1 >conftest.err
14841   rm -f conftest.er1
14842   cat conftest.err >&5
14843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); } && {
14845          test -z "$ac_c_werror_flag" ||
14846          test ! -s conftest.err
14847        } && test -s conftest.$ac_objext; then
14848
14849         # Check for potential -arch flags.  It is not universal unless
14850         # there are some -arch flags.  Note that *ppc* also matches
14851         # ppc64.  This check is also rather less than ideal.
14852         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14853           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14854         esac
14855 else
14856   $as_echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863     if test $ac_cv_c_bigendian = unknown; then
14864       # See if sys/param.h defines the BYTE_ORDER macro.
14865       cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h.  */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h.  */
14871 #include <sys/types.h>
14872              #include <sys/param.h>
14873
14874 int
14875 main ()
14876 {
14877 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14878                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14879                      && LITTLE_ENDIAN)
14880               bogus endian macros
14881              #endif
14882
14883   ;
14884   return 0;
14885 }
14886 _ACEOF
14887 rm -f conftest.$ac_objext
14888 if { (ac_try="$ac_compile"
14889 case "(($ac_try" in
14890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891   *) ac_try_echo=$ac_try;;
14892 esac
14893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14894 $as_echo "$ac_try_echo") >&5
14895   (eval "$ac_compile") 2>conftest.er1
14896   ac_status=$?
14897   grep -v '^ *+' conftest.er1 >conftest.err
14898   rm -f conftest.er1
14899   cat conftest.err >&5
14900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); } && {
14902          test -z "$ac_c_werror_flag" ||
14903          test ! -s conftest.err
14904        } && test -s conftest.$ac_objext; then
14905   # It does; now see whether it defined to BIG_ENDIAN or not.
14906          cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h.  */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h.  */
14912 #include <sys/types.h>
14913                 #include <sys/param.h>
14914
14915 int
14916 main ()
14917 {
14918 #if BYTE_ORDER != BIG_ENDIAN
14919                  not big endian
14920                 #endif
14921
14922   ;
14923   return 0;
14924 }
14925 _ACEOF
14926 rm -f conftest.$ac_objext
14927 if { (ac_try="$ac_compile"
14928 case "(($ac_try" in
14929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930   *) ac_try_echo=$ac_try;;
14931 esac
14932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14933 $as_echo "$ac_try_echo") >&5
14934   (eval "$ac_compile") 2>conftest.er1
14935   ac_status=$?
14936   grep -v '^ *+' conftest.er1 >conftest.err
14937   rm -f conftest.er1
14938   cat conftest.err >&5
14939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); } && {
14941          test -z "$ac_c_werror_flag" ||
14942          test ! -s conftest.err
14943        } && test -s conftest.$ac_objext; then
14944   ac_cv_c_bigendian=yes
14945 else
14946   $as_echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14948
14949         ac_cv_c_bigendian=no
14950 fi
14951
14952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 else
14954   $as_echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14956
14957
14958 fi
14959
14960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14961     fi
14962     if test $ac_cv_c_bigendian = unknown; then
14963       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14964       cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h.  */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h.  */
14970 #include <limits.h>
14971
14972 int
14973 main ()
14974 {
14975 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14976               bogus endian macros
14977              #endif
14978
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987   *) ac_try_echo=$ac_try;;
14988 esac
14989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14990 $as_echo "$ac_try_echo") >&5
14991   (eval "$ac_compile") 2>conftest.er1
14992   ac_status=$?
14993   grep -v '^ *+' conftest.er1 >conftest.err
14994   rm -f conftest.er1
14995   cat conftest.err >&5
14996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); } && {
14998          test -z "$ac_c_werror_flag" ||
14999          test ! -s conftest.err
15000        } && test -s conftest.$ac_objext; then
15001   # It does; now see whether it defined to _BIG_ENDIAN or not.
15002          cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h.  */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h.  */
15008 #include <limits.h>
15009
15010 int
15011 main ()
15012 {
15013 #ifndef _BIG_ENDIAN
15014                  not big endian
15015                 #endif
15016
15017   ;
15018   return 0;
15019 }
15020 _ACEOF
15021 rm -f conftest.$ac_objext
15022 if { (ac_try="$ac_compile"
15023 case "(($ac_try" in
15024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025   *) ac_try_echo=$ac_try;;
15026 esac
15027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15028 $as_echo "$ac_try_echo") >&5
15029   (eval "$ac_compile") 2>conftest.er1
15030   ac_status=$?
15031   grep -v '^ *+' conftest.er1 >conftest.err
15032   rm -f conftest.er1
15033   cat conftest.err >&5
15034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } && {
15036          test -z "$ac_c_werror_flag" ||
15037          test ! -s conftest.err
15038        } && test -s conftest.$ac_objext; then
15039   ac_cv_c_bigendian=yes
15040 else
15041   $as_echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15043
15044         ac_cv_c_bigendian=no
15045 fi
15046
15047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15048 else
15049   $as_echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056     fi
15057     if test $ac_cv_c_bigendian = unknown; then
15058       # Compile a test program.
15059       if test "$cross_compiling" = yes; then
15060   # Try to guess by grepping values from an object file.
15061          cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h.  */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h.  */
15067 short int ascii_mm[] =
15068                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15069                 short int ascii_ii[] =
15070                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15071                 int use_ascii (int i) {
15072                   return ascii_mm[i] + ascii_ii[i];
15073                 }
15074                 short int ebcdic_ii[] =
15075                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15076                 short int ebcdic_mm[] =
15077                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15078                 int use_ebcdic (int i) {
15079                   return ebcdic_mm[i] + ebcdic_ii[i];
15080                 }
15081                 extern int foo;
15082
15083 int
15084 main ()
15085 {
15086 return use_ascii (foo) == use_ebcdic (foo);
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (ac_try="$ac_compile"
15093 case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15098 $as_echo "$ac_try_echo") >&5
15099   (eval "$ac_compile") 2>conftest.er1
15100   ac_status=$?
15101   grep -v '^ *+' conftest.er1 >conftest.err
15102   rm -f conftest.er1
15103   cat conftest.err >&5
15104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } && {
15106          test -z "$ac_c_werror_flag" ||
15107          test ! -s conftest.err
15108        } && test -s conftest.$ac_objext; then
15109   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15110               ac_cv_c_bigendian=yes
15111             fi
15112             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15113               if test "$ac_cv_c_bigendian" = unknown; then
15114                 ac_cv_c_bigendian=no
15115               else
15116                 # finding both strings is unlikely to happen, but who knows?
15117                 ac_cv_c_bigendian=unknown
15118               fi
15119             fi
15120 else
15121   $as_echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124
15125 fi
15126
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 else
15129   cat >conftest.$ac_ext <<_ACEOF
15130 /* confdefs.h.  */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h.  */
15135 $ac_includes_default
15136 int
15137 main ()
15138 {
15139
15140              /* Are we little or big endian?  From Harbison&Steele.  */
15141              union
15142              {
15143                long int l;
15144                char c[sizeof (long int)];
15145              } u;
15146              u.l = 1;
15147              return u.c[sizeof (long int) - 1] == 1;
15148
15149   ;
15150   return 0;
15151 }
15152 _ACEOF
15153 rm -f conftest$ac_exeext
15154 if { (ac_try="$ac_link"
15155 case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15160 $as_echo "$ac_try_echo") >&5
15161   (eval "$ac_link") 2>&5
15162   ac_status=$?
15163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15165   { (case "(($ac_try" in
15166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167   *) ac_try_echo=$ac_try;;
15168 esac
15169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15170 $as_echo "$ac_try_echo") >&5
15171   (eval "$ac_try") 2>&5
15172   ac_status=$?
15173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); }; }; then
15175   ac_cv_c_bigendian=no
15176 else
15177   $as_echo "$as_me: program exited with status $ac_status" >&5
15178 $as_echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15180
15181 ( exit $ac_status )
15182 ac_cv_c_bigendian=yes
15183 fi
15184 rm -rf conftest.dSYM
15185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15186 fi
15187
15188
15189     fi
15190 fi
15191 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15192 $as_echo "$ac_cv_c_bigendian" >&6; }
15193  case $ac_cv_c_bigendian in #(
15194    yes)
15195      cat >>confdefs.h <<\_ACEOF
15196 #define WORDS_BIGENDIAN 1
15197 _ACEOF
15198 ;; #(
15199    no)
15200       ;; #(
15201    universal)
15202
15203 cat >>confdefs.h <<\_ACEOF
15204 #define AC_APPLE_UNIVERSAL_BUILD 1
15205 _ACEOF
15206
15207      ;; #(
15208    *)
15209      { { $as_echo "$as_me:$LINENO: error: unknown endianness
15210  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15211 $as_echo "$as_me: error: unknown endianness
15212  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15213    { (exit 1); exit 1; }; } ;;
15214  esac
15215
15216 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
15217 ASM_TYPES_HEADER=./asm_types.h
15218
15219 echo "/* These defines are needed for the public ext2fs.h header file */" \
15220      > public_config.h
15221 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15222   uniq tmp_config.$$ >> public_config.h
15223 else
15224   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15225 fi
15226 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15227   uniq tmp_config.$$ >> public_config.h
15228 else
15229   echo "#undef WORDS_BIGENDIAN" >> public_config.h
15230 fi
15231 rm -f tmp_config.$$
15232 PUBLIC_CONFIG_HEADER=./public_config.h
15233
15234
15235 for ac_header in inttypes.h
15236 do
15237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15239   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15240 $as_echo_n "checking for $ac_header... " >&6; }
15241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15242   $as_echo_n "(cached) " >&6
15243 fi
15244 ac_res=`eval 'as_val=${'$as_ac_Header'}
15245                  $as_echo "$as_val"'`
15246                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15247 $as_echo "$ac_res" >&6; }
15248 else
15249   # Is the header compilable?
15250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15251 $as_echo_n "checking $ac_header usability... " >&6; }
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258 $ac_includes_default
15259 #include <$ac_header>
15260 _ACEOF
15261 rm -f conftest.$ac_objext
15262 if { (ac_try="$ac_compile"
15263 case "(($ac_try" in
15264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265   *) ac_try_echo=$ac_try;;
15266 esac
15267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15268 $as_echo "$ac_try_echo") >&5
15269   (eval "$ac_compile") 2>conftest.er1
15270   ac_status=$?
15271   grep -v '^ *+' conftest.er1 >conftest.err
15272   rm -f conftest.er1
15273   cat conftest.err >&5
15274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); } && {
15276          test -z "$ac_c_werror_flag" ||
15277          test ! -s conftest.err
15278        } && test -s conftest.$ac_objext; then
15279   ac_header_compiler=yes
15280 else
15281   $as_echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284         ac_header_compiler=no
15285 fi
15286
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 $as_echo "$ac_header_compiler" >&6; }
15290
15291 # Is the header present?
15292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293 $as_echo_n "checking $ac_header presence... " >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300 #include <$ac_header>
15301 _ACEOF
15302 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
15316          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15317          test ! -s conftest.err
15318        }; then
15319   ac_header_preproc=yes
15320 else
15321   $as_echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324   ac_header_preproc=no
15325 fi
15326
15327 rm -f conftest.err conftest.$ac_ext
15328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15329 $as_echo "$ac_header_preproc" >&6; }
15330
15331 # So?  What about this header?
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15333   yes:no: )
15334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15338     ac_header_preproc=yes
15339     ;;
15340   no:yes:* )
15341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15344 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15348 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15353
15354     ;;
15355 esac
15356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15357 $as_echo_n "checking for $ac_header... " >&6; }
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359   $as_echo_n "(cached) " >&6
15360 else
15361   eval "$as_ac_Header=\$ac_header_preproc"
15362 fi
15363 ac_res=`eval 'as_val=${'$as_ac_Header'}
15364                  $as_echo "$as_val"'`
15365                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15366 $as_echo "$ac_res" >&6; }
15367
15368 fi
15369 as_val=`eval 'as_val=${'$as_ac_Header'}
15370                  $as_echo "$as_val"'`
15371    if test "x$as_val" = x""yes; then
15372   cat >>confdefs.h <<_ACEOF
15373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15374 _ACEOF
15375
15376 fi
15377
15378 done
15379
15380 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15381 $as_echo_n "checking for intptr_t... " >&6; }
15382 if test "${ac_cv_type_intptr_t+set}" = set; then
15383   $as_echo_n "(cached) " >&6
15384 else
15385   ac_cv_type_intptr_t=no
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392 $ac_includes_default
15393 int
15394 main ()
15395 {
15396 if (sizeof (intptr_t))
15397        return 0;
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 rm -f conftest.$ac_objext
15403 if { (ac_try="$ac_compile"
15404 case "(($ac_try" in
15405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406   *) ac_try_echo=$ac_try;;
15407 esac
15408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15409 $as_echo "$ac_try_echo") >&5
15410   (eval "$ac_compile") 2>conftest.er1
15411   ac_status=$?
15412   grep -v '^ *+' conftest.er1 >conftest.err
15413   rm -f conftest.er1
15414   cat conftest.err >&5
15415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); } && {
15417          test -z "$ac_c_werror_flag" ||
15418          test ! -s conftest.err
15419        } && test -s conftest.$ac_objext; then
15420   cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 $ac_includes_default
15427 int
15428 main ()
15429 {
15430 if (sizeof ((intptr_t)))
15431           return 0;
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext
15437 if { (ac_try="$ac_compile"
15438 case "(($ac_try" in
15439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440   *) ac_try_echo=$ac_try;;
15441 esac
15442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15443 $as_echo "$ac_try_echo") >&5
15444   (eval "$ac_compile") 2>conftest.er1
15445   ac_status=$?
15446   grep -v '^ *+' conftest.er1 >conftest.err
15447   rm -f conftest.er1
15448   cat conftest.err >&5
15449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); } && {
15451          test -z "$ac_c_werror_flag" ||
15452          test ! -s conftest.err
15453        } && test -s conftest.$ac_objext; then
15454   :
15455 else
15456   $as_echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459         ac_cv_type_intptr_t=yes
15460 fi
15461
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 else
15464   $as_echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467
15468 fi
15469
15470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15471 fi
15472 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15473 $as_echo "$ac_cv_type_intptr_t" >&6; }
15474 if test "x$ac_cv_type_intptr_t" = x""yes; then
15475
15476 cat >>confdefs.h <<_ACEOF
15477 #define HAVE_INTPTR_T 1
15478 _ACEOF
15479
15480
15481 fi
15482
15483 { $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15484 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
15485 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
15486   $as_echo_n "(cached) " >&6
15487 else
15488   cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494 #include <sys/stat.h>
15495 int
15496 main ()
15497 {
15498 struct stat stat; stat.st_flags = 0;
15499   ;
15500   return 0;
15501 }
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510 $as_echo "$ac_try_echo") >&5
15511   (eval "$ac_compile") 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } && {
15518          test -z "$ac_c_werror_flag" ||
15519          test ! -s conftest.err
15520        } && test -s conftest.$ac_objext; then
15521   e2fsprogs_cv_struct_st_flags=yes
15522 else
15523   $as_echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526         e2fsprogs_cv_struct_st_flags=no
15527 fi
15528
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 fi
15531
15532 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15533 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
15534 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
15535   { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15536 $as_echo_n "checking whether st_flags field is useful... " >&6; }
15537   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
15538   $as_echo_n "(cached) " >&6
15539 else
15540   cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546 #include <sys/stat.h>
15547 int
15548 main ()
15549 {
15550 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext
15556 if { (ac_try="$ac_compile"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15562 $as_echo "$ac_try_echo") >&5
15563   (eval "$ac_compile") 2>conftest.er1
15564   ac_status=$?
15565   grep -v '^ *+' conftest.er1 >conftest.err
15566   rm -f conftest.er1
15567   cat conftest.err >&5
15568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); } && {
15570          test -z "$ac_c_werror_flag" ||
15571          test ! -s conftest.err
15572        } && test -s conftest.$ac_objext; then
15573   e2fsprogs_cv_struct_st_flags_immut=yes
15574 else
15575   $as_echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578         e2fsprogs_cv_struct_st_flags_immut=no
15579 fi
15580
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 fi
15583
15584   { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15585 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
15586   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
15587           cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_STAT_FLAGS 1
15589 _ACEOF
15590
15591   fi
15592 fi
15593 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15594 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15595 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15596   $as_echo_n "(cached) " >&6
15597 else
15598   cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 #include <sys/types.h>
15605          #include <sys/socket.h>
15606
15607 int
15608 main ()
15609 {
15610 static struct sockaddr ac_aggr;
15611 if (ac_aggr.sa_len)
15612 return 0;
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 rm -f conftest.$ac_objext
15618 if { (ac_try="$ac_compile"
15619 case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15624 $as_echo "$ac_try_echo") >&5
15625   (eval "$ac_compile") 2>conftest.er1
15626   ac_status=$?
15627   grep -v '^ *+' conftest.er1 >conftest.err
15628   rm -f conftest.er1
15629   cat conftest.err >&5
15630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } && {
15632          test -z "$ac_c_werror_flag" ||
15633          test ! -s conftest.err
15634        } && test -s conftest.$ac_objext; then
15635   ac_cv_member_struct_sockaddr_sa_len=yes
15636 else
15637   $as_echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640         cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h.  */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h.  */
15646 #include <sys/types.h>
15647          #include <sys/socket.h>
15648
15649 int
15650 main ()
15651 {
15652 static struct sockaddr ac_aggr;
15653 if (sizeof ac_aggr.sa_len)
15654 return 0;
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (ac_try="$ac_compile"
15661 case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15666 $as_echo "$ac_try_echo") >&5
15667   (eval "$ac_compile") 2>conftest.er1
15668   ac_status=$?
15669   grep -v '^ *+' conftest.er1 >conftest.err
15670   rm -f conftest.er1
15671   cat conftest.err >&5
15672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } && {
15674          test -z "$ac_c_werror_flag" ||
15675          test ! -s conftest.err
15676        } && test -s conftest.$ac_objext; then
15677   ac_cv_member_struct_sockaddr_sa_len=yes
15678 else
15679   $as_echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682         ac_cv_member_struct_sockaddr_sa_len=no
15683 fi
15684
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686 fi
15687
15688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689 fi
15690 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15691 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15692 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15693
15694 cat >>confdefs.h <<_ACEOF
15695 #define HAVE_SA_LEN 1
15696 _ACEOF
15697
15698 fi
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733 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
15734 do
15735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15737 $as_echo_n "checking for $ac_func... " >&6; }
15738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15739   $as_echo_n "(cached) " >&6
15740 else
15741   cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h.  */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h.  */
15747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15749 #define $ac_func innocuous_$ac_func
15750
15751 /* System header to define __stub macros and hopefully few prototypes,
15752     which can conflict with char $ac_func (); below.
15753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754     <limits.h> exists even on freestanding compilers.  */
15755
15756 #ifdef __STDC__
15757 # include <limits.h>
15758 #else
15759 # include <assert.h>
15760 #endif
15761
15762 #undef $ac_func
15763
15764 /* Override any GCC internal prototype to avoid an error.
15765    Use char because int might match the return type of a GCC
15766    builtin and then its argument prototype would still apply.  */
15767 #ifdef __cplusplus
15768 extern "C"
15769 #endif
15770 char $ac_func ();
15771 /* The GNU C library defines this for functions which it implements
15772     to always fail with ENOSYS.  Some functions are actually named
15773     something starting with __ and the normal name is an alias.  */
15774 #if defined __stub_$ac_func || defined __stub___$ac_func
15775 choke me
15776 #endif
15777
15778 int
15779 main ()
15780 {
15781 return $ac_func ();
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790   *) ac_try_echo=$ac_try;;
15791 esac
15792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15793 $as_echo "$ac_try_echo") >&5
15794   (eval "$ac_link") 2>conftest.er1
15795   ac_status=$?
15796   grep -v '^ *+' conftest.er1 >conftest.err
15797   rm -f conftest.er1
15798   cat conftest.err >&5
15799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); } && {
15801          test -z "$ac_c_werror_flag" ||
15802          test ! -s conftest.err
15803        } && test -s conftest$ac_exeext && {
15804          test "$cross_compiling" = yes ||
15805          $as_test_x conftest$ac_exeext
15806        }; then
15807   eval "$as_ac_var=yes"
15808 else
15809   $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812         eval "$as_ac_var=no"
15813 fi
15814
15815 rm -rf conftest.dSYM
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817       conftest$ac_exeext conftest.$ac_ext
15818 fi
15819 ac_res=`eval 'as_val=${'$as_ac_var'}
15820                  $as_echo "$as_val"'`
15821                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15822 $as_echo "$ac_res" >&6; }
15823 as_val=`eval 'as_val=${'$as_ac_var'}
15824                  $as_echo "$as_val"'`
15825    if test "x$as_val" = x""yes; then
15826   cat >>confdefs.h <<_ACEOF
15827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15828 _ACEOF
15829
15830 fi
15831 done
15832
15833 SOCKET_LIB=''
15834 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15835 $as_echo_n "checking for socket in -lsocket... " >&6; }
15836 if test "${ac_cv_lib_socket_socket+set}" = set; then
15837   $as_echo_n "(cached) " >&6
15838 else
15839   ac_check_lib_save_LIBS=$LIBS
15840 LIBS="-lsocket  $LIBS"
15841 cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h.  */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h.  */
15847
15848 /* Override any GCC internal prototype to avoid an error.
15849    Use char because int might match the return type of a GCC
15850    builtin and then its argument prototype would still apply.  */
15851 #ifdef __cplusplus
15852 extern "C"
15853 #endif
15854 char socket ();
15855 int
15856 main ()
15857 {
15858 return socket ();
15859   ;
15860   return 0;
15861 }
15862 _ACEOF
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (ac_try="$ac_link"
15865 case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15870 $as_echo "$ac_try_echo") >&5
15871   (eval "$ac_link") 2>conftest.er1
15872   ac_status=$?
15873   grep -v '^ *+' conftest.er1 >conftest.err
15874   rm -f conftest.er1
15875   cat conftest.err >&5
15876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); } && {
15878          test -z "$ac_c_werror_flag" ||
15879          test ! -s conftest.err
15880        } && test -s conftest$ac_exeext && {
15881          test "$cross_compiling" = yes ||
15882          $as_test_x conftest$ac_exeext
15883        }; then
15884   ac_cv_lib_socket_socket=yes
15885 else
15886   $as_echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15888
15889         ac_cv_lib_socket_socket=no
15890 fi
15891
15892 rm -rf conftest.dSYM
15893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15894       conftest$ac_exeext conftest.$ac_ext
15895 LIBS=$ac_check_lib_save_LIBS
15896 fi
15897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15898 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15899 if test "x$ac_cv_lib_socket_socket" = x""yes; then
15900   SOCKET_LIB=-lsocket
15901 fi
15902
15903
15904 DLOPEN_LIB=''
15905 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15908   $as_echo_n "(cached) " >&6
15909 else
15910   ac_check_lib_save_LIBS=$LIBS
15911 LIBS="-ldl  $LIBS"
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h.  */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h.  */
15918
15919 /* Override any GCC internal prototype to avoid an error.
15920    Use char because int might match the return type of a GCC
15921    builtin and then its argument prototype would still apply.  */
15922 #ifdef __cplusplus
15923 extern "C"
15924 #endif
15925 char dlopen ();
15926 int
15927 main ()
15928 {
15929 return dlopen ();
15930   ;
15931   return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938   *) ac_try_echo=$ac_try;;
15939 esac
15940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15941 $as_echo "$ac_try_echo") >&5
15942   (eval "$ac_link") 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } && {
15949          test -z "$ac_c_werror_flag" ||
15950          test ! -s conftest.err
15951        } && test -s conftest$ac_exeext && {
15952          test "$cross_compiling" = yes ||
15953          $as_test_x conftest$ac_exeext
15954        }; then
15955   ac_cv_lib_dl_dlopen=yes
15956 else
15957   $as_echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15959
15960         ac_cv_lib_dl_dlopen=no
15961 fi
15962
15963 rm -rf conftest.dSYM
15964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15965       conftest$ac_exeext conftest.$ac_ext
15966 LIBS=$ac_check_lib_save_LIBS
15967 fi
15968 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15970 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15971   DLOPEN_LIB=-ldl
15972 cat >>confdefs.h <<\_ACEOF
15973 #define HAVE_DLOPEN 1
15974 _ACEOF
15975
15976 fi
15977
15978
15979 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
15980 $as_echo_n "checking for optreset... " >&6; }
15981 if test "${ac_cv_have_optreset+set}" = set; then
15982   $as_echo_n "(cached) " >&6
15983 else
15984   cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990 #include <unistd.h>
15991
15992 _ACEOF
15993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15994   $EGREP "optreset" >/dev/null 2>&1; then
15995   ac_cv_have_optreset=yes
15996 else
15997   ac_cv_have_optreset=no
15998 fi
15999 rm -f conftest*
16000
16001 fi
16002 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16003 $as_echo "$ac_cv_have_optreset" >&6; }
16004 if test $ac_cv_have_optreset = yes; then
16005   cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_OPTRESET 1
16007 _ACEOF
16008
16009 fi
16010 SEM_INIT_LIB=''
16011 { $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16012 $as_echo_n "checking for sem_init... " >&6; }
16013 if test "${ac_cv_func_sem_init+set}" = set; then
16014   $as_echo_n "(cached) " >&6
16015 else
16016   cat >conftest.$ac_ext <<_ACEOF
16017 /* confdefs.h.  */
16018 _ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h.  */
16022 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16024 #define sem_init innocuous_sem_init
16025
16026 /* System header to define __stub macros and hopefully few prototypes,
16027     which can conflict with char sem_init (); below.
16028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16029     <limits.h> exists even on freestanding compilers.  */
16030
16031 #ifdef __STDC__
16032 # include <limits.h>
16033 #else
16034 # include <assert.h>
16035 #endif
16036
16037 #undef sem_init
16038
16039 /* Override any GCC internal prototype to avoid an error.
16040    Use char because int might match the return type of a GCC
16041    builtin and then its argument prototype would still apply.  */
16042 #ifdef __cplusplus
16043 extern "C"
16044 #endif
16045 char sem_init ();
16046 /* The GNU C library defines this for functions which it implements
16047     to always fail with ENOSYS.  Some functions are actually named
16048     something starting with __ and the normal name is an alias.  */
16049 #if defined __stub_sem_init || defined __stub___sem_init
16050 choke me
16051 #endif
16052
16053 int
16054 main ()
16055 {
16056 return sem_init ();
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068 $as_echo "$ac_try_echo") >&5
16069   (eval "$ac_link") 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } && {
16076          test -z "$ac_c_werror_flag" ||
16077          test ! -s conftest.err
16078        } && test -s conftest$ac_exeext && {
16079          test "$cross_compiling" = yes ||
16080          $as_test_x conftest$ac_exeext
16081        }; then
16082   ac_cv_func_sem_init=yes
16083 else
16084   $as_echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16086
16087         ac_cv_func_sem_init=no
16088 fi
16089
16090 rm -rf conftest.dSYM
16091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16092       conftest$ac_exeext conftest.$ac_ext
16093 fi
16094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16095 $as_echo "$ac_cv_func_sem_init" >&6; }
16096 if test "x$ac_cv_func_sem_init" = x""yes; then
16097   :
16098 else
16099   { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16100 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
16101 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
16102   $as_echo_n "(cached) " >&6
16103 else
16104   ac_check_lib_save_LIBS=$LIBS
16105 LIBS="-lpthread  $LIBS"
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112
16113 /* Override any GCC internal prototype to avoid an error.
16114    Use char because int might match the return type of a GCC
16115    builtin and then its argument prototype would still apply.  */
16116 #ifdef __cplusplus
16117 extern "C"
16118 #endif
16119 char sem_init ();
16120 int
16121 main ()
16122 {
16123 return sem_init ();
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 rm -f conftest.$ac_objext conftest$ac_exeext
16129 if { (ac_try="$ac_link"
16130 case "(($ac_try" in
16131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132   *) ac_try_echo=$ac_try;;
16133 esac
16134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16135 $as_echo "$ac_try_echo") >&5
16136   (eval "$ac_link") 2>conftest.er1
16137   ac_status=$?
16138   grep -v '^ *+' conftest.er1 >conftest.err
16139   rm -f conftest.er1
16140   cat conftest.err >&5
16141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } && {
16143          test -z "$ac_c_werror_flag" ||
16144          test ! -s conftest.err
16145        } && test -s conftest$ac_exeext && {
16146          test "$cross_compiling" = yes ||
16147          $as_test_x conftest$ac_exeext
16148        }; then
16149   ac_cv_lib_pthread_sem_init=yes
16150 else
16151   $as_echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16153
16154         ac_cv_lib_pthread_sem_init=no
16155 fi
16156
16157 rm -rf conftest.dSYM
16158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16159       conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16161 fi
16162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16163 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16164 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
16165   cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_SEM_INIT 1
16167 _ACEOF
16168
16169         SEM_INIT_LIB=-lpthread
16170 else
16171   { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16172 $as_echo_n "checking for sem_init in -lrt... " >&6; }
16173 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
16174   $as_echo_n "(cached) " >&6
16175 else
16176   ac_check_lib_save_LIBS=$LIBS
16177 LIBS="-lrt  $LIBS"
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h.  */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h.  */
16184
16185 /* Override any GCC internal prototype to avoid an error.
16186    Use char because int might match the return type of a GCC
16187    builtin and then its argument prototype would still apply.  */
16188 #ifdef __cplusplus
16189 extern "C"
16190 #endif
16191 char sem_init ();
16192 int
16193 main ()
16194 {
16195 return sem_init ();
16196   ;
16197   return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext conftest$ac_exeext
16201 if { (ac_try="$ac_link"
16202 case "(($ac_try" in
16203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204   *) ac_try_echo=$ac_try;;
16205 esac
16206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16207 $as_echo "$ac_try_echo") >&5
16208   (eval "$ac_link") 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } && {
16215          test -z "$ac_c_werror_flag" ||
16216          test ! -s conftest.err
16217        } && test -s conftest$ac_exeext && {
16218          test "$cross_compiling" = yes ||
16219          $as_test_x conftest$ac_exeext
16220        }; then
16221   ac_cv_lib_rt_sem_init=yes
16222 else
16223   $as_echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226         ac_cv_lib_rt_sem_init=no
16227 fi
16228
16229 rm -rf conftest.dSYM
16230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16231       conftest$ac_exeext conftest.$ac_ext
16232 LIBS=$ac_check_lib_save_LIBS
16233 fi
16234 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16235 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16236 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
16237   cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_SEM_INIT 1
16239 _ACEOF
16240
16241         SEM_INIT_LIB=-lrt
16242 else
16243   { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16244 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
16245 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
16246   $as_echo_n "(cached) " >&6
16247 else
16248   ac_check_lib_save_LIBS=$LIBS
16249 LIBS="-lposix4  $LIBS"
16250 cat >conftest.$ac_ext <<_ACEOF
16251 /* confdefs.h.  */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h.  */
16256
16257 /* Override any GCC internal prototype to avoid an error.
16258    Use char because int might match the return type of a GCC
16259    builtin and then its argument prototype would still apply.  */
16260 #ifdef __cplusplus
16261 extern "C"
16262 #endif
16263 char sem_init ();
16264 int
16265 main ()
16266 {
16267 return sem_init ();
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (ac_try="$ac_link"
16274 case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16279 $as_echo "$ac_try_echo") >&5
16280   (eval "$ac_link") 2>conftest.er1
16281   ac_status=$?
16282   grep -v '^ *+' conftest.er1 >conftest.err
16283   rm -f conftest.er1
16284   cat conftest.err >&5
16285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); } && {
16287          test -z "$ac_c_werror_flag" ||
16288          test ! -s conftest.err
16289        } && test -s conftest$ac_exeext && {
16290          test "$cross_compiling" = yes ||
16291          $as_test_x conftest$ac_exeext
16292        }; then
16293   ac_cv_lib_posix4_sem_init=yes
16294 else
16295   $as_echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16297
16298         ac_cv_lib_posix4_sem_init=no
16299 fi
16300
16301 rm -rf conftest.dSYM
16302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16303       conftest$ac_exeext conftest.$ac_ext
16304 LIBS=$ac_check_lib_save_LIBS
16305 fi
16306 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16307 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16308 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
16309   cat >>confdefs.h <<\_ACEOF
16310 #define HAVE_SEM_INIT 1
16311 _ACEOF
16312
16313         SEM_INIT_LIB=-lposix4
16314 fi
16315
16316 fi
16317
16318 fi
16319
16320 fi
16321
16322 { $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16323 $as_echo_n "checking for unified diff option... " >&6; }
16324 if diff -u $0 $0 > /dev/null 2>&1 ; then
16325    UNI_DIFF_OPTS=-u
16326 else
16327    UNI_DIFF_OPTS=-c
16328 fi
16329 { $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16330 $as_echo "$UNI_DIFF_OPTS" >&6; }
16331
16332 case "$host_os" in
16333 linux*)
16334         cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_EXT2_IOCTLS 1
16336 _ACEOF
16337
16338         ;;
16339 esac
16340 LINUX_CMT="#"
16341 CYGWIN_CMT="#"
16342 UNIX_CMT=
16343 case "$host_os" in
16344 linux*)
16345         LINUX_CMT=
16346         ;;
16347 cygwin)
16348         CYGWIN_CMT=
16349         UNIX_CMT="#"
16350         ;;
16351 esac
16352
16353
16354
16355 case "$host_os" in
16356 linux* | gnu* | k*bsd*-gnu)
16357         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16358                 root_prefix="";
16359                 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16360 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
16361         fi
16362         ;;
16363 esac
16364 case "$host_os" in
16365 linux* | gnu* | k*bsd*-gnu)
16366         if test "$prefix" = NONE ; then
16367                 prefix="/usr";
16368                 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16369 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
16370                 if test "$mandir" = '${prefix}/man' ; then
16371                         { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16372 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
16373                         mandir=/usr/share/man
16374                 fi
16375         fi
16376 ;;
16377 esac
16378 if test "$root_prefix" = NONE ; then
16379         if test "$prefix" = NONE ; then
16380                 root_prefix="$ac_default_prefix"
16381         else
16382                 root_prefix="$prefix"
16383         fi
16384         root_bindir=$bindir
16385         root_sbindir=$sbindir
16386         root_libdir=$libdir
16387         root_sysconfdir=$sysconfdir
16388 else
16389         root_bindir='${root_prefix}/bin'
16390         root_sbindir='${root_prefix}/sbin'
16391         root_libdir='${root_prefix}/lib'
16392         root_sysconfdir='${root_prefix}/etc'
16393 fi
16394 if test "$bindir" != '${exec_prefix}/bin'; then
16395     root_bindir=$bindir
16396     { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16397 $as_echo "Setting root_bindir to $root_bindir" >&6; }
16398 fi
16399 if test "$sbindir" != '${exec_prefix}/sbin'; then
16400     root_sbindir=$sbindir
16401     { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16402 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
16403 fi
16404 if test "$libdir" != '${exec_prefix}/lib'; then
16405     root_libdir=$libdir
16406     { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16407 $as_echo "Setting root_libdir to $root_libdir" >&6; }
16408 fi
16409 if test "$sysconfdir" != '${prefix}/etc'; then
16410     root_sysconfdir=$sysconfdir
16411     { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16412 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
16413 fi
16414
16415
16416
16417
16418
16419 { $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16420 $as_echo_n "checking whether linker accepts -static... " >&6; }
16421 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16422   $as_echo_n "(cached) " >&6
16423 else
16424   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431 #include <stdio.h>
16432 int
16433 main ()
16434 {
16435 fflush(stdout);
16436   ;
16437   return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16447 $as_echo "$ac_try_echo") >&5
16448   (eval "$ac_link") 2>conftest.er1
16449   ac_status=$?
16450   grep -v '^ *+' conftest.er1 >conftest.err
16451   rm -f conftest.er1
16452   cat conftest.err >&5
16453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); } && {
16455          test -z "$ac_c_werror_flag" ||
16456          test ! -s conftest.err
16457        } && test -s conftest$ac_exeext && {
16458          test "$cross_compiling" = yes ||
16459          $as_test_x conftest$ac_exeext
16460        }; then
16461   ac_cv_e2fsprogs_use_static=yes
16462 else
16463   $as_echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466         ac_cv_e2fsprogs_use_static=no
16467 fi
16468
16469 rm -rf conftest.dSYM
16470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16471       conftest$ac_exeext conftest.$ac_ext
16472 LDFLAGS=$SAVE_LDFLAGS
16473 fi
16474
16475 case "$host_os" in
16476 solaris2.*)
16477         ac_cv_e2fsprogs_use_static=no
16478 ;;
16479 esac
16480 { $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16481 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
16482 LDFLAG_STATIC=
16483 if test $ac_cv_e2fsprogs_use_static = yes; then
16484         LDFLAG_STATIC=-static
16485 fi
16486
16487 case "$host_os" in
16488 darwin*)
16489         { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16490 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
16491         cat >>confdefs.h <<\_ACEOF
16492 #define _INTL_REDIRECT_MACROS 1
16493 _ACEOF
16494
16495         ;;
16496 esac
16497 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16498 ET_DIR=`cd ${srcdir}/lib/et; pwd`
16499
16500
16501 if test "$cross_compiling" = yes ; then
16502   DO_TEST_SUITE=
16503 else
16504   DO_TEST_SUITE=check
16505 fi
16506
16507 INTL_FLAGS=
16508 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16509         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16510 fi
16511
16512 if test $cross_compiling = no; then
16513    BUILD_CFLAGS="$CFLAGS"
16514    BUILD_LDFLAGS="$LDFLAGS"
16515 else
16516    BUILD_CFLAGS=
16517    BUILD_LDFLAGS=
16518 fi
16519
16520
16521 test -d lib || mkdir lib
16522 test -d include || mkdir include
16523 test -d include/linux || mkdir include/linux
16524 test -d include/asm || mkdir include/asm
16525 for i in MCONFIG Makefile e2fsprogs.spec \
16526         util/Makefile util/subst.conf util/gen-tarball \
16527         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16528         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16529         lib/uuid/Makefile lib/uuid/uuid_types.h \
16530         lib/blkid/Makefile lib/blkid/blkid_types.h \
16531         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16532         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
16533         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16534         debugfs/Makefile tests/Makefile tests/progs/Makefile \
16535         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
16536         if test -d `dirname ${srcdir}/$i` ; then
16537                 outlist="$outlist $i"
16538         fi
16539 done
16540 ac_config_files="$ac_config_files $outlist"
16541
16542 cat >confcache <<\_ACEOF
16543 # This file is a shell script that caches the results of configure
16544 # tests run on this system so they can be shared between configure
16545 # scripts and configure runs, see configure's option --config-cache.
16546 # It is not useful on other systems.  If it contains results you don't
16547 # want to keep, you may remove or edit it.
16548 #
16549 # config.status only pays attention to the cache file if you give it
16550 # the --recheck option to rerun configure.
16551 #
16552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16554 # following values.
16555
16556 _ACEOF
16557
16558 # The following way of writing the cache mishandles newlines in values,
16559 # but we know of no workaround that is simple, portable, and efficient.
16560 # So, we kill variables containing newlines.
16561 # Ultrix sh set writes to stderr and can't be redirected directly,
16562 # and sets the high bit in the cache file unless we assign to the vars.
16563 (
16564   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16565     eval ac_val=\$$ac_var
16566     case $ac_val in #(
16567     *${as_nl}*)
16568       case $ac_var in #(
16569       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16571       esac
16572       case $ac_var in #(
16573       _ | IFS | as_nl) ;; #(
16574       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16575       *) $as_unset $ac_var ;;
16576       esac ;;
16577     esac
16578   done
16579
16580   (set) 2>&1 |
16581     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16582     *${as_nl}ac_space=\ *)
16583       # `set' does not quote correctly, so add quotes (double-quote
16584       # substitution turns \\\\ into \\, and sed turns \\ into \).
16585       sed -n \
16586         "s/'/'\\\\''/g;
16587           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16588       ;; #(
16589     *)
16590       # `set' quotes correctly as required by POSIX, so do not add quotes.
16591       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16592       ;;
16593     esac |
16594     sort
16595 ) |
16596   sed '
16597      /^ac_cv_env_/b end
16598      t clear
16599      :clear
16600      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16601      t end
16602      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16603      :end' >>confcache
16604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16605   if test -w "$cache_file"; then
16606     test "x$cache_file" != "x/dev/null" &&
16607       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16608 $as_echo "$as_me: updating cache $cache_file" >&6;}
16609     cat confcache >$cache_file
16610   else
16611     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16613   fi
16614 fi
16615 rm -f confcache
16616
16617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16618 # Let make expand exec_prefix.
16619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16620
16621 # Transform confdefs.h into DEFS.
16622 # Protect against shell expansion while executing Makefile rules.
16623 # Protect against Makefile macro expansion.
16624 #
16625 # If the first sed substitution is executed (which looks for macros that
16626 # take arguments), then branch to the quote section.  Otherwise,
16627 # look for a macro that doesn't take arguments.
16628 ac_script='
16629 :mline
16630 /\\$/{
16631  N
16632  s,\\\n,,
16633  b mline
16634 }
16635 t clear
16636 :clear
16637 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
16638 t quote
16639 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
16640 t quote
16641 b any
16642 :quote
16643 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16644 s/\[/\\&/g
16645 s/\]/\\&/g
16646 s/\$/$$/g
16647 H
16648 :any
16649 ${
16650         g
16651         s/^\n//
16652         s/\n/ /g
16653         p
16654 }
16655 '
16656 DEFS=`sed -n "$ac_script" confdefs.h`
16657
16658
16659 ac_libobjs=
16660 ac_ltlibobjs=
16661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16662   # 1. Remove the extension, and $U if already installed.
16663   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16664   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16665   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16666   #    will be set to the directory where LIBOBJS objects are built.
16667   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16668   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16669 done
16670 LIBOBJS=$ac_libobjs
16671
16672 LTLIBOBJS=$ac_ltlibobjs
16673
16674
16675
16676
16677 : ${CONFIG_STATUS=./config.status}
16678 ac_write_fail=0
16679 ac_clean_files_save=$ac_clean_files
16680 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16681 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16682 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16683 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16684 #! $SHELL
16685 # Generated by $as_me.
16686 # Run this file to recreate the current configuration.
16687 # Compiler output produced by configure, useful for debugging
16688 # configure, is in config.log if it exists.
16689
16690 debug=false
16691 ac_cs_recheck=false
16692 ac_cs_silent=false
16693 SHELL=\${CONFIG_SHELL-$SHELL}
16694 _ACEOF
16695
16696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16697 ## --------------------- ##
16698 ## M4sh Initialization.  ##
16699 ## --------------------- ##
16700
16701 # Be more Bourne compatible
16702 DUALCASE=1; export DUALCASE # for MKS sh
16703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16704   emulate sh
16705   NULLCMD=:
16706   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16707   # is contrary to our usage.  Disable this feature.
16708   alias -g '${1+"$@"}'='"$@"'
16709   setopt NO_GLOB_SUBST
16710 else
16711   case `(set -o) 2>/dev/null` in
16712   *posix*) set -o posix ;;
16713 esac
16714
16715 fi
16716
16717
16718
16719
16720 # PATH needs CR
16721 # Avoid depending upon Character Ranges.
16722 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16723 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16724 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16725 as_cr_digits='0123456789'
16726 as_cr_alnum=$as_cr_Letters$as_cr_digits
16727
16728 as_nl='
16729 '
16730 export as_nl
16731 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16732 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16733 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16735 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16736   as_echo='printf %s\n'
16737   as_echo_n='printf %s'
16738 else
16739   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16740     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16741     as_echo_n='/usr/ucb/echo -n'
16742   else
16743     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16744     as_echo_n_body='eval
16745       arg=$1;
16746       case $arg in
16747       *"$as_nl"*)
16748         expr "X$arg" : "X\\(.*\\)$as_nl";
16749         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16750       esac;
16751       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16752     '
16753     export as_echo_n_body
16754     as_echo_n='sh -c $as_echo_n_body as_echo'
16755   fi
16756   export as_echo_body
16757   as_echo='sh -c $as_echo_body as_echo'
16758 fi
16759
16760 # The user is always right.
16761 if test "${PATH_SEPARATOR+set}" != set; then
16762   PATH_SEPARATOR=:
16763   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16764     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16765       PATH_SEPARATOR=';'
16766   }
16767 fi
16768
16769 # Support unset when possible.
16770 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16771   as_unset=unset
16772 else
16773   as_unset=false
16774 fi
16775
16776
16777 # IFS
16778 # We need space, tab and new line, in precisely that order.  Quoting is
16779 # there to prevent editors from complaining about space-tab.
16780 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16781 # splitting by setting IFS to empty value.)
16782 IFS=" ""        $as_nl"
16783
16784 # Find who we are.  Look in the path if we contain no directory separator.
16785 case $0 in
16786   *[\\/]* ) as_myself=$0 ;;
16787   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16788 for as_dir in $PATH
16789 do
16790   IFS=$as_save_IFS
16791   test -z "$as_dir" && as_dir=.
16792   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16793 done
16794 IFS=$as_save_IFS
16795
16796      ;;
16797 esac
16798 # We did not find ourselves, most probably we were run as `sh COMMAND'
16799 # in which case we are not to be found in the path.
16800 if test "x$as_myself" = x; then
16801   as_myself=$0
16802 fi
16803 if test ! -f "$as_myself"; then
16804   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16805   { (exit 1); exit 1; }
16806 fi
16807
16808 # Work around bugs in pre-3.0 UWIN ksh.
16809 for as_var in ENV MAIL MAILPATH
16810 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16811 done
16812 PS1='$ '
16813 PS2='> '
16814 PS4='+ '
16815
16816 # NLS nuisances.
16817 LC_ALL=C
16818 export LC_ALL
16819 LANGUAGE=C
16820 export LANGUAGE
16821
16822 # Required to use basename.
16823 if expr a : '\(a\)' >/dev/null 2>&1 &&
16824    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16825   as_expr=expr
16826 else
16827   as_expr=false
16828 fi
16829
16830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16831   as_basename=basename
16832 else
16833   as_basename=false
16834 fi
16835
16836
16837 # Name of the executable.
16838 as_me=`$as_basename -- "$0" ||
16839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16840          X"$0" : 'X\(//\)$' \| \
16841          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16842 $as_echo X/"$0" |
16843     sed '/^.*\/\([^/][^/]*\)\/*$/{
16844             s//\1/
16845             q
16846           }
16847           /^X\/\(\/\/\)$/{
16848             s//\1/
16849             q
16850           }
16851           /^X\/\(\/\).*/{
16852             s//\1/
16853             q
16854           }
16855           s/.*/./; q'`
16856
16857 # CDPATH.
16858 $as_unset CDPATH
16859
16860
16861
16862   as_lineno_1=$LINENO
16863   as_lineno_2=$LINENO
16864   test "x$as_lineno_1" != "x$as_lineno_2" &&
16865   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16866
16867   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16868   # uniformly replaced by the line number.  The first 'sed' inserts a
16869   # line-number line after each line using $LINENO; the second 'sed'
16870   # does the real work.  The second script uses 'N' to pair each
16871   # line-number line with the line containing $LINENO, and appends
16872   # trailing '-' during substitution so that $LINENO is not a special
16873   # case at line end.
16874   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16875   # scripts with optimization help from Paolo Bonzini.  Blame Lee
16876   # E. McMahon (1931-1989) for sed's syntax.  :-)
16877   sed -n '
16878     p
16879     /[$]LINENO/=
16880   ' <$as_myself |
16881     sed '
16882       s/[$]LINENO.*/&-/
16883       t lineno
16884       b
16885       :lineno
16886       N
16887       :loop
16888       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16889       t loop
16890       s/-\n.*//
16891     ' >$as_me.lineno &&
16892   chmod +x "$as_me.lineno" ||
16893     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16894    { (exit 1); exit 1; }; }
16895
16896   # Don't try to exec as it changes $[0], causing all sort of problems
16897   # (the dirname of $[0] is not the place where we might find the
16898   # original and so on.  Autoconf is especially sensitive to this).
16899   . "./$as_me.lineno"
16900   # Exit status is that of the last command.
16901   exit
16902 }
16903
16904
16905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16906   as_dirname=dirname
16907 else
16908   as_dirname=false
16909 fi
16910
16911 ECHO_C= ECHO_N= ECHO_T=
16912 case `echo -n x` in
16913 -n*)
16914   case `echo 'x\c'` in
16915   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16916   *)   ECHO_C='\c';;
16917   esac;;
16918 *)
16919   ECHO_N='-n';;
16920 esac
16921 if expr a : '\(a\)' >/dev/null 2>&1 &&
16922    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16923   as_expr=expr
16924 else
16925   as_expr=false
16926 fi
16927
16928 rm -f conf$$ conf$$.exe conf$$.file
16929 if test -d conf$$.dir; then
16930   rm -f conf$$.dir/conf$$.file
16931 else
16932   rm -f conf$$.dir
16933   mkdir conf$$.dir 2>/dev/null
16934 fi
16935 if (echo >conf$$.file) 2>/dev/null; then
16936   if ln -s conf$$.file conf$$ 2>/dev/null; then
16937     as_ln_s='ln -s'
16938     # ... but there are two gotchas:
16939     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16940     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16941     # In both cases, we have to default to `cp -p'.
16942     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16943       as_ln_s='cp -p'
16944   elif ln conf$$.file conf$$ 2>/dev/null; then
16945     as_ln_s=ln
16946   else
16947     as_ln_s='cp -p'
16948   fi
16949 else
16950   as_ln_s='cp -p'
16951 fi
16952 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16953 rmdir conf$$.dir 2>/dev/null
16954
16955 if mkdir -p . 2>/dev/null; then
16956   as_mkdir_p=:
16957 else
16958   test -d ./-p && rmdir ./-p
16959   as_mkdir_p=false
16960 fi
16961
16962 if test -x / >/dev/null 2>&1; then
16963   as_test_x='test -x'
16964 else
16965   if ls -dL / >/dev/null 2>&1; then
16966     as_ls_L_option=L
16967   else
16968     as_ls_L_option=
16969   fi
16970   as_test_x='
16971     eval sh -c '\''
16972       if test -d "$1"; then
16973         test -d "$1/.";
16974       else
16975         case $1 in
16976         -*)set "./$1";;
16977         esac;
16978         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16979         ???[sx]*):;;*)false;;esac;fi
16980     '\'' sh
16981   '
16982 fi
16983 as_executable_p=$as_test_x
16984
16985 # Sed expression to map a string onto a valid CPP name.
16986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16987
16988 # Sed expression to map a string onto a valid variable name.
16989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16990
16991
16992 exec 6>&1
16993
16994 # Save the log message, to keep $[0] and so on meaningful, and to
16995 # report actual input values of CONFIG_FILES etc. instead of their
16996 # values after options handling.
16997 ac_log="
16998 This file was extended by $as_me, which was
16999 generated by GNU Autoconf 2.63.  Invocation command line was
17000
17001   CONFIG_FILES    = $CONFIG_FILES
17002   CONFIG_HEADERS  = $CONFIG_HEADERS
17003   CONFIG_LINKS    = $CONFIG_LINKS
17004   CONFIG_COMMANDS = $CONFIG_COMMANDS
17005   $ $0 $@
17006
17007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17008 "
17009
17010 _ACEOF
17011
17012 case $ac_config_files in *"
17013 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17014 esac
17015
17016
17017
17018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17019 # Files that config.status was made for.
17020 config_files="$ac_config_files"
17021 config_commands="$ac_config_commands"
17022
17023 _ACEOF
17024
17025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17026 ac_cs_usage="\
17027 \`$as_me' instantiates files from templates according to the
17028 current configuration.
17029
17030 Usage: $0 [OPTION]... [FILE]...
17031
17032   -h, --help       print this help, then exit
17033   -V, --version    print version number and configuration settings, then exit
17034   -q, --quiet, --silent
17035                    do not print progress messages
17036   -d, --debug      don't remove temporary files
17037       --recheck    update $as_me by reconfiguring in the same conditions
17038       --file=FILE[:TEMPLATE]
17039                    instantiate the configuration file FILE
17040
17041 Configuration files:
17042 $config_files
17043
17044 Configuration commands:
17045 $config_commands
17046
17047 Report bugs to <bug-autoconf@gnu.org>."
17048
17049 _ACEOF
17050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17051 ac_cs_version="\\
17052 config.status
17053 configured by $0, generated by GNU Autoconf 2.63,
17054   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17055
17056 Copyright (C) 2008 Free Software Foundation, Inc.
17057 This config.status script is free software; the Free Software Foundation
17058 gives unlimited permission to copy, distribute and modify it."
17059
17060 ac_pwd='$ac_pwd'
17061 srcdir='$srcdir'
17062 INSTALL='$INSTALL'
17063 AWK='$AWK'
17064 test -n "\$AWK" || AWK=awk
17065 _ACEOF
17066
17067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068 # The default lists apply if the user does not specify any file.
17069 ac_need_defaults=:
17070 while test $# != 0
17071 do
17072   case $1 in
17073   --*=*)
17074     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17075     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17076     ac_shift=:
17077     ;;
17078   *)
17079     ac_option=$1
17080     ac_optarg=$2
17081     ac_shift=shift
17082     ;;
17083   esac
17084
17085   case $ac_option in
17086   # Handling of the options.
17087   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17088     ac_cs_recheck=: ;;
17089   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17090     $as_echo "$ac_cs_version"; exit ;;
17091   --debug | --debu | --deb | --de | --d | -d )
17092     debug=: ;;
17093   --file | --fil | --fi | --f )
17094     $ac_shift
17095     case $ac_optarg in
17096     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17097     esac
17098     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17099     ac_need_defaults=false;;
17100   --he | --h |  --help | --hel | -h )
17101     $as_echo "$ac_cs_usage"; exit ;;
17102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17103   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17104     ac_cs_silent=: ;;
17105
17106   # This is an error.
17107   -*) { $as_echo "$as_me: error: unrecognized option: $1
17108 Try \`$0 --help' for more information." >&2
17109    { (exit 1); exit 1; }; } ;;
17110
17111   *) ac_config_targets="$ac_config_targets $1"
17112      ac_need_defaults=false ;;
17113
17114   esac
17115   shift
17116 done
17117
17118 ac_configure_extra_args=
17119
17120 if $ac_cs_silent; then
17121   exec 6>/dev/null
17122   ac_configure_extra_args="$ac_configure_extra_args --silent"
17123 fi
17124
17125 _ACEOF
17126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17127 if \$ac_cs_recheck; then
17128   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17129   shift
17130   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17131   CONFIG_SHELL='$SHELL'
17132   export CONFIG_SHELL
17133   exec "\$@"
17134 fi
17135
17136 _ACEOF
17137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17138 exec 5>>config.log
17139 {
17140   echo
17141   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17142 ## Running $as_me. ##
17143 _ASBOX
17144   $as_echo "$ac_log"
17145 } >&5
17146
17147 _ACEOF
17148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17149 #
17150 # INIT-COMMANDS
17151 #
17152 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17153     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17154     # from automake.
17155     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17156     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17157     LINGUAS="${LINGUAS-%UNSET%}"
17158
17159
17160 _ACEOF
17161
17162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17163
17164 # Handling of arguments.
17165 for ac_config_target in $ac_config_targets
17166 do
17167   case $ac_config_target in
17168     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17169     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17170
17171   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17172 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17173    { (exit 1); exit 1; }; };;
17174   esac
17175 done
17176
17177
17178 # If the user did not use the arguments to specify the items to instantiate,
17179 # then the envvar interface is used.  Set only those that are not.
17180 # We use the long form for the default assignment because of an extremely
17181 # bizarre bug on SunOS 4.1.3.
17182 if $ac_need_defaults; then
17183   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17184   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17185 fi
17186
17187 # Have a temporary directory for convenience.  Make it in the build tree
17188 # simply because there is no reason against having it here, and in addition,
17189 # creating and moving files from /tmp can sometimes cause problems.
17190 # Hook for its removal unless debugging.
17191 # Note that there is a small window in which the directory will not be cleaned:
17192 # after its creation but before its name has been assigned to `$tmp'.
17193 $debug ||
17194 {
17195   tmp=
17196   trap 'exit_status=$?
17197   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17198 ' 0
17199   trap '{ (exit 1); exit 1; }' 1 2 13 15
17200 }
17201 # Create a (secure) tmp directory for tmp files.
17202
17203 {
17204   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17205   test -n "$tmp" && test -d "$tmp"
17206 }  ||
17207 {
17208   tmp=./conf$$-$RANDOM
17209   (umask 077 && mkdir "$tmp")
17210 } ||
17211 {
17212    $as_echo "$as_me: cannot create a temporary directory in ." >&2
17213    { (exit 1); exit 1; }
17214 }
17215
17216 # Set up the scripts for CONFIG_FILES section.
17217 # No need to generate them if there are no CONFIG_FILES.
17218 # This happens for instance with `./config.status config.h'.
17219 if test -n "$CONFIG_FILES"; then
17220
17221 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17222   ac_cs_awk_getline=:
17223   ac_cs_awk_pipe_init=
17224   ac_cs_awk_read_file='
17225       while ((getline aline < (F[key])) > 0)
17226         print(aline)
17227       close(F[key])'
17228   ac_cs_awk_pipe_fini=
17229 else
17230   ac_cs_awk_getline=false
17231   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17232   ac_cs_awk_read_file='
17233       print "|#_!!_#|"
17234       print "cat " F[key] " &&"
17235       '$ac_cs_awk_pipe_init
17236   # The final `:' finishes the AND list.
17237   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17238 fi
17239 ac_cr='\r'
17240 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17241 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17242   ac_cs_awk_cr='\\r'
17243 else
17244   ac_cs_awk_cr=$ac_cr
17245 fi
17246
17247 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17248 _ACEOF
17249
17250 # Create commands to substitute file output variables.
17251 {
17252   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17253   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17254   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17255   echo "_ACAWK" &&
17256   echo "_ACEOF"
17257 } >conf$$files.sh &&
17258 . ./conf$$files.sh ||
17259   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17260 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17261    { (exit 1); exit 1; }; }
17262 rm -f conf$$files.sh
17263
17264 {
17265   echo "cat >conf$$subs.awk <<_ACEOF" &&
17266   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17267   echo "_ACEOF"
17268 } >conf$$subs.sh ||
17269   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17270 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17271    { (exit 1); exit 1; }; }
17272 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17273 ac_delim='%!_!# '
17274 for ac_last_try in false false false false false :; do
17275   . ./conf$$subs.sh ||
17276     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17277 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17278    { (exit 1); exit 1; }; }
17279
17280   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17281   if test $ac_delim_n = $ac_delim_num; then
17282     break
17283   elif $ac_last_try; then
17284     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17285 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17286    { (exit 1); exit 1; }; }
17287   else
17288     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17289   fi
17290 done
17291 rm -f conf$$subs.sh
17292
17293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17295 _ACEOF
17296 sed -n '
17297 h
17298 s/^/S["/; s/!.*/"]=/
17299 p
17300 g
17301 s/^[^!]*!//
17302 :repl
17303 t repl
17304 s/'"$ac_delim"'$//
17305 t delim
17306 :nl
17307 h
17308 s/\(.\{148\}\).*/\1/
17309 t more1
17310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17311 p
17312 n
17313 b repl
17314 :more1
17315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17316 p
17317 g
17318 s/.\{148\}//
17319 t nl
17320 :delim
17321 h
17322 s/\(.\{148\}\).*/\1/
17323 t more2
17324 s/["\\]/\\&/g; s/^/"/; s/$/"/
17325 p
17326 b
17327 :more2
17328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17329 p
17330 g
17331 s/.\{148\}//
17332 t delim
17333 ' <conf$$subs.awk | sed '
17334 /^[^""]/{
17335   N
17336   s/\n//
17337 }
17338 ' >>$CONFIG_STATUS || ac_write_fail=1
17339 rm -f conf$$subs.awk
17340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17341 _ACAWK
17342 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17343   for (key in S) S_is_set[key] = 1
17344   FS = "\a"
17345   \$ac_cs_awk_pipe_init
17346 }
17347 {
17348   line = $ 0
17349   nfields = split(line, field, "@")
17350   substed = 0
17351   len = length(field[1])
17352   for (i = 2; i < nfields; i++) {
17353     key = field[i]
17354     keylen = length(key)
17355     if (S_is_set[key]) {
17356       value = S[key]
17357       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17358       len += length(value) + length(field[++i])
17359       substed = 1
17360     } else
17361       len += 1 + keylen
17362   }
17363   if (nfields == 3 && !substed) {
17364     key = field[2]
17365     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
17366       \$ac_cs_awk_read_file
17367       next
17368     }
17369   }
17370   print line
17371 }
17372 \$ac_cs_awk_pipe_fini
17373 _ACAWK
17374 _ACEOF
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17377   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17378 else
17379   cat
17380 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17381   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17382 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17383    { (exit 1); exit 1; }; }
17384 _ACEOF
17385
17386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17388 # trailing colons and then remove the whole line if VPATH becomes empty
17389 # (actually we leave an empty line to preserve line numbers).
17390 if test "x$srcdir" = x.; then
17391   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17392 s/:*\$(srcdir):*/:/
17393 s/:*\${srcdir}:*/:/
17394 s/:*@srcdir@:*/:/
17395 s/^\([^=]*=[     ]*\):*/\1/
17396 s/:*$//
17397 s/^[^=]*=[       ]*$//
17398 }'
17399 fi
17400
17401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17402 fi # test -n "$CONFIG_FILES"
17403
17404
17405 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
17406 shift
17407 for ac_tag
17408 do
17409   case $ac_tag in
17410   :[FHLC]) ac_mode=$ac_tag; continue;;
17411   esac
17412   case $ac_mode$ac_tag in
17413   :[FHL]*:*);;
17414   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17415 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17416    { (exit 1); exit 1; }; };;
17417   :[FH]-) ac_tag=-:-;;
17418   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17419   esac
17420   ac_save_IFS=$IFS
17421   IFS=:
17422   set x $ac_tag
17423   IFS=$ac_save_IFS
17424   shift
17425   ac_file=$1
17426   shift
17427
17428   case $ac_mode in
17429   :L) ac_source=$1;;
17430   :[FH])
17431     ac_file_inputs=
17432     for ac_f
17433     do
17434       case $ac_f in
17435       -) ac_f="$tmp/stdin";;
17436       *) # Look for the file first in the build tree, then in the source tree
17437          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17438          # because $ac_f cannot contain `:'.
17439          test -f "$ac_f" ||
17440            case $ac_f in
17441            [\\/$]*) false;;
17442            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17443            esac ||
17444            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17445 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17446    { (exit 1); exit 1; }; };;
17447       esac
17448       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17449       ac_file_inputs="$ac_file_inputs '$ac_f'"
17450     done
17451
17452     # Let's still pretend it is `configure' which instantiates (i.e., don't
17453     # use $as_me), people would be surprised to read:
17454     #    /* config.h.  Generated by config.status.  */
17455     configure_input='Generated from '`
17456           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17457         `' by configure.'
17458     if test x"$ac_file" != x-; then
17459       configure_input="$ac_file.  $configure_input"
17460       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17461 $as_echo "$as_me: creating $ac_file" >&6;}
17462     fi
17463     # Neutralize special characters interpreted by sed in replacement strings.
17464     case $configure_input in #(
17465     *\&* | *\|* | *\\* )
17466        ac_sed_conf_input=`$as_echo "$configure_input" |
17467        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17468     *) ac_sed_conf_input=$configure_input;;
17469     esac
17470
17471     case $ac_tag in
17472     *:-:* | *:-) cat >"$tmp/stdin" \
17473       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17474 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17475    { (exit 1); exit 1; }; } ;;
17476     esac
17477     ;;
17478   esac
17479
17480   ac_dir=`$as_dirname -- "$ac_file" ||
17481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17482          X"$ac_file" : 'X\(//\)[^/]' \| \
17483          X"$ac_file" : 'X\(//\)$' \| \
17484          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17485 $as_echo X"$ac_file" |
17486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17487             s//\1/
17488             q
17489           }
17490           /^X\(\/\/\)[^/].*/{
17491             s//\1/
17492             q
17493           }
17494           /^X\(\/\/\)$/{
17495             s//\1/
17496             q
17497           }
17498           /^X\(\/\).*/{
17499             s//\1/
17500             q
17501           }
17502           s/.*/./; q'`
17503   { as_dir="$ac_dir"
17504   case $as_dir in #(
17505   -*) as_dir=./$as_dir;;
17506   esac
17507   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17508     as_dirs=
17509     while :; do
17510       case $as_dir in #(
17511       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17512       *) as_qdir=$as_dir;;
17513       esac
17514       as_dirs="'$as_qdir' $as_dirs"
17515       as_dir=`$as_dirname -- "$as_dir" ||
17516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17517          X"$as_dir" : 'X\(//\)[^/]' \| \
17518          X"$as_dir" : 'X\(//\)$' \| \
17519          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17520 $as_echo X"$as_dir" |
17521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17522             s//\1/
17523             q
17524           }
17525           /^X\(\/\/\)[^/].*/{
17526             s//\1/
17527             q
17528           }
17529           /^X\(\/\/\)$/{
17530             s//\1/
17531             q
17532           }
17533           /^X\(\/\).*/{
17534             s//\1/
17535             q
17536           }
17537           s/.*/./; q'`
17538       test -d "$as_dir" && break
17539     done
17540     test -z "$as_dirs" || eval "mkdir $as_dirs"
17541   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17542 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17543    { (exit 1); exit 1; }; }; }
17544   ac_builddir=.
17545
17546 case "$ac_dir" in
17547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17548 *)
17549   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17550   # A ".." for each directory in $ac_dir_suffix.
17551   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17552   case $ac_top_builddir_sub in
17553   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17554   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17555   esac ;;
17556 esac
17557 ac_abs_top_builddir=$ac_pwd
17558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17559 # for backward compatibility:
17560 ac_top_builddir=$ac_top_build_prefix
17561
17562 case $srcdir in
17563   .)  # We are building in place.
17564     ac_srcdir=.
17565     ac_top_srcdir=$ac_top_builddir_sub
17566     ac_abs_top_srcdir=$ac_pwd ;;
17567   [\\/]* | ?:[\\/]* )  # Absolute name.
17568     ac_srcdir=$srcdir$ac_dir_suffix;
17569     ac_top_srcdir=$srcdir
17570     ac_abs_top_srcdir=$srcdir ;;
17571   *) # Relative name.
17572     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17573     ac_top_srcdir=$ac_top_build_prefix$srcdir
17574     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17575 esac
17576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17577
17578
17579   case $ac_mode in
17580   :F)
17581   #
17582   # CONFIG_FILE
17583   #
17584
17585   case $INSTALL in
17586   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17587   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17588   esac
17589 _ACEOF
17590
17591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17592 # If the template does not know about datarootdir, expand it.
17593 # FIXME: This hack should be removed a few years after 2.60.
17594 ac_datarootdir_hack=; ac_datarootdir_seen=
17595
17596 ac_sed_dataroot='
17597 /datarootdir/ {
17598   p
17599   q
17600 }
17601 /@datadir@/p
17602 /@docdir@/p
17603 /@infodir@/p
17604 /@localedir@/p
17605 /@mandir@/p
17606 '
17607 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17608 *datarootdir*) ac_datarootdir_seen=yes;;
17609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17610   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17611 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17612 _ACEOF
17613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17614   ac_datarootdir_hack='
17615   s&@datadir@&$datadir&g
17616   s&@docdir@&$docdir&g
17617   s&@infodir@&$infodir&g
17618   s&@localedir@&$localedir&g
17619   s&@mandir@&$mandir&g
17620     s&\\\${datarootdir}&$datarootdir&g' ;;
17621 esac
17622 _ACEOF
17623
17624 # Neutralize VPATH when `$srcdir' = `.'.
17625 # Shell code in configure.ac might set extrasub.
17626 # FIXME: do we really want to maintain this feature?
17627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17628 ac_sed_extra="$ac_vpsub
17629 $extrasub
17630 _ACEOF
17631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17632 :t
17633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17634 s|@configure_input@|$ac_sed_conf_input|;t t
17635 s&@top_builddir@&$ac_top_builddir_sub&;t t
17636 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17637 s&@srcdir@&$ac_srcdir&;t t
17638 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17639 s&@top_srcdir@&$ac_top_srcdir&;t t
17640 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17641 s&@builddir@&$ac_builddir&;t t
17642 s&@abs_builddir@&$ac_abs_builddir&;t t
17643 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17644 s&@INSTALL@&$ac_INSTALL&;t t
17645 $ac_datarootdir_hack
17646 "
17647 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17648 if $ac_cs_awk_getline; then
17649   $AWK -f "$tmp/subs.awk"
17650 else
17651   $AWK -f "$tmp/subs.awk" | $SHELL
17652 fi >$tmp/out \
17653   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17654 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17655    { (exit 1); exit 1; }; }
17656
17657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17658   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17659   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17660   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17661 which seems to be undefined.  Please make sure it is defined." >&5
17662 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17663 which seems to be undefined.  Please make sure it is defined." >&2;}
17664
17665   rm -f "$tmp/stdin"
17666   case $ac_file in
17667   -) cat "$tmp/out" && rm -f "$tmp/out";;
17668   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17669   esac \
17670   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17671 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17672    { (exit 1); exit 1; }; }
17673  ;;
17674
17675
17676   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17677 $as_echo "$as_me: executing $ac_file commands" >&6;}
17678  ;;
17679   esac
17680
17681
17682   case $ac_file$ac_mode in
17683     "default-1":C)
17684     for ac_file in $CONFIG_FILES; do
17685       # Support "outfile[:infile[:infile...]]"
17686       case "$ac_file" in
17687         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17688       esac
17689       # PO directories have a Makefile.in generated from Makefile.in.in.
17690       case "$ac_file" in */Makefile.in)
17691         # Adjust a relative srcdir.
17692         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17693         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17694         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17695         # In autoconf-2.13 it is called $ac_given_srcdir.
17696         # In autoconf-2.50 it is called $srcdir.
17697         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17698         case "$ac_given_srcdir" in
17699           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17700           /*) top_srcdir="$ac_given_srcdir" ;;
17701           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17702         esac
17703         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17704           rm -f "$ac_dir/POTFILES"
17705           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17706           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17707           POMAKEFILEDEPS="POTFILES.in"
17708           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17709           # on $ac_dir but don't depend on user-specified configuration
17710           # parameters.
17711           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17712             # The LINGUAS file contains the set of available languages.
17713             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17714               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17715             fi
17716             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17717             # Hide the ALL_LINGUAS assigment from automake.
17718             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17719             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17720           else
17721             # The set of available languages was given in configure.in.
17722             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17723           fi
17724           # Compute POFILES
17725           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17726           # Compute UPDATEPOFILES
17727           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17728           # Compute DUMMYPOFILES
17729           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17730           # Compute GMOFILES
17731           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17732           case "$ac_given_srcdir" in
17733             .) srcdirpre= ;;
17734             *) srcdirpre='$(srcdir)/' ;;
17735           esac
17736           POFILES=
17737           UPDATEPOFILES=
17738           DUMMYPOFILES=
17739           GMOFILES=
17740           for lang in $ALL_LINGUAS; do
17741             POFILES="$POFILES $srcdirpre$lang.po"
17742             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17743             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17744             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17745           done
17746           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17747           # environment variable.
17748           INST_LINGUAS=
17749           if test -n "$ALL_LINGUAS"; then
17750             for presentlang in $ALL_LINGUAS; do
17751               useit=no
17752               if test "%UNSET%" != "$LINGUAS"; then
17753                 desiredlanguages="$LINGUAS"
17754               else
17755                 desiredlanguages="$ALL_LINGUAS"
17756               fi
17757               for desiredlang in $desiredlanguages; do
17758                 # Use the presentlang catalog if desiredlang is
17759                 #   a. equal to presentlang, or
17760                 #   b. a variant of presentlang (because in this case,
17761                 #      presentlang can be used as a fallback for messages
17762                 #      which are not translated in the desiredlang catalog).
17763                 case "$desiredlang" in
17764                   "$presentlang"*) useit=yes;;
17765                 esac
17766               done
17767               if test $useit = yes; then
17768                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17769               fi
17770             done
17771           fi
17772           CATALOGS=
17773           if test -n "$INST_LINGUAS"; then
17774             for lang in $INST_LINGUAS; do
17775               CATALOGS="$CATALOGS $lang.gmo"
17776             done
17777           fi
17778           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17779           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"
17780           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17781             if test -f "$f"; then
17782               case "$f" in
17783                 *.orig | *.bak | *~) ;;
17784                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17785               esac
17786             fi
17787           done
17788         fi
17789         ;;
17790       esac
17791     done ;;
17792
17793   esac
17794 done # for ac_tag
17795
17796
17797 { (exit 0); exit 0; }
17798 _ACEOF
17799 chmod +x $CONFIG_STATUS
17800 ac_clean_files=$ac_clean_files_save
17801
17802 test $ac_write_fail = 0 ||
17803   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17804 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17805    { (exit 1); exit 1; }; }
17806
17807
17808 # configure is writing to config.log, and then calls config.status.
17809 # config.status does its own redirection, appending to config.log.
17810 # Unfortunately, on DOS this fails, as config.log is still kept open
17811 # by configure, so config.status won't be able to write to it; its
17812 # output is simply discarded.  So we exec the FD to /dev/null,
17813 # effectively closing config.log, so it can be properly (re)opened and
17814 # appended to by config.status.  When coming back to configure, we
17815 # need to make the FD available again.
17816 if test "$no_create" != yes; then
17817   ac_cs_success=:
17818   ac_config_status_args=
17819   test "$silent" = yes &&
17820     ac_config_status_args="$ac_config_status_args --quiet"
17821   exec 5>/dev/null
17822   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17823   exec 5>>config.log
17824   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825   # would make configure fail if this is the last instruction.
17826   $ac_cs_success || { (exit 1); exit 1; }
17827 fi
17828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17829   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17831 fi
17832
17833 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi