Whamcloud - gitweb
Update Vietnamese PO file from the Translation Project
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 E2FSPROGS_YEAR
654 E2FSPROGS_MONTH
655 E2FSPROGS_DAY
656 E2FSPROGS_VERSION
657 E2FSPROGS_PKGVER
658 build
659 build_cpu
660 build_vendor
661 build_os
662 host
663 host_cpu
664 host_vendor
665 host_os
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CPP
674 LD
675 GREP
676 EGREP
677 LINUX_INCLUDE
678 MAINTAINER_CMT
679 HTREE_CMT
680 ELF_CMT
681 BSDLIB_CMT
682 PROFILE_CMT
683 CHECKER_CMT
684 LIB_EXT
685 STATIC_LIB_EXT
686 PROFILED_LIB_EXT
687 SWAPFS_CMT
688 DEBUGFS_CMT
689 IMAGER_CMT
690 RESIZER_CMT
691 E2FSCK_TYPE
692 FSCK_PROG
693 FSCK_MAN
694 E2INITRD_PROG
695 E2INITRD_MAN
696 DEVMAPPER_REQ
697 DEVMAPPER_PC_LIBS
698 DEVMAPPER_LIBS
699 STATIC_DEVMAPPER_LIBS
700 GETTEXT_PACKAGE
701 PACKAGE
702 VERSION
703 SET_MAKE
704 INSTALL_PROGRAM
705 INSTALL_SCRIPT
706 INSTALL_DATA
707 MKINSTALLDIRS
708 USE_NLS
709 MSGFMT
710 GMSGFMT
711 XGETTEXT
712 MSGMERGE
713 RANLIB
714 ALLOCA
715 GLIBC21
716 HAVE_POSIX_PRINTF
717 HAVE_ASPRINTF
718 HAVE_SNPRINTF
719 HAVE_WPRINTF
720 LIBICONV
721 LTLIBICONV
722 INTLBISON
723 BUILD_INCLUDED_LIBINTL
724 USE_INCLUDED_LIBINTL
725 CATOBJEXT
726 DATADIRNAME
727 INSTOBJEXT
728 GENCAT
729 INTLOBJS
730 INTL_LIBTOOL_SUFFIX_PREFIX
731 INTLLIBS
732 LIBINTL
733 LTLIBINTL
734 POSUB
735 BINARY_TYPE
736 LN
737 LN_S
738 MV
739 CP
740 RM
741 CHMOD
742 AWK
743 SED
744 PERL
745 LDCONFIG
746 AR
747 STRIP
748 BUILD_CC
749 SIZEOF_SHORT
750 SIZEOF_INT
751 SIZEOF_LONG
752 SIZEOF_LONG_LONG
753 SOCKET_LIB
754 DLOPEN_LIB
755 UNI_DIFF_OPTS
756 LINUX_CMT
757 CYGWIN_CMT
758 UNIX_CMT
759 root_prefix
760 root_bindir
761 root_sbindir
762 root_libdir
763 root_sysconfdir
764 LDFLAG_STATIC
765 SS_DIR
766 ET_DIR
767 DO_TEST_SUITE
768 INTL_FLAGS
769 BUILD_CFLAGS
770 BUILD_LDFLAGS
771 LIBOBJS
772 LTLIBOBJS'
773 ac_subst_files='MCONFIG
774 MAKEFILE_ELF
775 MAKEFILE_BSDLIB
776 MAKEFILE_PROFILE
777 MAKEFILE_CHECKER
778 MAKEFILE_LIBRARY
779 ASM_TYPES_HEADER'
780       ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 CPP'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841   # If the previous option needs an argument, assign it.
842   if test -n "$ac_prev"; then
843     eval $ac_prev=\$ac_option
844     ac_prev=
845     continue
846   fi
847
848   case $ac_option in
849   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850   *)    ac_optarg=yes ;;
851   esac
852
853   # Accept the important Cygnus configure options, so we can diagnose typos.
854
855   case $ac_dashdash$ac_option in
856   --)
857     ac_dashdash=yes ;;
858
859   -bindir | --bindir | --bindi | --bind | --bin | --bi)
860     ac_prev=bindir ;;
861   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862     bindir=$ac_optarg ;;
863
864   -build | --build | --buil | --bui | --bu)
865     ac_prev=build_alias ;;
866   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867     build_alias=$ac_optarg ;;
868
869   -cache-file | --cache-file | --cache-fil | --cache-fi \
870   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871     ac_prev=cache_file ;;
872   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874     cache_file=$ac_optarg ;;
875
876   --config-cache | -C)
877     cache_file=config.cache ;;
878
879   -datadir | --datadir | --datadi | --datad)
880     ac_prev=datadir ;;
881   -datadir=* | --datadir=* | --datadi=* | --datad=*)
882     datadir=$ac_optarg ;;
883
884   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885   | --dataroo | --dataro | --datar)
886     ac_prev=datarootdir ;;
887   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889     datarootdir=$ac_optarg ;;
890
891   -disable-* | --disable-*)
892     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
895       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
896    { (exit 1); exit 1; }; }
897     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
898     eval enable_$ac_feature=no ;;
899
900   -docdir | --docdir | --docdi | --doc | --do)
901     ac_prev=docdir ;;
902   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903     docdir=$ac_optarg ;;
904
905   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906     ac_prev=dvidir ;;
907   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908     dvidir=$ac_optarg ;;
909
910   -enable-* | --enable-*)
911     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
914       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
915    { (exit 1); exit 1; }; }
916     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
917     eval enable_$ac_feature=\$ac_optarg ;;
918
919   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921   | --exec | --exe | --ex)
922     ac_prev=exec_prefix ;;
923   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925   | --exec=* | --exe=* | --ex=*)
926     exec_prefix=$ac_optarg ;;
927
928   -gas | --gas | --ga | --g)
929     # Obsolete; use --with-gas.
930     with_gas=yes ;;
931
932   -help | --help | --hel | --he | -h)
933     ac_init_help=long ;;
934   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935     ac_init_help=recursive ;;
936   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937     ac_init_help=short ;;
938
939   -host | --host | --hos | --ho)
940     ac_prev=host_alias ;;
941   -host=* | --host=* | --hos=* | --ho=*)
942     host_alias=$ac_optarg ;;
943
944   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945     ac_prev=htmldir ;;
946   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947   | --ht=*)
948     htmldir=$ac_optarg ;;
949
950   -includedir | --includedir | --includedi | --included | --include \
951   | --includ | --inclu | --incl | --inc)
952     ac_prev=includedir ;;
953   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954   | --includ=* | --inclu=* | --incl=* | --inc=*)
955     includedir=$ac_optarg ;;
956
957   -infodir | --infodir | --infodi | --infod | --info | --inf)
958     ac_prev=infodir ;;
959   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960     infodir=$ac_optarg ;;
961
962   -libdir | --libdir | --libdi | --libd)
963     ac_prev=libdir ;;
964   -libdir=* | --libdir=* | --libdi=* | --libd=*)
965     libdir=$ac_optarg ;;
966
967   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968   | --libexe | --libex | --libe)
969     ac_prev=libexecdir ;;
970   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971   | --libexe=* | --libex=* | --libe=*)
972     libexecdir=$ac_optarg ;;
973
974   -localedir | --localedir | --localedi | --localed | --locale)
975     ac_prev=localedir ;;
976   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977     localedir=$ac_optarg ;;
978
979   -localstatedir | --localstatedir | --localstatedi | --localstated \
980   | --localstate | --localstat | --localsta | --localst | --locals)
981     ac_prev=localstatedir ;;
982   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984     localstatedir=$ac_optarg ;;
985
986   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987     ac_prev=mandir ;;
988   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989     mandir=$ac_optarg ;;
990
991   -nfp | --nfp | --nf)
992     # Obsolete; use --without-fp.
993     with_fp=no ;;
994
995   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996   | --no-cr | --no-c | -n)
997     no_create=yes ;;
998
999   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001     no_recursion=yes ;;
1002
1003   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005   | --oldin | --oldi | --old | --ol | --o)
1006     ac_prev=oldincludedir ;;
1007   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010     oldincludedir=$ac_optarg ;;
1011
1012   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013     ac_prev=prefix ;;
1014   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015     prefix=$ac_optarg ;;
1016
1017   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018   | --program-pre | --program-pr | --program-p)
1019     ac_prev=program_prefix ;;
1020   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022     program_prefix=$ac_optarg ;;
1023
1024   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025   | --program-suf | --program-su | --program-s)
1026     ac_prev=program_suffix ;;
1027   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029     program_suffix=$ac_optarg ;;
1030
1031   -program-transform-name | --program-transform-name \
1032   | --program-transform-nam | --program-transform-na \
1033   | --program-transform-n | --program-transform- \
1034   | --program-transform | --program-transfor \
1035   | --program-transfo | --program-transf \
1036   | --program-trans | --program-tran \
1037   | --progr-tra | --program-tr | --program-t)
1038     ac_prev=program_transform_name ;;
1039   -program-transform-name=* | --program-transform-name=* \
1040   | --program-transform-nam=* | --program-transform-na=* \
1041   | --program-transform-n=* | --program-transform-=* \
1042   | --program-transform=* | --program-transfor=* \
1043   | --program-transfo=* | --program-transf=* \
1044   | --program-trans=* | --program-tran=* \
1045   | --progr-tra=* | --program-tr=* | --program-t=*)
1046     program_transform_name=$ac_optarg ;;
1047
1048   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049     ac_prev=pdfdir ;;
1050   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051     pdfdir=$ac_optarg ;;
1052
1053   -psdir | --psdir | --psdi | --psd | --ps)
1054     ac_prev=psdir ;;
1055   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056     psdir=$ac_optarg ;;
1057
1058   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059   | -silent | --silent | --silen | --sile | --sil)
1060     silent=yes ;;
1061
1062   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063     ac_prev=sbindir ;;
1064   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065   | --sbi=* | --sb=*)
1066     sbindir=$ac_optarg ;;
1067
1068   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070   | --sharedst | --shareds | --shared | --share | --shar \
1071   | --sha | --sh)
1072     ac_prev=sharedstatedir ;;
1073   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076   | --sha=* | --sh=*)
1077     sharedstatedir=$ac_optarg ;;
1078
1079   -site | --site | --sit)
1080     ac_prev=site ;;
1081   -site=* | --site=* | --sit=*)
1082     site=$ac_optarg ;;
1083
1084   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085     ac_prev=srcdir ;;
1086   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087     srcdir=$ac_optarg ;;
1088
1089   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090   | --syscon | --sysco | --sysc | --sys | --sy)
1091     ac_prev=sysconfdir ;;
1092   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094     sysconfdir=$ac_optarg ;;
1095
1096   -target | --target | --targe | --targ | --tar | --ta | --t)
1097     ac_prev=target_alias ;;
1098   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099     target_alias=$ac_optarg ;;
1100
1101   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102     verbose=yes ;;
1103
1104   -version | --version | --versio | --versi | --vers | -V)
1105     ac_init_version=: ;;
1106
1107   -with-* | --with-*)
1108     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111       { echo "$as_me: error: invalid package name: $ac_package" >&2
1112    { (exit 1); exit 1; }; }
1113     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1114     eval with_$ac_package=\$ac_optarg ;;
1115
1116   -without-* | --without-*)
1117     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120       { echo "$as_me: error: invalid package name: $ac_package" >&2
1121    { (exit 1); exit 1; }; }
1122     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1123     eval with_$ac_package=no ;;
1124
1125   --x)
1126     # Obsolete; use --with-x.
1127     with_x=yes ;;
1128
1129   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130   | --x-incl | --x-inc | --x-in | --x-i)
1131     ac_prev=x_includes ;;
1132   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134     x_includes=$ac_optarg ;;
1135
1136   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138     ac_prev=x_libraries ;;
1139   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141     x_libraries=$ac_optarg ;;
1142
1143   -*) { echo "$as_me: error: unrecognized option: $ac_option
1144 Try \`$0 --help' for more information." >&2
1145    { (exit 1); exit 1; }; }
1146     ;;
1147
1148   *=*)
1149     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1153    { (exit 1); exit 1; }; }
1154     eval $ac_envvar=\$ac_optarg
1155     export $ac_envvar ;;
1156
1157   *)
1158     # FIXME: should be removed in autoconf 3.0.
1159     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1163     ;;
1164
1165   esac
1166 done
1167
1168 if test -n "$ac_prev"; then
1169   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170   { echo "$as_me: error: missing argument to $ac_option" >&2
1171    { (exit 1); exit 1; }; }
1172 fi
1173
1174 # Be sure to have absolute directory names.
1175 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176                 datadir sysconfdir sharedstatedir localstatedir includedir \
1177                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178                 libdir localedir mandir
1179 do
1180   eval ac_val=\$$ac_var
1181   case $ac_val in
1182     [\\/$]* | ?:[\\/]* )  continue;;
1183     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184   esac
1185   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1186    { (exit 1); exit 1; }; }
1187 done
1188
1189 # There might be people who depend on the old broken behavior: `$host'
1190 # used to hold the argument of --host etc.
1191 # FIXME: To remove some day.
1192 build=$build_alias
1193 host=$host_alias
1194 target=$target_alias
1195
1196 # FIXME: To remove some day.
1197 if test "x$host_alias" != x; then
1198   if test "x$build_alias" = x; then
1199     cross_compiling=maybe
1200     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1201     If a cross compiler is detected then cross compile mode will be used." >&2
1202   elif test "x$build_alias" != "x$host_alias"; then
1203     cross_compiling=yes
1204   fi
1205 fi
1206
1207 ac_tool_prefix=
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209
1210 test "$silent" = yes && exec 6>/dev/null
1211
1212
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216   { echo "$as_me: error: Working directory cannot be determined" >&2
1217    { (exit 1); exit 1; }; }
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219   { echo "$as_me: error: pwd does not report name of working directory" >&2
1220    { (exit 1); exit 1; }; }
1221
1222
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225   ac_srcdir_defaulted=yes
1226   # Try the directory containing this script, then the parent directory.
1227   ac_confdir=`$as_dirname -- "$0" ||
1228 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229          X"$0" : 'X\(//\)[^/]' \| \
1230          X"$0" : 'X\(//\)$' \| \
1231          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1232 echo X"$0" |
1233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234             s//\1/
1235             q
1236           }
1237           /^X\(\/\/\)[^/].*/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\/\)$/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\).*/{
1246             s//\1/
1247             q
1248           }
1249           s/.*/./; q'`
1250   srcdir=$ac_confdir
1251   if test ! -r "$srcdir/$ac_unique_file"; then
1252     srcdir=..
1253   fi
1254 else
1255   ac_srcdir_defaulted=no
1256 fi
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1260    { (exit 1); exit 1; }; }
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1265    { (exit 1); exit 1; }; }
1266         pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269   srcdir=.
1270 fi
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279   eval ac_env_${ac_var}_value=\$${ac_var}
1280   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1283
1284 #
1285 # Report the --help message.
1286 #
1287 if test "$ac_init_help" = "long"; then
1288   # Omit some internal or obsolete options to make the list less imposing.
1289   # This message is too long to be a string in the A/UX 3.1 sh.
1290   cat <<_ACEOF
1291 \`configure' configures this package to adapt to many kinds of systems.
1292
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE.  See below for descriptions of some of the useful variables.
1297
1298 Defaults for the options are specified in brackets.
1299
1300 Configuration:
1301   -h, --help              display this help and exit
1302       --help=short        display options specific to this package
1303       --help=recursive    display the short help of all the included packages
1304   -V, --version           display version information and exit
1305   -q, --quiet, --silent   do not print \`checking...' messages
1306       --cache-file=FILE   cache test results in FILE [disabled]
1307   -C, --config-cache      alias for \`--cache-file=config.cache'
1308   -n, --no-create         do not create output files
1309       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1310
1311 Installation directories:
1312   --prefix=PREFIX         install architecture-independent files in PREFIX
1313                           [$ac_default_prefix]
1314   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1315                           [PREFIX]
1316
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1321
1322 For better control, use the options below.
1323
1324 Fine tuning of the installation directories:
1325   --bindir=DIR           user executables [EPREFIX/bin]
1326   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1327   --libexecdir=DIR       program executables [EPREFIX/libexec]
1328   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1329   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1330   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1331   --libdir=DIR           object code libraries [EPREFIX/lib]
1332   --includedir=DIR       C header files [PREFIX/include]
1333   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1334   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1335   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1336   --infodir=DIR          info documentation [DATAROOTDIR/info]
1337   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1338   --mandir=DIR           man documentation [DATAROOTDIR/man]
1339   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1340   --htmldir=DIR          html documentation [DOCDIR]
1341   --dvidir=DIR           dvi documentation [DOCDIR]
1342   --pdfdir=DIR           pdf documentation [DOCDIR]
1343   --psdir=DIR            ps documentation [DOCDIR]
1344 _ACEOF
1345
1346   cat <<\_ACEOF
1347
1348 System types:
1349   --build=BUILD     configure for building on BUILD [guessed]
1350   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1351 _ACEOF
1352 fi
1353
1354 if test -n "$ac_init_help"; then
1355
1356   cat <<\_ACEOF
1357
1358 Optional Features:
1359   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1360   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1361   --enable-maintainer-mode enable makefile rules useful for maintainers
1362   --enable-compression    enable EXPERIMENTAL compression support
1363   --enable-htree          enable EXPERIMENTAL htree directory support
1364   --enable-elf-shlibs     select ELF shared libraries
1365   --enable-bsd-shlibs     select BSD shared libraries
1366   --enable-profile        build profiling libraries
1367   --enable-checker        build checker libraries
1368   --enable-jbd-debug      enable journal debugging
1369   --enable-blkid-debug    enable blkid debugging
1370   --enable-testio-debug   enable the use of the test I/O manager for debugging
1371   --disable-swapfs        disable support of legacy byte-swapped filesystems
1372   --disable-debugfs       disable support of debugfs program
1373   --disable-imager        disable support of e2image program
1374   --disable-resizer       disable support of e2resize program
1375   --enable-dynamic-e2fsck build e2fsck dynamically
1376   --enable-fsck           build fsck wrapper program
1377   --enable-e2initrd-helper build e2initrd-helper program
1378   --enable-blkid-devmapper  build with device-mapper support
1379   --disable-nls           do not use Native Language Support
1380   --disable-rpath         do not hardcode runtime library paths
1381
1382 Optional Packages:
1383   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385   --with-diet-libc      Use diet libc
1386   --with-cc=COMPILER      select compiler to use
1387   --with-linker=LINKER    select linker to use
1388   --with-ccopts=CCOPTS    select compiler command line options
1389   --with-ldopts=LDOPTS    select linker command line options
1390   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1391   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1392   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1393   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1394   --with-included-gettext use the GNU gettext library included here
1395   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1396   --without-libintl-prefix     don't search for libintl in includedir and libdir
1397
1398 Some influential environment variables:
1399   CC          C compiler command
1400   CFLAGS      C compiler flags
1401   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1402               nonstandard directory <lib dir>
1403   LIBS        libraries to pass to the linker, e.g. -l<library>
1404   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405               you have headers in a nonstandard directory <include dir>
1406   CPP         C preprocessor
1407
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1410
1411 _ACEOF
1412 ac_status=$?
1413 fi
1414
1415 if test "$ac_init_help" = "recursive"; then
1416   # If there are subdirs, report their specific --help.
1417   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418     test -d "$ac_dir" || continue
1419     ac_builddir=.
1420
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *)
1424   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1425   # A ".." for each directory in $ac_dir_suffix.
1426   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1427   case $ac_top_builddir_sub in
1428   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430   esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1436
1437 case $srcdir in
1438   .)  # We are building in place.
1439     ac_srcdir=.
1440     ac_top_srcdir=$ac_top_builddir_sub
1441     ac_abs_top_srcdir=$ac_pwd ;;
1442   [\\/]* | ?:[\\/]* )  # Absolute name.
1443     ac_srcdir=$srcdir$ac_dir_suffix;
1444     ac_top_srcdir=$srcdir
1445     ac_abs_top_srcdir=$srcdir ;;
1446   *) # Relative name.
1447     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448     ac_top_srcdir=$ac_top_build_prefix$srcdir
1449     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453     cd "$ac_dir" || { ac_status=$?; continue; }
1454     # Check for guested configure.
1455     if test -f "$ac_srcdir/configure.gnu"; then
1456       echo &&
1457       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458     elif test -f "$ac_srcdir/configure"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure" --help=recursive
1461     else
1462       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463     fi || ac_status=$?
1464     cd "$ac_pwd" || { ac_status=$?; break; }
1465   done
1466 fi
1467
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470   cat <<\_ACEOF
1471 configure
1472 generated by GNU Autoconf 2.61
1473
1474 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1475 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1478 _ACEOF
1479   exit
1480 fi
1481 cat >config.log <<_ACEOF
1482 This file contains any messages produced by compilers while
1483 running configure, to aid debugging if configure makes a mistake.
1484
1485 It was created by $as_me, which was
1486 generated by GNU Autoconf 2.61.  Invocation command line was
1487
1488   $ $0 $@
1489
1490 _ACEOF
1491 exec 5>>config.log
1492 {
1493 cat <<_ASUNAME
1494 ## --------- ##
1495 ## Platform. ##
1496 ## --------- ##
1497
1498 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1499 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1500 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1501 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1502 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1503
1504 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1505 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1506
1507 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1508 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1509 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1510 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1511 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1512 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1513 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1514
1515 _ASUNAME
1516
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1519 do
1520   IFS=$as_save_IFS
1521   test -z "$as_dir" && as_dir=.
1522   echo "PATH: $as_dir"
1523 done
1524 IFS=$as_save_IFS
1525
1526 } >&5
1527
1528 cat >&5 <<_ACEOF
1529
1530
1531 ## ----------- ##
1532 ## Core tests. ##
1533 ## ----------- ##
1534
1535 _ACEOF
1536
1537
1538 # Keep a trace of the command line.
1539 # Strip out --no-create and --no-recursion so they do not pile up.
1540 # Strip out --silent because we don't want to record it for future runs.
1541 # Also quote any args containing shell meta-characters.
1542 # Make two passes to allow for proper duplicate-argument suppression.
1543 ac_configure_args=
1544 ac_configure_args0=
1545 ac_configure_args1=
1546 ac_must_keep_next=false
1547 for ac_pass in 1 2
1548 do
1549   for ac_arg
1550   do
1551     case $ac_arg in
1552     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1553     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1554     | -silent | --silent | --silen | --sile | --sil)
1555       continue ;;
1556     *\'*)
1557       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1558     esac
1559     case $ac_pass in
1560     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1561     2)
1562       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1563       if test $ac_must_keep_next = true; then
1564         ac_must_keep_next=false # Got value, back to normal.
1565       else
1566         case $ac_arg in
1567           *=* | --config-cache | -C | -disable-* | --disable-* \
1568           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1569           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1570           | -with-* | --with-* | -without-* | --without-* | --x)
1571             case "$ac_configure_args0 " in
1572               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1573             esac
1574             ;;
1575           -* ) ac_must_keep_next=true ;;
1576         esac
1577       fi
1578       ac_configure_args="$ac_configure_args '$ac_arg'"
1579       ;;
1580     esac
1581   done
1582 done
1583 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1584 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1585
1586 # When interrupted or exit'd, cleanup temporary files, and complete
1587 # config.log.  We remove comments because anyway the quotes in there
1588 # would cause problems or look ugly.
1589 # WARNING: Use '\'' to represent an apostrophe within the trap.
1590 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1591 trap 'exit_status=$?
1592   # Save into config.log some information that might help in debugging.
1593   {
1594     echo
1595
1596     cat <<\_ASBOX
1597 ## ---------------- ##
1598 ## Cache variables. ##
1599 ## ---------------- ##
1600 _ASBOX
1601     echo
1602     # The following way of writing the cache mishandles newlines in values,
1603 (
1604   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1605     eval ac_val=\$$ac_var
1606     case $ac_val in #(
1607     *${as_nl}*)
1608       case $ac_var in #(
1609       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1610 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1611       esac
1612       case $ac_var in #(
1613       _ | IFS | as_nl) ;; #(
1614       *) $as_unset $ac_var ;;
1615       esac ;;
1616     esac
1617   done
1618   (set) 2>&1 |
1619     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1620     *${as_nl}ac_space=\ *)
1621       sed -n \
1622         "s/'\''/'\''\\\\'\'''\''/g;
1623           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1624       ;; #(
1625     *)
1626       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1627       ;;
1628     esac |
1629     sort
1630 )
1631     echo
1632
1633     cat <<\_ASBOX
1634 ## ----------------- ##
1635 ## Output variables. ##
1636 ## ----------------- ##
1637 _ASBOX
1638     echo
1639     for ac_var in $ac_subst_vars
1640     do
1641       eval ac_val=\$$ac_var
1642       case $ac_val in
1643       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644       esac
1645       echo "$ac_var='\''$ac_val'\''"
1646     done | sort
1647     echo
1648
1649     if test -n "$ac_subst_files"; then
1650       cat <<\_ASBOX
1651 ## ------------------- ##
1652 ## File substitutions. ##
1653 ## ------------------- ##
1654 _ASBOX
1655       echo
1656       for ac_var in $ac_subst_files
1657       do
1658         eval ac_val=\$$ac_var
1659         case $ac_val in
1660         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661         esac
1662         echo "$ac_var='\''$ac_val'\''"
1663       done | sort
1664       echo
1665     fi
1666
1667     if test -s confdefs.h; then
1668       cat <<\_ASBOX
1669 ## ----------- ##
1670 ## confdefs.h. ##
1671 ## ----------- ##
1672 _ASBOX
1673       echo
1674       cat confdefs.h
1675       echo
1676     fi
1677     test "$ac_signal" != 0 &&
1678       echo "$as_me: caught signal $ac_signal"
1679     echo "$as_me: exit $exit_status"
1680   } >&5
1681   rm -f core *.core core.conftest.* &&
1682     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1683     exit $exit_status
1684 ' 0
1685 for ac_signal in 1 2 13 15; do
1686   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1687 done
1688 ac_signal=0
1689
1690 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1691 rm -f -r conftest* confdefs.h
1692
1693 # Predefined preprocessor variables.
1694
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_NAME "$PACKAGE_NAME"
1697 _ACEOF
1698
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_STRING "$PACKAGE_STRING"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1717 _ACEOF
1718
1719
1720 # Let the site file select an alternate cache file if it wants to.
1721 # Prefer explicitly selected file to automatically selected ones.
1722 if test -n "$CONFIG_SITE"; then
1723   set x "$CONFIG_SITE"
1724 elif test "x$prefix" != xNONE; then
1725   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1726 else
1727   set x "$ac_default_prefix/share/config.site" \
1728         "$ac_default_prefix/etc/config.site"
1729 fi
1730 shift
1731 for ac_site_file
1732 do
1733   if test -r "$ac_site_file"; then
1734     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1735 echo "$as_me: loading site script $ac_site_file" >&6;}
1736     sed 's/^/| /' "$ac_site_file" >&5
1737     . "$ac_site_file"
1738   fi
1739 done
1740
1741 if test -r "$cache_file"; then
1742   # Some versions of bash will fail to source /dev/null (special
1743   # files actually), so we avoid doing that.
1744   if test -f "$cache_file"; then
1745     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1746 echo "$as_me: loading cache $cache_file" >&6;}
1747     case $cache_file in
1748       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1749       *)                      . "./$cache_file";;
1750     esac
1751   fi
1752 else
1753   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1754 echo "$as_me: creating cache $cache_file" >&6;}
1755   >$cache_file
1756 fi
1757
1758 # Check that the precious variables saved in the cache have kept the same
1759 # value.
1760 ac_cache_corrupted=false
1761 for ac_var in $ac_precious_vars; do
1762   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763   eval ac_new_set=\$ac_env_${ac_var}_set
1764   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765   eval ac_new_val=\$ac_env_${ac_var}_value
1766   case $ac_old_set,$ac_new_set in
1767     set,)
1768       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770       ac_cache_corrupted=: ;;
1771     ,set)
1772       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774       ac_cache_corrupted=: ;;
1775     ,);;
1776     *)
1777       if test "x$ac_old_val" != "x$ac_new_val"; then
1778         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1779 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1780         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1781 echo "$as_me:   former value:  $ac_old_val" >&2;}
1782         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1783 echo "$as_me:   current value: $ac_new_val" >&2;}
1784         ac_cache_corrupted=:
1785       fi;;
1786   esac
1787   # Pass precious variables to config.status.
1788   if test "$ac_new_set" = set; then
1789     case $ac_new_val in
1790     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1791     *) ac_arg=$ac_var=$ac_new_val ;;
1792     esac
1793     case " $ac_configure_args " in
1794       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1795       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796     esac
1797   fi
1798 done
1799 if $ac_cache_corrupted; then
1800   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804    { (exit 1); exit 1; }; }
1805 fi
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828
1829
1830
1831 ac_aux_dir=
1832 for ac_dir in config "$srcdir"/config; do
1833   if test -f "$ac_dir/install-sh"; then
1834     ac_aux_dir=$ac_dir
1835     ac_install_sh="$ac_aux_dir/install-sh -c"
1836     break
1837   elif test -f "$ac_dir/install.sh"; then
1838     ac_aux_dir=$ac_dir
1839     ac_install_sh="$ac_aux_dir/install.sh -c"
1840     break
1841   elif test -f "$ac_dir/shtool"; then
1842     ac_aux_dir=$ac_dir
1843     ac_install_sh="$ac_aux_dir/shtool install -c"
1844     break
1845   fi
1846 done
1847 if test -z "$ac_aux_dir"; then
1848   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1850    { (exit 1); exit 1; }; }
1851 fi
1852
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1860
1861
1862 MCONFIG=./MCONFIG
1863
1864 BINARY_TYPE=bin
1865 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1866         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1867 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1868         | tr \" " "`
1869 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1870 MONTH=`echo $DATE | awk -F- '{print $2}'`
1871 YEAR=`echo $DATE | awk -F- '{print $3}'`
1872
1873 if expr $YEAR ">" 1900 > /dev/null ; then
1874         E2FSPROGS_YEAR=$YEAR
1875 elif expr $YEAR ">" 90 >/dev/null ; then
1876         E2FSPROGS_YEAR=19$YEAR
1877 else
1878         E2FSPROGS_YEAR=20$YEAR
1879 fi
1880
1881 case $MONTH in
1882 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1883 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1884 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1885 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1886 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1887 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1888 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1889 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1890 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1891 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1892 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1893 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1894 *)      echo "Unknown month $MONTH??" ;;
1895 esac
1896
1897 base_ver=`echo $E2FSPROGS_VERSION | \
1898                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1899 pre_vers=`echo $base_ver 0.01 - p | dc`
1900
1901 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1902
1903 case $E2FSPROGS_VERSION in
1904 *-WIP|pre-*)
1905         E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1906         ;;
1907 *)
1908         E2FSPROGS_PKGVER="$base_ver"
1909         ;;
1910 esac
1911
1912 unset DATE MONTH YEAR base_ver pre_vers date_spec
1913 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1914 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1915
1916
1917
1918
1919
1920 # Make sure we can run config.sub.
1921 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1922   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1923 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1924    { (exit 1); exit 1; }; }
1925
1926 { echo "$as_me:$LINENO: checking build system type" >&5
1927 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1928 if test "${ac_cv_build+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   ac_build_alias=$build_alias
1932 test "x$ac_build_alias" = x &&
1933   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1934 test "x$ac_build_alias" = x &&
1935   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1936 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1937    { (exit 1); exit 1; }; }
1938 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1939   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1940 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1941    { (exit 1); exit 1; }; }
1942
1943 fi
1944 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1945 echo "${ECHO_T}$ac_cv_build" >&6; }
1946 case $ac_cv_build in
1947 *-*-*) ;;
1948 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1949 echo "$as_me: error: invalid value of canonical build" >&2;}
1950    { (exit 1); exit 1; }; };;
1951 esac
1952 build=$ac_cv_build
1953 ac_save_IFS=$IFS; IFS='-'
1954 set x $ac_cv_build
1955 shift
1956 build_cpu=$1
1957 build_vendor=$2
1958 shift; shift
1959 # Remember, the first character of IFS is used to create $*,
1960 # except with old shells:
1961 build_os=$*
1962 IFS=$ac_save_IFS
1963 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1964
1965
1966 { echo "$as_me:$LINENO: checking host system type" >&5
1967 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1968 if test "${ac_cv_host+set}" = set; then
1969   echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971   if test "x$host_alias" = x; then
1972   ac_cv_host=$ac_cv_build
1973 else
1974   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1975     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1976 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980 fi
1981 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1982 echo "${ECHO_T}$ac_cv_host" >&6; }
1983 case $ac_cv_host in
1984 *-*-*) ;;
1985 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1986 echo "$as_me: error: invalid value of canonical host" >&2;}
1987    { (exit 1); exit 1; }; };;
1988 esac
1989 host=$ac_cv_host
1990 ac_save_IFS=$IFS; IFS='-'
1991 set x $ac_cv_host
1992 shift
1993 host_cpu=$1
1994 host_vendor=$2
1995 shift; shift
1996 # Remember, the first character of IFS is used to create $*,
1997 # except with old shells:
1998 host_os=$*
1999 IFS=$ac_save_IFS
2000 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2001
2002
2003
2004 # Check whether --with-diet-libc was given.
2005 if test "${with_diet_libc+set}" = set; then
2006   withval=$with_diet_libc; CC="diet cc -nostdinc"
2007 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2008 echo "${ECHO_T}CC=$CC" >&6; }
2009 fi
2010
2011 # Check whether --with-cc was given.
2012 if test "${with_cc+set}" = set; then
2013   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2014 echo "${ECHO_T}CC=$withval" >&6; }
2015 CC=$withval
2016 else
2017   if test -z "$CC" ; then CC=cc; fi
2018 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2019 echo "${ECHO_T}CC defaults to $CC" >&6; }
2020 fi
2021 export CC
2022
2023 ac_ext=c
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 if test -n "$ac_tool_prefix"; then
2029   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test -n "$CC"; then
2037   ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042   IFS=$as_save_IFS
2043   test -z "$as_dir" && as_dir=.
2044   for ac_exec_ext in '' $ac_executable_extensions; do
2045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2046     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048     break 2
2049   fi
2050 done
2051 done
2052 IFS=$as_save_IFS
2053
2054 fi
2055 fi
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058   { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2060 else
2061   { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2063 fi
2064
2065
2066 fi
2067 if test -z "$ac_cv_prog_CC"; then
2068   ac_ct_CC=$CC
2069   # Extract the first word of "gcc", so it can be a program name with args.
2070 set dummy gcc; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074   echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076   if test -n "$ac_ct_CC"; then
2077   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082   IFS=$as_save_IFS
2083   test -z "$as_dir" && as_dir=.
2084   for ac_exec_ext in '' $ac_executable_extensions; do
2085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2086     ac_cv_prog_ac_ct_CC="gcc"
2087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088     break 2
2089   fi
2090 done
2091 done
2092 IFS=$as_save_IFS
2093
2094 fi
2095 fi
2096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097 if test -n "$ac_ct_CC"; then
2098   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099 echo "${ECHO_T}$ac_ct_CC" >&6; }
2100 else
2101   { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2103 fi
2104
2105   if test "x$ac_ct_CC" = x; then
2106     CC=""
2107   else
2108     case $cross_compiling:$ac_tool_warned in
2109 yes:)
2110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet.  If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&5
2113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet.  If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116 ac_tool_warned=yes ;;
2117 esac
2118     CC=$ac_ct_CC
2119   fi
2120 else
2121   CC="$ac_cv_prog_CC"
2122 fi
2123
2124 if test -z "$CC"; then
2125           if test -n "$ac_tool_prefix"; then
2126     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2127 set dummy ${ac_tool_prefix}cc; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$CC"; then
2134   ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2143     ac_cv_prog_CC="${ac_tool_prefix}cc"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149 IFS=$as_save_IFS
2150
2151 fi
2152 fi
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155   { echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6; }
2157 else
2158   { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2160 fi
2161
2162
2163   fi
2164 fi
2165 if test -z "$CC"; then
2166   # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176   ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185        ac_prog_rejected=yes
2186        continue
2187      fi
2188     ac_cv_prog_CC="cc"
2189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194 IFS=$as_save_IFS
2195
2196 if test $ac_prog_rejected = yes; then
2197   # We found a bogon in the path, so make sure we never use it.
2198   set dummy $ac_cv_prog_CC
2199   shift
2200   if test $# != 0; then
2201     # We chose a different compiler from the bogus one.
2202     # However, it has the same basename, so the bogon will be chosen
2203     # first if we set CC to just the basename; use the full file name.
2204     shift
2205     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2206   fi
2207 fi
2208 fi
2209 fi
2210 CC=$ac_cv_prog_CC
2211 if test -n "$CC"; then
2212   { echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6; }
2214 else
2215   { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 fi
2218
2219
2220 fi
2221 if test -z "$CC"; then
2222   if test -n "$ac_tool_prefix"; then
2223   for ac_prog in cl.exe
2224   do
2225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test -n "$CC"; then
2233   ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244     break 2
2245   fi
2246 done
2247 done
2248 IFS=$as_save_IFS
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2256 else
2257   { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2259 fi
2260
2261
2262     test -n "$CC" && break
2263   done
2264 fi
2265 if test -z "$CC"; then
2266   ac_ct_CC=$CC
2267   for ac_prog in cl.exe
2268 do
2269   # Extract the first word of "$ac_prog", so it can be a program name with args.
2270 set dummy $ac_prog; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   if test -n "$ac_ct_CC"; then
2277   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
2287     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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6; }
2300 else
2301   { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2303 fi
2304
2305
2306   test -n "$ac_ct_CC" && break
2307 done
2308
2309   if test "x$ac_ct_CC" = x; then
2310     CC=""
2311   else
2312     case $cross_compiling:$ac_tool_warned in
2313 yes:)
2314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet.  If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&5
2317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet.  If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320 ac_tool_warned=yes ;;
2321 esac
2322     CC=$ac_ct_CC
2323   fi
2324 fi
2325
2326 fi
2327
2328
2329 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&2;}
2333    { (exit 1); exit 1; }; }
2334
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO: checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (ac_try="$ac_compiler --version >&5"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344   (eval "$ac_compiler --version >&5") 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }
2348 { (ac_try="$ac_compiler -v >&5"
2349 case "(($ac_try" in
2350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351   *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354   (eval "$ac_compiler -v >&5") 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }
2358 { (ac_try="$ac_compiler -V >&5"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364   (eval "$ac_compiler -V >&5") 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }
2368
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h.  */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h.  */
2375
2376 int
2377 main ()
2378 {
2379
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 ac_clean_files_save=$ac_clean_files
2385 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386 # Try to create an executable without -o first, disregard a.out.
2387 # It will help us diagnose broken compilers, and finding out an intuition
2388 # of exeext.
2389 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2391 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2392 #
2393 # List of possible output files, starting from the most likely.
2394 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395 # only as a last resort.  b.out is created by i960 compilers.
2396 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2397 #
2398 # The IRIX 6 linker writes into existing files which may not be
2399 # executable, retaining their permissions.  Remove them first so a
2400 # subsequent execution test works.
2401 ac_rmfiles=
2402 for ac_file in $ac_files
2403 do
2404   case $ac_file in
2405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407   esac
2408 done
2409 rm -f $ac_rmfiles
2410
2411 if { (ac_try="$ac_link_default"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_link_default") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; then
2421   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2424 # so that the user can short-circuit this test for compilers unknown to
2425 # Autoconf.
2426 for ac_file in $ac_files ''
2427 do
2428   test -f "$ac_file" || continue
2429   case $ac_file in
2430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2431         ;;
2432     [ab].out )
2433         # We found the default executable, but exeext='' is most
2434         # certainly right.
2435         break;;
2436     *.* )
2437         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438         then :; else
2439            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440         fi
2441         # We set ac_cv_exeext here because the later test for it is not
2442         # safe: cross compilers may not add the suffix if given an `-o'
2443         # argument, so we may need to know it at that point already.
2444         # Even if this section looks crufty: it has the advantage of
2445         # actually working.
2446         break;;
2447     * )
2448         break;;
2449   esac
2450 done
2451 test "$ac_cv_exeext" = no && ac_cv_exeext=
2452
2453 else
2454   ac_file=''
2455 fi
2456
2457 { echo "$as_me:$LINENO: result: $ac_file" >&5
2458 echo "${ECHO_T}$ac_file" >&6; }
2459 if test -z "$ac_file"; then
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: C compiler cannot create executables
2466 See \`config.log' for more details." >&2;}
2467    { (exit 77); exit 77; }; }
2468 fi
2469
2470 ac_exeext=$ac_cv_exeext
2471
2472 # Check that the compiler produces executables we can run.  If not, either
2473 # the compiler is broken, or we cross compile.
2474 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2475 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2476 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2477 # If not cross compiling, check that we can run a simple program.
2478 if test "$cross_compiling" != yes; then
2479   if { ac_try='./$ac_file'
2480   { (case "(($ac_try" in
2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482   *) ac_try_echo=$ac_try;;
2483 esac
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485   (eval "$ac_try") 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489     cross_compiling=no
2490   else
2491     if test "$cross_compiling" = maybe; then
2492         cross_compiling=yes
2493     else
2494         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2495 If you meant to cross compile, use \`--host'.
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&2;}
2500    { (exit 1); exit 1; }; }
2501     fi
2502   fi
2503 fi
2504 { echo "$as_me:$LINENO: result: yes" >&5
2505 echo "${ECHO_T}yes" >&6; }
2506
2507 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2508 ac_clean_files=$ac_clean_files_save
2509 # Check that the compiler produces executables we can run.  If not, either
2510 # the compiler is broken, or we cross compile.
2511 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2512 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2513 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2514 echo "${ECHO_T}$cross_compiling" >&6; }
2515
2516 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2517 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2518 if { (ac_try="$ac_link"
2519 case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_link") 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; then
2528   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2529 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2530 # work properly (i.e., refer to `conftest.exe'), while it won't with
2531 # `rm'.
2532 for ac_file in conftest.exe conftest conftest.*; do
2533   test -f "$ac_file" || continue
2534   case $ac_file in
2535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2536     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537           break;;
2538     * ) break;;
2539   esac
2540 done
2541 else
2542   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2545 See \`config.log' for more details." >&2;}
2546    { (exit 1); exit 1; }; }
2547 fi
2548
2549 rm -f conftest$ac_cv_exeext
2550 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2551 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2552
2553 rm -f conftest.$ac_ext
2554 EXEEXT=$ac_cv_exeext
2555 ac_exeext=$EXEEXT
2556 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2558 if test "${ac_cv_objext+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.o conftest.obj
2577 if { (ac_try="$ac_compile"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583   (eval "$ac_compile") 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; then
2587   for ac_file in conftest.o conftest.obj conftest.*; do
2588   test -f "$ac_file" || continue;
2589   case $ac_file in
2590     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2591     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2592        break;;
2593   esac
2594 done
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2602 See \`config.log' for more details." >&2;}
2603    { (exit 1); exit 1; }; }
2604 fi
2605
2606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2607 fi
2608 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2609 echo "${ECHO_T}$ac_cv_objext" >&6; }
2610 OBJEXT=$ac_cv_objext
2611 ac_objext=$OBJEXT
2612 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2613 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2614 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h.  */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h.  */
2623
2624 int
2625 main ()
2626 {
2627 #ifndef __GNUC__
2628        choke me
2629 #endif
2630
2631   ;
2632   return 0;
2633 }
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2637 case "(($ac_try" in
2638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639   *) ac_try_echo=$ac_try;;
2640 esac
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642   (eval "$ac_compile") 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } && {
2649          test -z "$ac_c_werror_flag" ||
2650          test ! -s conftest.err
2651        } && test -s conftest.$ac_objext; then
2652   ac_compiler_gnu=yes
2653 else
2654   echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657         ac_compiler_gnu=no
2658 fi
2659
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2662
2663 fi
2664 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2665 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2666 GCC=`test $ac_compiler_gnu = yes && echo yes`
2667 ac_test_CFLAGS=${CFLAGS+set}
2668 ac_save_CFLAGS=$CFLAGS
2669 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_g+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   ac_save_c_werror_flag=$ac_c_werror_flag
2675    ac_c_werror_flag=yes
2676    ac_cv_prog_cc_g=no
2677    CFLAGS="-g"
2678    cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684
2685 int
2686 main ()
2687 {
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compile") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } && {
2707          test -z "$ac_c_werror_flag" ||
2708          test ! -s conftest.err
2709        } && test -s conftest.$ac_objext; then
2710   ac_cv_prog_cc_g=yes
2711 else
2712   echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715         CFLAGS=""
2716       cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h.  */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h.  */
2722
2723 int
2724 main ()
2725 {
2726
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compile") 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } && {
2745          test -z "$ac_c_werror_flag" ||
2746          test ! -s conftest.err
2747        } && test -s conftest.$ac_objext; then
2748   :
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753         ac_c_werror_flag=$ac_save_c_werror_flag
2754          CFLAGS="-g"
2755          cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761
2762 int
2763 main ()
2764 {
2765
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777   (eval "$ac_compile") 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } && {
2784          test -z "$ac_c_werror_flag" ||
2785          test ! -s conftest.err
2786        } && test -s conftest.$ac_objext; then
2787   ac_cv_prog_cc_g=yes
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792
2793 fi
2794
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 fi
2797
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 fi
2800
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802    ac_c_werror_flag=$ac_save_c_werror_flag
2803 fi
2804 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2806 if test "$ac_test_CFLAGS" = set; then
2807   CFLAGS=$ac_save_CFLAGS
2808 elif test $ac_cv_prog_cc_g = yes; then
2809   if test "$GCC" = yes; then
2810     CFLAGS="-g -O2"
2811   else
2812     CFLAGS="-g"
2813   fi
2814 else
2815   if test "$GCC" = yes; then
2816     CFLAGS="-O2"
2817   else
2818     CFLAGS=
2819   fi
2820 fi
2821 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2822 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_cc_c89+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   ac_cv_prog_cc_c89=no
2827 ac_save_CC=$CC
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834 #include <stdarg.h>
2835 #include <stdio.h>
2836 #include <sys/types.h>
2837 #include <sys/stat.h>
2838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2839 struct buf { int x; };
2840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841 static char *e (p, i)
2842      char **p;
2843      int i;
2844 {
2845   return p[i];
2846 }
2847 static char *f (char * (*g) (char **, int), char **p, ...)
2848 {
2849   char *s;
2850   va_list v;
2851   va_start (v,p);
2852   s = g (p, va_arg (v,int));
2853   va_end (v);
2854   return s;
2855 }
2856
2857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2858    function prototypes and stuff, but not '\xHH' hex character constants.
2859    These don't provoke an error unfortunately, instead are silently treated
2860    as 'x'.  The following induces an error, until -std is added to get
2861    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2862    array size at least.  It's necessary to write '\x00'==0 to get something
2863    that's true only with -std.  */
2864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2865
2866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2867    inside strings and character constants.  */
2868 #define FOO(x) 'x'
2869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2870
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 int argc;
2876 char **argv;
2877 int
2878 main ()
2879 {
2880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2886         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2887 do
2888   CC="$ac_save_CC $ac_arg"
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_compile") 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } && {
2903          test -z "$ac_c_werror_flag" ||
2904          test ! -s conftest.err
2905        } && test -s conftest.$ac_objext; then
2906   ac_cv_prog_cc_c89=$ac_arg
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911
2912 fi
2913
2914 rm -f core conftest.err conftest.$ac_objext
2915   test "x$ac_cv_prog_cc_c89" != "xno" && break
2916 done
2917 rm -f conftest.$ac_ext
2918 CC=$ac_save_CC
2919
2920 fi
2921 # AC_CACHE_VAL
2922 case "x$ac_cv_prog_cc_c89" in
2923   x)
2924     { echo "$as_me:$LINENO: result: none needed" >&5
2925 echo "${ECHO_T}none needed" >&6; } ;;
2926   xno)
2927     { echo "$as_me:$LINENO: result: unsupported" >&5
2928 echo "${ECHO_T}unsupported" >&6; } ;;
2929   *)
2930     CC="$CC $ac_cv_prog_cc_c89"
2931     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2932 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2933 esac
2934
2935
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2948 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2949 # On Suns, sometimes $CPP names a directory.
2950 if test -n "$CPP" && test -d "$CPP"; then
2951   CPP=
2952 fi
2953 if test -z "$CPP"; then
2954   if test "${ac_cv_prog_CPP+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957       # Double quotes because CPP needs to be expanded
2958     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2959     do
2960       ac_preproc_ok=false
2961 for ac_c_preproc_warn_flag in '' yes
2962 do
2963   # Use a header file that comes with gcc, so configuring glibc
2964   # with a fresh cross-compiler works.
2965   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966   # <limits.h> exists even on freestanding compilers.
2967   # On the NeXT, cc -E runs the code through the compiler's parser,
2968   # not just through cpp. "Syntax error" is here to catch this case.
2969   cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h.  */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h.  */
2975 #ifdef __STDC__
2976 # include <limits.h>
2977 #else
2978 # include <assert.h>
2979 #endif
2980                      Syntax error
2981 _ACEOF
2982 if { (ac_try="$ac_cpp conftest.$ac_ext"
2983 case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null && {
2995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996          test ! -s conftest.err
2997        }; then
2998   :
2999 else
3000   echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003   # Broken: fails on valid input.
3004 continue
3005 fi
3006
3007 rm -f conftest.err conftest.$ac_ext
3008
3009   # OK, works on sane cases.  Now check whether nonexistent headers
3010   # can be detected and how.
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 #include <ac_nonexistent.h>
3018 _ACEOF
3019 if { (ac_try="$ac_cpp conftest.$ac_ext"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } >/dev/null && {
3032          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3033          test ! -s conftest.err
3034        }; then
3035   # Broken: success on invalid input.
3036 continue
3037 else
3038   echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041   # Passes both tests.
3042 ac_preproc_ok=:
3043 break
3044 fi
3045
3046 rm -f conftest.err conftest.$ac_ext
3047
3048 done
3049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050 rm -f conftest.err conftest.$ac_ext
3051 if $ac_preproc_ok; then
3052   break
3053 fi
3054
3055     done
3056     ac_cv_prog_CPP=$CPP
3057
3058 fi
3059   CPP=$ac_cv_prog_CPP
3060 else
3061   ac_cv_prog_CPP=$CPP
3062 fi
3063 { echo "$as_me:$LINENO: result: $CPP" >&5
3064 echo "${ECHO_T}$CPP" >&6; }
3065 ac_preproc_ok=false
3066 for ac_c_preproc_warn_flag in '' yes
3067 do
3068   # Use a header file that comes with gcc, so configuring glibc
3069   # with a fresh cross-compiler works.
3070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071   # <limits.h> exists even on freestanding compilers.
3072   # On the NeXT, cc -E runs the code through the compiler's parser,
3073   # not just through cpp. "Syntax error" is here to catch this case.
3074   cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080 #ifdef __STDC__
3081 # include <limits.h>
3082 #else
3083 # include <assert.h>
3084 #endif
3085                      Syntax error
3086 _ACEOF
3087 if { (ac_try="$ac_cpp conftest.$ac_ext"
3088 case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } >/dev/null && {
3100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3101          test ! -s conftest.err
3102        }; then
3103   :
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108   # Broken: fails on valid input.
3109 continue
3110 fi
3111
3112 rm -f conftest.err conftest.$ac_ext
3113
3114   # OK, works on sane cases.  Now check whether nonexistent headers
3115   # can be detected and how.
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #include <ac_nonexistent.h>
3123 _ACEOF
3124 if { (ac_try="$ac_cpp conftest.$ac_ext"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } >/dev/null && {
3137          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3138          test ! -s conftest.err
3139        }; then
3140   # Broken: success on invalid input.
3141 continue
3142 else
3143   echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146   # Passes both tests.
3147 ac_preproc_ok=:
3148 break
3149 fi
3150
3151 rm -f conftest.err conftest.$ac_ext
3152
3153 done
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.$ac_ext
3156 if $ac_preproc_ok; then
3157   :
3158 else
3159   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3162 See \`config.log' for more details." >&2;}
3163    { (exit 1); exit 1; }; }
3164 fi
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173 # Check whether --with-linker was given.
3174 if test "${with_linker+set}" = set; then
3175   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3176 echo "${ECHO_T}LD=$withval" >&6; }
3177 LD=$withval
3178 else
3179   if test -z "$LD" ; then LD=$CC; fi
3180 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3181 echo "${ECHO_T}LD defaults to $LD" >&6; }
3182 fi
3183 export LD
3184
3185
3186 # Check whether --with-ccopts was given.
3187 if test "${with_ccopts+set}" = set; then
3188   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3189 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3190 CFLAGS=$withval
3191 fi
3192
3193
3194 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3195 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3196 if test "${ac_cv_path_GREP+set}" = set; then
3197   echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199   # Extract the first word of "grep ggrep" to use in msg output
3200 if test -z "$GREP"; then
3201 set dummy grep ggrep; ac_prog_name=$2
3202 if test "${ac_cv_path_GREP+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   ac_path_GREP_found=false
3206 # Loop through the user's path and test for each of PROGNAME-LIST
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212   for ac_prog in grep ggrep; do
3213   for ac_exec_ext in '' $ac_executable_extensions; do
3214     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3215     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3216     # Check for GNU ac_path_GREP and select it if it is found.
3217   # Check for GNU $ac_path_GREP
3218 case `"$ac_path_GREP" --version 2>&1` in
3219 *GNU*)
3220   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3221 *)
3222   ac_count=0
3223   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3224   while :
3225   do
3226     cat "conftest.in" "conftest.in" >"conftest.tmp"
3227     mv "conftest.tmp" "conftest.in"
3228     cp "conftest.in" "conftest.nl"
3229     echo 'GREP' >> "conftest.nl"
3230     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3231     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3232     ac_count=`expr $ac_count + 1`
3233     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3234       # Best one so far, save it but keep looking for a better one
3235       ac_cv_path_GREP="$ac_path_GREP"
3236       ac_path_GREP_max=$ac_count
3237     fi
3238     # 10*(2^10) chars as input seems more than enough
3239     test $ac_count -gt 10 && break
3240   done
3241   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3242 esac
3243
3244
3245     $ac_path_GREP_found && break 3
3246   done
3247 done
3248
3249 done
3250 IFS=$as_save_IFS
3251
3252
3253 fi
3254
3255 GREP="$ac_cv_path_GREP"
3256 if test -z "$GREP"; then
3257   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3258 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3259    { (exit 1); exit 1; }; }
3260 fi
3261
3262 else
3263   ac_cv_path_GREP=$GREP
3264 fi
3265
3266
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3269 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3270  GREP="$ac_cv_path_GREP"
3271
3272
3273 { echo "$as_me:$LINENO: checking for egrep" >&5
3274 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3275 if test "${ac_cv_path_EGREP+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3279    then ac_cv_path_EGREP="$GREP -E"
3280    else
3281      # Extract the first word of "egrep" to use in msg output
3282 if test -z "$EGREP"; then
3283 set dummy egrep; ac_prog_name=$2
3284 if test "${ac_cv_path_EGREP+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   ac_path_EGREP_found=false
3288 # Loop through the user's path and test for each of PROGNAME-LIST
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   for ac_prog in egrep; do
3295   for ac_exec_ext in '' $ac_executable_extensions; do
3296     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3297     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3298     # Check for GNU ac_path_EGREP and select it if it is found.
3299   # Check for GNU $ac_path_EGREP
3300 case `"$ac_path_EGREP" --version 2>&1` in
3301 *GNU*)
3302   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3303 *)
3304   ac_count=0
3305   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3306   while :
3307   do
3308     cat "conftest.in" "conftest.in" >"conftest.tmp"
3309     mv "conftest.tmp" "conftest.in"
3310     cp "conftest.in" "conftest.nl"
3311     echo 'EGREP' >> "conftest.nl"
3312     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3313     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3314     ac_count=`expr $ac_count + 1`
3315     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3316       # Best one so far, save it but keep looking for a better one
3317       ac_cv_path_EGREP="$ac_path_EGREP"
3318       ac_path_EGREP_max=$ac_count
3319     fi
3320     # 10*(2^10) chars as input seems more than enough
3321     test $ac_count -gt 10 && break
3322   done
3323   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3324 esac
3325
3326
3327     $ac_path_EGREP_found && break 3
3328   done
3329 done
3330
3331 done
3332 IFS=$as_save_IFS
3333
3334
3335 fi
3336
3337 EGREP="$ac_cv_path_EGREP"
3338 if test -z "$EGREP"; then
3339   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3340 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3341    { (exit 1); exit 1; }; }
3342 fi
3343
3344 else
3345   ac_cv_path_EGREP=$EGREP
3346 fi
3347
3348
3349    fi
3350 fi
3351 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3352 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3353  EGREP="$ac_cv_path_EGREP"
3354
3355
3356 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3357 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3358 if test "${ac_cv_header_stdc+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367 #include <stdlib.h>
3368 #include <stdarg.h>
3369 #include <string.h>
3370 #include <float.h>
3371
3372 int
3373 main ()
3374 {
3375
3376   ;
3377   return 0;
3378 }
3379 _ACEOF
3380 rm -f conftest.$ac_objext
3381 if { (ac_try="$ac_compile"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_compile") 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } && {
3394          test -z "$ac_c_werror_flag" ||
3395          test ! -s conftest.err
3396        } && test -s conftest.$ac_objext; then
3397   ac_cv_header_stdc=yes
3398 else
3399   echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402         ac_cv_header_stdc=no
3403 fi
3404
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406
3407 if test $ac_cv_header_stdc = yes; then
3408   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 #include <string.h>
3416
3417 _ACEOF
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419   $EGREP "memchr" >/dev/null 2>&1; then
3420   :
3421 else
3422   ac_cv_header_stdc=no
3423 fi
3424 rm -f conftest*
3425
3426 fi
3427
3428 if test $ac_cv_header_stdc = yes; then
3429   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3430   cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #include <stdlib.h>
3437
3438 _ACEOF
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440   $EGREP "free" >/dev/null 2>&1; then
3441   :
3442 else
3443   ac_cv_header_stdc=no
3444 fi
3445 rm -f conftest*
3446
3447 fi
3448
3449 if test $ac_cv_header_stdc = yes; then
3450   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3451   if test "$cross_compiling" = yes; then
3452   :
3453 else
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 #include <ctype.h>
3461 #include <stdlib.h>
3462 #if ((' ' & 0x0FF) == 0x020)
3463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3465 #else
3466 # define ISLOWER(c) \
3467                    (('a' <= (c) && (c) <= 'i') \
3468                      || ('j' <= (c) && (c) <= 'r') \
3469                      || ('s' <= (c) && (c) <= 'z'))
3470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3471 #endif
3472
3473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3474 int
3475 main ()
3476 {
3477   int i;
3478   for (i = 0; i < 256; i++)
3479     if (XOR (islower (i), ISLOWER (i))
3480         || toupper (i) != TOUPPER (i))
3481       return 2;
3482   return 0;
3483 }
3484 _ACEOF
3485 rm -f conftest$ac_exeext
3486 if { (ac_try="$ac_link"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_link") 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3496   { (case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501   (eval "$ac_try") 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); }; }; then
3505   :
3506 else
3507   echo "$as_me: program exited with status $ac_status" >&5
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511 ( exit $ac_status )
3512 ac_cv_header_stdc=no
3513 fi
3514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3515 fi
3516
3517
3518 fi
3519 fi
3520 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3521 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3522 if test $ac_cv_header_stdc = yes; then
3523
3524 cat >>confdefs.h <<\_ACEOF
3525 #define STDC_HEADERS 1
3526 _ACEOF
3527
3528 fi
3529
3530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3541                   inttypes.h stdint.h unistd.h
3542 do
3543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
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 $ac_includes_default
3556
3557 #include <$ac_header>
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566   (eval "$ac_compile") 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } && {
3573          test -z "$ac_c_werror_flag" ||
3574          test ! -s conftest.err
3575        } && test -s conftest.$ac_objext; then
3576   eval "$as_ac_Header=yes"
3577 else
3578   echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581         eval "$as_ac_Header=no"
3582 fi
3583
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 ac_res=`eval echo '${'$as_ac_Header'}'`
3587                { echo "$as_me:$LINENO: result: $ac_res" >&5
3588 echo "${ECHO_T}$ac_res" >&6; }
3589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3590   cat >>confdefs.h <<_ACEOF
3591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3592 _ACEOF
3593
3594 fi
3595
3596 done
3597
3598
3599 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3600   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3601 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3602 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 fi
3605 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3606 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3607 else
3608   # Is the header compilable?
3609 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3610 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h.  */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h.  */
3617 $ac_includes_default
3618 #include <linux/fs.h>
3619 _ACEOF
3620 rm -f conftest.$ac_objext
3621 if { (ac_try="$ac_compile"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627   (eval "$ac_compile") 2>conftest.er1
3628   ac_status=$?
3629   grep -v '^ *+' conftest.er1 >conftest.err
3630   rm -f conftest.er1
3631   cat conftest.err >&5
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); } && {
3634          test -z "$ac_c_werror_flag" ||
3635          test ! -s conftest.err
3636        } && test -s conftest.$ac_objext; then
3637   ac_header_compiler=yes
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642         ac_header_compiler=no
3643 fi
3644
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3647 echo "${ECHO_T}$ac_header_compiler" >&6; }
3648
3649 # Is the header present?
3650 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3651 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h.  */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h.  */
3658 #include <linux/fs.h>
3659 _ACEOF
3660 if { (ac_try="$ac_cpp conftest.$ac_ext"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3667   ac_status=$?
3668   grep -v '^ *+' conftest.er1 >conftest.err
3669   rm -f conftest.er1
3670   cat conftest.err >&5
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } >/dev/null && {
3673          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3674          test ! -s conftest.err
3675        }; then
3676   ac_header_preproc=yes
3677 else
3678   echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681   ac_header_preproc=no
3682 fi
3683
3684 rm -f conftest.err conftest.$ac_ext
3685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3686 echo "${ECHO_T}$ac_header_preproc" >&6; }
3687
3688 # So?  What about this header?
3689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3690   yes:no: )
3691     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3692 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3693     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3694 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3695     ac_header_preproc=yes
3696     ;;
3697   no:yes:* )
3698     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3699 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3701 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3702     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3703 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3705 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3707 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3708     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3709 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3710
3711     ;;
3712 esac
3713 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3714 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3715 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3716   echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718   ac_cv_header_linux_fs_h=$ac_header_preproc
3719 fi
3720 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3721 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3722
3723 fi
3724 if test $ac_cv_header_linux_fs_h = yes; then
3725   linux_headers=yes
3726 else
3727   linux_headers=no
3728 fi
3729
3730
3731 if test "$linux_headers" != yes; then
3732   LINUX_INCLUDE='-I$(top_builddir)/include'
3733 fi
3734
3735 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3736 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3737 if test "$GCC" = yes
3738 then
3739     case "$host_cpu" in
3740         alpha)          addcflags="-mieee" ;;
3741     esac
3742 fi
3743 if test "x$addcflags" != x
3744 then
3745     { echo "$as_me:$LINENO: result: $addcflags" >&5
3746 echo "${ECHO_T}$addcflags" >&6; }
3747     CFLAGS="$addcflags $CFLAGS"
3748 else
3749     { echo "$as_me:$LINENO: result: (none)" >&5
3750 echo "${ECHO_T}(none)" >&6; }
3751 fi
3752 LIB_EXT=.a
3753 STATIC_LIB_EXT=.a
3754 PROFILE_LIB_EXT=.a
3755
3756 # Check whether --with-ldopts was given.
3757 if test "${with_ldopts+set}" = set; then
3758   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3759 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3760 LDFLAGS=$withval
3761 else
3762   LDFLAGS=
3763 fi
3764
3765
3766 # Check whether --with-root-prefix was given.
3767 if test "${with_root_prefix+set}" = set; then
3768   withval=$with_root_prefix; root_prefix=$withval
3769 else
3770   root_prefix=NONE
3771 fi
3772 # Check whether --enable-maintainer-mode was given.
3773 if test "${enable_maintainer_mode+set}" = set; then
3774   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3775 then
3776         MAINTAINER_CMT=#
3777         echo "Disabling maintainer mode"
3778 else
3779         MAINTAINER_CMT=
3780         echo "Enabling maintainer mode"
3781 fi
3782
3783 else
3784   MAINTAINER_CMT=#
3785 echo "Disabling maintainer mode by default"
3786
3787 fi
3788
3789
3790 # Check whether --enable-compression was given.
3791 if test "${enable_compression+set}" = set; then
3792   enableval=$enable_compression; if test "$enableval" = "no"
3793 then
3794         echo "Disabling compression support"
3795 else
3796         cat >>confdefs.h <<\_ACEOF
3797 #define ENABLE_COMPRESSION 1
3798 _ACEOF
3799
3800         echo "Enabling compression support"
3801         echo "WARNING: Compression support is experimental"
3802 fi
3803
3804 else
3805   echo "Disabling compression support by default"
3806
3807 fi
3808
3809 # Check whether --enable-htree was given.
3810 if test "${enable_htree+set}" = set; then
3811   enableval=$enable_htree; if test "$enableval" = "no"
3812 then
3813         HTREE_CMT=#
3814         echo "Disabling htree directory support"
3815 else
3816         HTREE_CMT=
3817         cat >>confdefs.h <<\_ACEOF
3818 #define ENABLE_HTREE 1
3819 _ACEOF
3820
3821         echo "Enabling htree directory support"
3822 fi
3823
3824 else
3825   HTREE_CMT=
3826 cat >>confdefs.h <<\_ACEOF
3827 #define ENABLE_HTREE 1
3828 _ACEOF
3829
3830 echo "Enabling htree directory support by default"
3831
3832 fi
3833
3834
3835 # Check whether --enable-elf-shlibs was given.
3836 if test "${enable_elf_shlibs+set}" = set; then
3837   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3838 then
3839         ELF_CMT=#
3840         MAKEFILE_ELF=/dev/null
3841         echo "Disabling ELF shared libraries"
3842 else
3843         ELF_CMT=
3844         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3845         case "$host_os" in
3846         solaris2.*)
3847                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3848         ;;
3849         esac
3850         BINARY_TYPE=elfbin
3851         LIB_EXT=.so
3852         echo "Enabling ELF shared libraries"
3853 fi
3854
3855 else
3856   MAKEFILE_ELF=/dev/null
3857 ELF_CMT=#
3858 echo "Disabling ELF shared libraries by default"
3859
3860 fi
3861
3862
3863
3864 # Check whether --enable-bsd-shlibs was given.
3865 if test "${enable_bsd_shlibs+set}" = set; then
3866   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3867 then
3868         BSDLIB_CMT=#
3869         MAKEFILE_BSDLIB=/dev/null
3870         echo "Disabling BSD shared libraries"
3871 else
3872         BSDLIB_CMT=
3873         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3874         LIB_EXT=.so
3875         case "$host_os" in
3876         darwin*)
3877                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3878                 LIB_EXT=.dylib
3879         ;;
3880         esac
3881         echo "Enabling BSD shared libraries"
3882 fi
3883
3884 else
3885   MAKEFILE_BSDLIB=/dev/null
3886 BSDLIB_CMT=#
3887 echo "Disabling BSD shared libraries by default"
3888
3889 fi
3890
3891
3892
3893 # Check whether --enable-profile was given.
3894 if test "${enable_profile+set}" = set; then
3895   enableval=$enable_profile; if test "$enableval" = "no"
3896 then
3897         PROFILE_CMT=#
3898         MAKEFILE_PROFILE=/dev/null
3899         echo "Disabling profiling libraries"
3900 else
3901         PROFILE_CMT=
3902         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3903         PROFILED_LIB_EXT=_p.a
3904         echo "Building profiling libraries"
3905 fi
3906
3907 else
3908   PROFILE_CMT=#
3909 MAKEFILE_PROFILE=/dev/null
3910 echo "Disabling profiling libraries by default"
3911
3912 fi
3913
3914
3915
3916 # Check whether --enable-checker was given.
3917 if test "${enable_checker+set}" = set; then
3918   enableval=$enable_checker; if test "$enableval" = "no"
3919 then
3920         CHECKER_CMT=#
3921         MAKEFILE_CHECKER=/dev/null
3922         echo "Disabling checker libraries"
3923 else
3924         CHECKER_CMT=
3925         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3926         echo "Building checker libraries"
3927 fi
3928
3929 else
3930   CHECKER_CMT=#
3931 MAKEFILE_CHECKER=/dev/null
3932 echo "Disabling checker libraries by default"
3933
3934 fi
3935
3936
3937
3938
3939
3940
3941 # Check whether --enable-jbd-debug was given.
3942 if test "${enable_jbd_debug+set}" = set; then
3943   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3944 then
3945         echo "Disabling journal debugging"
3946 else
3947         cat >>confdefs.h <<\_ACEOF
3948 #define CONFIG_JBD_DEBUG 1
3949 _ACEOF
3950
3951         echo "Enabling journal debugging"
3952 fi
3953
3954 else
3955   echo "Disabling journal debugging by default"
3956
3957 fi
3958
3959 # Check whether --enable-blkid-debug was given.
3960 if test "${enable_blkid_debug+set}" = set; then
3961   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3962 then
3963         echo "Disabling blkid debugging"
3964 else
3965         cat >>confdefs.h <<\_ACEOF
3966 #define CONFIG_BLKID_DEBUG 1
3967 _ACEOF
3968
3969         echo "Enabling blkid debugging"
3970 fi
3971
3972 else
3973   echo "Disabling blkid debugging by default"
3974
3975 fi
3976
3977 # Check whether --enable-testio-debug was given.
3978 if test "${enable_testio_debug+set}" = set; then
3979   enableval=$enable_testio_debug; if test "$enableval" = "no"
3980 then
3981         echo "Disabling testio debugging"
3982 else
3983         cat >>confdefs.h <<\_ACEOF
3984 #define CONFIG_TESTIO_DEBUG 1
3985 _ACEOF
3986
3987         echo "Enabling testio debugging"
3988 fi
3989
3990 else
3991   echo "Disabling testio debugging by default"
3992
3993 fi
3994
3995 # Check whether --enable-swapfs was given.
3996 if test "${enable_swapfs+set}" = set; then
3997   enableval=$enable_swapfs; if test "$enableval" = "no"
3998 then
3999         SWAPFS_CMT=#
4000         echo "Disabling swapfs support"
4001 else
4002         SWAPFS_CMT=
4003         cat >>confdefs.h <<\_ACEOF
4004 #define ENABLE_SWAPFS 1
4005 _ACEOF
4006
4007         echo "Enabling swapfs support"
4008 fi
4009
4010 else
4011   SWAPFS_CMT=
4012 echo "Enabling swapfs support by default"
4013 cat >>confdefs.h <<\_ACEOF
4014 #define ENABLE_SWAPFS 1
4015 _ACEOF
4016
4017
4018 fi
4019
4020
4021 # Check whether --enable-debugfs was given.
4022 if test "${enable_debugfs+set}" = set; then
4023   enableval=$enable_debugfs; if test "$enableval" = "no"
4024 then
4025         echo "Disabling debugfs support"
4026         DEBUGFS_CMT="#"
4027 else
4028         DEBUGFS_CMT=
4029         echo "Enabling debugfs support"
4030 fi
4031
4032 else
4033   echo "Enabling debugfs support by default"
4034 DEBUGFS_CMT=
4035
4036 fi
4037
4038
4039 # Check whether --enable-imager was given.
4040 if test "${enable_imager+set}" = set; then
4041   enableval=$enable_imager; if test "$enableval" = "no"
4042 then
4043         echo "Disabling e2image support"
4044         IMAGER_CMT="#"
4045 else
4046         IMAGER_CMT=
4047         echo "Enabling e2image support"
4048 fi
4049
4050 else
4051   echo "Enabling e2image support by default"
4052 IMAGER_CMT=
4053
4054 fi
4055
4056
4057 # Check whether --enable-resizer was given.
4058 if test "${enable_resizer+set}" = set; then
4059   enableval=$enable_resizer; if test "$enableval" = "no"
4060 then
4061         echo "Disabling e2resize support"
4062         RESIZER_CMT="#"
4063 else
4064         RESIZER_CMT=
4065         echo "Enabling e2resize support"
4066 fi
4067
4068 else
4069   echo "Enabling e2resize support by default"
4070 RESIZER_CMT=
4071
4072 fi
4073
4074
4075 # Check whether --enable-dynamic-e2fsck was given.
4076 if test "${enable_dynamic_e2fsck+set}" = set; then
4077   enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
4078 then
4079         E2FSCK_TYPE=static
4080         echo "Building e2fsck statically"
4081 else
4082         E2FSCK_TYPE=shared
4083         echo "Building e2fsck dynamically"
4084 fi
4085
4086 else
4087   E2FSCK_TYPE=static
4088 echo "Building e2fsck statically by default"
4089
4090 fi
4091
4092
4093 # Check whether --enable-fsck was given.
4094 if test "${enable_fsck+set}" = set; then
4095   enableval=$enable_fsck; if test "$enableval" = "no"
4096 then
4097         FSCK_PROG='' FSCK_MAN=''
4098         echo "Not building fsck wrapper"
4099 else
4100         FSCK_PROG=fsck FSCK_MAN=fsck.8
4101         echo "Building fsck wrapper"
4102 fi
4103
4104 else
4105   case "$host_os" in
4106   gnu*)
4107     FSCK_PROG='' FSCK_MAN=''
4108     echo "Not building fsck wrapper by default"
4109     ;;
4110   *)
4111     FSCK_PROG=fsck FSCK_MAN=fsck.8
4112     echo "Building fsck wrapper by default"
4113 esac
4114
4115 fi
4116
4117
4118
4119 # Check whether --enable-e2initrd-helper was given.
4120 if test "${enable_e2initrd_helper+set}" = set; then
4121   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4122 then
4123         E2INITRD_PROG='' E2INITRD_MAN=''
4124         echo "Not building e2initrd helper"
4125 else
4126         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4127         echo "Building e2initrd helper"
4128 fi
4129
4130 else
4131   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4132 echo "Building e2initrd helper by default"
4133
4134 fi
4135
4136
4137
4138 # Check whether --enable-blkid-devmapper was given.
4139 if test "${enable_blkid_devmapper+set}" = set; then
4140   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4141 then
4142         echo "Disabling device-mapper support"
4143         DEVMAPPER_REQ=''
4144         DEVMAPPER_LIBS=''
4145         STATIC_DEVMAPPER_LIBS=''
4146 else
4147         cat >>confdefs.h <<\_ACEOF
4148 #define HAVE_DEVMAPPER 1
4149 _ACEOF
4150
4151         echo "Enabling device-mapper support"
4152
4153         DEVMAPPER_REQ='libselinux libsepol'
4154         DEVMAPPER_PC_LIBS='-ldevmapper'
4155         DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4156         STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
4157
4158 fi
4159
4160 else
4161   echo "Disabling device-mapper support by default"
4162
4163 fi
4164
4165
4166
4167
4168
4169 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4170
4171 GETTEXT_PACKAGE=e2fsprogs
4172 PACKAGE=e2fsprogs
4173 VERSION="$E2FSPROGS_VERSION"
4174 VERSION=0.14.1
4175 cat >>confdefs.h <<_ACEOF
4176 #define PACKAGE "$PACKAGE"
4177 _ACEOF
4178
4179 cat >>confdefs.h <<_ACEOF
4180 #define VERSION "$VERSION"
4181 _ACEOF
4182
4183
4184
4185
4186
4187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   cat >conftest.make <<\_ACEOF
4194 SHELL = /bin/sh
4195 all:
4196         @echo '@@@%%%=$(MAKE)=@@@%%%'
4197 _ACEOF
4198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4200   *@@@%%%=?*=@@@%%%*)
4201     eval ac_cv_prog_make_${ac_make}_set=yes;;
4202   *)
4203     eval ac_cv_prog_make_${ac_make}_set=no;;
4204 esac
4205 rm -f conftest.make
4206 fi
4207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4208   { echo "$as_me:$LINENO: result: yes" >&5
4209 echo "${ECHO_T}yes" >&6; }
4210   SET_MAKE=
4211 else
4212   { echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6; }
4214   SET_MAKE="MAKE=${MAKE-make}"
4215 fi
4216
4217 # Find a good install program.  We prefer a C program (faster),
4218 # so one script is as good as another.  But avoid the broken or
4219 # incompatible versions:
4220 # SysV /etc/install, /usr/sbin/install
4221 # SunOS /usr/etc/install
4222 # IRIX /sbin/install
4223 # AIX /bin/install
4224 # AmigaOS /C/install, which installs bootblocks on floppy discs
4225 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4228 # OS/2's system install, which has a completely different semantic
4229 # ./install, which can be erroneously created by make from ./install.sh.
4230 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4231 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4232 if test -z "$INSTALL"; then
4233 if test "${ac_cv_path_install+set}" = set; then
4234   echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241   # Account for people who put trailing slashes in PATH elements.
4242 case $as_dir/ in
4243   ./ | .// | /cC/* | \
4244   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4245   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4246   /usr/ucb/* ) ;;
4247   *)
4248     # OSF1 and SCO ODT 3.0 have their own names for install.
4249     # Don't use installbsd from OSF since it installs stuff as root
4250     # by default.
4251     for ac_prog in ginstall scoinst install; do
4252       for ac_exec_ext in '' $ac_executable_extensions; do
4253         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4254           if test $ac_prog = install &&
4255             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4256             # AIX install.  It has an incompatible calling convention.
4257             :
4258           elif test $ac_prog = install &&
4259             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4260             # program-specific install script used by HP pwplus--don't use.
4261             :
4262           else
4263             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4264             break 3
4265           fi
4266         fi
4267       done
4268     done
4269     ;;
4270 esac
4271 done
4272 IFS=$as_save_IFS
4273
4274
4275 fi
4276   if test "${ac_cv_path_install+set}" = set; then
4277     INSTALL=$ac_cv_path_install
4278   else
4279     # As a last resort, use the slow shell script.  Don't cache a
4280     # value for INSTALL within a source directory, because that will
4281     # break other packages using the cache if that directory is
4282     # removed, or if the value is a relative name.
4283     INSTALL=$ac_install_sh
4284   fi
4285 fi
4286 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4287 echo "${ECHO_T}$INSTALL" >&6; }
4288
4289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4290 # It thinks the first close brace ends the variable substitution.
4291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4292
4293 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4294
4295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4296
4297
4298         MKINSTALLDIRS=
4299   if test -n "$ac_aux_dir"; then
4300     case "$ac_aux_dir" in
4301       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4302       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4303     esac
4304   fi
4305   if test -z "$MKINSTALLDIRS"; then
4306     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4307   fi
4308
4309
4310
4311   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4312 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4313     # Check whether --enable-nls was given.
4314 if test "${enable_nls+set}" = set; then
4315   enableval=$enable_nls; USE_NLS=$enableval
4316 else
4317   USE_NLS=yes
4318 fi
4319
4320   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4321 echo "${ECHO_T}$USE_NLS" >&6; }
4322
4323
4324
4325
4326
4327
4328 # Prepare PATH_SEPARATOR.
4329 # The user is always right.
4330 if test "${PATH_SEPARATOR+set}" != set; then
4331   echo "#! /bin/sh" >conf$$.sh
4332   echo  "exit 0"   >>conf$$.sh
4333   chmod +x conf$$.sh
4334   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4335     PATH_SEPARATOR=';'
4336   else
4337     PATH_SEPARATOR=:
4338   fi
4339   rm -f conf$$.sh
4340 fi
4341
4342 # Find out how to test for executable files. Don't use a zero-byte file,
4343 # as systems may use methods other than mode bits to determine executability.
4344 cat >conf$$.file <<_ASEOF
4345 #! /bin/sh
4346 exit 0
4347 _ASEOF
4348 chmod +x conf$$.file
4349 if test -x conf$$.file >/dev/null 2>&1; then
4350   ac_executable_p="test -x"
4351 else
4352   ac_executable_p="test -f"
4353 fi
4354 rm -f conf$$.file
4355
4356 # Extract the first word of "msgfmt", so it can be a program name with args.
4357 set dummy msgfmt; ac_word=$2
4358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_MSGFMT+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363   case "$MSGFMT" in
4364   [\\/]* | ?:[\\/]*)
4365     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4366     ;;
4367   *)
4368     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4369     for ac_dir in $PATH; do
4370       IFS="$ac_save_IFS"
4371       test -z "$ac_dir" && ac_dir=.
4372       for ac_exec_ext in '' $ac_executable_extensions; do
4373         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4374           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4375      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4376             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4377             break 2
4378           fi
4379         fi
4380       done
4381     done
4382     IFS="$ac_save_IFS"
4383   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4384     ;;
4385 esac
4386 fi
4387 MSGFMT="$ac_cv_path_MSGFMT"
4388 if test "$MSGFMT" != ":"; then
4389   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4390 echo "${ECHO_T}$MSGFMT" >&6; }
4391 else
4392   { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4394 fi
4395
4396   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4397 set dummy gmsgfmt; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   case $GMSGFMT in
4404   [\\/]* | ?:[\\/]*)
4405   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4406   ;;
4407   *)
4408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413   for ac_exec_ext in '' $ac_executable_extensions; do
4414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4424   ;;
4425 esac
4426 fi
4427 GMSGFMT=$ac_cv_path_GMSGFMT
4428 if test -n "$GMSGFMT"; then
4429   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4430 echo "${ECHO_T}$GMSGFMT" >&6; }
4431 else
4432   { echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6; }
4434 fi
4435
4436
4437
4438
4439 # Prepare PATH_SEPARATOR.
4440 # The user is always right.
4441 if test "${PATH_SEPARATOR+set}" != set; then
4442   echo "#! /bin/sh" >conf$$.sh
4443   echo  "exit 0"   >>conf$$.sh
4444   chmod +x conf$$.sh
4445   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4446     PATH_SEPARATOR=';'
4447   else
4448     PATH_SEPARATOR=:
4449   fi
4450   rm -f conf$$.sh
4451 fi
4452
4453 # Find out how to test for executable files. Don't use a zero-byte file,
4454 # as systems may use methods other than mode bits to determine executability.
4455 cat >conf$$.file <<_ASEOF
4456 #! /bin/sh
4457 exit 0
4458 _ASEOF
4459 chmod +x conf$$.file
4460 if test -x conf$$.file >/dev/null 2>&1; then
4461   ac_executable_p="test -x"
4462 else
4463   ac_executable_p="test -f"
4464 fi
4465 rm -f conf$$.file
4466
4467 # Extract the first word of "xgettext", so it can be a program name with args.
4468 set dummy xgettext; ac_word=$2
4469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4471 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   case "$XGETTEXT" in
4475   [\\/]* | ?:[\\/]*)
4476     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4477     ;;
4478   *)
4479     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4480     for ac_dir in $PATH; do
4481       IFS="$ac_save_IFS"
4482       test -z "$ac_dir" && ac_dir=.
4483       for ac_exec_ext in '' $ac_executable_extensions; do
4484         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4485           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4486      (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
4487             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4488             break 2
4489           fi
4490         fi
4491       done
4492     done
4493     IFS="$ac_save_IFS"
4494   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4495     ;;
4496 esac
4497 fi
4498 XGETTEXT="$ac_cv_path_XGETTEXT"
4499 if test "$XGETTEXT" != ":"; then
4500   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4501 echo "${ECHO_T}$XGETTEXT" >&6; }
4502 else
4503   { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4505 fi
4506
4507     rm -f messages.po
4508
4509
4510 # Prepare PATH_SEPARATOR.
4511 # The user is always right.
4512 if test "${PATH_SEPARATOR+set}" != set; then
4513   echo "#! /bin/sh" >conf$$.sh
4514   echo  "exit 0"   >>conf$$.sh
4515   chmod +x conf$$.sh
4516   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4517     PATH_SEPARATOR=';'
4518   else
4519     PATH_SEPARATOR=:
4520   fi
4521   rm -f conf$$.sh
4522 fi
4523
4524 # Find out how to test for executable files. Don't use a zero-byte file,
4525 # as systems may use methods other than mode bits to determine executability.
4526 cat >conf$$.file <<_ASEOF
4527 #! /bin/sh
4528 exit 0
4529 _ASEOF
4530 chmod +x conf$$.file
4531 if test -x conf$$.file >/dev/null 2>&1; then
4532   ac_executable_p="test -x"
4533 else
4534   ac_executable_p="test -f"
4535 fi
4536 rm -f conf$$.file
4537
4538 # Extract the first word of "msgmerge", so it can be a program name with args.
4539 set dummy msgmerge; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   case "$MSGMERGE" in
4546   [\\/]* | ?:[\\/]*)
4547     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4548     ;;
4549   *)
4550     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4551     for ac_dir in $PATH; do
4552       IFS="$ac_save_IFS"
4553       test -z "$ac_dir" && ac_dir=.
4554       for ac_exec_ext in '' $ac_executable_extensions; do
4555         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4556           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4557             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4558             break 2
4559           fi
4560         fi
4561       done
4562     done
4563     IFS="$ac_save_IFS"
4564   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4565     ;;
4566 esac
4567 fi
4568 MSGMERGE="$ac_cv_path_MSGMERGE"
4569 if test "$MSGMERGE" != ":"; then
4570   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4571 echo "${ECHO_T}$MSGMERGE" >&6; }
4572 else
4573   { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4575 fi
4576
4577
4578       if test "$GMSGFMT" != ":"; then
4579             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4580        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4581       : ;
4582     else
4583       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4584       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4585 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4586       GMSGFMT=":"
4587     fi
4588   fi
4589
4590       if test "$XGETTEXT" != ":"; then
4591             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4592        (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
4593       : ;
4594     else
4595       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4596 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4597       XGETTEXT=":"
4598     fi
4599         rm -f messages.po
4600   fi
4601
4602   ac_config_commands="$ac_config_commands default-1"
4603
4604
4605 if test -n "$ac_tool_prefix"; then
4606   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4607 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610 if test "${ac_cv_prog_RANLIB+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   if test -n "$RANLIB"; then
4614   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 RANLIB=$ac_cv_prog_RANLIB
4634 if test -n "$RANLIB"; then
4635   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4636 echo "${ECHO_T}$RANLIB" >&6; }
4637 else
4638   { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4640 fi
4641
4642
4643 fi
4644 if test -z "$ac_cv_prog_RANLIB"; then
4645   ac_ct_RANLIB=$RANLIB
4646   # Extract the first word of "ranlib", so it can be a program name with args.
4647 set dummy ranlib; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -n "$ac_ct_RANLIB"; then
4654   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661   for ac_exec_ext in '' $ac_executable_extensions; do
4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663     ac_cv_prog_ac_ct_RANLIB="ranlib"
4664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4674 if test -n "$ac_ct_RANLIB"; then
4675   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4676 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4677 else
4678   { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 fi
4681
4682   if test "x$ac_ct_RANLIB" = x; then
4683     RANLIB=":"
4684   else
4685     case $cross_compiling:$ac_tool_warned in
4686 yes:)
4687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4688 whose name does not start with the host triplet.  If you think this
4689 configuration is useful to you, please write to autoconf@gnu.org." >&5
4690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4691 whose name does not start with the host triplet.  If you think this
4692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695     RANLIB=$ac_ct_RANLIB
4696   fi
4697 else
4698   RANLIB="$ac_cv_prog_RANLIB"
4699 fi
4700
4701
4702         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4703 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4704 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   ac_check_lib_save_LIBS=$LIBS
4708 LIBS="-lcposix  $LIBS"
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715
4716 /* Override any GCC internal prototype to avoid an error.
4717    Use char because int might match the return type of a GCC
4718    builtin and then its argument prototype would still apply.  */
4719 #ifdef __cplusplus
4720 extern "C"
4721 #endif
4722 char strerror ();
4723 int
4724 main ()
4725 {
4726 return strerror ();
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (ac_try="$ac_link"
4733 case "(($ac_try" in
4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735   *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738   (eval "$ac_link") 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } && {
4745          test -z "$ac_c_werror_flag" ||
4746          test ! -s conftest.err
4747        } && test -s conftest$ac_exeext &&
4748        $as_test_x conftest$ac_exeext; then
4749   ac_cv_lib_cposix_strerror=yes
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754         ac_cv_lib_cposix_strerror=no
4755 fi
4756
4757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4758       conftest$ac_exeext conftest.$ac_ext
4759 LIBS=$ac_check_lib_save_LIBS
4760 fi
4761 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4762 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4763 if test $ac_cv_lib_cposix_strerror = yes; then
4764   LIBS="$LIBS -lcposix"
4765 fi
4766
4767
4768
4769 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4770 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4771 if test "${ac_cv_c_const+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780
4781 int
4782 main ()
4783 {
4784 /* FIXME: Include the comments suggested by Paul. */
4785 #ifndef __cplusplus
4786   /* Ultrix mips cc rejects this.  */
4787   typedef int charset[2];
4788   const charset cs;
4789   /* SunOS 4.1.1 cc rejects this.  */
4790   char const *const *pcpcc;
4791   char **ppc;
4792   /* NEC SVR4.0.2 mips cc rejects this.  */
4793   struct point {int x, y;};
4794   static struct point const zero = {0,0};
4795   /* AIX XL C 1.02.0.0 rejects this.
4796      It does not let you subtract one const X* pointer from another in
4797      an arm of an if-expression whose if-part is not a constant
4798      expression */
4799   const char *g = "string";
4800   pcpcc = &g + (g ? g-g : 0);
4801   /* HPUX 7.0 cc rejects these. */
4802   ++pcpcc;
4803   ppc = (char**) pcpcc;
4804   pcpcc = (char const *const *) ppc;
4805   { /* SCO 3.2v4 cc rejects this.  */
4806     char *t;
4807     char const *s = 0 ? (char *) 0 : (char const *) 0;
4808
4809     *t++ = 0;
4810     if (s) return 0;
4811   }
4812   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4813     int x[] = {25, 17};
4814     const int *foo = &x[0];
4815     ++foo;
4816   }
4817   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4818     typedef const int *iptr;
4819     iptr p = 0;
4820     ++p;
4821   }
4822   { /* AIX XL C 1.02.0.0 rejects this saying
4823        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4824     struct s { int j; const int *ap[3]; };
4825     struct s *b; b->j = 5;
4826   }
4827   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4828     const int foo = 10;
4829     if (!foo) return 0;
4830   }
4831   return !cs[0] && !zero.x;
4832 #endif
4833
4834   ;
4835   return 0;
4836 }
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4840 case "(($ac_try" in
4841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842   *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845   (eval "$ac_compile") 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } && {
4852          test -z "$ac_c_werror_flag" ||
4853          test ! -s conftest.err
4854        } && test -s conftest.$ac_objext; then
4855   ac_cv_c_const=yes
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860         ac_cv_c_const=no
4861 fi
4862
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4866 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4867 if test $ac_cv_c_const = no; then
4868
4869 cat >>confdefs.h <<\_ACEOF
4870 #define const
4871 _ACEOF
4872
4873 fi
4874
4875
4876   { echo "$as_me:$LINENO: checking for signed" >&5
4877 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4878 if test "${bh_cv_c_signed+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887
4888 int
4889 main ()
4890 {
4891 signed char x;
4892   ;
4893   return 0;
4894 }
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (ac_try="$ac_compile"
4898 case "(($ac_try" in
4899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900   *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903   (eval "$ac_compile") 2>conftest.er1
4904   ac_status=$?
4905   grep -v '^ *+' conftest.er1 >conftest.err
4906   rm -f conftest.er1
4907   cat conftest.err >&5
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } && {
4910          test -z "$ac_c_werror_flag" ||
4911          test ! -s conftest.err
4912        } && test -s conftest.$ac_objext; then
4913   bh_cv_c_signed=yes
4914 else
4915   echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918         bh_cv_c_signed=no
4919 fi
4920
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 fi
4923 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4924 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
4925   if test $bh_cv_c_signed = no; then
4926
4927 cat >>confdefs.h <<\_ACEOF
4928 #define signed
4929 _ACEOF
4930
4931   fi
4932
4933 { echo "$as_me:$LINENO: checking for inline" >&5
4934 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4935 if test "${ac_cv_c_inline+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   ac_cv_c_inline=no
4939 for ac_kw in inline __inline__ __inline; do
4940   cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946 #ifndef __cplusplus
4947 typedef int foo_t;
4948 static $ac_kw foo_t static_foo () {return 0; }
4949 $ac_kw foo_t foo () {return 0; }
4950 #endif
4951
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957   *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960   (eval "$ac_compile") 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } && {
4967          test -z "$ac_c_werror_flag" ||
4968          test ! -s conftest.err
4969        } && test -s conftest.$ac_objext; then
4970   ac_cv_c_inline=$ac_kw
4971 else
4972   echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4974
4975
4976 fi
4977
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979   test "$ac_cv_c_inline" != no && break
4980 done
4981
4982 fi
4983 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4984 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4985
4986
4987 case $ac_cv_c_inline in
4988   inline | yes) ;;
4989   *)
4990     case $ac_cv_c_inline in
4991       no) ac_val=;;
4992       *) ac_val=$ac_cv_c_inline;;
4993     esac
4994     cat >>confdefs.h <<_ACEOF
4995 #ifndef __cplusplus
4996 #define inline $ac_val
4997 #endif
4998 _ACEOF
4999     ;;
5000 esac
5001
5002 { echo "$as_me:$LINENO: checking for off_t" >&5
5003 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5004 if test "${ac_cv_type_off_t+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 $ac_includes_default
5014 typedef off_t ac__type_new_;
5015 int
5016 main ()
5017 {
5018 if ((ac__type_new_ *) 0)
5019   return 0;
5020 if (sizeof (ac__type_new_))
5021   return 0;
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (ac_try="$ac_compile"
5028 case "(($ac_try" in
5029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030   *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033   (eval "$ac_compile") 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } && {
5040          test -z "$ac_c_werror_flag" ||
5041          test ! -s conftest.err
5042        } && test -s conftest.$ac_objext; then
5043   ac_cv_type_off_t=yes
5044 else
5045   echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048         ac_cv_type_off_t=no
5049 fi
5050
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5054 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5055 if test $ac_cv_type_off_t = yes; then
5056   :
5057 else
5058
5059 cat >>confdefs.h <<_ACEOF
5060 #define off_t long int
5061 _ACEOF
5062
5063 fi
5064
5065 { echo "$as_me:$LINENO: checking for size_t" >&5
5066 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5067 if test "${ac_cv_type_size_t+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 $ac_includes_default
5077 typedef size_t ac__type_new_;
5078 int
5079 main ()
5080 {
5081 if ((ac__type_new_ *) 0)
5082   return 0;
5083 if (sizeof (ac__type_new_))
5084   return 0;
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (ac_try="$ac_compile"
5091 case "(($ac_try" in
5092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093   *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096   (eval "$ac_compile") 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } && {
5103          test -z "$ac_c_werror_flag" ||
5104          test ! -s conftest.err
5105        } && test -s conftest.$ac_objext; then
5106   ac_cv_type_size_t=yes
5107 else
5108   echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111         ac_cv_type_size_t=no
5112 fi
5113
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 fi
5116 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5117 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5118 if test $ac_cv_type_size_t = yes; then
5119   :
5120 else
5121
5122 cat >>confdefs.h <<_ACEOF
5123 #define size_t unsigned int
5124 _ACEOF
5125
5126 fi
5127
5128
5129   { echo "$as_me:$LINENO: checking for long long" >&5
5130 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5131 if test "${ac_cv_type_long_long+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140 long long ll = 1LL; int i = 63;
5141 int
5142 main ()
5143 {
5144 long long llmax = (long long) -1;
5145      return ll << i | ll >> i | llmax / ll | llmax % ll;
5146   ;
5147   return 0;
5148 }
5149 _ACEOF
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (ac_try="$ac_link"
5152 case "(($ac_try" in
5153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154   *) ac_try_echo=$ac_try;;
5155 esac
5156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157   (eval "$ac_link") 2>conftest.er1
5158   ac_status=$?
5159   grep -v '^ *+' conftest.er1 >conftest.err
5160   rm -f conftest.er1
5161   cat conftest.err >&5
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); } && {
5164          test -z "$ac_c_werror_flag" ||
5165          test ! -s conftest.err
5166        } && test -s conftest$ac_exeext &&
5167        $as_test_x conftest$ac_exeext; then
5168   ac_cv_type_long_long=yes
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173         ac_cv_type_long_long=no
5174 fi
5175
5176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5177       conftest$ac_exeext conftest.$ac_ext
5178 fi
5179 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5180 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5181   if test $ac_cv_type_long_long = yes; then
5182
5183 cat >>confdefs.h <<\_ACEOF
5184 #define HAVE_LONG_LONG 1
5185 _ACEOF
5186
5187   fi
5188
5189
5190   { echo "$as_me:$LINENO: checking for long double" >&5
5191 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5192 if test "${gt_cv_c_long_double+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   if test "$GCC" = yes; then
5196        gt_cv_c_long_double=yes
5197      else
5198        cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204
5205          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5206          long double foo = 0.0;
5207          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5208          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5209
5210 int
5211 main ()
5212 {
5213
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (ac_try="$ac_compile"
5220 case "(($ac_try" in
5221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222   *) ac_try_echo=$ac_try;;
5223 esac
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225   (eval "$ac_compile") 2>conftest.er1
5226   ac_status=$?
5227   grep -v '^ *+' conftest.er1 >conftest.err
5228   rm -f conftest.er1
5229   cat conftest.err >&5
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } && {
5232          test -z "$ac_c_werror_flag" ||
5233          test ! -s conftest.err
5234        } && test -s conftest.$ac_objext; then
5235   gt_cv_c_long_double=yes
5236 else
5237   echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240         gt_cv_c_long_double=no
5241 fi
5242
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244      fi
5245 fi
5246 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5247 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5248   if test $gt_cv_c_long_double = yes; then
5249
5250 cat >>confdefs.h <<\_ACEOF
5251 #define HAVE_LONG_DOUBLE 1
5252 _ACEOF
5253
5254   fi
5255
5256
5257   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5258 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5259 if test "${gt_cv_c_wchar_t+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h.  */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h.  */
5268 #include <stddef.h>
5269        wchar_t foo = (wchar_t)'\0';
5270 int
5271 main ()
5272 {
5273
5274   ;
5275   return 0;
5276 }
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (ac_try="$ac_compile"
5280 case "(($ac_try" in
5281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282   *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285   (eval "$ac_compile") 2>conftest.er1
5286   ac_status=$?
5287   grep -v '^ *+' conftest.er1 >conftest.err
5288   rm -f conftest.er1
5289   cat conftest.err >&5
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } && {
5292          test -z "$ac_c_werror_flag" ||
5293          test ! -s conftest.err
5294        } && test -s conftest.$ac_objext; then
5295   gt_cv_c_wchar_t=yes
5296 else
5297   echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5299
5300         gt_cv_c_wchar_t=no
5301 fi
5302
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5306 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5307   if test $gt_cv_c_wchar_t = yes; then
5308
5309 cat >>confdefs.h <<\_ACEOF
5310 #define HAVE_WCHAR_T 1
5311 _ACEOF
5312
5313   fi
5314
5315
5316   { echo "$as_me:$LINENO: checking for wint_t" >&5
5317 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5318 if test "${gt_cv_c_wint_t+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 #include <wchar.h>
5328        wint_t foo = (wchar_t)'\0';
5329 int
5330 main ()
5331 {
5332
5333   ;
5334   return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (ac_try="$ac_compile"
5339 case "(($ac_try" in
5340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341   *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344   (eval "$ac_compile") 2>conftest.er1
5345   ac_status=$?
5346   grep -v '^ *+' conftest.er1 >conftest.err
5347   rm -f conftest.er1
5348   cat conftest.err >&5
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); } && {
5351          test -z "$ac_c_werror_flag" ||
5352          test ! -s conftest.err
5353        } && test -s conftest.$ac_objext; then
5354   gt_cv_c_wint_t=yes
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359         gt_cv_c_wint_t=no
5360 fi
5361
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 fi
5364 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5365 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5366   if test $gt_cv_c_wint_t = yes; then
5367
5368 cat >>confdefs.h <<\_ACEOF
5369 #define HAVE_WINT_T 1
5370 _ACEOF
5371
5372   fi
5373
5374
5375   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5376 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5377 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 #include <sys/types.h>
5387 #include <inttypes.h>
5388 int
5389 main ()
5390 {
5391 uintmax_t i = (uintmax_t) -1;
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5398 case "(($ac_try" in
5399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400   *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403   (eval "$ac_compile") 2>conftest.er1
5404   ac_status=$?
5405   grep -v '^ *+' conftest.er1 >conftest.err
5406   rm -f conftest.er1
5407   cat conftest.err >&5
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); } && {
5410          test -z "$ac_c_werror_flag" ||
5411          test ! -s conftest.err
5412        } && test -s conftest.$ac_objext; then
5413   jm_ac_cv_header_inttypes_h=yes
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418         jm_ac_cv_header_inttypes_h=no
5419 fi
5420
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 fi
5423 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5424 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5425   if test $jm_ac_cv_header_inttypes_h = yes; then
5426
5427 cat >>confdefs.h <<_ACEOF
5428 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5429 _ACEOF
5430
5431   fi
5432
5433
5434   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5435 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5436 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445 #include <sys/types.h>
5446 #include <stdint.h>
5447 int
5448 main ()
5449 {
5450 uintmax_t i = (uintmax_t) -1;
5451   ;
5452   return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (ac_try="$ac_compile"
5457 case "(($ac_try" in
5458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459   *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462   (eval "$ac_compile") 2>conftest.er1
5463   ac_status=$?
5464   grep -v '^ *+' conftest.er1 >conftest.err
5465   rm -f conftest.er1
5466   cat conftest.err >&5
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } && {
5469          test -z "$ac_c_werror_flag" ||
5470          test ! -s conftest.err
5471        } && test -s conftest.$ac_objext; then
5472   jm_ac_cv_header_stdint_h=yes
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477         jm_ac_cv_header_stdint_h=no
5478 fi
5479
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5483 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5484   if test $jm_ac_cv_header_stdint_h = yes; then
5485
5486 cat >>confdefs.h <<_ACEOF
5487 #define HAVE_STDINT_H_WITH_UINTMAX 1
5488 _ACEOF
5489
5490   fi
5491
5492
5493
5494
5495   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5496 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5497 if test "${gt_cv_c_intmax_t+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h.  */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h.  */
5506
5507 #include <stddef.h>
5508 #include <stdlib.h>
5509 #if HAVE_STDINT_H_WITH_UINTMAX
5510 #include <stdint.h>
5511 #endif
5512 #if HAVE_INTTYPES_H_WITH_UINTMAX
5513 #include <inttypes.h>
5514 #endif
5515
5516 int
5517 main ()
5518 {
5519 intmax_t x = -1;
5520   ;
5521   return 0;
5522 }
5523 _ACEOF
5524 rm -f conftest.$ac_objext
5525 if { (ac_try="$ac_compile"
5526 case "(($ac_try" in
5527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528   *) ac_try_echo=$ac_try;;
5529 esac
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531   (eval "$ac_compile") 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
5535   cat conftest.err >&5
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } && {
5538          test -z "$ac_c_werror_flag" ||
5539          test ! -s conftest.err
5540        } && test -s conftest.$ac_objext; then
5541   gt_cv_c_intmax_t=yes
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5545
5546         gt_cv_c_intmax_t=no
5547 fi
5548
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 fi
5551 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5552 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5553   if test $gt_cv_c_intmax_t = yes; then
5554
5555 cat >>confdefs.h <<\_ACEOF
5556 #define HAVE_INTMAX_T 1
5557 _ACEOF
5558
5559   fi
5560
5561
5562
5563   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5564 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5565 if test "${gt_cv_func_printf_posix+set}" = set; then
5566   echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568
5569       if test "$cross_compiling" = yes; then
5570
5571         cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577
5578 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5579   notposix
5580 #endif
5581
5582 _ACEOF
5583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584   $EGREP "notposix" >/dev/null 2>&1; then
5585   gt_cv_func_printf_posix="guessing no"
5586 else
5587   gt_cv_func_printf_posix="guessing yes"
5588 fi
5589 rm -f conftest*
5590
5591
5592 else
5593   cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h.  */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h.  */
5599
5600 #include <stdio.h>
5601 #include <string.h>
5602 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5603    dollar expansion (possibly an autoconf bug).  */
5604 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5605 static char buf[100];
5606 int main ()
5607 {
5608   sprintf (buf, format, 33, 55);
5609   return (strcmp (buf, "55 33") != 0);
5610 }
5611 _ACEOF
5612 rm -f conftest$ac_exeext
5613 if { (ac_try="$ac_link"
5614 case "(($ac_try" in
5615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616   *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619   (eval "$ac_link") 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5623   { (case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628   (eval "$ac_try") 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   gt_cv_func_printf_posix=yes
5633 else
5634   echo "$as_me: program exited with status $ac_status" >&5
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ( exit $ac_status )
5639 gt_cv_func_printf_posix=no
5640 fi
5641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5642 fi
5643
5644
5645
5646 fi
5647 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5648 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5649   case $gt_cv_func_printf_posix in
5650     *yes)
5651
5652 cat >>confdefs.h <<\_ACEOF
5653 #define HAVE_POSIX_PRINTF 1
5654 _ACEOF
5655
5656       ;;
5657   esac
5658
5659 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5660 # for constant arguments.  Useless!
5661 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5662 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5663 if test "${ac_cv_working_alloca_h+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672 #include <alloca.h>
5673 int
5674 main ()
5675 {
5676 char *p = (char *) alloca (2 * sizeof (int));
5677                           if (p) return 0;
5678   ;
5679   return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext conftest$ac_exeext
5683 if { (ac_try="$ac_link"
5684 case "(($ac_try" in
5685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686   *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689   (eval "$ac_link") 2>conftest.er1
5690   ac_status=$?
5691   grep -v '^ *+' conftest.er1 >conftest.err
5692   rm -f conftest.er1
5693   cat conftest.err >&5
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); } && {
5696          test -z "$ac_c_werror_flag" ||
5697          test ! -s conftest.err
5698        } && test -s conftest$ac_exeext &&
5699        $as_test_x conftest$ac_exeext; then
5700   ac_cv_working_alloca_h=yes
5701 else
5702   echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705         ac_cv_working_alloca_h=no
5706 fi
5707
5708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5709       conftest$ac_exeext conftest.$ac_ext
5710 fi
5711 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5712 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5713 if test $ac_cv_working_alloca_h = yes; then
5714
5715 cat >>confdefs.h <<\_ACEOF
5716 #define HAVE_ALLOCA_H 1
5717 _ACEOF
5718
5719 fi
5720
5721 { echo "$as_me:$LINENO: checking for alloca" >&5
5722 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5723 if test "${ac_cv_func_alloca_works+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 #ifdef __GNUC__
5733 # define alloca __builtin_alloca
5734 #else
5735 # ifdef _MSC_VER
5736 #  include <malloc.h>
5737 #  define alloca _alloca
5738 # else
5739 #  ifdef HAVE_ALLOCA_H
5740 #   include <alloca.h>
5741 #  else
5742 #   ifdef _AIX
5743  #pragma alloca
5744 #   else
5745 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5746 char *alloca ();
5747 #    endif
5748 #   endif
5749 #  endif
5750 # endif
5751 #endif
5752
5753 int
5754 main ()
5755 {
5756 char *p = (char *) alloca (1);
5757                                     if (p) return 0;
5758   ;
5759   return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext conftest$ac_exeext
5763 if { (ac_try="$ac_link"
5764 case "(($ac_try" in
5765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766   *) ac_try_echo=$ac_try;;
5767 esac
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769   (eval "$ac_link") 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } && {
5776          test -z "$ac_c_werror_flag" ||
5777          test ! -s conftest.err
5778        } && test -s conftest$ac_exeext &&
5779        $as_test_x conftest$ac_exeext; then
5780   ac_cv_func_alloca_works=yes
5781 else
5782   echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785         ac_cv_func_alloca_works=no
5786 fi
5787
5788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5789       conftest$ac_exeext conftest.$ac_ext
5790 fi
5791 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5792 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5793
5794 if test $ac_cv_func_alloca_works = yes; then
5795
5796 cat >>confdefs.h <<\_ACEOF
5797 #define HAVE_ALLOCA 1
5798 _ACEOF
5799
5800 else
5801   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5802 # that cause trouble.  Some versions do not even contain alloca or
5803 # contain a buggy version.  If you still want to use their alloca,
5804 # use ar to extract alloca.o from them instead of compiling alloca.c.
5805
5806 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5807
5808 cat >>confdefs.h <<\_ACEOF
5809 #define C_ALLOCA 1
5810 _ACEOF
5811
5812
5813 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5814 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5815 if test "${ac_cv_os_cray+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
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 #if defined CRAY && ! defined CRAY2
5825 webecray
5826 #else
5827 wenotbecray
5828 #endif
5829
5830 _ACEOF
5831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5832   $EGREP "webecray" >/dev/null 2>&1; then
5833   ac_cv_os_cray=yes
5834 else
5835   ac_cv_os_cray=no
5836 fi
5837 rm -f conftest*
5838
5839 fi
5840 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5841 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5842 if test $ac_cv_os_cray = yes; then
5843   for ac_func in _getb67 GETB67 getb67; do
5844     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5858 #define $ac_func innocuous_$ac_func
5859
5860 /* System header to define __stub macros and hopefully few prototypes,
5861     which can conflict with char $ac_func (); below.
5862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5863     <limits.h> exists even on freestanding compilers.  */
5864
5865 #ifdef __STDC__
5866 # include <limits.h>
5867 #else
5868 # include <assert.h>
5869 #endif
5870
5871 #undef $ac_func
5872
5873 /* Override any GCC internal prototype to avoid an error.
5874    Use char because int might match the return type of a GCC
5875    builtin and then its argument prototype would still apply.  */
5876 #ifdef __cplusplus
5877 extern "C"
5878 #endif
5879 char $ac_func ();
5880 /* The GNU C library defines this for functions which it implements
5881     to always fail with ENOSYS.  Some functions are actually named
5882     something starting with __ and the normal name is an alias.  */
5883 #if defined __stub_$ac_func || defined __stub___$ac_func
5884 choke me
5885 #endif
5886
5887 int
5888 main ()
5889 {
5890 return $ac_func ();
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (ac_try="$ac_link"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902   (eval "$ac_link") 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } && {
5909          test -z "$ac_c_werror_flag" ||
5910          test ! -s conftest.err
5911        } && test -s conftest$ac_exeext &&
5912        $as_test_x conftest$ac_exeext; then
5913   eval "$as_ac_var=yes"
5914 else
5915   echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918         eval "$as_ac_var=no"
5919 fi
5920
5921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5922       conftest$ac_exeext conftest.$ac_ext
5923 fi
5924 ac_res=`eval echo '${'$as_ac_var'}'`
5925                { echo "$as_me:$LINENO: result: $ac_res" >&5
5926 echo "${ECHO_T}$ac_res" >&6; }
5927 if test `eval echo '${'$as_ac_var'}'` = yes; then
5928
5929 cat >>confdefs.h <<_ACEOF
5930 #define CRAY_STACKSEG_END $ac_func
5931 _ACEOF
5932
5933     break
5934 fi
5935
5936   done
5937 fi
5938
5939 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5940 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5941 if test "${ac_cv_c_stack_direction+set}" = set; then
5942   echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944   if test "$cross_compiling" = yes; then
5945   ac_cv_c_stack_direction=0
5946 else
5947   cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h.  */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h.  */
5953 $ac_includes_default
5954 int
5955 find_stack_direction ()
5956 {
5957   static char *addr = 0;
5958   auto char dummy;
5959   if (addr == 0)
5960     {
5961       addr = &dummy;
5962       return find_stack_direction ();
5963     }
5964   else
5965     return (&dummy > addr) ? 1 : -1;
5966 }
5967
5968 int
5969 main ()
5970 {
5971   return find_stack_direction () < 0;
5972 }
5973 _ACEOF
5974 rm -f conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5976 case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981   (eval "$ac_link") 2>&5
5982   ac_status=$?
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5985   { (case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_try") 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; }; then
5994   ac_cv_c_stack_direction=1
5995 else
5996   echo "$as_me: program exited with status $ac_status" >&5
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 ( exit $ac_status )
6001 ac_cv_c_stack_direction=-1
6002 fi
6003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6004 fi
6005
6006
6007 fi
6008 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6009 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6010
6011 cat >>confdefs.h <<_ACEOF
6012 #define STACK_DIRECTION $ac_cv_c_stack_direction
6013 _ACEOF
6014
6015
6016 fi
6017
6018
6019
6020 for ac_header in stdlib.h unistd.h
6021 do
6022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6024   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 fi
6029 ac_res=`eval echo '${'$as_ac_Header'}'`
6030                { echo "$as_me:$LINENO: result: $ac_res" >&5
6031 echo "${ECHO_T}$ac_res" >&6; }
6032 else
6033   # Is the header compilable?
6034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 $ac_includes_default
6043 #include <$ac_header>
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_compile") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } && {
6059          test -z "$ac_c_werror_flag" ||
6060          test ! -s conftest.err
6061        } && test -s conftest.$ac_objext; then
6062   ac_header_compiler=yes
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067         ac_header_compiler=no
6068 fi
6069
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6072 echo "${ECHO_T}$ac_header_compiler" >&6; }
6073
6074 # Is the header present?
6075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 #include <$ac_header>
6084 _ACEOF
6085 if { (ac_try="$ac_cpp conftest.$ac_ext"
6086 case "(($ac_try" in
6087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088   *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6092   ac_status=$?
6093   grep -v '^ *+' conftest.er1 >conftest.err
6094   rm -f conftest.er1
6095   cat conftest.err >&5
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); } >/dev/null && {
6098          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6099          test ! -s conftest.err
6100        }; then
6101   ac_header_preproc=yes
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106   ac_header_preproc=no
6107 fi
6108
6109 rm -f conftest.err conftest.$ac_ext
6110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6111 echo "${ECHO_T}$ac_header_preproc" >&6; }
6112
6113 # So?  What about this header?
6114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6115   yes:no: )
6116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6120     ac_header_preproc=yes
6121     ;;
6122   no:yes:* )
6123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6135
6136     ;;
6137 esac
6138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   eval "$as_ac_Header=\$ac_header_preproc"
6144 fi
6145 ac_res=`eval echo '${'$as_ac_Header'}'`
6146                { echo "$as_me:$LINENO: result: $ac_res" >&5
6147 echo "${ECHO_T}$ac_res" >&6; }
6148
6149 fi
6150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6151   cat >>confdefs.h <<_ACEOF
6152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6153 _ACEOF
6154
6155 fi
6156
6157 done
6158
6159
6160 for ac_func in getpagesize
6161 do
6162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6176 #define $ac_func innocuous_$ac_func
6177
6178 /* System header to define __stub macros and hopefully few prototypes,
6179     which can conflict with char $ac_func (); below.
6180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181     <limits.h> exists even on freestanding compilers.  */
6182
6183 #ifdef __STDC__
6184 # include <limits.h>
6185 #else
6186 # include <assert.h>
6187 #endif
6188
6189 #undef $ac_func
6190
6191 /* Override any GCC internal prototype to avoid an error.
6192    Use char because int might match the return type of a GCC
6193    builtin and then its argument prototype would still apply.  */
6194 #ifdef __cplusplus
6195 extern "C"
6196 #endif
6197 char $ac_func ();
6198 /* The GNU C library defines this for functions which it implements
6199     to always fail with ENOSYS.  Some functions are actually named
6200     something starting with __ and the normal name is an alias.  */
6201 #if defined __stub_$ac_func || defined __stub___$ac_func
6202 choke me
6203 #endif
6204
6205 int
6206 main ()
6207 {
6208 return $ac_func ();
6209   ;
6210   return 0;
6211 }
6212 _ACEOF
6213 rm -f conftest.$ac_objext conftest$ac_exeext
6214 if { (ac_try="$ac_link"
6215 case "(($ac_try" in
6216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217   *) ac_try_echo=$ac_try;;
6218 esac
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220   (eval "$ac_link") 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } && {
6227          test -z "$ac_c_werror_flag" ||
6228          test ! -s conftest.err
6229        } && test -s conftest$ac_exeext &&
6230        $as_test_x conftest$ac_exeext; then
6231   eval "$as_ac_var=yes"
6232 else
6233   echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236         eval "$as_ac_var=no"
6237 fi
6238
6239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6240       conftest$ac_exeext conftest.$ac_ext
6241 fi
6242 ac_res=`eval echo '${'$as_ac_var'}'`
6243                { echo "$as_me:$LINENO: result: $ac_res" >&5
6244 echo "${ECHO_T}$ac_res" >&6; }
6245 if test `eval echo '${'$as_ac_var'}'` = yes; then
6246   cat >>confdefs.h <<_ACEOF
6247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6248 _ACEOF
6249
6250 fi
6251 done
6252
6253 { echo "$as_me:$LINENO: checking for working mmap" >&5
6254 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6255 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   if test "$cross_compiling" = yes; then
6259   ac_cv_func_mmap_fixed_mapped=no
6260 else
6261   cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h.  */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h.  */
6267 $ac_includes_default
6268 /* malloc might have been renamed as rpl_malloc. */
6269 #undef malloc
6270
6271 /* Thanks to Mike Haertel and Jim Avera for this test.
6272    Here is a matrix of mmap possibilities:
6273         mmap private not fixed
6274         mmap private fixed at somewhere currently unmapped
6275         mmap private fixed at somewhere already mapped
6276         mmap shared not fixed
6277         mmap shared fixed at somewhere currently unmapped
6278         mmap shared fixed at somewhere already mapped
6279    For private mappings, we should verify that changes cannot be read()
6280    back from the file, nor mmap's back from the file at a different
6281    address.  (There have been systems where private was not correctly
6282    implemented like the infamous i386 svr4.0, and systems where the
6283    VM page cache was not coherent with the file system buffer cache
6284    like early versions of FreeBSD and possibly contemporary NetBSD.)
6285    For shared mappings, we should conversely verify that changes get
6286    propagated back to all the places they're supposed to be.
6287
6288    Grep wants private fixed already mapped.
6289    The main things grep needs to know about mmap are:
6290    * does it exist and is it safe to write into the mmap'd area
6291    * how to use it (BSD variants)  */
6292
6293 #include <fcntl.h>
6294 #include <sys/mman.h>
6295
6296 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6297 char *malloc ();
6298 #endif
6299
6300 /* This mess was copied from the GNU getpagesize.h.  */
6301 #ifndef HAVE_GETPAGESIZE
6302 /* Assume that all systems that can run configure have sys/param.h.  */
6303 # ifndef HAVE_SYS_PARAM_H
6304 #  define HAVE_SYS_PARAM_H 1
6305 # endif
6306
6307 # ifdef _SC_PAGESIZE
6308 #  define getpagesize() sysconf(_SC_PAGESIZE)
6309 # else /* no _SC_PAGESIZE */
6310 #  ifdef HAVE_SYS_PARAM_H
6311 #   include <sys/param.h>
6312 #   ifdef EXEC_PAGESIZE
6313 #    define getpagesize() EXEC_PAGESIZE
6314 #   else /* no EXEC_PAGESIZE */
6315 #    ifdef NBPG
6316 #     define getpagesize() NBPG * CLSIZE
6317 #     ifndef CLSIZE
6318 #      define CLSIZE 1
6319 #     endif /* no CLSIZE */
6320 #    else /* no NBPG */
6321 #     ifdef NBPC
6322 #      define getpagesize() NBPC
6323 #     else /* no NBPC */
6324 #      ifdef PAGESIZE
6325 #       define getpagesize() PAGESIZE
6326 #      endif /* PAGESIZE */
6327 #     endif /* no NBPC */
6328 #    endif /* no NBPG */
6329 #   endif /* no EXEC_PAGESIZE */
6330 #  else /* no HAVE_SYS_PARAM_H */
6331 #   define getpagesize() 8192   /* punt totally */
6332 #  endif /* no HAVE_SYS_PARAM_H */
6333 # endif /* no _SC_PAGESIZE */
6334
6335 #endif /* no HAVE_GETPAGESIZE */
6336
6337 int
6338 main ()
6339 {
6340   char *data, *data2, *data3;
6341   int i, pagesize;
6342   int fd;
6343
6344   pagesize = getpagesize ();
6345
6346   /* First, make a file with some known garbage in it. */
6347   data = (char *) malloc (pagesize);
6348   if (!data)
6349     return 1;
6350   for (i = 0; i < pagesize; ++i)
6351     *(data + i) = rand ();
6352   umask (0);
6353   fd = creat ("conftest.mmap", 0600);
6354   if (fd < 0)
6355     return 1;
6356   if (write (fd, data, pagesize) != pagesize)
6357     return 1;
6358   close (fd);
6359
6360   /* Next, try to mmap the file at a fixed address which already has
6361      something else allocated at it.  If we can, also make sure that
6362      we see the same garbage.  */
6363   fd = open ("conftest.mmap", O_RDWR);
6364   if (fd < 0)
6365     return 1;
6366   data2 = (char *) malloc (2 * pagesize);
6367   if (!data2)
6368     return 1;
6369   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6370   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6371                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6372     return 1;
6373   for (i = 0; i < pagesize; ++i)
6374     if (*(data + i) != *(data2 + i))
6375       return 1;
6376
6377   /* Finally, make sure that changes to the mapped area do not
6378      percolate back to the file as seen by read().  (This is a bug on
6379      some variants of i386 svr4.0.)  */
6380   for (i = 0; i < pagesize; ++i)
6381     *(data2 + i) = *(data2 + i) + 1;
6382   data3 = (char *) malloc (pagesize);
6383   if (!data3)
6384     return 1;
6385   if (read (fd, data3, pagesize) != pagesize)
6386     return 1;
6387   for (i = 0; i < pagesize; ++i)
6388     if (*(data + i) != *(data3 + i))
6389       return 1;
6390   close (fd);
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6396 case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401   (eval "$ac_link") 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6405   { (case "(($ac_try" in
6406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407   *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410   (eval "$ac_try") 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; }; then
6414   ac_cv_func_mmap_fixed_mapped=yes
6415 else
6416   echo "$as_me: program exited with status $ac_status" >&5
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6419
6420 ( exit $ac_status )
6421 ac_cv_func_mmap_fixed_mapped=no
6422 fi
6423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6424 fi
6425
6426
6427 fi
6428 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6429 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6430 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6431
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_MMAP 1
6434 _ACEOF
6435
6436 fi
6437 rm -f conftest.mmap
6438
6439
6440     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6441 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6442 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h.  */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h.  */
6451
6452 #include <features.h>
6453 #ifdef __GNU_LIBRARY__
6454  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6455   Lucky GNU user
6456  #endif
6457 #endif
6458
6459 _ACEOF
6460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6461   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6462   ac_cv_gnu_library_2_1=yes
6463 else
6464   ac_cv_gnu_library_2_1=no
6465 fi
6466 rm -f conftest*
6467
6468
6469
6470 fi
6471 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6472 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6473
6474     GLIBC21="$ac_cv_gnu_library_2_1"
6475
6476
6477
6478
6479   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6480 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6481 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484
6485       if test "$cross_compiling" = yes; then
6486
6487           # Guess based on the CPU.
6488           case "$host_cpu" in
6489             alpha* | i3456786 | m68k | s390*)
6490               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6491             *)
6492               gt_cv_int_divbyzero_sigfpe="guessing no";;
6493           esac
6494
6495 else
6496   cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h.  */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h.  */
6502
6503 #include <stdlib.h>
6504 #include <signal.h>
6505
6506 static void
6507 #ifdef __cplusplus
6508 sigfpe_handler (int sig)
6509 #else
6510 sigfpe_handler (sig) int sig;
6511 #endif
6512 {
6513   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6514   exit (sig != SIGFPE);
6515 }
6516
6517 int x = 1;
6518 int y = 0;
6519 int z;
6520 int nan;
6521
6522 int main ()
6523 {
6524   signal (SIGFPE, sigfpe_handler);
6525 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6526 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6527   signal (SIGTRAP, sigfpe_handler);
6528 #endif
6529 /* Linux/SPARC yields signal SIGILL.  */
6530 #if defined (__sparc__) && defined (__linux__)
6531   signal (SIGILL, sigfpe_handler);
6532 #endif
6533
6534   z = x / y;
6535   nan = y / y;
6536   exit (1);
6537 }
6538
6539 _ACEOF
6540 rm -f conftest$ac_exeext
6541 if { (ac_try="$ac_link"
6542 case "(($ac_try" in
6543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544   *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547   (eval "$ac_link") 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6551   { (case "(($ac_try" in
6552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553   *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556   (eval "$ac_try") 2>&5
6557   ac_status=$?
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); }; }; then
6560   gt_cv_int_divbyzero_sigfpe=yes
6561 else
6562   echo "$as_me: program exited with status $ac_status" >&5
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ( exit $ac_status )
6567 gt_cv_int_divbyzero_sigfpe=no
6568 fi
6569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6570 fi
6571
6572
6573
6574 fi
6575 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6576 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6577   case "$gt_cv_int_divbyzero_sigfpe" in
6578     *yes) value=1;;
6579     *) value=0;;
6580   esac
6581
6582 cat >>confdefs.h <<_ACEOF
6583 #define INTDIV0_RAISES_SIGFPE $value
6584 _ACEOF
6585
6586
6587
6588   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6589 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6590 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h.  */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h.  */
6599 unsigned long long ull = 1ULL; int i = 63;
6600 int
6601 main ()
6602 {
6603 unsigned long long ullmax = (unsigned long long) -1;
6604      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6605   ;
6606   return 0;
6607 }
6608 _ACEOF
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (ac_try="$ac_link"
6611 case "(($ac_try" in
6612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613   *) ac_try_echo=$ac_try;;
6614 esac
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616   (eval "$ac_link") 2>conftest.er1
6617   ac_status=$?
6618   grep -v '^ *+' conftest.er1 >conftest.err
6619   rm -f conftest.er1
6620   cat conftest.err >&5
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); } && {
6623          test -z "$ac_c_werror_flag" ||
6624          test ! -s conftest.err
6625        } && test -s conftest$ac_exeext &&
6626        $as_test_x conftest$ac_exeext; then
6627   ac_cv_type_unsigned_long_long=yes
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632         ac_cv_type_unsigned_long_long=no
6633 fi
6634
6635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6636       conftest$ac_exeext conftest.$ac_ext
6637 fi
6638 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6639 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6640   if test $ac_cv_type_unsigned_long_long = yes; then
6641
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_UNSIGNED_LONG_LONG 1
6644 _ACEOF
6645
6646   fi
6647
6648
6649
6650
6651   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6652
6653     test $ac_cv_type_unsigned_long_long = yes \
6654       && ac_type='unsigned long long' \
6655       || ac_type='unsigned long'
6656
6657 cat >>confdefs.h <<_ACEOF
6658 #define uintmax_t $ac_type
6659 _ACEOF
6660
6661   else
6662
6663 cat >>confdefs.h <<\_ACEOF
6664 #define HAVE_UINTMAX_T 1
6665 _ACEOF
6666
6667   fi
6668
6669
6670   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6671 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6672 if test "${gt_cv_header_inttypes_h+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675
6676     cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h.  */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h.  */
6682 #include <sys/types.h>
6683 #include <inttypes.h>
6684 int
6685 main ()
6686 {
6687
6688   ;
6689   return 0;
6690 }
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6694 case "(($ac_try" in
6695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696   *) ac_try_echo=$ac_try;;
6697 esac
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699   (eval "$ac_compile") 2>conftest.er1
6700   ac_status=$?
6701   grep -v '^ *+' conftest.er1 >conftest.err
6702   rm -f conftest.er1
6703   cat conftest.err >&5
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); } && {
6706          test -z "$ac_c_werror_flag" ||
6707          test ! -s conftest.err
6708        } && test -s conftest.$ac_objext; then
6709   gt_cv_header_inttypes_h=yes
6710 else
6711   echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714         gt_cv_header_inttypes_h=no
6715 fi
6716
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718
6719 fi
6720 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6721 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6722   if test $gt_cv_header_inttypes_h = yes; then
6723
6724 cat >>confdefs.h <<_ACEOF
6725 #define HAVE_INTTYPES_H 1
6726 _ACEOF
6727
6728   fi
6729
6730
6731
6732   if test $gt_cv_header_inttypes_h = yes; then
6733     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6734 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6735 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6736   echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738
6739         cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h.  */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h.  */
6745 #include <inttypes.h>
6746 #ifdef PRId32
6747 char *p = PRId32;
6748 #endif
6749
6750 int
6751 main ()
6752 {
6753
6754   ;
6755   return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (ac_try="$ac_compile"
6760 case "(($ac_try" in
6761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762   *) ac_try_echo=$ac_try;;
6763 esac
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765   (eval "$ac_compile") 2>conftest.er1
6766   ac_status=$?
6767   grep -v '^ *+' conftest.er1 >conftest.err
6768   rm -f conftest.er1
6769   cat conftest.err >&5
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); } && {
6772          test -z "$ac_c_werror_flag" ||
6773          test ! -s conftest.err
6774        } && test -s conftest.$ac_objext; then
6775   gt_cv_inttypes_pri_broken=no
6776 else
6777   echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780         gt_cv_inttypes_pri_broken=yes
6781 fi
6782
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784
6785 fi
6786 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6787 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6788   fi
6789   if test "$gt_cv_inttypes_pri_broken" = yes; then
6790
6791 cat >>confdefs.h <<_ACEOF
6792 #define PRI_MACROS_BROKEN 1
6793 _ACEOF
6794
6795   fi
6796
6797
6798
6799 for ac_header in stdint.h
6800 do
6801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6803   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6806   echo $ECHO_N "(cached) $ECHO_C" >&6
6807 fi
6808 ac_res=`eval echo '${'$as_ac_Header'}'`
6809                { echo "$as_me:$LINENO: result: $ac_res" >&5
6810 echo "${ECHO_T}$ac_res" >&6; }
6811 else
6812   # Is the header compilable?
6813 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h.  */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h.  */
6821 $ac_includes_default
6822 #include <$ac_header>
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6826 case "(($ac_try" in
6827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828   *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831   (eval "$ac_compile") 2>conftest.er1
6832   ac_status=$?
6833   grep -v '^ *+' conftest.er1 >conftest.err
6834   rm -f conftest.er1
6835   cat conftest.err >&5
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); } && {
6838          test -z "$ac_c_werror_flag" ||
6839          test ! -s conftest.err
6840        } && test -s conftest.$ac_objext; then
6841   ac_header_compiler=yes
6842 else
6843   echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846         ac_header_compiler=no
6847 fi
6848
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6851 echo "${ECHO_T}$ac_header_compiler" >&6; }
6852
6853 # Is the header present?
6854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h.  */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h.  */
6862 #include <$ac_header>
6863 _ACEOF
6864 if { (ac_try="$ac_cpp conftest.$ac_ext"
6865 case "(($ac_try" in
6866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867   *) ac_try_echo=$ac_try;;
6868 esac
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6871   ac_status=$?
6872   grep -v '^ *+' conftest.er1 >conftest.err
6873   rm -f conftest.er1
6874   cat conftest.err >&5
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); } >/dev/null && {
6877          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6878          test ! -s conftest.err
6879        }; then
6880   ac_header_preproc=yes
6881 else
6882   echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885   ac_header_preproc=no
6886 fi
6887
6888 rm -f conftest.err conftest.$ac_ext
6889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6890 echo "${ECHO_T}$ac_header_preproc" >&6; }
6891
6892 # So?  What about this header?
6893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6894   yes:no: )
6895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6899     ac_header_preproc=yes
6900     ;;
6901   no:yes:* )
6902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6914
6915     ;;
6916 esac
6917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6920   echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922   eval "$as_ac_Header=\$ac_header_preproc"
6923 fi
6924 ac_res=`eval echo '${'$as_ac_Header'}'`
6925                { echo "$as_me:$LINENO: result: $ac_res" >&5
6926 echo "${ECHO_T}$ac_res" >&6; }
6927
6928 fi
6929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6930   cat >>confdefs.h <<_ACEOF
6931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6932 _ACEOF
6933
6934 fi
6935
6936 done
6937
6938     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6939 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
6940   result=
6941   cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947
6948 #include <limits.h>
6949 #if HAVE_STDINT_H
6950 #include <stdint.h>
6951 #endif
6952 #ifdef SIZE_MAX
6953 Found it
6954 #endif
6955
6956 _ACEOF
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958   $EGREP "Found it" >/dev/null 2>&1; then
6959   result=yes
6960 fi
6961 rm -f conftest*
6962
6963   if test -z "$result"; then
6964                     if test "$cross_compiling" = yes; then
6965   # Depending upon the size, compute the lo and hi bounds.
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h.  */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h.  */
6972 #include <stddef.h>
6973 int
6974 main ()
6975 {
6976 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6977 test_array [0] = 0
6978
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6985 case "(($ac_try" in
6986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987   *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990   (eval "$ac_compile") 2>conftest.er1
6991   ac_status=$?
6992   grep -v '^ *+' conftest.er1 >conftest.err
6993   rm -f conftest.er1
6994   cat conftest.err >&5
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } && {
6997          test -z "$ac_c_werror_flag" ||
6998          test ! -s conftest.err
6999        } && test -s conftest.$ac_objext; then
7000   ac_lo=0 ac_mid=0
7001   while :; do
7002     cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h.  */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h.  */
7008 #include <stddef.h>
7009 int
7010 main ()
7011 {
7012 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7013 test_array [0] = 0
7014
7015   ;
7016   return 0;
7017 }
7018 _ACEOF
7019 rm -f conftest.$ac_objext
7020 if { (ac_try="$ac_compile"
7021 case "(($ac_try" in
7022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023   *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026   (eval "$ac_compile") 2>conftest.er1
7027   ac_status=$?
7028   grep -v '^ *+' conftest.er1 >conftest.err
7029   rm -f conftest.er1
7030   cat conftest.err >&5
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); } && {
7033          test -z "$ac_c_werror_flag" ||
7034          test ! -s conftest.err
7035        } && test -s conftest.$ac_objext; then
7036   ac_hi=$ac_mid; break
7037 else
7038   echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041         ac_lo=`expr $ac_mid + 1`
7042                         if test $ac_lo -le $ac_mid; then
7043                           ac_lo= ac_hi=
7044                           break
7045                         fi
7046                         ac_mid=`expr 2 '*' $ac_mid + 1`
7047 fi
7048
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050   done
7051 else
7052   echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055         cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 #include <stddef.h>
7062 int
7063 main ()
7064 {
7065 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7066 test_array [0] = 0
7067
7068   ;
7069   return 0;
7070 }
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7074 case "(($ac_try" in
7075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076   *) ac_try_echo=$ac_try;;
7077 esac
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079   (eval "$ac_compile") 2>conftest.er1
7080   ac_status=$?
7081   grep -v '^ *+' conftest.er1 >conftest.err
7082   rm -f conftest.er1
7083   cat conftest.err >&5
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); } && {
7086          test -z "$ac_c_werror_flag" ||
7087          test ! -s conftest.err
7088        } && test -s conftest.$ac_objext; then
7089   ac_hi=-1 ac_mid=-1
7090   while :; do
7091     cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h.  */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h.  */
7097 #include <stddef.h>
7098 int
7099 main ()
7100 {
7101 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7102 test_array [0] = 0
7103
7104   ;
7105   return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112   *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115   (eval "$ac_compile") 2>conftest.er1
7116   ac_status=$?
7117   grep -v '^ *+' conftest.er1 >conftest.err
7118   rm -f conftest.er1
7119   cat conftest.err >&5
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } && {
7122          test -z "$ac_c_werror_flag" ||
7123          test ! -s conftest.err
7124        } && test -s conftest.$ac_objext; then
7125   ac_lo=$ac_mid; break
7126 else
7127   echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130         ac_hi=`expr '(' $ac_mid ')' - 1`
7131                         if test $ac_mid -le $ac_hi; then
7132                           ac_lo= ac_hi=
7133                           break
7134                         fi
7135                         ac_mid=`expr 2 '*' $ac_mid`
7136 fi
7137
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139   done
7140 else
7141   echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144         ac_lo= ac_hi=
7145 fi
7146
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 fi
7149
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 # Binary search between lo and hi bounds.
7152 while test "x$ac_lo" != "x$ac_hi"; do
7153   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7154   cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160 #include <stddef.h>
7161 int
7162 main ()
7163 {
7164 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7165 test_array [0] = 0
7166
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175   *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178   (eval "$ac_compile") 2>conftest.er1
7179   ac_status=$?
7180   grep -v '^ *+' conftest.er1 >conftest.err
7181   rm -f conftest.er1
7182   cat conftest.err >&5
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } && {
7185          test -z "$ac_c_werror_flag" ||
7186          test ! -s conftest.err
7187        } && test -s conftest.$ac_objext; then
7188   ac_hi=$ac_mid
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193         ac_lo=`expr '(' $ac_mid ')' + 1`
7194 fi
7195
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 done
7198 case $ac_lo in
7199 ?*) res_hi=$ac_lo;;
7200 '') result=? ;;
7201 esac
7202 else
7203   cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h.  */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h.  */
7209 #include <stddef.h>
7210 static long int longval () { return ~(size_t)0 / 10; }
7211 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7212 #include <stdio.h>
7213 #include <stdlib.h>
7214 int
7215 main ()
7216 {
7217
7218   FILE *f = fopen ("conftest.val", "w");
7219   if (! f)
7220     return 1;
7221   if ((~(size_t)0 / 10) < 0)
7222     {
7223       long int i = longval ();
7224       if (i != (~(size_t)0 / 10))
7225         return 1;
7226       fprintf (f, "%ld\n", i);
7227     }
7228   else
7229     {
7230       unsigned long int i = ulongval ();
7231       if (i != (~(size_t)0 / 10))
7232         return 1;
7233       fprintf (f, "%lu\n", i);
7234     }
7235   return ferror (f) || fclose (f) != 0;
7236
7237   ;
7238   return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest$ac_exeext
7242 if { (ac_try="$ac_link"
7243 case "(($ac_try" in
7244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245   *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248   (eval "$ac_link") 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7252   { (case "(($ac_try" in
7253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254   *) ac_try_echo=$ac_try;;
7255 esac
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257   (eval "$ac_try") 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); }; }; then
7261   res_hi=`cat conftest.val`
7262 else
7263   echo "$as_me: program exited with status $ac_status" >&5
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7266
7267 ( exit $ac_status )
7268 result=?
7269 fi
7270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7271 fi
7272 rm -f conftest.val
7273
7274     if test "$cross_compiling" = yes; then
7275   # Depending upon the size, compute the lo and hi bounds.
7276 cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h.  */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h.  */
7282 #include <stddef.h>
7283 int
7284 main ()
7285 {
7286 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7287 test_array [0] = 0
7288
7289   ;
7290   return 0;
7291 }
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7295 case "(($ac_try" in
7296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297   *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300   (eval "$ac_compile") 2>conftest.er1
7301   ac_status=$?
7302   grep -v '^ *+' conftest.er1 >conftest.err
7303   rm -f conftest.er1
7304   cat conftest.err >&5
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); } && {
7307          test -z "$ac_c_werror_flag" ||
7308          test ! -s conftest.err
7309        } && test -s conftest.$ac_objext; then
7310   ac_lo=0 ac_mid=0
7311   while :; do
7312     cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h.  */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h.  */
7318 #include <stddef.h>
7319 int
7320 main ()
7321 {
7322 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7323 test_array [0] = 0
7324
7325   ;
7326   return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (ac_try="$ac_compile"
7331 case "(($ac_try" in
7332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333   *) ac_try_echo=$ac_try;;
7334 esac
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336   (eval "$ac_compile") 2>conftest.er1
7337   ac_status=$?
7338   grep -v '^ *+' conftest.er1 >conftest.err
7339   rm -f conftest.er1
7340   cat conftest.err >&5
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } && {
7343          test -z "$ac_c_werror_flag" ||
7344          test ! -s conftest.err
7345        } && test -s conftest.$ac_objext; then
7346   ac_hi=$ac_mid; break
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351         ac_lo=`expr $ac_mid + 1`
7352                         if test $ac_lo -le $ac_mid; then
7353                           ac_lo= ac_hi=
7354                           break
7355                         fi
7356                         ac_mid=`expr 2 '*' $ac_mid + 1`
7357 fi
7358
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360   done
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365         cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371 #include <stddef.h>
7372 int
7373 main ()
7374 {
7375 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7376 test_array [0] = 0
7377
7378   ;
7379   return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7384 case "(($ac_try" in
7385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386   *) ac_try_echo=$ac_try;;
7387 esac
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389   (eval "$ac_compile") 2>conftest.er1
7390   ac_status=$?
7391   grep -v '^ *+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } && {
7396          test -z "$ac_c_werror_flag" ||
7397          test ! -s conftest.err
7398        } && test -s conftest.$ac_objext; then
7399   ac_hi=-1 ac_mid=-1
7400   while :; do
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 #include <stddef.h>
7408 int
7409 main ()
7410 {
7411 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7412 test_array [0] = 0
7413
7414   ;
7415   return 0;
7416 }
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7420 case "(($ac_try" in
7421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422   *) ac_try_echo=$ac_try;;
7423 esac
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425   (eval "$ac_compile") 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } && {
7432          test -z "$ac_c_werror_flag" ||
7433          test ! -s conftest.err
7434        } && test -s conftest.$ac_objext; then
7435   ac_lo=$ac_mid; break
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440         ac_hi=`expr '(' $ac_mid ')' - 1`
7441                         if test $ac_mid -le $ac_hi; then
7442                           ac_lo= ac_hi=
7443                           break
7444                         fi
7445                         ac_mid=`expr 2 '*' $ac_mid`
7446 fi
7447
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449   done
7450 else
7451   echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7453
7454         ac_lo= ac_hi=
7455 fi
7456
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 fi
7459
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 # Binary search between lo and hi bounds.
7462 while test "x$ac_lo" != "x$ac_hi"; do
7463   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7464   cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h.  */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h.  */
7470 #include <stddef.h>
7471 int
7472 main ()
7473 {
7474 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7475 test_array [0] = 0
7476
7477   ;
7478   return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext
7482 if { (ac_try="$ac_compile"
7483 case "(($ac_try" in
7484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485   *) ac_try_echo=$ac_try;;
7486 esac
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488   (eval "$ac_compile") 2>conftest.er1
7489   ac_status=$?
7490   grep -v '^ *+' conftest.er1 >conftest.err
7491   rm -f conftest.er1
7492   cat conftest.err >&5
7493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494   (exit $ac_status); } && {
7495          test -z "$ac_c_werror_flag" ||
7496          test ! -s conftest.err
7497        } && test -s conftest.$ac_objext; then
7498   ac_hi=$ac_mid
7499 else
7500   echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7502
7503         ac_lo=`expr '(' $ac_mid ')' + 1`
7504 fi
7505
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 done
7508 case $ac_lo in
7509 ?*) res_lo=$ac_lo;;
7510 '') result=? ;;
7511 esac
7512 else
7513   cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519 #include <stddef.h>
7520 static long int longval () { return ~(size_t)0 % 10; }
7521 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7522 #include <stdio.h>
7523 #include <stdlib.h>
7524 int
7525 main ()
7526 {
7527
7528   FILE *f = fopen ("conftest.val", "w");
7529   if (! f)
7530     return 1;
7531   if ((~(size_t)0 % 10) < 0)
7532     {
7533       long int i = longval ();
7534       if (i != (~(size_t)0 % 10))
7535         return 1;
7536       fprintf (f, "%ld\n", i);
7537     }
7538   else
7539     {
7540       unsigned long int i = ulongval ();
7541       if (i != (~(size_t)0 % 10))
7542         return 1;
7543       fprintf (f, "%lu\n", i);
7544     }
7545   return ferror (f) || fclose (f) != 0;
7546
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 rm -f conftest$ac_exeext
7552 if { (ac_try="$ac_link"
7553 case "(($ac_try" in
7554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555   *) ac_try_echo=$ac_try;;
7556 esac
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558   (eval "$ac_link") 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7562   { (case "(($ac_try" in
7563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564   *) ac_try_echo=$ac_try;;
7565 esac
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567   (eval "$ac_try") 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; }; then
7571   res_lo=`cat conftest.val`
7572 else
7573   echo "$as_me: program exited with status $ac_status" >&5
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 ( exit $ac_status )
7578 result=?
7579 fi
7580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 rm -f conftest.val
7583
7584     if test "$cross_compiling" = yes; then
7585   # Depending upon the size, compute the lo and hi bounds.
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h.  */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h.  */
7592 #include <stddef.h>
7593 int
7594 main ()
7595 {
7596 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7597 test_array [0] = 0
7598
7599   ;
7600   return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7605 case "(($ac_try" in
7606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607   *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610   (eval "$ac_compile") 2>conftest.er1
7611   ac_status=$?
7612   grep -v '^ *+' conftest.er1 >conftest.err
7613   rm -f conftest.er1
7614   cat conftest.err >&5
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); } && {
7617          test -z "$ac_c_werror_flag" ||
7618          test ! -s conftest.err
7619        } && test -s conftest.$ac_objext; then
7620   ac_lo=0 ac_mid=0
7621   while :; do
7622     cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628 #include <stddef.h>
7629 int
7630 main ()
7631 {
7632 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7633 test_array [0] = 0
7634
7635   ;
7636   return 0;
7637 }
7638 _ACEOF
7639 rm -f conftest.$ac_objext
7640 if { (ac_try="$ac_compile"
7641 case "(($ac_try" in
7642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643   *) ac_try_echo=$ac_try;;
7644 esac
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646   (eval "$ac_compile") 2>conftest.er1
7647   ac_status=$?
7648   grep -v '^ *+' conftest.er1 >conftest.err
7649   rm -f conftest.er1
7650   cat conftest.err >&5
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); } && {
7653          test -z "$ac_c_werror_flag" ||
7654          test ! -s conftest.err
7655        } && test -s conftest.$ac_objext; then
7656   ac_hi=$ac_mid; break
7657 else
7658   echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661         ac_lo=`expr $ac_mid + 1`
7662                         if test $ac_lo -le $ac_mid; then
7663                           ac_lo= ac_hi=
7664                           break
7665                         fi
7666                         ac_mid=`expr 2 '*' $ac_mid + 1`
7667 fi
7668
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670   done
7671 else
7672   echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7674
7675         cat >conftest.$ac_ext <<_ACEOF
7676 /* confdefs.h.  */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h.  */
7681 #include <stddef.h>
7682 int
7683 main ()
7684 {
7685 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7686 test_array [0] = 0
7687
7688   ;
7689   return 0;
7690 }
7691 _ACEOF
7692 rm -f conftest.$ac_objext
7693 if { (ac_try="$ac_compile"
7694 case "(($ac_try" in
7695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696   *) ac_try_echo=$ac_try;;
7697 esac
7698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699   (eval "$ac_compile") 2>conftest.er1
7700   ac_status=$?
7701   grep -v '^ *+' conftest.er1 >conftest.err
7702   rm -f conftest.er1
7703   cat conftest.err >&5
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); } && {
7706          test -z "$ac_c_werror_flag" ||
7707          test ! -s conftest.err
7708        } && test -s conftest.$ac_objext; then
7709   ac_hi=-1 ac_mid=-1
7710   while :; do
7711     cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717 #include <stddef.h>
7718 int
7719 main ()
7720 {
7721 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7722 test_array [0] = 0
7723
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732   *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735   (eval "$ac_compile") 2>conftest.er1
7736   ac_status=$?
7737   grep -v '^ *+' conftest.er1 >conftest.err
7738   rm -f conftest.er1
7739   cat conftest.err >&5
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } && {
7742          test -z "$ac_c_werror_flag" ||
7743          test ! -s conftest.err
7744        } && test -s conftest.$ac_objext; then
7745   ac_lo=$ac_mid; break
7746 else
7747   echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750         ac_hi=`expr '(' $ac_mid ')' - 1`
7751                         if test $ac_mid -le $ac_hi; then
7752                           ac_lo= ac_hi=
7753                           break
7754                         fi
7755                         ac_mid=`expr 2 '*' $ac_mid`
7756 fi
7757
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759   done
7760 else
7761   echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764         ac_lo= ac_hi=
7765 fi
7766
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 fi
7769
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 # Binary search between lo and hi bounds.
7772 while test "x$ac_lo" != "x$ac_hi"; do
7773   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7774   cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h.  */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h.  */
7780 #include <stddef.h>
7781 int
7782 main ()
7783 {
7784 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7785 test_array [0] = 0
7786
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7793 case "(($ac_try" in
7794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795   *) ac_try_echo=$ac_try;;
7796 esac
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798   (eval "$ac_compile") 2>conftest.er1
7799   ac_status=$?
7800   grep -v '^ *+' conftest.er1 >conftest.err
7801   rm -f conftest.er1
7802   cat conftest.err >&5
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } && {
7805          test -z "$ac_c_werror_flag" ||
7806          test ! -s conftest.err
7807        } && test -s conftest.$ac_objext; then
7808   ac_hi=$ac_mid
7809 else
7810   echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813         ac_lo=`expr '(' $ac_mid ')' + 1`
7814 fi
7815
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 done
7818 case $ac_lo in
7819 ?*) fits_in_uint=$ac_lo;;
7820 '') result=? ;;
7821 esac
7822 else
7823   cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829 #include <stddef.h>
7830 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7831 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7832 #include <stdio.h>
7833 #include <stdlib.h>
7834 int
7835 main ()
7836 {
7837
7838   FILE *f = fopen ("conftest.val", "w");
7839   if (! f)
7840     return 1;
7841   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7842     {
7843       long int i = longval ();
7844       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7845         return 1;
7846       fprintf (f, "%ld\n", i);
7847     }
7848   else
7849     {
7850       unsigned long int i = ulongval ();
7851       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7852         return 1;
7853       fprintf (f, "%lu\n", i);
7854     }
7855   return ferror (f) || fclose (f) != 0;
7856
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 rm -f conftest$ac_exeext
7862 if { (ac_try="$ac_link"
7863 case "(($ac_try" in
7864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865   *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868   (eval "$ac_link") 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7872   { (case "(($ac_try" in
7873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874   *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877   (eval "$ac_try") 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; }; then
7881   fits_in_uint=`cat conftest.val`
7882 else
7883   echo "$as_me: program exited with status $ac_status" >&5
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7886
7887 ( exit $ac_status )
7888 result=?
7889 fi
7890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7891 fi
7892 rm -f conftest.val
7893
7894     if test "$fits_in_uint" = 1; then
7895                   cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h.  */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h.  */
7901 #include <stddef.h>
7902         extern size_t foo;
7903         extern unsigned long foo;
7904
7905 int
7906 main ()
7907 {
7908
7909   ;
7910   return 0;
7911 }
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (ac_try="$ac_compile"
7915 case "(($ac_try" in
7916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917   *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920   (eval "$ac_compile") 2>conftest.er1
7921   ac_status=$?
7922   grep -v '^ *+' conftest.er1 >conftest.err
7923   rm -f conftest.er1
7924   cat conftest.err >&5
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } && {
7927          test -z "$ac_c_werror_flag" ||
7928          test ! -s conftest.err
7929        } && test -s conftest.$ac_objext; then
7930   fits_in_uint=0
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935
7936 fi
7937
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939     fi
7940     if test -z "$result"; then
7941       if test "$fits_in_uint" = 1; then
7942         result="$res_hi$res_lo"U
7943       else
7944         result="$res_hi$res_lo"UL
7945       fi
7946     else
7947             result='~(size_t)0'
7948     fi
7949   fi
7950   { echo "$as_me:$LINENO: result: $result" >&5
7951 echo "${ECHO_T}$result" >&6; }
7952   if test "$result" != yes; then
7953
7954 cat >>confdefs.h <<_ACEOF
7955 #define SIZE_MAX $result
7956 _ACEOF
7957
7958   fi
7959
7960
7961
7962
7963 for ac_header in stdint.h
7964 do
7965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7967   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 fi
7972 ac_res=`eval echo '${'$as_ac_Header'}'`
7973                { echo "$as_me:$LINENO: result: $ac_res" >&5
7974 echo "${ECHO_T}$ac_res" >&6; }
7975 else
7976   # Is the header compilable?
7977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h.  */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h.  */
7985 $ac_includes_default
7986 #include <$ac_header>
7987 _ACEOF
7988 rm -f conftest.$ac_objext
7989 if { (ac_try="$ac_compile"
7990 case "(($ac_try" in
7991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992   *) ac_try_echo=$ac_try;;
7993 esac
7994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995   (eval "$ac_compile") 2>conftest.er1
7996   ac_status=$?
7997   grep -v '^ *+' conftest.er1 >conftest.err
7998   rm -f conftest.er1
7999   cat conftest.err >&5
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); } && {
8002          test -z "$ac_c_werror_flag" ||
8003          test ! -s conftest.err
8004        } && test -s conftest.$ac_objext; then
8005   ac_header_compiler=yes
8006 else
8007   echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8009
8010         ac_header_compiler=no
8011 fi
8012
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8015 echo "${ECHO_T}$ac_header_compiler" >&6; }
8016
8017 # Is the header present?
8018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026 #include <$ac_header>
8027 _ACEOF
8028 if { (ac_try="$ac_cpp conftest.$ac_ext"
8029 case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8035   ac_status=$?
8036   grep -v '^ *+' conftest.er1 >conftest.err
8037   rm -f conftest.er1
8038   cat conftest.err >&5
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } >/dev/null && {
8041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8042          test ! -s conftest.err
8043        }; then
8044   ac_header_preproc=yes
8045 else
8046   echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049   ac_header_preproc=no
8050 fi
8051
8052 rm -f conftest.err conftest.$ac_ext
8053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054 echo "${ECHO_T}$ac_header_preproc" >&6; }
8055
8056 # So?  What about this header?
8057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8058   yes:no: )
8059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8063     ac_header_preproc=yes
8064     ;;
8065   no:yes:* )
8066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8078
8079     ;;
8080 esac
8081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8084   echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086   eval "$as_ac_Header=\$ac_header_preproc"
8087 fi
8088 ac_res=`eval echo '${'$as_ac_Header'}'`
8089                { echo "$as_me:$LINENO: result: $ac_res" >&5
8090 echo "${ECHO_T}$ac_res" >&6; }
8091
8092 fi
8093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8094   cat >>confdefs.h <<_ACEOF
8095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8096 _ACEOF
8097
8098 fi
8099
8100 done
8101
8102
8103
8104       if test "X$prefix" = "XNONE"; then
8105     acl_final_prefix="$ac_default_prefix"
8106   else
8107     acl_final_prefix="$prefix"
8108   fi
8109   if test "X$exec_prefix" = "XNONE"; then
8110     acl_final_exec_prefix='${prefix}'
8111   else
8112     acl_final_exec_prefix="$exec_prefix"
8113   fi
8114   acl_save_prefix="$prefix"
8115   prefix="$acl_final_prefix"
8116   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8117   prefix="$acl_save_prefix"
8118
8119
8120 # Check whether --with-gnu-ld was given.
8121 if test "${with_gnu_ld+set}" = set; then
8122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8123 else
8124   with_gnu_ld=no
8125 fi
8126
8127 # Prepare PATH_SEPARATOR.
8128 # The user is always right.
8129 if test "${PATH_SEPARATOR+set}" != set; then
8130   echo "#! /bin/sh" >conf$$.sh
8131   echo  "exit 0"   >>conf$$.sh
8132   chmod +x conf$$.sh
8133   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8134     PATH_SEPARATOR=';'
8135   else
8136     PATH_SEPARATOR=:
8137   fi
8138   rm -f conf$$.sh
8139 fi
8140 ac_prog=ld
8141 if test "$GCC" = yes; then
8142   # Check if gcc -print-prog-name=ld gives a path.
8143   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8144 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8145   case $host in
8146   *-*-mingw*)
8147     # gcc leaves a trailing carriage return which upsets mingw
8148     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8149   *)
8150     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8151   esac
8152   case $ac_prog in
8153     # Accept absolute paths.
8154     [\\/]* | [A-Za-z]:[\\/]*)
8155       re_direlt='/[^/][^/]*/\.\./'
8156       # Canonicalize the path of ld
8157       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8158       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8159         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8160       done
8161       test -z "$LD" && LD="$ac_prog"
8162       ;;
8163   "")
8164     # If it fails, then pretend we aren't using GCC.
8165     ac_prog=ld
8166     ;;
8167   *)
8168     # If it is relative, then search for the first ld in PATH.
8169     with_gnu_ld=unknown
8170     ;;
8171   esac
8172 elif test "$with_gnu_ld" = yes; then
8173   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8174 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8175 else
8176   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8177 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8178 fi
8179 if test "${acl_cv_path_LD+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   if test -z "$LD"; then
8183   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8184   for ac_dir in $PATH; do
8185     test -z "$ac_dir" && ac_dir=.
8186     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8187       acl_cv_path_LD="$ac_dir/$ac_prog"
8188       # Check to see if the program is GNU ld.  I'd rather use --version,
8189       # but apparently some GNU ld's only accept -v.
8190       # Break only if it was the GNU/non-GNU ld that we prefer.
8191       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8192       *GNU* | *'with BFD'*)
8193         test "$with_gnu_ld" != no && break ;;
8194       *)
8195         test "$with_gnu_ld" != yes && break ;;
8196       esac
8197     fi
8198   done
8199   IFS="$ac_save_ifs"
8200 else
8201   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8202 fi
8203 fi
8204
8205 LD="$acl_cv_path_LD"
8206 if test -n "$LD"; then
8207   { echo "$as_me:$LINENO: result: $LD" >&5
8208 echo "${ECHO_T}$LD" >&6; }
8209 else
8210   { echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6; }
8212 fi
8213 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8214 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8215    { (exit 1); exit 1; }; }
8216 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8217 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8218 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8222 case `$LD -v 2>&1 </dev/null` in
8223 *GNU* | *'with BFD'*)
8224   acl_cv_prog_gnu_ld=yes ;;
8225 *)
8226   acl_cv_prog_gnu_ld=no ;;
8227 esac
8228 fi
8229 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8230 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8231 with_gnu_ld=$acl_cv_prog_gnu_ld
8232
8233
8234
8235                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8236 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8237 if test "${acl_cv_rpath+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240
8241     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8242     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8243     . ./conftest.sh
8244     rm -f ./conftest.sh
8245     acl_cv_rpath=done
8246
8247 fi
8248 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8249 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8250   wl="$acl_cv_wl"
8251   libext="$acl_cv_libext"
8252   shlibext="$acl_cv_shlibext"
8253   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8254   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8255   hardcode_direct="$acl_cv_hardcode_direct"
8256   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8257     # Check whether --enable-rpath was given.
8258 if test "${enable_rpath+set}" = set; then
8259   enableval=$enable_rpath; :
8260 else
8261   enable_rpath=yes
8262 fi
8263
8264
8265
8266
8267
8268
8269
8270
8271     use_additional=yes
8272
8273   acl_save_prefix="$prefix"
8274   prefix="$acl_final_prefix"
8275   acl_save_exec_prefix="$exec_prefix"
8276   exec_prefix="$acl_final_exec_prefix"
8277
8278     eval additional_includedir=\"$includedir\"
8279     eval additional_libdir=\"$libdir\"
8280
8281   exec_prefix="$acl_save_exec_prefix"
8282   prefix="$acl_save_prefix"
8283
8284
8285 # Check whether --with-libiconv-prefix was given.
8286 if test "${with_libiconv_prefix+set}" = set; then
8287   withval=$with_libiconv_prefix;
8288     if test "X$withval" = "Xno"; then
8289       use_additional=no
8290     else
8291       if test "X$withval" = "X"; then
8292
8293   acl_save_prefix="$prefix"
8294   prefix="$acl_final_prefix"
8295   acl_save_exec_prefix="$exec_prefix"
8296   exec_prefix="$acl_final_exec_prefix"
8297
8298           eval additional_includedir=\"$includedir\"
8299           eval additional_libdir=\"$libdir\"
8300
8301   exec_prefix="$acl_save_exec_prefix"
8302   prefix="$acl_save_prefix"
8303
8304       else
8305         additional_includedir="$withval/include"
8306         additional_libdir="$withval/lib"
8307       fi
8308     fi
8309
8310 fi
8311
8312       LIBICONV=
8313   LTLIBICONV=
8314   INCICONV=
8315   rpathdirs=
8316   ltrpathdirs=
8317   names_already_handled=
8318   names_next_round='iconv '
8319   while test -n "$names_next_round"; do
8320     names_this_round="$names_next_round"
8321     names_next_round=
8322     for name in $names_this_round; do
8323       already_handled=
8324       for n in $names_already_handled; do
8325         if test "$n" = "$name"; then
8326           already_handled=yes
8327           break
8328         fi
8329       done
8330       if test -z "$already_handled"; then
8331         names_already_handled="$names_already_handled $name"
8332                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8333         eval value=\"\$HAVE_LIB$uppername\"
8334         if test -n "$value"; then
8335           if test "$value" = yes; then
8336             eval value=\"\$LIB$uppername\"
8337             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8338             eval value=\"\$LTLIB$uppername\"
8339             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8340           else
8341                                     :
8342           fi
8343         else
8344                               found_dir=
8345           found_la=
8346           found_so=
8347           found_a=
8348           if test $use_additional = yes; then
8349             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8350               found_dir="$additional_libdir"
8351               found_so="$additional_libdir/lib$name.$shlibext"
8352               if test -f "$additional_libdir/lib$name.la"; then
8353                 found_la="$additional_libdir/lib$name.la"
8354               fi
8355             else
8356               if test -f "$additional_libdir/lib$name.$libext"; then
8357                 found_dir="$additional_libdir"
8358                 found_a="$additional_libdir/lib$name.$libext"
8359                 if test -f "$additional_libdir/lib$name.la"; then
8360                   found_la="$additional_libdir/lib$name.la"
8361                 fi
8362               fi
8363             fi
8364           fi
8365           if test "X$found_dir" = "X"; then
8366             for x in $LDFLAGS $LTLIBICONV; do
8367
8368   acl_save_prefix="$prefix"
8369   prefix="$acl_final_prefix"
8370   acl_save_exec_prefix="$exec_prefix"
8371   exec_prefix="$acl_final_exec_prefix"
8372   eval x=\"$x\"
8373   exec_prefix="$acl_save_exec_prefix"
8374   prefix="$acl_save_prefix"
8375
8376               case "$x" in
8377                 -L*)
8378                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8379                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8380                     found_dir="$dir"
8381                     found_so="$dir/lib$name.$shlibext"
8382                     if test -f "$dir/lib$name.la"; then
8383                       found_la="$dir/lib$name.la"
8384                     fi
8385                   else
8386                     if test -f "$dir/lib$name.$libext"; then
8387                       found_dir="$dir"
8388                       found_a="$dir/lib$name.$libext"
8389                       if test -f "$dir/lib$name.la"; then
8390                         found_la="$dir/lib$name.la"
8391                       fi
8392                     fi
8393                   fi
8394                   ;;
8395               esac
8396               if test "X$found_dir" != "X"; then
8397                 break
8398               fi
8399             done
8400           fi
8401           if test "X$found_dir" != "X"; then
8402                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8403             if test "X$found_so" != "X"; then
8404                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8405                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8406               else
8407                                                                                 haveit=
8408                 for x in $ltrpathdirs; do
8409                   if test "X$x" = "X$found_dir"; then
8410                     haveit=yes
8411                     break
8412                   fi
8413                 done
8414                 if test -z "$haveit"; then
8415                   ltrpathdirs="$ltrpathdirs $found_dir"
8416                 fi
8417                                 if test "$hardcode_direct" = yes; then
8418                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8419                 else
8420                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8421                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8422                                                             haveit=
8423                     for x in $rpathdirs; do
8424                       if test "X$x" = "X$found_dir"; then
8425                         haveit=yes
8426                         break
8427                       fi
8428                     done
8429                     if test -z "$haveit"; then
8430                       rpathdirs="$rpathdirs $found_dir"
8431                     fi
8432                   else
8433                                                                                 haveit=
8434                     for x in $LDFLAGS $LIBICONV; do
8435
8436   acl_save_prefix="$prefix"
8437   prefix="$acl_final_prefix"
8438   acl_save_exec_prefix="$exec_prefix"
8439   exec_prefix="$acl_final_exec_prefix"
8440   eval x=\"$x\"
8441   exec_prefix="$acl_save_exec_prefix"
8442   prefix="$acl_save_prefix"
8443
8444                       if test "X$x" = "X-L$found_dir"; then
8445                         haveit=yes
8446                         break
8447                       fi
8448                     done
8449                     if test -z "$haveit"; then
8450                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8451                     fi
8452                     if test "$hardcode_minus_L" != no; then
8453                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8454                     else
8455                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8456                     fi
8457                   fi
8458                 fi
8459               fi
8460             else
8461               if test "X$found_a" != "X"; then
8462                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8463               else
8464                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8465               fi
8466             fi
8467                         additional_includedir=
8468             case "$found_dir" in
8469               */lib | */lib/)
8470                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8471                 additional_includedir="$basedir/include"
8472                 ;;
8473             esac
8474             if test "X$additional_includedir" != "X"; then
8475                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8476                 haveit=
8477                 if test "X$additional_includedir" = "X/usr/local/include"; then
8478                   if test -n "$GCC"; then
8479                     case $host_os in
8480                       linux*) haveit=yes;;
8481                     esac
8482                   fi
8483                 fi
8484                 if test -z "$haveit"; then
8485                   for x in $CPPFLAGS $INCICONV; do
8486
8487   acl_save_prefix="$prefix"
8488   prefix="$acl_final_prefix"
8489   acl_save_exec_prefix="$exec_prefix"
8490   exec_prefix="$acl_final_exec_prefix"
8491   eval x=\"$x\"
8492   exec_prefix="$acl_save_exec_prefix"
8493   prefix="$acl_save_prefix"
8494
8495                     if test "X$x" = "X-I$additional_includedir"; then
8496                       haveit=yes
8497                       break
8498                     fi
8499                   done
8500                   if test -z "$haveit"; then
8501                     if test -d "$additional_includedir"; then
8502                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8503                     fi
8504                   fi
8505                 fi
8506               fi
8507             fi
8508                         if test -n "$found_la"; then
8509                                                         save_libdir="$libdir"
8510               case "$found_la" in
8511                 */* | *\\*) . "$found_la" ;;
8512                 *) . "./$found_la" ;;
8513               esac
8514               libdir="$save_libdir"
8515                             for dep in $dependency_libs; do
8516                 case "$dep" in
8517                   -L*)
8518                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8519                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8520                       haveit=
8521                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8522                         if test -n "$GCC"; then
8523                           case $host_os in
8524                             linux*) haveit=yes;;
8525                           esac
8526                         fi
8527                       fi
8528                       if test -z "$haveit"; then
8529                         haveit=
8530                         for x in $LDFLAGS $LIBICONV; do
8531
8532   acl_save_prefix="$prefix"
8533   prefix="$acl_final_prefix"
8534   acl_save_exec_prefix="$exec_prefix"
8535   exec_prefix="$acl_final_exec_prefix"
8536   eval x=\"$x\"
8537   exec_prefix="$acl_save_exec_prefix"
8538   prefix="$acl_save_prefix"
8539
8540                           if test "X$x" = "X-L$additional_libdir"; then
8541                             haveit=yes
8542                             break
8543                           fi
8544                         done
8545                         if test -z "$haveit"; then
8546                           if test -d "$additional_libdir"; then
8547                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8548                           fi
8549                         fi
8550                         haveit=
8551                         for x in $LDFLAGS $LTLIBICONV; do
8552
8553   acl_save_prefix="$prefix"
8554   prefix="$acl_final_prefix"
8555   acl_save_exec_prefix="$exec_prefix"
8556   exec_prefix="$acl_final_exec_prefix"
8557   eval x=\"$x\"
8558   exec_prefix="$acl_save_exec_prefix"
8559   prefix="$acl_save_prefix"
8560
8561                           if test "X$x" = "X-L$additional_libdir"; then
8562                             haveit=yes
8563                             break
8564                           fi
8565                         done
8566                         if test -z "$haveit"; then
8567                           if test -d "$additional_libdir"; then
8568                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8569                           fi
8570                         fi
8571                       fi
8572                     fi
8573                     ;;
8574                   -R*)
8575                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8576                     if test "$enable_rpath" != no; then
8577                                                                   haveit=
8578                       for x in $rpathdirs; do
8579                         if test "X$x" = "X$dir"; then
8580                           haveit=yes
8581                           break
8582                         fi
8583                       done
8584                       if test -z "$haveit"; then
8585                         rpathdirs="$rpathdirs $dir"
8586                       fi
8587                                                                   haveit=
8588                       for x in $ltrpathdirs; do
8589                         if test "X$x" = "X$dir"; then
8590                           haveit=yes
8591                           break
8592                         fi
8593                       done
8594                       if test -z "$haveit"; then
8595                         ltrpathdirs="$ltrpathdirs $dir"
8596                       fi
8597                     fi
8598                     ;;
8599                   -l*)
8600                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8601                     ;;
8602                   *.la)
8603                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8604                     ;;
8605                   *)
8606                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8607                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8608                     ;;
8609                 esac
8610               done
8611             fi
8612           else
8613                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8614             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8615           fi
8616         fi
8617       fi
8618     done
8619   done
8620   if test "X$rpathdirs" != "X"; then
8621     if test -n "$hardcode_libdir_separator"; then
8622                         alldirs=
8623       for found_dir in $rpathdirs; do
8624         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8625       done
8626             acl_save_libdir="$libdir"
8627       libdir="$alldirs"
8628       eval flag=\"$hardcode_libdir_flag_spec\"
8629       libdir="$acl_save_libdir"
8630       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8631     else
8632             for found_dir in $rpathdirs; do
8633         acl_save_libdir="$libdir"
8634         libdir="$found_dir"
8635         eval flag=\"$hardcode_libdir_flag_spec\"
8636         libdir="$acl_save_libdir"
8637         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8638       done
8639     fi
8640   fi
8641   if test "X$ltrpathdirs" != "X"; then
8642             for found_dir in $ltrpathdirs; do
8643       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8644     done
8645   fi
8646
8647
8648
8649
8650
8651
8652
8653
8654   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8655 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8656 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 $ac_includes_default
8666 typedef ptrdiff_t ac__type_new_;
8667 int
8668 main ()
8669 {
8670 if ((ac__type_new_ *) 0)
8671   return 0;
8672 if (sizeof (ac__type_new_))
8673   return 0;
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (ac_try="$ac_compile"
8680 case "(($ac_try" in
8681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682   *) ac_try_echo=$ac_try;;
8683 esac
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685   (eval "$ac_compile") 2>conftest.er1
8686   ac_status=$?
8687   grep -v '^ *+' conftest.er1 >conftest.err
8688   rm -f conftest.er1
8689   cat conftest.err >&5
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); } && {
8692          test -z "$ac_c_werror_flag" ||
8693          test ! -s conftest.err
8694        } && test -s conftest.$ac_objext; then
8695   ac_cv_type_ptrdiff_t=yes
8696 else
8697   echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700         ac_cv_type_ptrdiff_t=no
8701 fi
8702
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 fi
8705 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8706 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8707 if test $ac_cv_type_ptrdiff_t = yes; then
8708   :
8709 else
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define ptrdiff_t long
8713 _ACEOF
8714
8715
8716 fi
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8729 stdlib.h string.h unistd.h sys/param.h
8730 do
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 fi
8738 ac_res=`eval echo '${'$as_ac_Header'}'`
8739                { echo "$as_me:$LINENO: result: $ac_res" >&5
8740 echo "${ECHO_T}$ac_res" >&6; }
8741 else
8742   # Is the header compilable?
8743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 $ac_includes_default
8752 #include <$ac_header>
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8756 case "(($ac_try" in
8757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758   *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761   (eval "$ac_compile") 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } && {
8768          test -z "$ac_c_werror_flag" ||
8769          test ! -s conftest.err
8770        } && test -s conftest.$ac_objext; then
8771   ac_header_compiler=yes
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776         ac_header_compiler=no
8777 fi
8778
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8781 echo "${ECHO_T}$ac_header_compiler" >&6; }
8782
8783 # Is the header present?
8784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792 #include <$ac_header>
8793 _ACEOF
8794 if { (ac_try="$ac_cpp conftest.$ac_ext"
8795 case "(($ac_try" in
8796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797   *) ac_try_echo=$ac_try;;
8798 esac
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } >/dev/null && {
8807          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8808          test ! -s conftest.err
8809        }; then
8810   ac_header_preproc=yes
8811 else
8812   echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815   ac_header_preproc=no
8816 fi
8817
8818 rm -f conftest.err conftest.$ac_ext
8819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820 echo "${ECHO_T}$ac_header_preproc" >&6; }
8821
8822 # So?  What about this header?
8823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8824   yes:no: )
8825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8829     ac_header_preproc=yes
8830     ;;
8831   no:yes:* )
8832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8834     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8835 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8836     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8838     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8839 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8842     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8844
8845     ;;
8846 esac
8847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   eval "$as_ac_Header=\$ac_header_preproc"
8853 fi
8854 ac_res=`eval echo '${'$as_ac_Header'}'`
8855                { echo "$as_me:$LINENO: result: $ac_res" >&5
8856 echo "${ECHO_T}$ac_res" >&6; }
8857
8858 fi
8859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8860   cat >>confdefs.h <<_ACEOF
8861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862 _ACEOF
8863
8864 fi
8865
8866 done
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8892 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8893 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8894 __fsetlocking
8895 do
8896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8910 #define $ac_func innocuous_$ac_func
8911
8912 /* System header to define __stub macros and hopefully few prototypes,
8913     which can conflict with char $ac_func (); below.
8914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8915     <limits.h> exists even on freestanding compilers.  */
8916
8917 #ifdef __STDC__
8918 # include <limits.h>
8919 #else
8920 # include <assert.h>
8921 #endif
8922
8923 #undef $ac_func
8924
8925 /* Override any GCC internal prototype to avoid an error.
8926    Use char because int might match the return type of a GCC
8927    builtin and then its argument prototype would still apply.  */
8928 #ifdef __cplusplus
8929 extern "C"
8930 #endif
8931 char $ac_func ();
8932 /* The GNU C library defines this for functions which it implements
8933     to always fail with ENOSYS.  Some functions are actually named
8934     something starting with __ and the normal name is an alias.  */
8935 #if defined __stub_$ac_func || defined __stub___$ac_func
8936 choke me
8937 #endif
8938
8939 int
8940 main ()
8941 {
8942 return $ac_func ();
8943   ;
8944   return 0;
8945 }
8946 _ACEOF
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (ac_try="$ac_link"
8949 case "(($ac_try" in
8950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951   *) ac_try_echo=$ac_try;;
8952 esac
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954   (eval "$ac_link") 2>conftest.er1
8955   ac_status=$?
8956   grep -v '^ *+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } && {
8961          test -z "$ac_c_werror_flag" ||
8962          test ! -s conftest.err
8963        } && test -s conftest$ac_exeext &&
8964        $as_test_x conftest$ac_exeext; then
8965   eval "$as_ac_var=yes"
8966 else
8967   echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970         eval "$as_ac_var=no"
8971 fi
8972
8973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8974       conftest$ac_exeext conftest.$ac_ext
8975 fi
8976 ac_res=`eval echo '${'$as_ac_var'}'`
8977                { echo "$as_me:$LINENO: result: $ac_res" >&5
8978 echo "${ECHO_T}$ac_res" >&6; }
8979 if test `eval echo '${'$as_ac_var'}'` = yes; then
8980   cat >>confdefs.h <<_ACEOF
8981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8982 _ACEOF
8983
8984 fi
8985 done
8986
8987
8988
8989   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8990 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
8991 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000 #include <stdio.h>
9001 int
9002 main ()
9003 {
9004
9005 #ifndef _snprintf
9006   char *p = (char *) _snprintf;
9007 #endif
9008
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 rm -f conftest.$ac_objext
9014 if { (ac_try="$ac_compile"
9015 case "(($ac_try" in
9016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017   *) ac_try_echo=$ac_try;;
9018 esac
9019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020   (eval "$ac_compile") 2>conftest.er1
9021   ac_status=$?
9022   grep -v '^ *+' conftest.er1 >conftest.err
9023   rm -f conftest.er1
9024   cat conftest.err >&5
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } && {
9027          test -z "$ac_c_werror_flag" ||
9028          test ! -s conftest.err
9029        } && test -s conftest.$ac_objext; then
9030   ac_cv_have_decl__snprintf=yes
9031 else
9032   echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035         ac_cv_have_decl__snprintf=no
9036 fi
9037
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039 fi
9040 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9041 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9042   if test $ac_cv_have_decl__snprintf = yes; then
9043     gt_value=1
9044   else
9045     gt_value=0
9046   fi
9047
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_DECL__SNPRINTF $gt_value
9050 _ACEOF
9051
9052
9053
9054   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9055 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9056 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059   cat >conftest.$ac_ext <<_ACEOF
9060 /* confdefs.h.  */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h.  */
9065 #include <stdio.h>
9066 int
9067 main ()
9068 {
9069
9070 #ifndef _snwprintf
9071   char *p = (char *) _snwprintf;
9072 #endif
9073
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext
9079 if { (ac_try="$ac_compile"
9080 case "(($ac_try" in
9081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082   *) ac_try_echo=$ac_try;;
9083 esac
9084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085   (eval "$ac_compile") 2>conftest.er1
9086   ac_status=$?
9087   grep -v '^ *+' conftest.er1 >conftest.err
9088   rm -f conftest.er1
9089   cat conftest.err >&5
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } && {
9092          test -z "$ac_c_werror_flag" ||
9093          test ! -s conftest.err
9094        } && test -s conftest.$ac_objext; then
9095   ac_cv_have_decl__snwprintf=yes
9096 else
9097   echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100         ac_cv_have_decl__snwprintf=no
9101 fi
9102
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9106 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9107   if test $ac_cv_have_decl__snwprintf = yes; then
9108     gt_value=1
9109   else
9110     gt_value=0
9111   fi
9112
9113 cat >>confdefs.h <<_ACEOF
9114 #define HAVE_DECL__SNWPRINTF $gt_value
9115 _ACEOF
9116
9117
9118
9119
9120   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9121 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9122 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125   cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h.  */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h.  */
9131 #include <stdio.h>
9132 int
9133 main ()
9134 {
9135
9136 #ifndef feof_unlocked
9137   char *p = (char *) feof_unlocked;
9138 #endif
9139
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 rm -f conftest.$ac_objext
9145 if { (ac_try="$ac_compile"
9146 case "(($ac_try" in
9147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148   *) ac_try_echo=$ac_try;;
9149 esac
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151   (eval "$ac_compile") 2>conftest.er1
9152   ac_status=$?
9153   grep -v '^ *+' conftest.er1 >conftest.err
9154   rm -f conftest.er1
9155   cat conftest.err >&5
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); } && {
9158          test -z "$ac_c_werror_flag" ||
9159          test ! -s conftest.err
9160        } && test -s conftest.$ac_objext; then
9161   ac_cv_have_decl_feof_unlocked=yes
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166         ac_cv_have_decl_feof_unlocked=no
9167 fi
9168
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 fi
9171 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9172 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9173   if test $ac_cv_have_decl_feof_unlocked = yes; then
9174     gt_value=1
9175   else
9176     gt_value=0
9177   fi
9178
9179 cat >>confdefs.h <<_ACEOF
9180 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9181 _ACEOF
9182
9183
9184
9185   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9186 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9187 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9188   echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190   cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h.  */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h.  */
9196 #include <stdio.h>
9197 int
9198 main ()
9199 {
9200
9201 #ifndef fgets_unlocked
9202   char *p = (char *) fgets_unlocked;
9203 #endif
9204
9205   ;
9206   return 0;
9207 }
9208 _ACEOF
9209 rm -f conftest.$ac_objext
9210 if { (ac_try="$ac_compile"
9211 case "(($ac_try" in
9212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213   *) ac_try_echo=$ac_try;;
9214 esac
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216   (eval "$ac_compile") 2>conftest.er1
9217   ac_status=$?
9218   grep -v '^ *+' conftest.er1 >conftest.err
9219   rm -f conftest.er1
9220   cat conftest.err >&5
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); } && {
9223          test -z "$ac_c_werror_flag" ||
9224          test ! -s conftest.err
9225        } && test -s conftest.$ac_objext; then
9226   ac_cv_have_decl_fgets_unlocked=yes
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231         ac_cv_have_decl_fgets_unlocked=no
9232 fi
9233
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9237 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9238   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9239     gt_value=1
9240   else
9241     gt_value=0
9242   fi
9243
9244 cat >>confdefs.h <<_ACEOF
9245 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9246 _ACEOF
9247
9248
9249
9250   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9251 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9252 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261 #include <stdio.h>
9262 int
9263 main ()
9264 {
9265
9266 #ifndef getc_unlocked
9267   char *p = (char *) getc_unlocked;
9268 #endif
9269
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 rm -f conftest.$ac_objext
9275 if { (ac_try="$ac_compile"
9276 case "(($ac_try" in
9277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278   *) ac_try_echo=$ac_try;;
9279 esac
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281   (eval "$ac_compile") 2>conftest.er1
9282   ac_status=$?
9283   grep -v '^ *+' conftest.er1 >conftest.err
9284   rm -f conftest.er1
9285   cat conftest.err >&5
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); } && {
9288          test -z "$ac_c_werror_flag" ||
9289          test ! -s conftest.err
9290        } && test -s conftest.$ac_objext; then
9291   ac_cv_have_decl_getc_unlocked=yes
9292 else
9293   echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296         ac_cv_have_decl_getc_unlocked=no
9297 fi
9298
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 fi
9301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9302 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9303   if test $ac_cv_have_decl_getc_unlocked = yes; then
9304     gt_value=1
9305   else
9306     gt_value=0
9307   fi
9308
9309 cat >>confdefs.h <<_ACEOF
9310 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9311 _ACEOF
9312
9313
9314
9315   case $gt_cv_func_printf_posix in
9316     *yes) HAVE_POSIX_PRINTF=1 ;;
9317     *) HAVE_POSIX_PRINTF=0 ;;
9318   esac
9319
9320   if test "$ac_cv_func_asprintf" = yes; then
9321     HAVE_ASPRINTF=1
9322   else
9323     HAVE_ASPRINTF=0
9324   fi
9325
9326   if test "$ac_cv_func_snprintf" = yes; then
9327     HAVE_SNPRINTF=1
9328   else
9329     HAVE_SNPRINTF=0
9330   fi
9331
9332   if test "$ac_cv_func_wprintf" = yes; then
9333     HAVE_WPRINTF=1
9334   else
9335     HAVE_WPRINTF=0
9336   fi
9337
9338
9339
9340
9341
9342
9343
9344           am_save_CPPFLAGS="$CPPFLAGS"
9345
9346   for element in $INCICONV; do
9347     haveit=
9348     for x in $CPPFLAGS; do
9349
9350   acl_save_prefix="$prefix"
9351   prefix="$acl_final_prefix"
9352   acl_save_exec_prefix="$exec_prefix"
9353   exec_prefix="$acl_final_exec_prefix"
9354   eval x=\"$x\"
9355   exec_prefix="$acl_save_exec_prefix"
9356   prefix="$acl_save_prefix"
9357
9358       if test "X$x" = "X$element"; then
9359         haveit=yes
9360         break
9361       fi
9362     done
9363     if test -z "$haveit"; then
9364       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9365     fi
9366   done
9367
9368
9369   { echo "$as_me:$LINENO: checking for iconv" >&5
9370 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9371 if test "${am_cv_func_iconv+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374
9375     am_cv_func_iconv="no, consider installing GNU libiconv"
9376     am_cv_lib_iconv=no
9377     cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <stdlib.h>
9384 #include <iconv.h>
9385 int
9386 main ()
9387 {
9388 iconv_t cd = iconv_open("","");
9389        iconv(cd,NULL,NULL,NULL,NULL);
9390        iconv_close(cd);
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399   *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402   (eval "$ac_link") 2>conftest.er1
9403   ac_status=$?
9404   grep -v '^ *+' conftest.er1 >conftest.err
9405   rm -f conftest.er1
9406   cat conftest.err >&5
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } && {
9409          test -z "$ac_c_werror_flag" ||
9410          test ! -s conftest.err
9411        } && test -s conftest$ac_exeext &&
9412        $as_test_x conftest$ac_exeext; then
9413   am_cv_func_iconv=yes
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418
9419 fi
9420
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422       conftest$ac_exeext conftest.$ac_ext
9423     if test "$am_cv_func_iconv" != yes; then
9424       am_save_LIBS="$LIBS"
9425       LIBS="$LIBS $LIBICONV"
9426       cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432 #include <stdlib.h>
9433 #include <iconv.h>
9434 int
9435 main ()
9436 {
9437 iconv_t cd = iconv_open("","");
9438          iconv(cd,NULL,NULL,NULL,NULL);
9439          iconv_close(cd);
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9446 case "(($ac_try" in
9447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448   *) ac_try_echo=$ac_try;;
9449 esac
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451   (eval "$ac_link") 2>conftest.er1
9452   ac_status=$?
9453   grep -v '^ *+' conftest.er1 >conftest.err
9454   rm -f conftest.er1
9455   cat conftest.err >&5
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } && {
9458          test -z "$ac_c_werror_flag" ||
9459          test ! -s conftest.err
9460        } && test -s conftest$ac_exeext &&
9461        $as_test_x conftest$ac_exeext; then
9462   am_cv_lib_iconv=yes
9463         am_cv_func_iconv=yes
9464 else
9465   echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9467
9468
9469 fi
9470
9471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9472       conftest$ac_exeext conftest.$ac_ext
9473       LIBS="$am_save_LIBS"
9474     fi
9475
9476 fi
9477 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9478 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9479   if test "$am_cv_func_iconv" = yes; then
9480
9481 cat >>confdefs.h <<\_ACEOF
9482 #define HAVE_ICONV 1
9483 _ACEOF
9484
9485   fi
9486   if test "$am_cv_lib_iconv" = yes; then
9487     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9488 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9489     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9490 echo "${ECHO_T}$LIBICONV" >&6; }
9491   else
9492             CPPFLAGS="$am_save_CPPFLAGS"
9493     LIBICONV=
9494     LTLIBICONV=
9495   fi
9496
9497
9498
9499   if test "$am_cv_func_iconv" = yes; then
9500     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9501 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9502     if test "${am_cv_proto_iconv+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505
9506       cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512
9513 #include <stdlib.h>
9514 #include <iconv.h>
9515 extern
9516 #ifdef __cplusplus
9517 "C"
9518 #endif
9519 #if defined(__STDC__) || defined(__cplusplus)
9520 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9521 #else
9522 size_t iconv();
9523 #endif
9524
9525 int
9526 main ()
9527 {
9528
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (ac_try="$ac_compile"
9535 case "(($ac_try" in
9536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537   *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540   (eval "$ac_compile") 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } && {
9547          test -z "$ac_c_werror_flag" ||
9548          test ! -s conftest.err
9549        } && test -s conftest.$ac_objext; then
9550   am_cv_proto_iconv_arg1=""
9551 else
9552   echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555         am_cv_proto_iconv_arg1="const"
9556 fi
9557
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559       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);"
9560 fi
9561
9562     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9563     { echo "$as_me:$LINENO: result: ${ac_t:-
9564          }$am_cv_proto_iconv" >&5
9565 echo "${ECHO_T}${ac_t:-
9566          }$am_cv_proto_iconv" >&6; }
9567
9568 cat >>confdefs.h <<_ACEOF
9569 #define ICONV_CONST $am_cv_proto_iconv_arg1
9570 _ACEOF
9571
9572   fi
9573
9574
9575   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9576 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9577 if test "${am_cv_langinfo_codeset+set}" = set; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h.  */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h.  */
9586 #include <langinfo.h>
9587 int
9588 main ()
9589 {
9590 char* cs = nl_langinfo(CODESET);
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9597 case "(($ac_try" in
9598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599   *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602   (eval "$ac_link") 2>conftest.er1
9603   ac_status=$?
9604   grep -v '^ *+' conftest.er1 >conftest.err
9605   rm -f conftest.er1
9606   cat conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } && {
9609          test -z "$ac_c_werror_flag" ||
9610          test ! -s conftest.err
9611        } && test -s conftest$ac_exeext &&
9612        $as_test_x conftest$ac_exeext; then
9613   am_cv_langinfo_codeset=yes
9614 else
9615   echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618         am_cv_langinfo_codeset=no
9619 fi
9620
9621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9622       conftest$ac_exeext conftest.$ac_ext
9623
9624 fi
9625 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9626 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9627   if test $am_cv_langinfo_codeset = yes; then
9628
9629 cat >>confdefs.h <<\_ACEOF
9630 #define HAVE_LANGINFO_CODESET 1
9631 _ACEOF
9632
9633   fi
9634
9635   if test $ac_cv_header_locale_h = yes; then
9636
9637   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9638 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9639 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648 #include <locale.h>
9649 int
9650 main ()
9651 {
9652 return LC_MESSAGES
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (ac_try="$ac_link"
9659 case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_link") 2>conftest.er1
9665   ac_status=$?
9666   grep -v '^ *+' conftest.er1 >conftest.err
9667   rm -f conftest.er1
9668   cat conftest.err >&5
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); } && {
9671          test -z "$ac_c_werror_flag" ||
9672          test ! -s conftest.err
9673        } && test -s conftest$ac_exeext &&
9674        $as_test_x conftest$ac_exeext; then
9675   am_cv_val_LC_MESSAGES=yes
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680         am_cv_val_LC_MESSAGES=no
9681 fi
9682
9683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684       conftest$ac_exeext conftest.$ac_ext
9685 fi
9686 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9687 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9688   if test $am_cv_val_LC_MESSAGES = yes; then
9689
9690 cat >>confdefs.h <<\_ACEOF
9691 #define HAVE_LC_MESSAGES 1
9692 _ACEOF
9693
9694   fi
9695
9696   fi
9697
9698                       for ac_prog in bison
9699 do
9700   # Extract the first word of "$ac_prog", so it can be a program name with args.
9701 set dummy $ac_prog; ac_word=$2
9702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9704 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707   if test -n "$INTLBISON"; then
9708   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9709 else
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9712 do
9713   IFS=$as_save_IFS
9714   test -z "$as_dir" && as_dir=.
9715   for ac_exec_ext in '' $ac_executable_extensions; do
9716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717     ac_cv_prog_INTLBISON="$ac_prog"
9718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719     break 2
9720   fi
9721 done
9722 done
9723 IFS=$as_save_IFS
9724
9725 fi
9726 fi
9727 INTLBISON=$ac_cv_prog_INTLBISON
9728 if test -n "$INTLBISON"; then
9729   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9730 echo "${ECHO_T}$INTLBISON" >&6; }
9731 else
9732   { echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6; }
9734 fi
9735
9736
9737   test -n "$INTLBISON" && break
9738 done
9739
9740   if test -z "$INTLBISON"; then
9741     ac_verc_fail=yes
9742   else
9743         { echo "$as_me:$LINENO: checking version of bison" >&5
9744 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9745     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9746     case $ac_prog_version in
9747       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9748       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9749          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9750       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9751     esac
9752     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9753 echo "${ECHO_T}$ac_prog_version" >&6; }
9754   fi
9755   if test $ac_verc_fail = yes; then
9756     INTLBISON=:
9757   fi
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9775 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9776     # Check whether --enable-nls was given.
9777 if test "${enable_nls+set}" = set; then
9778   enableval=$enable_nls; USE_NLS=$enableval
9779 else
9780   USE_NLS=yes
9781 fi
9782
9783   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9784 echo "${ECHO_T}$USE_NLS" >&6; }
9785
9786
9787
9788
9789     BUILD_INCLUDED_LIBINTL=no
9790     USE_INCLUDED_LIBINTL=no
9791
9792   LIBINTL=
9793   LTLIBINTL=
9794   POSUB=
9795
9796     if test "$USE_NLS" = "yes"; then
9797     gt_use_preinstalled_gnugettext=no
9798
9799       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9800 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9801
9802 # Check whether --with-included-gettext was given.
9803 if test "${with_included_gettext+set}" = set; then
9804   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9805 else
9806   nls_cv_force_use_gnu_gettext=no
9807 fi
9808
9809       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9810 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9811
9812       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9813       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9814
9815
9816
9817
9818
9819
9820         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9821 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9822 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831 #include <libintl.h>
9832 extern int _nl_msg_cat_cntr;
9833 extern int *_nl_domain_bindings;
9834 int
9835 main ()
9836 {
9837 bindtextdomain ("", "");
9838 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_link") 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } && {
9857          test -z "$ac_c_werror_flag" ||
9858          test ! -s conftest.err
9859        } && test -s conftest$ac_exeext &&
9860        $as_test_x conftest$ac_exeext; then
9861   gt_cv_func_gnugettext1_libc=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866         gt_cv_func_gnugettext1_libc=no
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9870       conftest$ac_exeext conftest.$ac_ext
9871 fi
9872 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9873 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9874
9875         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9876
9877
9878
9879     use_additional=yes
9880
9881   acl_save_prefix="$prefix"
9882   prefix="$acl_final_prefix"
9883   acl_save_exec_prefix="$exec_prefix"
9884   exec_prefix="$acl_final_exec_prefix"
9885
9886     eval additional_includedir=\"$includedir\"
9887     eval additional_libdir=\"$libdir\"
9888
9889   exec_prefix="$acl_save_exec_prefix"
9890   prefix="$acl_save_prefix"
9891
9892
9893 # Check whether --with-libintl-prefix was given.
9894 if test "${with_libintl_prefix+set}" = set; then
9895   withval=$with_libintl_prefix;
9896     if test "X$withval" = "Xno"; then
9897       use_additional=no
9898     else
9899       if test "X$withval" = "X"; then
9900
9901   acl_save_prefix="$prefix"
9902   prefix="$acl_final_prefix"
9903   acl_save_exec_prefix="$exec_prefix"
9904   exec_prefix="$acl_final_exec_prefix"
9905
9906           eval additional_includedir=\"$includedir\"
9907           eval additional_libdir=\"$libdir\"
9908
9909   exec_prefix="$acl_save_exec_prefix"
9910   prefix="$acl_save_prefix"
9911
9912       else
9913         additional_includedir="$withval/include"
9914         additional_libdir="$withval/lib"
9915       fi
9916     fi
9917
9918 fi
9919
9920       LIBINTL=
9921   LTLIBINTL=
9922   INCINTL=
9923   rpathdirs=
9924   ltrpathdirs=
9925   names_already_handled=
9926   names_next_round='intl '
9927   while test -n "$names_next_round"; do
9928     names_this_round="$names_next_round"
9929     names_next_round=
9930     for name in $names_this_round; do
9931       already_handled=
9932       for n in $names_already_handled; do
9933         if test "$n" = "$name"; then
9934           already_handled=yes
9935           break
9936         fi
9937       done
9938       if test -z "$already_handled"; then
9939         names_already_handled="$names_already_handled $name"
9940                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9941         eval value=\"\$HAVE_LIB$uppername\"
9942         if test -n "$value"; then
9943           if test "$value" = yes; then
9944             eval value=\"\$LIB$uppername\"
9945             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9946             eval value=\"\$LTLIB$uppername\"
9947             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9948           else
9949                                     :
9950           fi
9951         else
9952                               found_dir=
9953           found_la=
9954           found_so=
9955           found_a=
9956           if test $use_additional = yes; then
9957             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9958               found_dir="$additional_libdir"
9959               found_so="$additional_libdir/lib$name.$shlibext"
9960               if test -f "$additional_libdir/lib$name.la"; then
9961                 found_la="$additional_libdir/lib$name.la"
9962               fi
9963             else
9964               if test -f "$additional_libdir/lib$name.$libext"; then
9965                 found_dir="$additional_libdir"
9966                 found_a="$additional_libdir/lib$name.$libext"
9967                 if test -f "$additional_libdir/lib$name.la"; then
9968                   found_la="$additional_libdir/lib$name.la"
9969                 fi
9970               fi
9971             fi
9972           fi
9973           if test "X$found_dir" = "X"; then
9974             for x in $LDFLAGS $LTLIBINTL; do
9975
9976   acl_save_prefix="$prefix"
9977   prefix="$acl_final_prefix"
9978   acl_save_exec_prefix="$exec_prefix"
9979   exec_prefix="$acl_final_exec_prefix"
9980   eval x=\"$x\"
9981   exec_prefix="$acl_save_exec_prefix"
9982   prefix="$acl_save_prefix"
9983
9984               case "$x" in
9985                 -L*)
9986                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9987                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9988                     found_dir="$dir"
9989                     found_so="$dir/lib$name.$shlibext"
9990                     if test -f "$dir/lib$name.la"; then
9991                       found_la="$dir/lib$name.la"
9992                     fi
9993                   else
9994                     if test -f "$dir/lib$name.$libext"; then
9995                       found_dir="$dir"
9996                       found_a="$dir/lib$name.$libext"
9997                       if test -f "$dir/lib$name.la"; then
9998                         found_la="$dir/lib$name.la"
9999                       fi
10000                     fi
10001                   fi
10002                   ;;
10003               esac
10004               if test "X$found_dir" != "X"; then
10005                 break
10006               fi
10007             done
10008           fi
10009           if test "X$found_dir" != "X"; then
10010                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10011             if test "X$found_so" != "X"; then
10012                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10013                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10014               else
10015                                                                                 haveit=
10016                 for x in $ltrpathdirs; do
10017                   if test "X$x" = "X$found_dir"; then
10018                     haveit=yes
10019                     break
10020                   fi
10021                 done
10022                 if test -z "$haveit"; then
10023                   ltrpathdirs="$ltrpathdirs $found_dir"
10024                 fi
10025                                 if test "$hardcode_direct" = yes; then
10026                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10027                 else
10028                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10029                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10030                                                             haveit=
10031                     for x in $rpathdirs; do
10032                       if test "X$x" = "X$found_dir"; then
10033                         haveit=yes
10034                         break
10035                       fi
10036                     done
10037                     if test -z "$haveit"; then
10038                       rpathdirs="$rpathdirs $found_dir"
10039                     fi
10040                   else
10041                                                                                 haveit=
10042                     for x in $LDFLAGS $LIBINTL; do
10043
10044   acl_save_prefix="$prefix"
10045   prefix="$acl_final_prefix"
10046   acl_save_exec_prefix="$exec_prefix"
10047   exec_prefix="$acl_final_exec_prefix"
10048   eval x=\"$x\"
10049   exec_prefix="$acl_save_exec_prefix"
10050   prefix="$acl_save_prefix"
10051
10052                       if test "X$x" = "X-L$found_dir"; then
10053                         haveit=yes
10054                         break
10055                       fi
10056                     done
10057                     if test -z "$haveit"; then
10058                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10059                     fi
10060                     if test "$hardcode_minus_L" != no; then
10061                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10062                     else
10063                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10064                     fi
10065                   fi
10066                 fi
10067               fi
10068             else
10069               if test "X$found_a" != "X"; then
10070                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10071               else
10072                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10073               fi
10074             fi
10075                         additional_includedir=
10076             case "$found_dir" in
10077               */lib | */lib/)
10078                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10079                 additional_includedir="$basedir/include"
10080                 ;;
10081             esac
10082             if test "X$additional_includedir" != "X"; then
10083                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10084                 haveit=
10085                 if test "X$additional_includedir" = "X/usr/local/include"; then
10086                   if test -n "$GCC"; then
10087                     case $host_os in
10088                       linux*) haveit=yes;;
10089                     esac
10090                   fi
10091                 fi
10092                 if test -z "$haveit"; then
10093                   for x in $CPPFLAGS $INCINTL; do
10094
10095   acl_save_prefix="$prefix"
10096   prefix="$acl_final_prefix"
10097   acl_save_exec_prefix="$exec_prefix"
10098   exec_prefix="$acl_final_exec_prefix"
10099   eval x=\"$x\"
10100   exec_prefix="$acl_save_exec_prefix"
10101   prefix="$acl_save_prefix"
10102
10103                     if test "X$x" = "X-I$additional_includedir"; then
10104                       haveit=yes
10105                       break
10106                     fi
10107                   done
10108                   if test -z "$haveit"; then
10109                     if test -d "$additional_includedir"; then
10110                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10111                     fi
10112                   fi
10113                 fi
10114               fi
10115             fi
10116                         if test -n "$found_la"; then
10117                                                         save_libdir="$libdir"
10118               case "$found_la" in
10119                 */* | *\\*) . "$found_la" ;;
10120                 *) . "./$found_la" ;;
10121               esac
10122               libdir="$save_libdir"
10123                             for dep in $dependency_libs; do
10124                 case "$dep" in
10125                   -L*)
10126                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10127                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10128                       haveit=
10129                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10130                         if test -n "$GCC"; then
10131                           case $host_os in
10132                             linux*) haveit=yes;;
10133                           esac
10134                         fi
10135                       fi
10136                       if test -z "$haveit"; then
10137                         haveit=
10138                         for x in $LDFLAGS $LIBINTL; do
10139
10140   acl_save_prefix="$prefix"
10141   prefix="$acl_final_prefix"
10142   acl_save_exec_prefix="$exec_prefix"
10143   exec_prefix="$acl_final_exec_prefix"
10144   eval x=\"$x\"
10145   exec_prefix="$acl_save_exec_prefix"
10146   prefix="$acl_save_prefix"
10147
10148                           if test "X$x" = "X-L$additional_libdir"; then
10149                             haveit=yes
10150                             break
10151                           fi
10152                         done
10153                         if test -z "$haveit"; then
10154                           if test -d "$additional_libdir"; then
10155                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10156                           fi
10157                         fi
10158                         haveit=
10159                         for x in $LDFLAGS $LTLIBINTL; do
10160
10161   acl_save_prefix="$prefix"
10162   prefix="$acl_final_prefix"
10163   acl_save_exec_prefix="$exec_prefix"
10164   exec_prefix="$acl_final_exec_prefix"
10165   eval x=\"$x\"
10166   exec_prefix="$acl_save_exec_prefix"
10167   prefix="$acl_save_prefix"
10168
10169                           if test "X$x" = "X-L$additional_libdir"; then
10170                             haveit=yes
10171                             break
10172                           fi
10173                         done
10174                         if test -z "$haveit"; then
10175                           if test -d "$additional_libdir"; then
10176                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10177                           fi
10178                         fi
10179                       fi
10180                     fi
10181                     ;;
10182                   -R*)
10183                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10184                     if test "$enable_rpath" != no; then
10185                                                                   haveit=
10186                       for x in $rpathdirs; do
10187                         if test "X$x" = "X$dir"; then
10188                           haveit=yes
10189                           break
10190                         fi
10191                       done
10192                       if test -z "$haveit"; then
10193                         rpathdirs="$rpathdirs $dir"
10194                       fi
10195                                                                   haveit=
10196                       for x in $ltrpathdirs; do
10197                         if test "X$x" = "X$dir"; then
10198                           haveit=yes
10199                           break
10200                         fi
10201                       done
10202                       if test -z "$haveit"; then
10203                         ltrpathdirs="$ltrpathdirs $dir"
10204                       fi
10205                     fi
10206                     ;;
10207                   -l*)
10208                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10209                     ;;
10210                   *.la)
10211                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10212                     ;;
10213                   *)
10214                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10215                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10216                     ;;
10217                 esac
10218               done
10219             fi
10220           else
10221                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10222             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10223           fi
10224         fi
10225       fi
10226     done
10227   done
10228   if test "X$rpathdirs" != "X"; then
10229     if test -n "$hardcode_libdir_separator"; then
10230                         alldirs=
10231       for found_dir in $rpathdirs; do
10232         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10233       done
10234             acl_save_libdir="$libdir"
10235       libdir="$alldirs"
10236       eval flag=\"$hardcode_libdir_flag_spec\"
10237       libdir="$acl_save_libdir"
10238       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10239     else
10240             for found_dir in $rpathdirs; do
10241         acl_save_libdir="$libdir"
10242         libdir="$found_dir"
10243         eval flag=\"$hardcode_libdir_flag_spec\"
10244         libdir="$acl_save_libdir"
10245         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10246       done
10247     fi
10248   fi
10249   if test "X$ltrpathdirs" != "X"; then
10250             for found_dir in $ltrpathdirs; do
10251       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10252     done
10253   fi
10254
10255           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10256 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10257 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10258   echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260   gt_save_CPPFLAGS="$CPPFLAGS"
10261             CPPFLAGS="$CPPFLAGS $INCINTL"
10262             gt_save_LIBS="$LIBS"
10263             LIBS="$LIBS $LIBINTL"
10264                         cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h.  */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h.  */
10270 #include <libintl.h>
10271 extern int _nl_msg_cat_cntr;
10272 extern
10273 #ifdef __cplusplus
10274 "C"
10275 #endif
10276 const char *_nl_expand_alias ();
10277 int
10278 main ()
10279 {
10280 bindtextdomain ("", "");
10281 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10282   ;
10283   return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290   *) ac_try_echo=$ac_try;;
10291 esac
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293   (eval "$ac_link") 2>conftest.er1
10294   ac_status=$?
10295   grep -v '^ *+' conftest.er1 >conftest.err
10296   rm -f conftest.er1
10297   cat conftest.err >&5
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); } && {
10300          test -z "$ac_c_werror_flag" ||
10301          test ! -s conftest.err
10302        } && test -s conftest$ac_exeext &&
10303        $as_test_x conftest$ac_exeext; then
10304   gt_cv_func_gnugettext1_libintl=yes
10305 else
10306   echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309         gt_cv_func_gnugettext1_libintl=no
10310 fi
10311
10312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10313       conftest$ac_exeext conftest.$ac_ext
10314                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10315               LIBS="$LIBS $LIBICONV"
10316               cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h.  */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h.  */
10322 #include <libintl.h>
10323 extern int _nl_msg_cat_cntr;
10324 extern
10325 #ifdef __cplusplus
10326 "C"
10327 #endif
10328 const char *_nl_expand_alias ();
10329 int
10330 main ()
10331 {
10332 bindtextdomain ("", "");
10333 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10334   ;
10335   return 0;
10336 }
10337 _ACEOF
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (ac_try="$ac_link"
10340 case "(($ac_try" in
10341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342   *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345   (eval "$ac_link") 2>conftest.er1
10346   ac_status=$?
10347   grep -v '^ *+' conftest.er1 >conftest.err
10348   rm -f conftest.er1
10349   cat conftest.err >&5
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } && {
10352          test -z "$ac_c_werror_flag" ||
10353          test ! -s conftest.err
10354        } && test -s conftest$ac_exeext &&
10355        $as_test_x conftest$ac_exeext; then
10356   LIBINTL="$LIBINTL $LIBICONV"
10357                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10358                 gt_cv_func_gnugettext1_libintl=yes
10359
10360 else
10361   echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10363
10364
10365 fi
10366
10367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10368       conftest$ac_exeext conftest.$ac_ext
10369             fi
10370             CPPFLAGS="$gt_save_CPPFLAGS"
10371             LIBS="$gt_save_LIBS"
10372 fi
10373 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10374 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10375         fi
10376
10377                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10378            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10379                 && test "$PACKAGE" != gettext-runtime \
10380                 && test "$PACKAGE" != gettext-tools; }; then
10381           gt_use_preinstalled_gnugettext=yes
10382         else
10383                     LIBINTL=
10384           LTLIBINTL=
10385           INCINTL=
10386         fi
10387
10388
10389         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10390                               nls_cv_use_gnu_gettext=yes
10391         fi
10392       fi
10393
10394       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10395                 BUILD_INCLUDED_LIBINTL=yes
10396         USE_INCLUDED_LIBINTL=yes
10397         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10398         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10399         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10400       fi
10401
10402       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10403          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10404                 CATOBJEXT=.gmo
10405       fi
10406
10407
10408     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10409        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10410
10411 cat >>confdefs.h <<\_ACEOF
10412 #define ENABLE_NLS 1
10413 _ACEOF
10414
10415     else
10416       USE_NLS=no
10417     fi
10418   fi
10419
10420   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10421 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10422   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10423 echo "${ECHO_T}$USE_NLS" >&6; }
10424   if test "$USE_NLS" = "yes"; then
10425     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10426 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10427     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10428       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10429         gt_source="external libintl"
10430       else
10431         gt_source="libc"
10432       fi
10433     else
10434       gt_source="included intl directory"
10435     fi
10436     { echo "$as_me:$LINENO: result: $gt_source" >&5
10437 echo "${ECHO_T}$gt_source" >&6; }
10438   fi
10439
10440   if test "$USE_NLS" = "yes"; then
10441
10442     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10443       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10444         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10445 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10446         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10447 echo "${ECHO_T}$LIBINTL" >&6; }
10448
10449   for element in $INCINTL; do
10450     haveit=
10451     for x in $CPPFLAGS; do
10452
10453   acl_save_prefix="$prefix"
10454   prefix="$acl_final_prefix"
10455   acl_save_exec_prefix="$exec_prefix"
10456   exec_prefix="$acl_final_exec_prefix"
10457   eval x=\"$x\"
10458   exec_prefix="$acl_save_exec_prefix"
10459   prefix="$acl_save_prefix"
10460
10461       if test "X$x" = "X$element"; then
10462         haveit=yes
10463         break
10464       fi
10465     done
10466     if test -z "$haveit"; then
10467       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10468     fi
10469   done
10470
10471       fi
10472
10473
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_GETTEXT 1
10476 _ACEOF
10477
10478
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_DCGETTEXT 1
10481 _ACEOF
10482
10483     fi
10484
10485         POSUB=po
10486   fi
10487
10488
10489             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10490       BUILD_INCLUDED_LIBINTL=yes
10491     fi
10492
10493
10494
10495
10496
10497         nls_cv_header_intl=
10498     nls_cv_header_libgt=
10499
10500         DATADIRNAME=share
10501
10502
10503         INSTOBJEXT=.mo
10504
10505
10506         GENCAT=gencat
10507
10508
10509         if test "$USE_INCLUDED_LIBINTL" = yes; then
10510       INTLOBJS="\$(GETTOBJS)"
10511     fi
10512
10513
10514         INTL_LIBTOOL_SUFFIX_PREFIX=
10515
10516
10517
10518     INTLLIBS="$LIBINTL"
10519
10520
10521
10522
10523
10524
10525
10526 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10527 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10528 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10529 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10530   echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532   cat >conftest.make <<\_ACEOF
10533 SHELL = /bin/sh
10534 all:
10535         @echo '@@@%%%=$(MAKE)=@@@%%%'
10536 _ACEOF
10537 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10538 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10539   *@@@%%%=?*=@@@%%%*)
10540     eval ac_cv_prog_make_${ac_make}_set=yes;;
10541   *)
10542     eval ac_cv_prog_make_${ac_make}_set=no;;
10543 esac
10544 rm -f conftest.make
10545 fi
10546 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10547   { echo "$as_me:$LINENO: result: yes" >&5
10548 echo "${ECHO_T}yes" >&6; }
10549   SET_MAKE=
10550 else
10551   { echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6; }
10553   SET_MAKE="MAKE=${MAKE-make}"
10554 fi
10555
10556 # Extract the first word of "ln", so it can be a program name with args.
10557 set dummy ln; ac_word=$2
10558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10560 if test "${ac_cv_path_LN+set}" = set; then
10561   echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563   case $LN in
10564   [\\/]* | ?:[\\/]*)
10565   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10566   ;;
10567   *)
10568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10570 do
10571   IFS=$as_save_IFS
10572   test -z "$as_dir" && as_dir=.
10573   for ac_exec_ext in '' $ac_executable_extensions; do
10574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10577     break 2
10578   fi
10579 done
10580 done
10581 IFS=$as_save_IFS
10582
10583   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10584   ;;
10585 esac
10586 fi
10587 LN=$ac_cv_path_LN
10588 if test -n "$LN"; then
10589   { echo "$as_me:$LINENO: result: $LN" >&5
10590 echo "${ECHO_T}$LN" >&6; }
10591 else
10592   { echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6; }
10594 fi
10595
10596
10597 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10598 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10599 LN_S=$as_ln_s
10600 if test "$LN_S" = "ln -s"; then
10601   { echo "$as_me:$LINENO: result: yes" >&5
10602 echo "${ECHO_T}yes" >&6; }
10603 else
10604   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10605 echo "${ECHO_T}no, using $LN_S" >&6; }
10606 fi
10607
10608 # Extract the first word of "mv", so it can be a program name with args.
10609 set dummy mv; ac_word=$2
10610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10612 if test "${ac_cv_path_MV+set}" = set; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615   case $MV in
10616   [\\/]* | ?:[\\/]*)
10617   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10618   ;;
10619   *)
10620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10622 do
10623   IFS=$as_save_IFS
10624   test -z "$as_dir" && as_dir=.
10625   for ac_exec_ext in '' $ac_executable_extensions; do
10626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10627     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10629     break 2
10630   fi
10631 done
10632 done
10633 IFS=$as_save_IFS
10634
10635   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10636   ;;
10637 esac
10638 fi
10639 MV=$ac_cv_path_MV
10640 if test -n "$MV"; then
10641   { echo "$as_me:$LINENO: result: $MV" >&5
10642 echo "${ECHO_T}$MV" >&6; }
10643 else
10644   { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10646 fi
10647
10648
10649 # Extract the first word of "cp", so it can be a program name with args.
10650 set dummy cp; ac_word=$2
10651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10653 if test "${ac_cv_path_CP+set}" = set; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   case $CP in
10657   [\\/]* | ?:[\\/]*)
10658   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10659   ;;
10660   *)
10661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10663 do
10664   IFS=$as_save_IFS
10665   test -z "$as_dir" && as_dir=.
10666   for ac_exec_ext in '' $ac_executable_extensions; do
10667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10668     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10670     break 2
10671   fi
10672 done
10673 done
10674 IFS=$as_save_IFS
10675
10676   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10677   ;;
10678 esac
10679 fi
10680 CP=$ac_cv_path_CP
10681 if test -n "$CP"; then
10682   { echo "$as_me:$LINENO: result: $CP" >&5
10683 echo "${ECHO_T}$CP" >&6; }
10684 else
10685   { echo "$as_me:$LINENO: result: no" >&5
10686 echo "${ECHO_T}no" >&6; }
10687 fi
10688
10689
10690 # Extract the first word of "rm", so it can be a program name with args.
10691 set dummy rm; ac_word=$2
10692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10694 if test "${ac_cv_path_RM+set}" = set; then
10695   echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697   case $RM in
10698   [\\/]* | ?:[\\/]*)
10699   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10700   ;;
10701   *)
10702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10704 do
10705   IFS=$as_save_IFS
10706   test -z "$as_dir" && as_dir=.
10707   for ac_exec_ext in '' $ac_executable_extensions; do
10708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10711     break 2
10712   fi
10713 done
10714 done
10715 IFS=$as_save_IFS
10716
10717   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10718   ;;
10719 esac
10720 fi
10721 RM=$ac_cv_path_RM
10722 if test -n "$RM"; then
10723   { echo "$as_me:$LINENO: result: $RM" >&5
10724 echo "${ECHO_T}$RM" >&6; }
10725 else
10726   { echo "$as_me:$LINENO: result: no" >&5
10727 echo "${ECHO_T}no" >&6; }
10728 fi
10729
10730
10731 # Extract the first word of "chmod", so it can be a program name with args.
10732 set dummy chmod; ac_word=$2
10733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10735 if test "${ac_cv_path_CHMOD+set}" = set; then
10736   echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738   case $CHMOD in
10739   [\\/]* | ?:[\\/]*)
10740   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10741   ;;
10742   *)
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_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10751     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   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10759   ;;
10760 esac
10761 fi
10762 CHMOD=$ac_cv_path_CHMOD
10763 if test -n "$CHMOD"; then
10764   { echo "$as_me:$LINENO: result: $CHMOD" >&5
10765 echo "${ECHO_T}$CHMOD" >&6; }
10766 else
10767   { echo "$as_me:$LINENO: result: no" >&5
10768 echo "${ECHO_T}no" >&6; }
10769 fi
10770
10771
10772 for ac_prog in gawk mawk nawk awk
10773 do
10774   # Extract the first word of "$ac_prog", so it can be a program name with args.
10775 set dummy $ac_prog; ac_word=$2
10776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10778 if test "${ac_cv_prog_AWK+set}" = set; then
10779   echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781   if test -n "$AWK"; then
10782   ac_cv_prog_AWK="$AWK" # Let the user override the test.
10783 else
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10786 do
10787   IFS=$as_save_IFS
10788   test -z "$as_dir" && as_dir=.
10789   for ac_exec_ext in '' $ac_executable_extensions; do
10790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10791     ac_cv_prog_AWK="$ac_prog"
10792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10793     break 2
10794   fi
10795 done
10796 done
10797 IFS=$as_save_IFS
10798
10799 fi
10800 fi
10801 AWK=$ac_cv_prog_AWK
10802 if test -n "$AWK"; then
10803   { echo "$as_me:$LINENO: result: $AWK" >&5
10804 echo "${ECHO_T}$AWK" >&6; }
10805 else
10806   { echo "$as_me:$LINENO: result: no" >&5
10807 echo "${ECHO_T}no" >&6; }
10808 fi
10809
10810
10811   test -n "$AWK" && break
10812 done
10813
10814 { echo "$as_me:$LINENO: checking for egrep" >&5
10815 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10816 if test "${ac_cv_path_EGREP+set}" = set; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10820    then ac_cv_path_EGREP="$GREP -E"
10821    else
10822      # Extract the first word of "egrep" to use in msg output
10823 if test -z "$EGREP"; then
10824 set dummy egrep; ac_prog_name=$2
10825 if test "${ac_cv_path_EGREP+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   ac_path_EGREP_found=false
10829 # Loop through the user's path and test for each of PROGNAME-LIST
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10832 do
10833   IFS=$as_save_IFS
10834   test -z "$as_dir" && as_dir=.
10835   for ac_prog in egrep; do
10836   for ac_exec_ext in '' $ac_executable_extensions; do
10837     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10838     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10839     # Check for GNU ac_path_EGREP and select it if it is found.
10840   # Check for GNU $ac_path_EGREP
10841 case `"$ac_path_EGREP" --version 2>&1` in
10842 *GNU*)
10843   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10844 *)
10845   ac_count=0
10846   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10847   while :
10848   do
10849     cat "conftest.in" "conftest.in" >"conftest.tmp"
10850     mv "conftest.tmp" "conftest.in"
10851     cp "conftest.in" "conftest.nl"
10852     echo 'EGREP' >> "conftest.nl"
10853     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10854     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10855     ac_count=`expr $ac_count + 1`
10856     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10857       # Best one so far, save it but keep looking for a better one
10858       ac_cv_path_EGREP="$ac_path_EGREP"
10859       ac_path_EGREP_max=$ac_count
10860     fi
10861     # 10*(2^10) chars as input seems more than enough
10862     test $ac_count -gt 10 && break
10863   done
10864   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10865 esac
10866
10867
10868     $ac_path_EGREP_found && break 3
10869   done
10870 done
10871
10872 done
10873 IFS=$as_save_IFS
10874
10875
10876 fi
10877
10878 EGREP="$ac_cv_path_EGREP"
10879 if test -z "$EGREP"; then
10880   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10881 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10882    { (exit 1); exit 1; }; }
10883 fi
10884
10885 else
10886   ac_cv_path_EGREP=$EGREP
10887 fi
10888
10889
10890    fi
10891 fi
10892 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10893 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
10894  EGREP="$ac_cv_path_EGREP"
10895
10896
10897 # Extract the first word of "sed", so it can be a program name with args.
10898 set dummy sed; ac_word=$2
10899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10901 if test "${ac_cv_path_SED+set}" = set; then
10902   echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904   case $SED in
10905   [\\/]* | ?:[\\/]*)
10906   ac_cv_path_SED="$SED" # Let the user override the test with a path.
10907   ;;
10908   *)
10909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10911 do
10912   IFS=$as_save_IFS
10913   test -z "$as_dir" && as_dir=.
10914   for ac_exec_ext in '' $ac_executable_extensions; do
10915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10916     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10918     break 2
10919   fi
10920 done
10921 done
10922 IFS=$as_save_IFS
10923
10924   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10925   ;;
10926 esac
10927 fi
10928 SED=$ac_cv_path_SED
10929 if test -n "$SED"; then
10930   { echo "$as_me:$LINENO: result: $SED" >&5
10931 echo "${ECHO_T}$SED" >&6; }
10932 else
10933   { echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6; }
10935 fi
10936
10937
10938 # Extract the first word of "perl", so it can be a program name with args.
10939 set dummy perl; ac_word=$2
10940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10942 if test "${ac_cv_path_PERL+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945   case $PERL in
10946   [\\/]* | ?:[\\/]*)
10947   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10948   ;;
10949   *)
10950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10952 do
10953   IFS=$as_save_IFS
10954   test -z "$as_dir" && as_dir=.
10955   for ac_exec_ext in '' $ac_executable_extensions; do
10956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10957     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959     break 2
10960   fi
10961 done
10962 done
10963 IFS=$as_save_IFS
10964
10965   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10966   ;;
10967 esac
10968 fi
10969 PERL=$ac_cv_path_PERL
10970 if test -n "$PERL"; then
10971   { echo "$as_me:$LINENO: result: $PERL" >&5
10972 echo "${ECHO_T}$PERL" >&6; }
10973 else
10974   { echo "$as_me:$LINENO: result: no" >&5
10975 echo "${ECHO_T}no" >&6; }
10976 fi
10977
10978
10979 # Extract the first word of "ldconfig", so it can be a program name with args.
10980 set dummy ldconfig; ac_word=$2
10981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10983 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10984   echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986   case $LDCONFIG in
10987   [\\/]* | ?:[\\/]*)
10988   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10989   ;;
10990   *)
10991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10993 do
10994   IFS=$as_save_IFS
10995   test -z "$as_dir" && as_dir=.
10996   for ac_exec_ext in '' $ac_executable_extensions; do
10997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11000     break 2
11001   fi
11002 done
11003 done
11004 IFS=$as_save_IFS
11005
11006   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11007   ;;
11008 esac
11009 fi
11010 LDCONFIG=$ac_cv_path_LDCONFIG
11011 if test -n "$LDCONFIG"; then
11012   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11013 echo "${ECHO_T}$LDCONFIG" >&6; }
11014 else
11015   { echo "$as_me:$LINENO: result: no" >&5
11016 echo "${ECHO_T}no" >&6; }
11017 fi
11018
11019
11020 if test -n "$ac_tool_prefix"; then
11021   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11022 set dummy ${ac_tool_prefix}ar; ac_word=$2
11023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11025 if test "${ac_cv_prog_AR+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   if test -n "$AR"; then
11029   ac_cv_prog_AR="$AR" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11033 do
11034   IFS=$as_save_IFS
11035   test -z "$as_dir" && as_dir=.
11036   for ac_exec_ext in '' $ac_executable_extensions; do
11037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038     ac_cv_prog_AR="${ac_tool_prefix}ar"
11039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040     break 2
11041   fi
11042 done
11043 done
11044 IFS=$as_save_IFS
11045
11046 fi
11047 fi
11048 AR=$ac_cv_prog_AR
11049 if test -n "$AR"; then
11050   { echo "$as_me:$LINENO: result: $AR" >&5
11051 echo "${ECHO_T}$AR" >&6; }
11052 else
11053   { echo "$as_me:$LINENO: result: no" >&5
11054 echo "${ECHO_T}no" >&6; }
11055 fi
11056
11057
11058 fi
11059 if test -z "$ac_cv_prog_AR"; then
11060   ac_ct_AR=$AR
11061   # Extract the first word of "ar", so it can be a program name with args.
11062 set dummy ar; ac_word=$2
11063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11065 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11066   echo $ECHO_N "(cached) $ECHO_C" >&6
11067 else
11068   if test -n "$ac_ct_AR"; then
11069   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11070 else
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11073 do
11074   IFS=$as_save_IFS
11075   test -z "$as_dir" && as_dir=.
11076   for ac_exec_ext in '' $ac_executable_extensions; do
11077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078     ac_cv_prog_ac_ct_AR="ar"
11079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11080     break 2
11081   fi
11082 done
11083 done
11084 IFS=$as_save_IFS
11085
11086 fi
11087 fi
11088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11089 if test -n "$ac_ct_AR"; then
11090   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11091 echo "${ECHO_T}$ac_ct_AR" >&6; }
11092 else
11093   { echo "$as_me:$LINENO: result: no" >&5
11094 echo "${ECHO_T}no" >&6; }
11095 fi
11096
11097   if test "x$ac_ct_AR" = x; then
11098     AR="ar"
11099   else
11100     case $cross_compiling:$ac_tool_warned in
11101 yes:)
11102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11103 whose name does not start with the host triplet.  If you think this
11104 configuration is useful to you, please write to autoconf@gnu.org." >&5
11105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11106 whose name does not start with the host triplet.  If you think this
11107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11108 ac_tool_warned=yes ;;
11109 esac
11110     AR=$ac_ct_AR
11111   fi
11112 else
11113   AR="$ac_cv_prog_AR"
11114 fi
11115
11116 if test -n "$ac_tool_prefix"; then
11117   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11121 if test "${ac_cv_prog_RANLIB+set}" = set; then
11122   echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124   if test -n "$RANLIB"; then
11125   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11126 else
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11129 do
11130   IFS=$as_save_IFS
11131   test -z "$as_dir" && as_dir=.
11132   for ac_exec_ext in '' $ac_executable_extensions; do
11133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11136     break 2
11137   fi
11138 done
11139 done
11140 IFS=$as_save_IFS
11141
11142 fi
11143 fi
11144 RANLIB=$ac_cv_prog_RANLIB
11145 if test -n "$RANLIB"; then
11146   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11147 echo "${ECHO_T}$RANLIB" >&6; }
11148 else
11149   { echo "$as_me:$LINENO: result: no" >&5
11150 echo "${ECHO_T}no" >&6; }
11151 fi
11152
11153
11154 fi
11155 if test -z "$ac_cv_prog_RANLIB"; then
11156   ac_ct_RANLIB=$RANLIB
11157   # Extract the first word of "ranlib", so it can be a program name with args.
11158 set dummy ranlib; ac_word=$2
11159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11162   echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164   if test -n "$ac_ct_RANLIB"; then
11165   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170   IFS=$as_save_IFS
11171   test -z "$as_dir" && as_dir=.
11172   for ac_exec_ext in '' $ac_executable_extensions; do
11173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174     ac_cv_prog_ac_ct_RANLIB="ranlib"
11175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11176     break 2
11177   fi
11178 done
11179 done
11180 IFS=$as_save_IFS
11181
11182 fi
11183 fi
11184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11185 if test -n "$ac_ct_RANLIB"; then
11186   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11187 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11188 else
11189   { echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6; }
11191 fi
11192
11193   if test "x$ac_ct_RANLIB" = x; then
11194     RANLIB=":"
11195   else
11196     case $cross_compiling:$ac_tool_warned in
11197 yes:)
11198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11199 whose name does not start with the host triplet.  If you think this
11200 configuration is useful to you, please write to autoconf@gnu.org." >&5
11201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11202 whose name does not start with the host triplet.  If you think this
11203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11204 ac_tool_warned=yes ;;
11205 esac
11206     RANLIB=$ac_ct_RANLIB
11207   fi
11208 else
11209   RANLIB="$ac_cv_prog_RANLIB"
11210 fi
11211
11212 if test -n "$ac_tool_prefix"; then
11213   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11214 set dummy ${ac_tool_prefix}strip; ac_word=$2
11215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11217 if test "${ac_cv_prog_STRIP+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   if test -n "$STRIP"; then
11221   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11222 else
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226   IFS=$as_save_IFS
11227   test -z "$as_dir" && as_dir=.
11228   for ac_exec_ext in '' $ac_executable_extensions; do
11229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232     break 2
11233   fi
11234 done
11235 done
11236 IFS=$as_save_IFS
11237
11238 fi
11239 fi
11240 STRIP=$ac_cv_prog_STRIP
11241 if test -n "$STRIP"; then
11242   { echo "$as_me:$LINENO: result: $STRIP" >&5
11243 echo "${ECHO_T}$STRIP" >&6; }
11244 else
11245   { echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6; }
11247 fi
11248
11249
11250 fi
11251 if test -z "$ac_cv_prog_STRIP"; then
11252   ac_ct_STRIP=$STRIP
11253   # Extract the first word of "strip", so it can be a program name with args.
11254 set dummy strip; ac_word=$2
11255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11257 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   if test -n "$ac_ct_STRIP"; then
11261   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11262 else
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266   IFS=$as_save_IFS
11267   test -z "$as_dir" && as_dir=.
11268   for ac_exec_ext in '' $ac_executable_extensions; do
11269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11270     ac_cv_prog_ac_ct_STRIP="strip"
11271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272     break 2
11273   fi
11274 done
11275 done
11276 IFS=$as_save_IFS
11277
11278 fi
11279 fi
11280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11281 if test -n "$ac_ct_STRIP"; then
11282   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11283 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11284 else
11285   { echo "$as_me:$LINENO: result: no" >&5
11286 echo "${ECHO_T}no" >&6; }
11287 fi
11288
11289   if test "x$ac_ct_STRIP" = x; then
11290     STRIP=":"
11291   else
11292     case $cross_compiling:$ac_tool_warned in
11293 yes:)
11294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11295 whose name does not start with the host triplet.  If you think this
11296 configuration is useful to you, please write to autoconf@gnu.org." >&5
11297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11298 whose name does not start with the host triplet.  If you think this
11299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11300 ac_tool_warned=yes ;;
11301 esac
11302     STRIP=$ac_ct_STRIP
11303   fi
11304 else
11305   STRIP="$ac_cv_prog_STRIP"
11306 fi
11307
11308 # Find a good install program.  We prefer a C program (faster),
11309 # so one script is as good as another.  But avoid the broken or
11310 # incompatible versions:
11311 # SysV /etc/install, /usr/sbin/install
11312 # SunOS /usr/etc/install
11313 # IRIX /sbin/install
11314 # AIX /bin/install
11315 # AmigaOS /C/install, which installs bootblocks on floppy discs
11316 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11317 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11318 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11319 # OS/2's system install, which has a completely different semantic
11320 # ./install, which can be erroneously created by make from ./install.sh.
11321 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11322 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11323 if test -z "$INSTALL"; then
11324 if test "${ac_cv_path_install+set}" = set; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11329 do
11330   IFS=$as_save_IFS
11331   test -z "$as_dir" && as_dir=.
11332   # Account for people who put trailing slashes in PATH elements.
11333 case $as_dir/ in
11334   ./ | .// | /cC/* | \
11335   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11336   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11337   /usr/ucb/* ) ;;
11338   *)
11339     # OSF1 and SCO ODT 3.0 have their own names for install.
11340     # Don't use installbsd from OSF since it installs stuff as root
11341     # by default.
11342     for ac_prog in ginstall scoinst install; do
11343       for ac_exec_ext in '' $ac_executable_extensions; do
11344         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11345           if test $ac_prog = install &&
11346             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11347             # AIX install.  It has an incompatible calling convention.
11348             :
11349           elif test $ac_prog = install &&
11350             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11351             # program-specific install script used by HP pwplus--don't use.
11352             :
11353           else
11354             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11355             break 3
11356           fi
11357         fi
11358       done
11359     done
11360     ;;
11361 esac
11362 done
11363 IFS=$as_save_IFS
11364
11365
11366 fi
11367   if test "${ac_cv_path_install+set}" = set; then
11368     INSTALL=$ac_cv_path_install
11369   else
11370     # As a last resort, use the slow shell script.  Don't cache a
11371     # value for INSTALL within a source directory, because that will
11372     # break other packages using the cache if that directory is
11373     # removed, or if the value is a relative name.
11374     INSTALL=$ac_install_sh
11375   fi
11376 fi
11377 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11378 echo "${ECHO_T}$INSTALL" >&6; }
11379
11380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11381 # It thinks the first close brace ends the variable substitution.
11382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11383
11384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11385
11386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11387
11388 # See if we need a separate native compiler.
11389 if test $cross_compiling = no; then
11390   BUILD_CC="$CC"
11391
11392 else
11393   for ac_prog in gcc cc
11394 do
11395   # Extract the first word of "$ac_prog", so it can be a program name with args.
11396 set dummy $ac_prog; ac_word=$2
11397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11399 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402   if test -n "$BUILD_CC"; then
11403   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11404 else
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11407 do
11408   IFS=$as_save_IFS
11409   test -z "$as_dir" && as_dir=.
11410   for ac_exec_ext in '' $ac_executable_extensions; do
11411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412     ac_cv_prog_BUILD_CC="$ac_prog"
11413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11414     break 2
11415   fi
11416 done
11417 done
11418 IFS=$as_save_IFS
11419
11420 fi
11421 fi
11422 BUILD_CC=$ac_cv_prog_BUILD_CC
11423 if test -n "$BUILD_CC"; then
11424   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11425 echo "${ECHO_T}$BUILD_CC" >&6; }
11426 else
11427   { echo "$as_me:$LINENO: result: no" >&5
11428 echo "${ECHO_T}no" >&6; }
11429 fi
11430
11431
11432   test -n "$BUILD_CC" && break
11433 done
11434
11435 fi
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h
11469 do
11470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475   echo $ECHO_N "(cached) $ECHO_C" >&6
11476 fi
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478                { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 else
11481   # Is the header compilable?
11482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h.  */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h.  */
11490 $ac_includes_default
11491 #include <$ac_header>
11492 _ACEOF
11493 rm -f conftest.$ac_objext
11494 if { (ac_try="$ac_compile"
11495 case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500   (eval "$ac_compile") 2>conftest.er1
11501   ac_status=$?
11502   grep -v '^ *+' conftest.er1 >conftest.err
11503   rm -f conftest.er1
11504   cat conftest.err >&5
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } && {
11507          test -z "$ac_c_werror_flag" ||
11508          test ! -s conftest.err
11509        } && test -s conftest.$ac_objext; then
11510   ac_header_compiler=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515         ac_header_compiler=no
11516 fi
11517
11518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11520 echo "${ECHO_T}$ac_header_compiler" >&6; }
11521
11522 # Is the header present?
11523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11525 cat >conftest.$ac_ext <<_ACEOF
11526 /* confdefs.h.  */
11527 _ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h.  */
11531 #include <$ac_header>
11532 _ACEOF
11533 if { (ac_try="$ac_cpp conftest.$ac_ext"
11534 case "(($ac_try" in
11535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536   *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11540   ac_status=$?
11541   grep -v '^ *+' conftest.er1 >conftest.err
11542   rm -f conftest.er1
11543   cat conftest.err >&5
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); } >/dev/null && {
11546          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11547          test ! -s conftest.err
11548        }; then
11549   ac_header_preproc=yes
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554   ac_header_preproc=no
11555 fi
11556
11557 rm -f conftest.err conftest.$ac_ext
11558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11559 echo "${ECHO_T}$ac_header_preproc" >&6; }
11560
11561 # So?  What about this header?
11562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11563   yes:no: )
11564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11568     ac_header_preproc=yes
11569     ;;
11570   no:yes:* )
11571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11583
11584     ;;
11585 esac
11586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   eval "$as_ac_Header=\$ac_header_preproc"
11592 fi
11593 ac_res=`eval echo '${'$as_ac_Header'}'`
11594                { echo "$as_me:$LINENO: result: $ac_res" >&5
11595 echo "${ECHO_T}$ac_res" >&6; }
11596
11597 fi
11598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11599   cat >>confdefs.h <<_ACEOF
11600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11601 _ACEOF
11602
11603 fi
11604
11605 done
11606
11607
11608
11609 for ac_header in sys/disk.h sys/mount.h
11610 do
11611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h.  */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h.  */
11623
11624 #if HAVE_SYS_QUEUE_H
11625 #include <sys/queue.h>
11626 #endif
11627
11628
11629 #include <$ac_header>
11630 _ACEOF
11631 rm -f conftest.$ac_objext
11632 if { (ac_try="$ac_compile"
11633 case "(($ac_try" in
11634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635   *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638   (eval "$ac_compile") 2>conftest.er1
11639   ac_status=$?
11640   grep -v '^ *+' conftest.er1 >conftest.err
11641   rm -f conftest.er1
11642   cat conftest.err >&5
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); } && {
11645          test -z "$ac_c_werror_flag" ||
11646          test ! -s conftest.err
11647        } && test -s conftest.$ac_objext; then
11648   eval "$as_ac_Header=yes"
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653         eval "$as_ac_Header=no"
11654 fi
11655
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 fi
11658 ac_res=`eval echo '${'$as_ac_Header'}'`
11659                { echo "$as_me:$LINENO: result: $ac_res" >&5
11660 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11662   cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11664 _ACEOF
11665
11666 fi
11667
11668 done
11669
11670
11671 for ac_header in net/if.h
11672 do
11673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685
11686 #if HAVE_SYS_TYPES_H
11687 #include <sys/types.h>
11688 #endif
11689 #if HAVE_SYS_SOCKET
11690 #include <sys/socket.h>
11691 #endif
11692
11693
11694 #include <$ac_header>
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (ac_try="$ac_compile"
11698 case "(($ac_try" in
11699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700   *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703   (eval "$ac_compile") 2>conftest.er1
11704   ac_status=$?
11705   grep -v '^ *+' conftest.er1 >conftest.err
11706   rm -f conftest.er1
11707   cat conftest.err >&5
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } && {
11710          test -z "$ac_c_werror_flag" ||
11711          test ! -s conftest.err
11712        } && test -s conftest.$ac_objext; then
11713   eval "$as_ac_Header=yes"
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718         eval "$as_ac_Header=no"
11719 fi
11720
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 fi
11723 ac_res=`eval echo '${'$as_ac_Header'}'`
11724                { echo "$as_me:$LINENO: result: $ac_res" >&5
11725 echo "${ECHO_T}$ac_res" >&6; }
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727   cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729 _ACEOF
11730
11731 fi
11732
11733 done
11734
11735
11736 for ac_func in vprintf
11737 do
11738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h.  */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h.  */
11750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11752 #define $ac_func innocuous_$ac_func
11753
11754 /* System header to define __stub macros and hopefully few prototypes,
11755     which can conflict with char $ac_func (); below.
11756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757     <limits.h> exists even on freestanding compilers.  */
11758
11759 #ifdef __STDC__
11760 # include <limits.h>
11761 #else
11762 # include <assert.h>
11763 #endif
11764
11765 #undef $ac_func
11766
11767 /* Override any GCC internal prototype to avoid an error.
11768    Use char because int might match the return type of a GCC
11769    builtin and then its argument prototype would still apply.  */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char $ac_func ();
11774 /* The GNU C library defines this for functions which it implements
11775     to always fail with ENOSYS.  Some functions are actually named
11776     something starting with __ and the normal name is an alias.  */
11777 #if defined __stub_$ac_func || defined __stub___$ac_func
11778 choke me
11779 #endif
11780
11781 int
11782 main ()
11783 {
11784 return $ac_func ();
11785   ;
11786   return 0;
11787 }
11788 _ACEOF
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (ac_try="$ac_link"
11791 case "(($ac_try" in
11792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793   *) ac_try_echo=$ac_try;;
11794 esac
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796   (eval "$ac_link") 2>conftest.er1
11797   ac_status=$?
11798   grep -v '^ *+' conftest.er1 >conftest.err
11799   rm -f conftest.er1
11800   cat conftest.err >&5
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); } && {
11803          test -z "$ac_c_werror_flag" ||
11804          test ! -s conftest.err
11805        } && test -s conftest$ac_exeext &&
11806        $as_test_x conftest$ac_exeext; then
11807   eval "$as_ac_var=yes"
11808 else
11809   echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812         eval "$as_ac_var=no"
11813 fi
11814
11815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816       conftest$ac_exeext conftest.$ac_ext
11817 fi
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819                { echo "$as_me:$LINENO: result: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822   cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824 _ACEOF
11825
11826 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11827 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11828 if test "${ac_cv_func__doprnt+set}" = set; then
11829   echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831   cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11839 #define _doprnt innocuous__doprnt
11840
11841 /* System header to define __stub macros and hopefully few prototypes,
11842     which can conflict with char _doprnt (); below.
11843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844     <limits.h> exists even on freestanding compilers.  */
11845
11846 #ifdef __STDC__
11847 # include <limits.h>
11848 #else
11849 # include <assert.h>
11850 #endif
11851
11852 #undef _doprnt
11853
11854 /* Override any GCC internal prototype to avoid an error.
11855    Use char because int might match the return type of a GCC
11856    builtin and then its argument prototype would still apply.  */
11857 #ifdef __cplusplus
11858 extern "C"
11859 #endif
11860 char _doprnt ();
11861 /* The GNU C library defines this for functions which it implements
11862     to always fail with ENOSYS.  Some functions are actually named
11863     something starting with __ and the normal name is an alias.  */
11864 #if defined __stub__doprnt || defined __stub____doprnt
11865 choke me
11866 #endif
11867
11868 int
11869 main ()
11870 {
11871 return _doprnt ();
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (ac_try="$ac_link"
11878 case "(($ac_try" in
11879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880   *) ac_try_echo=$ac_try;;
11881 esac
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883   (eval "$ac_link") 2>conftest.er1
11884   ac_status=$?
11885   grep -v '^ *+' conftest.er1 >conftest.err
11886   rm -f conftest.er1
11887   cat conftest.err >&5
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } && {
11890          test -z "$ac_c_werror_flag" ||
11891          test ! -s conftest.err
11892        } && test -s conftest$ac_exeext &&
11893        $as_test_x conftest$ac_exeext; then
11894   ac_cv_func__doprnt=yes
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899         ac_cv_func__doprnt=no
11900 fi
11901
11902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11903       conftest$ac_exeext conftest.$ac_ext
11904 fi
11905 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11906 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11907 if test $ac_cv_func__doprnt = yes; then
11908
11909 cat >>confdefs.h <<\_ACEOF
11910 #define HAVE_DOPRNT 1
11911 _ACEOF
11912
11913 fi
11914
11915 fi
11916 done
11917
11918
11919 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11920 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
11921 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h.  */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h.  */
11930 #include <dirent.h>
11931
11932 int
11933 main ()
11934 {
11935 static struct dirent ac_aggr;
11936 if (ac_aggr.d_reclen)
11937 return 0;
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (ac_try="$ac_compile"
11944 case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_compile") 2>conftest.er1
11950   ac_status=$?
11951   grep -v '^ *+' conftest.er1 >conftest.err
11952   rm -f conftest.er1
11953   cat conftest.err >&5
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } && {
11956          test -z "$ac_c_werror_flag" ||
11957          test ! -s conftest.err
11958        } && test -s conftest.$ac_objext; then
11959   ac_cv_member_struct_dirent_d_reclen=yes
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964         cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970 #include <dirent.h>
11971
11972 int
11973 main ()
11974 {
11975 static struct dirent ac_aggr;
11976 if (sizeof ac_aggr.d_reclen)
11977 return 0;
11978   ;
11979   return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext
11983 if { (ac_try="$ac_compile"
11984 case "(($ac_try" in
11985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986   *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989   (eval "$ac_compile") 2>conftest.er1
11990   ac_status=$?
11991   grep -v '^ *+' conftest.er1 >conftest.err
11992   rm -f conftest.er1
11993   cat conftest.err >&5
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } && {
11996          test -z "$ac_c_werror_flag" ||
11997          test ! -s conftest.err
11998        } && test -s conftest.$ac_objext; then
11999   ac_cv_member_struct_dirent_d_reclen=yes
12000 else
12001   echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004         ac_cv_member_struct_dirent_d_reclen=no
12005 fi
12006
12007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12008 fi
12009
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011 fi
12012 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12013 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12014 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12015   cat >>confdefs.h <<\_ACEOF
12016 #define HAVE_RECLEN_DIRENT 1
12017 _ACEOF
12018
12019 fi
12020
12021 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12022 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12023 if test "${ac_cv_type_ssize_t+set}" = set; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032 #include <sys/types.h>
12033
12034 typedef ssize_t ac__type_new_;
12035 int
12036 main ()
12037 {
12038 if ((ac__type_new_ *) 0)
12039   return 0;
12040 if (sizeof (ac__type_new_))
12041   return 0;
12042   ;
12043   return 0;
12044 }
12045 _ACEOF
12046 rm -f conftest.$ac_objext
12047 if { (ac_try="$ac_compile"
12048 case "(($ac_try" in
12049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050   *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053   (eval "$ac_compile") 2>conftest.er1
12054   ac_status=$?
12055   grep -v '^ *+' conftest.er1 >conftest.err
12056   rm -f conftest.er1
12057   cat conftest.err >&5
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } && {
12060          test -z "$ac_c_werror_flag" ||
12061          test ! -s conftest.err
12062        } && test -s conftest.$ac_objext; then
12063   ac_cv_type_ssize_t=yes
12064 else
12065   echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068         ac_cv_type_ssize_t=no
12069 fi
12070
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 fi
12073 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12074 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12075 if test $ac_cv_type_ssize_t = yes; then
12076   cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_TYPE_SSIZE_T 1
12078 _ACEOF
12079
12080 fi
12081
12082 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12083 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12084 if test "${ac_cv_have_decl_llseek+set}" = set; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h.  */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h.  */
12093 #include <unistd.h>
12094
12095 int
12096 main ()
12097 {
12098 #ifndef llseek
12099   (void) llseek;
12100 #endif
12101
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext
12107 if { (ac_try="$ac_compile"
12108 case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_compile") 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } && {
12120          test -z "$ac_c_werror_flag" ||
12121          test ! -s conftest.err
12122        } && test -s conftest.$ac_objext; then
12123   ac_cv_have_decl_llseek=yes
12124 else
12125   echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128         ac_cv_have_decl_llseek=no
12129 fi
12130
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 fi
12133 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12134 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12135 if test $ac_cv_have_decl_llseek = yes; then
12136   cat >>confdefs.h <<\_ACEOF
12137 #define HAVE_LLSEEK_PROTOTYPE 1
12138 _ACEOF
12139
12140 fi
12141
12142 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12143 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12144 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12145   echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147   cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h.  */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h.  */
12153 #define _LARGEFILE_SOURCE
12154                  #define _LARGEFILE64_SOURCE
12155                  #include <unistd.h>
12156
12157 int
12158 main ()
12159 {
12160 #ifndef lseek64
12161   (void) lseek64;
12162 #endif
12163
12164   ;
12165   return 0;
12166 }
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172   *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175   (eval "$ac_compile") 2>conftest.er1
12176   ac_status=$?
12177   grep -v '^ *+' conftest.er1 >conftest.err
12178   rm -f conftest.er1
12179   cat conftest.err >&5
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } && {
12182          test -z "$ac_c_werror_flag" ||
12183          test ! -s conftest.err
12184        } && test -s conftest.$ac_objext; then
12185   ac_cv_have_decl_lseek64=yes
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190         ac_cv_have_decl_lseek64=no
12191 fi
12192
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 fi
12195 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12196 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12197 if test $ac_cv_have_decl_lseek64 = yes; then
12198   cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_LSEEK64_PROTOTYPE 1
12200 _ACEOF
12201
12202 fi
12203
12204 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12205   # if cross-compiling, with no cached values, just assume something common.
12206   ac_cv_sizeof_short=2
12207   ac_cv_sizeof_int=4
12208   ac_cv_sizeof_long=4
12209   ac_cv_sizeof_long_long=8
12210   { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12211 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12212 fi
12213 { echo "$as_me:$LINENO: checking for short" >&5
12214 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12215 if test "${ac_cv_type_short+set}" = set; then
12216   echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218   cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h.  */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h.  */
12224 $ac_includes_default
12225 typedef short ac__type_new_;
12226 int
12227 main ()
12228 {
12229 if ((ac__type_new_ *) 0)
12230   return 0;
12231 if (sizeof (ac__type_new_))
12232   return 0;
12233   ;
12234   return 0;
12235 }
12236 _ACEOF
12237 rm -f conftest.$ac_objext
12238 if { (ac_try="$ac_compile"
12239 case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_compile") 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } && {
12251          test -z "$ac_c_werror_flag" ||
12252          test ! -s conftest.err
12253        } && test -s conftest.$ac_objext; then
12254   ac_cv_type_short=yes
12255 else
12256   echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259         ac_cv_type_short=no
12260 fi
12261
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 fi
12264 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12265 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12266
12267 # The cast to long int works around a bug in the HP C Compiler
12268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12270 # This bug is HP SR number 8606223364.
12271 { echo "$as_me:$LINENO: checking size of short" >&5
12272 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12273 if test "${ac_cv_sizeof_short+set}" = set; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276   if test "$cross_compiling" = yes; then
12277   # Depending upon the size, compute the lo and hi bounds.
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284 $ac_includes_default
12285    typedef short ac__type_sizeof_;
12286 int
12287 main ()
12288 {
12289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12290 test_array [0] = 0
12291
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300   *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303   (eval "$ac_compile") 2>conftest.er1
12304   ac_status=$?
12305   grep -v '^ *+' conftest.er1 >conftest.err
12306   rm -f conftest.er1
12307   cat conftest.err >&5
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } && {
12310          test -z "$ac_c_werror_flag" ||
12311          test ! -s conftest.err
12312        } && test -s conftest.$ac_objext; then
12313   ac_lo=0 ac_mid=0
12314   while :; do
12315     cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321 $ac_includes_default
12322    typedef short ac__type_sizeof_;
12323 int
12324 main ()
12325 {
12326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12327 test_array [0] = 0
12328
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_compile") 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } && {
12347          test -z "$ac_c_werror_flag" ||
12348          test ! -s conftest.err
12349        } && test -s conftest.$ac_objext; then
12350   ac_hi=$ac_mid; break
12351 else
12352   echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355         ac_lo=`expr $ac_mid + 1`
12356                         if test $ac_lo -le $ac_mid; then
12357                           ac_lo= ac_hi=
12358                           break
12359                         fi
12360                         ac_mid=`expr 2 '*' $ac_mid + 1`
12361 fi
12362
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364   done
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369         cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 $ac_includes_default
12376    typedef short ac__type_sizeof_;
12377 int
12378 main ()
12379 {
12380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12381 test_array [0] = 0
12382
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_compile") 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
12398   cat conftest.err >&5
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } && {
12401          test -z "$ac_c_werror_flag" ||
12402          test ! -s conftest.err
12403        } && test -s conftest.$ac_objext; then
12404   ac_hi=-1 ac_mid=-1
12405   while :; do
12406     cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412 $ac_includes_default
12413    typedef short ac__type_sizeof_;
12414 int
12415 main ()
12416 {
12417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12418 test_array [0] = 0
12419
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_compile") 2>conftest.er1
12432   ac_status=$?
12433   grep -v '^ *+' conftest.er1 >conftest.err
12434   rm -f conftest.er1
12435   cat conftest.err >&5
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } && {
12438          test -z "$ac_c_werror_flag" ||
12439          test ! -s conftest.err
12440        } && test -s conftest.$ac_objext; then
12441   ac_lo=$ac_mid; break
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446         ac_hi=`expr '(' $ac_mid ')' - 1`
12447                         if test $ac_mid -le $ac_hi; then
12448                           ac_lo= ac_hi=
12449                           break
12450                         fi
12451                         ac_mid=`expr 2 '*' $ac_mid`
12452 fi
12453
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455   done
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460         ac_lo= ac_hi=
12461 fi
12462
12463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464 fi
12465
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 # Binary search between lo and hi bounds.
12468 while test "x$ac_lo" != "x$ac_hi"; do
12469   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12470   cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h.  */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h.  */
12476 $ac_includes_default
12477    typedef short ac__type_sizeof_;
12478 int
12479 main ()
12480 {
12481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12482 test_array [0] = 0
12483
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (ac_try="$ac_compile"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_compile") 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } && {
12502          test -z "$ac_c_werror_flag" ||
12503          test ! -s conftest.err
12504        } && test -s conftest.$ac_objext; then
12505   ac_hi=$ac_mid
12506 else
12507   echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12509
12510         ac_lo=`expr '(' $ac_mid ')' + 1`
12511 fi
12512
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 done
12515 case $ac_lo in
12516 ?*) ac_cv_sizeof_short=$ac_lo;;
12517 '') if test "$ac_cv_type_short" = yes; then
12518      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12519 See \`config.log' for more details." >&5
12520 echo "$as_me: error: cannot compute sizeof (short)
12521 See \`config.log' for more details." >&2;}
12522    { (exit 77); exit 77; }; }
12523    else
12524      ac_cv_sizeof_short=0
12525    fi ;;
12526 esac
12527 else
12528   cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534 $ac_includes_default
12535    typedef short ac__type_sizeof_;
12536 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12537 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12538 #include <stdio.h>
12539 #include <stdlib.h>
12540 int
12541 main ()
12542 {
12543
12544   FILE *f = fopen ("conftest.val", "w");
12545   if (! f)
12546     return 1;
12547   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12548     {
12549       long int i = longval ();
12550       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12551         return 1;
12552       fprintf (f, "%ld\n", i);
12553     }
12554   else
12555     {
12556       unsigned long int i = ulongval ();
12557       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12558         return 1;
12559       fprintf (f, "%lu\n", i);
12560     }
12561   return ferror (f) || fclose (f) != 0;
12562
12563   ;
12564   return 0;
12565 }
12566 _ACEOF
12567 rm -f conftest$ac_exeext
12568 if { (ac_try="$ac_link"
12569 case "(($ac_try" in
12570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571   *) ac_try_echo=$ac_try;;
12572 esac
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574   (eval "$ac_link") 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12578   { (case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583   (eval "$ac_try") 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; }; then
12587   ac_cv_sizeof_short=`cat conftest.val`
12588 else
12589   echo "$as_me: program exited with status $ac_status" >&5
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 ( exit $ac_status )
12594 if test "$ac_cv_type_short" = yes; then
12595      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12596 See \`config.log' for more details." >&5
12597 echo "$as_me: error: cannot compute sizeof (short)
12598 See \`config.log' for more details." >&2;}
12599    { (exit 77); exit 77; }; }
12600    else
12601      ac_cv_sizeof_short=0
12602    fi
12603 fi
12604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12605 fi
12606 rm -f conftest.val
12607 fi
12608 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12609 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12610
12611
12612
12613 cat >>confdefs.h <<_ACEOF
12614 #define SIZEOF_SHORT $ac_cv_sizeof_short
12615 _ACEOF
12616
12617
12618 { echo "$as_me:$LINENO: checking for int" >&5
12619 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12620 if test "${ac_cv_type_int+set}" = set; then
12621   echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623   cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h.  */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h.  */
12629 $ac_includes_default
12630 typedef int ac__type_new_;
12631 int
12632 main ()
12633 {
12634 if ((ac__type_new_ *) 0)
12635   return 0;
12636 if (sizeof (ac__type_new_))
12637   return 0;
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646   *) ac_try_echo=$ac_try;;
12647 esac
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649   (eval "$ac_compile") 2>conftest.er1
12650   ac_status=$?
12651   grep -v '^ *+' conftest.er1 >conftest.err
12652   rm -f conftest.er1
12653   cat conftest.err >&5
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } && {
12656          test -z "$ac_c_werror_flag" ||
12657          test ! -s conftest.err
12658        } && test -s conftest.$ac_objext; then
12659   ac_cv_type_int=yes
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664         ac_cv_type_int=no
12665 fi
12666
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 fi
12669 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12670 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12671
12672 # The cast to long int works around a bug in the HP C Compiler
12673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12675 # This bug is HP SR number 8606223364.
12676 { echo "$as_me:$LINENO: checking size of int" >&5
12677 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12678 if test "${ac_cv_sizeof_int+set}" = set; then
12679   echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681   if test "$cross_compiling" = yes; then
12682   # Depending upon the size, compute the lo and hi bounds.
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h.  */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h.  */
12689 $ac_includes_default
12690    typedef int ac__type_sizeof_;
12691 int
12692 main ()
12693 {
12694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12695 test_array [0] = 0
12696
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext
12702 if { (ac_try="$ac_compile"
12703 case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708   (eval "$ac_compile") 2>conftest.er1
12709   ac_status=$?
12710   grep -v '^ *+' conftest.er1 >conftest.err
12711   rm -f conftest.er1
12712   cat conftest.err >&5
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } && {
12715          test -z "$ac_c_werror_flag" ||
12716          test ! -s conftest.err
12717        } && test -s conftest.$ac_objext; then
12718   ac_lo=0 ac_mid=0
12719   while :; do
12720     cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726 $ac_includes_default
12727    typedef int ac__type_sizeof_;
12728 int
12729 main ()
12730 {
12731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12732 test_array [0] = 0
12733
12734   ;
12735   return 0;
12736 }
12737 _ACEOF
12738 rm -f conftest.$ac_objext
12739 if { (ac_try="$ac_compile"
12740 case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_compile") 2>conftest.er1
12746   ac_status=$?
12747   grep -v '^ *+' conftest.er1 >conftest.err
12748   rm -f conftest.er1
12749   cat conftest.err >&5
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } && {
12752          test -z "$ac_c_werror_flag" ||
12753          test ! -s conftest.err
12754        } && test -s conftest.$ac_objext; then
12755   ac_hi=$ac_mid; break
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760         ac_lo=`expr $ac_mid + 1`
12761                         if test $ac_lo -le $ac_mid; then
12762                           ac_lo= ac_hi=
12763                           break
12764                         fi
12765                         ac_mid=`expr 2 '*' $ac_mid + 1`
12766 fi
12767
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769   done
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774         cat >conftest.$ac_ext <<_ACEOF
12775 /* confdefs.h.  */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h.  */
12780 $ac_includes_default
12781    typedef int ac__type_sizeof_;
12782 int
12783 main ()
12784 {
12785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12786 test_array [0] = 0
12787
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799   (eval "$ac_compile") 2>conftest.er1
12800   ac_status=$?
12801   grep -v '^ *+' conftest.er1 >conftest.err
12802   rm -f conftest.er1
12803   cat conftest.err >&5
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); } && {
12806          test -z "$ac_c_werror_flag" ||
12807          test ! -s conftest.err
12808        } && test -s conftest.$ac_objext; then
12809   ac_hi=-1 ac_mid=-1
12810   while :; do
12811     cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h.  */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h.  */
12817 $ac_includes_default
12818    typedef int ac__type_sizeof_;
12819 int
12820 main ()
12821 {
12822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12823 test_array [0] = 0
12824
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 rm -f conftest.$ac_objext
12830 if { (ac_try="$ac_compile"
12831 case "(($ac_try" in
12832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833   *) ac_try_echo=$ac_try;;
12834 esac
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836   (eval "$ac_compile") 2>conftest.er1
12837   ac_status=$?
12838   grep -v '^ *+' conftest.er1 >conftest.err
12839   rm -f conftest.er1
12840   cat conftest.err >&5
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); } && {
12843          test -z "$ac_c_werror_flag" ||
12844          test ! -s conftest.err
12845        } && test -s conftest.$ac_objext; then
12846   ac_lo=$ac_mid; break
12847 else
12848   echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12850
12851         ac_hi=`expr '(' $ac_mid ')' - 1`
12852                         if test $ac_mid -le $ac_hi; then
12853                           ac_lo= ac_hi=
12854                           break
12855                         fi
12856                         ac_mid=`expr 2 '*' $ac_mid`
12857 fi
12858
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860   done
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865         ac_lo= ac_hi=
12866 fi
12867
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 fi
12870
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 # Binary search between lo and hi bounds.
12873 while test "x$ac_lo" != "x$ac_hi"; do
12874   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12875   cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 $ac_includes_default
12882    typedef int ac__type_sizeof_;
12883 int
12884 main ()
12885 {
12886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12887 test_array [0] = 0
12888
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_compile") 2>conftest.er1
12901   ac_status=$?
12902   grep -v '^ *+' conftest.er1 >conftest.err
12903   rm -f conftest.er1
12904   cat conftest.err >&5
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } && {
12907          test -z "$ac_c_werror_flag" ||
12908          test ! -s conftest.err
12909        } && test -s conftest.$ac_objext; then
12910   ac_hi=$ac_mid
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915         ac_lo=`expr '(' $ac_mid ')' + 1`
12916 fi
12917
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 done
12920 case $ac_lo in
12921 ?*) ac_cv_sizeof_int=$ac_lo;;
12922 '') if test "$ac_cv_type_int" = yes; then
12923      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12924 See \`config.log' for more details." >&5
12925 echo "$as_me: error: cannot compute sizeof (int)
12926 See \`config.log' for more details." >&2;}
12927    { (exit 77); exit 77; }; }
12928    else
12929      ac_cv_sizeof_int=0
12930    fi ;;
12931 esac
12932 else
12933   cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939 $ac_includes_default
12940    typedef int ac__type_sizeof_;
12941 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12942 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12943 #include <stdio.h>
12944 #include <stdlib.h>
12945 int
12946 main ()
12947 {
12948
12949   FILE *f = fopen ("conftest.val", "w");
12950   if (! f)
12951     return 1;
12952   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12953     {
12954       long int i = longval ();
12955       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12956         return 1;
12957       fprintf (f, "%ld\n", i);
12958     }
12959   else
12960     {
12961       unsigned long int i = ulongval ();
12962       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12963         return 1;
12964       fprintf (f, "%lu\n", i);
12965     }
12966   return ferror (f) || fclose (f) != 0;
12967
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 rm -f conftest$ac_exeext
12973 if { (ac_try="$ac_link"
12974 case "(($ac_try" in
12975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976   *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979   (eval "$ac_link") 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12983   { (case "(($ac_try" in
12984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985   *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988   (eval "$ac_try") 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; }; then
12992   ac_cv_sizeof_int=`cat conftest.val`
12993 else
12994   echo "$as_me: program exited with status $ac_status" >&5
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12997
12998 ( exit $ac_status )
12999 if test "$ac_cv_type_int" = yes; then
13000      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13001 See \`config.log' for more details." >&5
13002 echo "$as_me: error: cannot compute sizeof (int)
13003 See \`config.log' for more details." >&2;}
13004    { (exit 77); exit 77; }; }
13005    else
13006      ac_cv_sizeof_int=0
13007    fi
13008 fi
13009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 rm -f conftest.val
13012 fi
13013 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13014 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13015
13016
13017
13018 cat >>confdefs.h <<_ACEOF
13019 #define SIZEOF_INT $ac_cv_sizeof_int
13020 _ACEOF
13021
13022
13023 { echo "$as_me:$LINENO: checking for long" >&5
13024 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13025 if test "${ac_cv_type_long+set}" = set; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h.  */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h.  */
13034 $ac_includes_default
13035 typedef long ac__type_new_;
13036 int
13037 main ()
13038 {
13039 if ((ac__type_new_ *) 0)
13040   return 0;
13041 if (sizeof (ac__type_new_))
13042   return 0;
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest.$ac_objext
13048 if { (ac_try="$ac_compile"
13049 case "(($ac_try" in
13050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051   *) ac_try_echo=$ac_try;;
13052 esac
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054   (eval "$ac_compile") 2>conftest.er1
13055   ac_status=$?
13056   grep -v '^ *+' conftest.er1 >conftest.err
13057   rm -f conftest.er1
13058   cat conftest.err >&5
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } && {
13061          test -z "$ac_c_werror_flag" ||
13062          test ! -s conftest.err
13063        } && test -s conftest.$ac_objext; then
13064   ac_cv_type_long=yes
13065 else
13066   echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069         ac_cv_type_long=no
13070 fi
13071
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 fi
13074 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13075 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13076
13077 # The cast to long int works around a bug in the HP C Compiler
13078 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13080 # This bug is HP SR number 8606223364.
13081 { echo "$as_me:$LINENO: checking size of long" >&5
13082 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13083 if test "${ac_cv_sizeof_long+set}" = set; then
13084   echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086   if test "$cross_compiling" = yes; then
13087   # Depending upon the size, compute the lo and hi bounds.
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094 $ac_includes_default
13095    typedef long ac__type_sizeof_;
13096 int
13097 main ()
13098 {
13099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13100 test_array [0] = 0
13101
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (ac_try="$ac_compile"
13108 case "(($ac_try" in
13109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110   *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113   (eval "$ac_compile") 2>conftest.er1
13114   ac_status=$?
13115   grep -v '^ *+' conftest.er1 >conftest.err
13116   rm -f conftest.er1
13117   cat conftest.err >&5
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } && {
13120          test -z "$ac_c_werror_flag" ||
13121          test ! -s conftest.err
13122        } && test -s conftest.$ac_objext; then
13123   ac_lo=0 ac_mid=0
13124   while :; do
13125     cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h.  */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h.  */
13131 $ac_includes_default
13132    typedef long ac__type_sizeof_;
13133 int
13134 main ()
13135 {
13136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13137 test_array [0] = 0
13138
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (ac_try="$ac_compile"
13145 case "(($ac_try" in
13146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147   *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150   (eval "$ac_compile") 2>conftest.er1
13151   ac_status=$?
13152   grep -v '^ *+' conftest.er1 >conftest.err
13153   rm -f conftest.er1
13154   cat conftest.err >&5
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); } && {
13157          test -z "$ac_c_werror_flag" ||
13158          test ! -s conftest.err
13159        } && test -s conftest.$ac_objext; then
13160   ac_hi=$ac_mid; break
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165         ac_lo=`expr $ac_mid + 1`
13166                         if test $ac_lo -le $ac_mid; then
13167                           ac_lo= ac_hi=
13168                           break
13169                         fi
13170                         ac_mid=`expr 2 '*' $ac_mid + 1`
13171 fi
13172
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174   done
13175 else
13176   echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13178
13179         cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h.  */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h.  */
13185 $ac_includes_default
13186    typedef long ac__type_sizeof_;
13187 int
13188 main ()
13189 {
13190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13191 test_array [0] = 0
13192
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204   (eval "$ac_compile") 2>conftest.er1
13205   ac_status=$?
13206   grep -v '^ *+' conftest.er1 >conftest.err
13207   rm -f conftest.er1
13208   cat conftest.err >&5
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } && {
13211          test -z "$ac_c_werror_flag" ||
13212          test ! -s conftest.err
13213        } && test -s conftest.$ac_objext; then
13214   ac_hi=-1 ac_mid=-1
13215   while :; do
13216     cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222 $ac_includes_default
13223    typedef long ac__type_sizeof_;
13224 int
13225 main ()
13226 {
13227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13228 test_array [0] = 0
13229
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_compile") 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } && {
13248          test -z "$ac_c_werror_flag" ||
13249          test ! -s conftest.err
13250        } && test -s conftest.$ac_objext; then
13251   ac_lo=$ac_mid; break
13252 else
13253   echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256         ac_hi=`expr '(' $ac_mid ')' - 1`
13257                         if test $ac_mid -le $ac_hi; then
13258                           ac_lo= ac_hi=
13259                           break
13260                         fi
13261                         ac_mid=`expr 2 '*' $ac_mid`
13262 fi
13263
13264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265   done
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270         ac_lo= ac_hi=
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 fi
13275
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 # Binary search between lo and hi bounds.
13278 while test "x$ac_lo" != "x$ac_hi"; do
13279   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13280   cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 $ac_includes_default
13287    typedef long ac__type_sizeof_;
13288 int
13289 main ()
13290 {
13291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13292 test_array [0] = 0
13293
13294   ;
13295   return 0;
13296 }
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302   *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305   (eval "$ac_compile") 2>conftest.er1
13306   ac_status=$?
13307   grep -v '^ *+' conftest.er1 >conftest.err
13308   rm -f conftest.er1
13309   cat conftest.err >&5
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } && {
13312          test -z "$ac_c_werror_flag" ||
13313          test ! -s conftest.err
13314        } && test -s conftest.$ac_objext; then
13315   ac_hi=$ac_mid
13316 else
13317   echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320         ac_lo=`expr '(' $ac_mid ')' + 1`
13321 fi
13322
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 done
13325 case $ac_lo in
13326 ?*) ac_cv_sizeof_long=$ac_lo;;
13327 '') if test "$ac_cv_type_long" = yes; then
13328      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13329 See \`config.log' for more details." >&5
13330 echo "$as_me: error: cannot compute sizeof (long)
13331 See \`config.log' for more details." >&2;}
13332    { (exit 77); exit 77; }; }
13333    else
13334      ac_cv_sizeof_long=0
13335    fi ;;
13336 esac
13337 else
13338   cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h.  */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h.  */
13344 $ac_includes_default
13345    typedef long ac__type_sizeof_;
13346 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13347 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13348 #include <stdio.h>
13349 #include <stdlib.h>
13350 int
13351 main ()
13352 {
13353
13354   FILE *f = fopen ("conftest.val", "w");
13355   if (! f)
13356     return 1;
13357   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13358     {
13359       long int i = longval ();
13360       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13361         return 1;
13362       fprintf (f, "%ld\n", i);
13363     }
13364   else
13365     {
13366       unsigned long int i = ulongval ();
13367       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13368         return 1;
13369       fprintf (f, "%lu\n", i);
13370     }
13371   return ferror (f) || fclose (f) != 0;
13372
13373   ;
13374   return 0;
13375 }
13376 _ACEOF
13377 rm -f conftest$ac_exeext
13378 if { (ac_try="$ac_link"
13379 case "(($ac_try" in
13380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381   *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384   (eval "$ac_link") 2>&5
13385   ac_status=$?
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13388   { (case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_try") 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; }; then
13397   ac_cv_sizeof_long=`cat conftest.val`
13398 else
13399   echo "$as_me: program exited with status $ac_status" >&5
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403 ( exit $ac_status )
13404 if test "$ac_cv_type_long" = yes; then
13405      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13406 See \`config.log' for more details." >&5
13407 echo "$as_me: error: cannot compute sizeof (long)
13408 See \`config.log' for more details." >&2;}
13409    { (exit 77); exit 77; }; }
13410    else
13411      ac_cv_sizeof_long=0
13412    fi
13413 fi
13414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13415 fi
13416 rm -f conftest.val
13417 fi
13418 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13419 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13420
13421
13422
13423 cat >>confdefs.h <<_ACEOF
13424 #define SIZEOF_LONG $ac_cv_sizeof_long
13425 _ACEOF
13426
13427
13428 { echo "$as_me:$LINENO: checking for long long" >&5
13429 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13430 if test "${ac_cv_type_long_long+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433   cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h.  */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h.  */
13439 $ac_includes_default
13440 typedef long long ac__type_new_;
13441 int
13442 main ()
13443 {
13444 if ((ac__type_new_ *) 0)
13445   return 0;
13446 if (sizeof (ac__type_new_))
13447   return 0;
13448   ;
13449   return 0;
13450 }
13451 _ACEOF
13452 rm -f conftest.$ac_objext
13453 if { (ac_try="$ac_compile"
13454 case "(($ac_try" in
13455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456   *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459   (eval "$ac_compile") 2>conftest.er1
13460   ac_status=$?
13461   grep -v '^ *+' conftest.er1 >conftest.err
13462   rm -f conftest.er1
13463   cat conftest.err >&5
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } && {
13466          test -z "$ac_c_werror_flag" ||
13467          test ! -s conftest.err
13468        } && test -s conftest.$ac_objext; then
13469   ac_cv_type_long_long=yes
13470 else
13471   echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474         ac_cv_type_long_long=no
13475 fi
13476
13477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478 fi
13479 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13480 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13481
13482 # The cast to long int works around a bug in the HP C Compiler
13483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13485 # This bug is HP SR number 8606223364.
13486 { echo "$as_me:$LINENO: checking size of long long" >&5
13487 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13488 if test "${ac_cv_sizeof_long_long+set}" = set; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   if test "$cross_compiling" = yes; then
13492   # Depending upon the size, compute the lo and hi bounds.
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499 $ac_includes_default
13500    typedef long long ac__type_sizeof_;
13501 int
13502 main ()
13503 {
13504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13505 test_array [0] = 0
13506
13507   ;
13508   return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (ac_try="$ac_compile"
13513 case "(($ac_try" in
13514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515   *) ac_try_echo=$ac_try;;
13516 esac
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518   (eval "$ac_compile") 2>conftest.er1
13519   ac_status=$?
13520   grep -v '^ *+' conftest.er1 >conftest.err
13521   rm -f conftest.er1
13522   cat conftest.err >&5
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } && {
13525          test -z "$ac_c_werror_flag" ||
13526          test ! -s conftest.err
13527        } && test -s conftest.$ac_objext; then
13528   ac_lo=0 ac_mid=0
13529   while :; do
13530     cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h.  */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h.  */
13536 $ac_includes_default
13537    typedef long long ac__type_sizeof_;
13538 int
13539 main ()
13540 {
13541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13542 test_array [0] = 0
13543
13544   ;
13545   return 0;
13546 }
13547 _ACEOF
13548 rm -f conftest.$ac_objext
13549 if { (ac_try="$ac_compile"
13550 case "(($ac_try" in
13551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552   *) ac_try_echo=$ac_try;;
13553 esac
13554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555   (eval "$ac_compile") 2>conftest.er1
13556   ac_status=$?
13557   grep -v '^ *+' conftest.er1 >conftest.err
13558   rm -f conftest.er1
13559   cat conftest.err >&5
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); } && {
13562          test -z "$ac_c_werror_flag" ||
13563          test ! -s conftest.err
13564        } && test -s conftest.$ac_objext; then
13565   ac_hi=$ac_mid; break
13566 else
13567   echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13569
13570         ac_lo=`expr $ac_mid + 1`
13571                         if test $ac_lo -le $ac_mid; then
13572                           ac_lo= ac_hi=
13573                           break
13574                         fi
13575                         ac_mid=`expr 2 '*' $ac_mid + 1`
13576 fi
13577
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579   done
13580 else
13581   echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584         cat >conftest.$ac_ext <<_ACEOF
13585 /* confdefs.h.  */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h.  */
13590 $ac_includes_default
13591    typedef long long ac__type_sizeof_;
13592 int
13593 main ()
13594 {
13595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13596 test_array [0] = 0
13597
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609   (eval "$ac_compile") 2>conftest.er1
13610   ac_status=$?
13611   grep -v '^ *+' conftest.er1 >conftest.err
13612   rm -f conftest.er1
13613   cat conftest.err >&5
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); } && {
13616          test -z "$ac_c_werror_flag" ||
13617          test ! -s conftest.err
13618        } && test -s conftest.$ac_objext; then
13619   ac_hi=-1 ac_mid=-1
13620   while :; do
13621     cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h.  */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h.  */
13627 $ac_includes_default
13628    typedef long long ac__type_sizeof_;
13629 int
13630 main ()
13631 {
13632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13633 test_array [0] = 0
13634
13635   ;
13636   return 0;
13637 }
13638 _ACEOF
13639 rm -f conftest.$ac_objext
13640 if { (ac_try="$ac_compile"
13641 case "(($ac_try" in
13642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643   *) ac_try_echo=$ac_try;;
13644 esac
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646   (eval "$ac_compile") 2>conftest.er1
13647   ac_status=$?
13648   grep -v '^ *+' conftest.er1 >conftest.err
13649   rm -f conftest.er1
13650   cat conftest.err >&5
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } && {
13653          test -z "$ac_c_werror_flag" ||
13654          test ! -s conftest.err
13655        } && test -s conftest.$ac_objext; then
13656   ac_lo=$ac_mid; break
13657 else
13658   echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13660
13661         ac_hi=`expr '(' $ac_mid ')' - 1`
13662                         if test $ac_mid -le $ac_hi; then
13663                           ac_lo= ac_hi=
13664                           break
13665                         fi
13666                         ac_mid=`expr 2 '*' $ac_mid`
13667 fi
13668
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670   done
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675         ac_lo= ac_hi=
13676 fi
13677
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 fi
13680
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 # Binary search between lo and hi bounds.
13683 while test "x$ac_lo" != "x$ac_hi"; do
13684   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13685   cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691 $ac_includes_default
13692    typedef long long ac__type_sizeof_;
13693 int
13694 main ()
13695 {
13696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13697 test_array [0] = 0
13698
13699   ;
13700   return 0;
13701 }
13702 _ACEOF
13703 rm -f conftest.$ac_objext
13704 if { (ac_try="$ac_compile"
13705 case "(($ac_try" in
13706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707   *) ac_try_echo=$ac_try;;
13708 esac
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710   (eval "$ac_compile") 2>conftest.er1
13711   ac_status=$?
13712   grep -v '^ *+' conftest.er1 >conftest.err
13713   rm -f conftest.er1
13714   cat conftest.err >&5
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); } && {
13717          test -z "$ac_c_werror_flag" ||
13718          test ! -s conftest.err
13719        } && test -s conftest.$ac_objext; then
13720   ac_hi=$ac_mid
13721 else
13722   echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13724
13725         ac_lo=`expr '(' $ac_mid ')' + 1`
13726 fi
13727
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729 done
13730 case $ac_lo in
13731 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13732 '') if test "$ac_cv_type_long_long" = yes; then
13733      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13734 See \`config.log' for more details." >&5
13735 echo "$as_me: error: cannot compute sizeof (long long)
13736 See \`config.log' for more details." >&2;}
13737    { (exit 77); exit 77; }; }
13738    else
13739      ac_cv_sizeof_long_long=0
13740    fi ;;
13741 esac
13742 else
13743   cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h.  */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h.  */
13749 $ac_includes_default
13750    typedef long long ac__type_sizeof_;
13751 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13752 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13753 #include <stdio.h>
13754 #include <stdlib.h>
13755 int
13756 main ()
13757 {
13758
13759   FILE *f = fopen ("conftest.val", "w");
13760   if (! f)
13761     return 1;
13762   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13763     {
13764       long int i = longval ();
13765       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13766         return 1;
13767       fprintf (f, "%ld\n", i);
13768     }
13769   else
13770     {
13771       unsigned long int i = ulongval ();
13772       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13773         return 1;
13774       fprintf (f, "%lu\n", i);
13775     }
13776   return ferror (f) || fclose (f) != 0;
13777
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 rm -f conftest$ac_exeext
13783 if { (ac_try="$ac_link"
13784 case "(($ac_try" in
13785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786   *) ac_try_echo=$ac_try;;
13787 esac
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789   (eval "$ac_link") 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13793   { (case "(($ac_try" in
13794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795   *) ac_try_echo=$ac_try;;
13796 esac
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798   (eval "$ac_try") 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; }; then
13802   ac_cv_sizeof_long_long=`cat conftest.val`
13803 else
13804   echo "$as_me: program exited with status $ac_status" >&5
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13807
13808 ( exit $ac_status )
13809 if test "$ac_cv_type_long_long" = yes; then
13810      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13811 See \`config.log' for more details." >&5
13812 echo "$as_me: error: cannot compute sizeof (long long)
13813 See \`config.log' for more details." >&2;}
13814    { (exit 77); exit 77; }; }
13815    else
13816      ac_cv_sizeof_long_long=0
13817    fi
13818 fi
13819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 rm -f conftest.val
13822 fi
13823 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13824 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13825
13826
13827
13828 cat >>confdefs.h <<_ACEOF
13829 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13830 _ACEOF
13831
13832
13833 SIZEOF_SHORT=$ac_cv_sizeof_short
13834 SIZEOF_INT=$ac_cv_sizeof_int
13835 SIZEOF_LONG=$ac_cv_sizeof_long
13836 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13837
13838
13839
13840
13841 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13842 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13843 if test "${ac_cv_c_bigendian+set}" = set; then
13844   echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846   # See if sys/param.h defines the BYTE_ORDER macro.
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h.  */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h.  */
13853 #include <sys/types.h>
13854 #include <sys/param.h>
13855
13856 int
13857 main ()
13858 {
13859 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13860         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13861  bogus endian macros
13862 #endif
13863
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext
13869 if { (ac_try="$ac_compile"
13870 case "(($ac_try" in
13871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872   *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875   (eval "$ac_compile") 2>conftest.er1
13876   ac_status=$?
13877   grep -v '^ *+' conftest.er1 >conftest.err
13878   rm -f conftest.er1
13879   cat conftest.err >&5
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); } && {
13882          test -z "$ac_c_werror_flag" ||
13883          test ! -s conftest.err
13884        } && test -s conftest.$ac_objext; then
13885   # It does; now see whether it defined to BIG_ENDIAN or not.
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h.  */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h.  */
13892 #include <sys/types.h>
13893 #include <sys/param.h>
13894
13895 int
13896 main ()
13897 {
13898 #if BYTE_ORDER != BIG_ENDIAN
13899  not big endian
13900 #endif
13901
13902   ;
13903   return 0;
13904 }
13905 _ACEOF
13906 rm -f conftest.$ac_objext
13907 if { (ac_try="$ac_compile"
13908 case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913   (eval "$ac_compile") 2>conftest.er1
13914   ac_status=$?
13915   grep -v '^ *+' conftest.er1 >conftest.err
13916   rm -f conftest.er1
13917   cat conftest.err >&5
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } && {
13920          test -z "$ac_c_werror_flag" ||
13921          test ! -s conftest.err
13922        } && test -s conftest.$ac_objext; then
13923   ac_cv_c_bigendian=yes
13924 else
13925   echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13927
13928         ac_cv_c_bigendian=no
13929 fi
13930
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932 else
13933   echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13935
13936         # It does not; compile a test program.
13937 if test "$cross_compiling" = yes; then
13938   # try to guess the endianness by grepping values into an object file
13939   ac_cv_c_bigendian=unknown
13940   cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h.  */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h.  */
13946 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13947 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13948 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13949 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13950 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13951 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13952 int
13953 main ()
13954 {
13955  _ascii (); _ebcdic ();
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 rm -f conftest.$ac_objext
13961 if { (ac_try="$ac_compile"
13962 case "(($ac_try" in
13963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964   *) ac_try_echo=$ac_try;;
13965 esac
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967   (eval "$ac_compile") 2>conftest.er1
13968   ac_status=$?
13969   grep -v '^ *+' conftest.er1 >conftest.err
13970   rm -f conftest.er1
13971   cat conftest.err >&5
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); } && {
13974          test -z "$ac_c_werror_flag" ||
13975          test ! -s conftest.err
13976        } && test -s conftest.$ac_objext; then
13977   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13978   ac_cv_c_bigendian=yes
13979 fi
13980 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13981   if test "$ac_cv_c_bigendian" = unknown; then
13982     ac_cv_c_bigendian=no
13983   else
13984     # finding both strings is unlikely to happen, but who knows?
13985     ac_cv_c_bigendian=unknown
13986   fi
13987 fi
13988 else
13989   echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992
13993 fi
13994
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996 else
13997   cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h.  */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h.  */
14003 $ac_includes_default
14004 int
14005 main ()
14006 {
14007
14008   /* Are we little or big endian?  From Harbison&Steele.  */
14009   union
14010   {
14011     long int l;
14012     char c[sizeof (long int)];
14013   } u;
14014   u.l = 1;
14015   return u.c[sizeof (long int) - 1] == 1;
14016
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 rm -f conftest$ac_exeext
14022 if { (ac_try="$ac_link"
14023 case "(($ac_try" in
14024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025   *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028   (eval "$ac_link") 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14032   { (case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_try") 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; }; then
14041   ac_cv_c_bigendian=no
14042 else
14043   echo "$as_me: program exited with status $ac_status" >&5
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 ( exit $ac_status )
14048 ac_cv_c_bigendian=yes
14049 fi
14050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14051 fi
14052
14053
14054 fi
14055
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 fi
14058 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14059 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14060 case $ac_cv_c_bigendian in
14061   yes)
14062
14063 cat >>confdefs.h <<\_ACEOF
14064 #define WORDS_BIGENDIAN 1
14065 _ACEOF
14066  ;;
14067   no)
14068      ;;
14069   *)
14070     { { echo "$as_me:$LINENO: error: unknown endianness
14071 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14072 echo "$as_me: error: unknown endianness
14073 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14074    { (exit 1); exit 1; }; } ;;
14075 esac
14076
14077 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14078 ASM_TYPES_HEADER=./asm_types.h
14079
14080
14081 for ac_header in inttypes.h
14082 do
14083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14085   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14088   echo $ECHO_N "(cached) $ECHO_C" >&6
14089 fi
14090 ac_res=`eval echo '${'$as_ac_Header'}'`
14091                { echo "$as_me:$LINENO: result: $ac_res" >&5
14092 echo "${ECHO_T}$ac_res" >&6; }
14093 else
14094   # Is the header compilable?
14095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14097 cat >conftest.$ac_ext <<_ACEOF
14098 /* confdefs.h.  */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h.  */
14103 $ac_includes_default
14104 #include <$ac_header>
14105 _ACEOF
14106 rm -f conftest.$ac_objext
14107 if { (ac_try="$ac_compile"
14108 case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_compile") 2>conftest.er1
14114   ac_status=$?
14115   grep -v '^ *+' conftest.er1 >conftest.err
14116   rm -f conftest.er1
14117   cat conftest.err >&5
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } && {
14120          test -z "$ac_c_werror_flag" ||
14121          test ! -s conftest.err
14122        } && test -s conftest.$ac_objext; then
14123   ac_header_compiler=yes
14124 else
14125   echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128         ac_header_compiler=no
14129 fi
14130
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14133 echo "${ECHO_T}$ac_header_compiler" >&6; }
14134
14135 # Is the header present?
14136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14138 cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h.  */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h.  */
14144 #include <$ac_header>
14145 _ACEOF
14146 if { (ac_try="$ac_cpp conftest.$ac_ext"
14147 case "(($ac_try" in
14148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149   *) ac_try_echo=$ac_try;;
14150 esac
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14153   ac_status=$?
14154   grep -v '^ *+' conftest.er1 >conftest.err
14155   rm -f conftest.er1
14156   cat conftest.err >&5
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); } >/dev/null && {
14159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14160          test ! -s conftest.err
14161        }; then
14162   ac_header_preproc=yes
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167   ac_header_preproc=no
14168 fi
14169
14170 rm -f conftest.err conftest.$ac_ext
14171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172 echo "${ECHO_T}$ac_header_preproc" >&6; }
14173
14174 # So?  What about this header?
14175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14176   yes:no: )
14177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14181     ac_header_preproc=yes
14182     ;;
14183   no:yes:* )
14184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14196
14197     ;;
14198 esac
14199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14202   echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204   eval "$as_ac_Header=\$ac_header_preproc"
14205 fi
14206 ac_res=`eval echo '${'$as_ac_Header'}'`
14207                { echo "$as_me:$LINENO: result: $ac_res" >&5
14208 echo "${ECHO_T}$ac_res" >&6; }
14209
14210 fi
14211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14212   cat >>confdefs.h <<_ACEOF
14213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14214 _ACEOF
14215
14216 fi
14217
14218 done
14219
14220 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14221 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14222 if test "${ac_cv_type_intptr_t+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h.  */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h.  */
14231 $ac_includes_default
14232 typedef intptr_t ac__type_new_;
14233 int
14234 main ()
14235 {
14236 if ((ac__type_new_ *) 0)
14237   return 0;
14238 if (sizeof (ac__type_new_))
14239   return 0;
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (ac_try="$ac_compile"
14246 case "(($ac_try" in
14247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248   *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251   (eval "$ac_compile") 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } && {
14258          test -z "$ac_c_werror_flag" ||
14259          test ! -s conftest.err
14260        } && test -s conftest.$ac_objext; then
14261   ac_cv_type_intptr_t=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266         ac_cv_type_intptr_t=no
14267 fi
14268
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 fi
14271 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14272 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14273 if test $ac_cv_type_intptr_t = yes; then
14274
14275 cat >>confdefs.h <<_ACEOF
14276 #define HAVE_INTPTR_T 1
14277 _ACEOF
14278
14279
14280 fi
14281
14282 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14283 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14284 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
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 #include <sys/stat.h>
14294 int
14295 main ()
14296 {
14297 struct stat stat; stat.st_flags = 0;
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_compile") 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } && {
14316          test -z "$ac_c_werror_flag" ||
14317          test ! -s conftest.err
14318        } && test -s conftest.$ac_objext; then
14319   e2fsprogs_cv_struct_st_flags=yes
14320 else
14321   echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14323
14324         e2fsprogs_cv_struct_st_flags=no
14325 fi
14326
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328 fi
14329
14330 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14331 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14332 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14333   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14334 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14335   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14336   echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338   cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h.  */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h.  */
14344 #include <sys/stat.h>
14345 int
14346 main ()
14347 {
14348 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357   *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360   (eval "$ac_compile") 2>conftest.er1
14361   ac_status=$?
14362   grep -v '^ *+' conftest.er1 >conftest.err
14363   rm -f conftest.er1
14364   cat conftest.err >&5
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); } && {
14367          test -z "$ac_c_werror_flag" ||
14368          test ! -s conftest.err
14369        } && test -s conftest.$ac_objext; then
14370   e2fsprogs_cv_struct_st_flags_immut=yes
14371 else
14372   echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375         e2fsprogs_cv_struct_st_flags_immut=no
14376 fi
14377
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379 fi
14380
14381   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14382 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14383   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14384           cat >>confdefs.h <<\_ACEOF
14385 #define HAVE_STAT_FLAGS 1
14386 _ACEOF
14387
14388   fi
14389 fi
14390 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14391 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14392 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h.  */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h.  */
14401 #include <sys/types.h>
14402          #include <sys/socket.h>
14403
14404 int
14405 main ()
14406 {
14407 static struct sockaddr ac_aggr;
14408 if (ac_aggr.sa_len)
14409 return 0;
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 rm -f conftest.$ac_objext
14415 if { (ac_try="$ac_compile"
14416 case "(($ac_try" in
14417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418   *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421   (eval "$ac_compile") 2>conftest.er1
14422   ac_status=$?
14423   grep -v '^ *+' conftest.er1 >conftest.err
14424   rm -f conftest.er1
14425   cat conftest.err >&5
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); } && {
14428          test -z "$ac_c_werror_flag" ||
14429          test ! -s conftest.err
14430        } && test -s conftest.$ac_objext; then
14431   ac_cv_member_struct_sockaddr_sa_len=yes
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436         cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442 #include <sys/types.h>
14443          #include <sys/socket.h>
14444
14445 int
14446 main ()
14447 {
14448 static struct sockaddr ac_aggr;
14449 if (sizeof ac_aggr.sa_len)
14450 return 0;
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest.$ac_objext
14456 if { (ac_try="$ac_compile"
14457 case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462   (eval "$ac_compile") 2>conftest.er1
14463   ac_status=$?
14464   grep -v '^ *+' conftest.er1 >conftest.err
14465   rm -f conftest.er1
14466   cat conftest.err >&5
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); } && {
14469          test -z "$ac_c_werror_flag" ||
14470          test ! -s conftest.err
14471        } && test -s conftest.$ac_objext; then
14472   ac_cv_member_struct_sockaddr_sa_len=yes
14473 else
14474   echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477         ac_cv_member_struct_sockaddr_sa_len=no
14478 fi
14479
14480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481 fi
14482
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 fi
14485 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14486 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14487 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14488
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_SA_LEN 1
14491 _ACEOF
14492
14493 fi
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime
14522 do
14523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14537 #define $ac_func innocuous_$ac_func
14538
14539 /* System header to define __stub macros and hopefully few prototypes,
14540     which can conflict with char $ac_func (); below.
14541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542     <limits.h> exists even on freestanding compilers.  */
14543
14544 #ifdef __STDC__
14545 # include <limits.h>
14546 #else
14547 # include <assert.h>
14548 #endif
14549
14550 #undef $ac_func
14551
14552 /* Override any GCC internal prototype to avoid an error.
14553    Use char because int might match the return type of a GCC
14554    builtin and then its argument prototype would still apply.  */
14555 #ifdef __cplusplus
14556 extern "C"
14557 #endif
14558 char $ac_func ();
14559 /* The GNU C library defines this for functions which it implements
14560     to always fail with ENOSYS.  Some functions are actually named
14561     something starting with __ and the normal name is an alias.  */
14562 #if defined __stub_$ac_func || defined __stub___$ac_func
14563 choke me
14564 #endif
14565
14566 int
14567 main ()
14568 {
14569 return $ac_func ();
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (ac_try="$ac_link"
14576 case "(($ac_try" in
14577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578   *) ac_try_echo=$ac_try;;
14579 esac
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581   (eval "$ac_link") 2>conftest.er1
14582   ac_status=$?
14583   grep -v '^ *+' conftest.er1 >conftest.err
14584   rm -f conftest.er1
14585   cat conftest.err >&5
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); } && {
14588          test -z "$ac_c_werror_flag" ||
14589          test ! -s conftest.err
14590        } && test -s conftest$ac_exeext &&
14591        $as_test_x conftest$ac_exeext; then
14592   eval "$as_ac_var=yes"
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597         eval "$as_ac_var=no"
14598 fi
14599
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601       conftest$ac_exeext conftest.$ac_ext
14602 fi
14603 ac_res=`eval echo '${'$as_ac_var'}'`
14604                { echo "$as_me:$LINENO: result: $ac_res" >&5
14605 echo "${ECHO_T}$ac_res" >&6; }
14606 if test `eval echo '${'$as_ac_var'}'` = yes; then
14607   cat >>confdefs.h <<_ACEOF
14608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14609 _ACEOF
14610
14611 fi
14612 done
14613
14614 SOCKET_LIB=''
14615 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14616 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14617 if test "${ac_cv_lib_socket_socket+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   ac_check_lib_save_LIBS=$LIBS
14621 LIBS="-lsocket  $LIBS"
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628
14629 /* Override any GCC internal prototype to avoid an error.
14630    Use char because int might match the return type of a GCC
14631    builtin and then its argument prototype would still apply.  */
14632 #ifdef __cplusplus
14633 extern "C"
14634 #endif
14635 char socket ();
14636 int
14637 main ()
14638 {
14639 return socket ();
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (ac_try="$ac_link"
14646 case "(($ac_try" in
14647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648   *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651   (eval "$ac_link") 2>conftest.er1
14652   ac_status=$?
14653   grep -v '^ *+' conftest.er1 >conftest.err
14654   rm -f conftest.er1
14655   cat conftest.err >&5
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); } && {
14658          test -z "$ac_c_werror_flag" ||
14659          test ! -s conftest.err
14660        } && test -s conftest$ac_exeext &&
14661        $as_test_x conftest$ac_exeext; then
14662   ac_cv_lib_socket_socket=yes
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667         ac_cv_lib_socket_socket=no
14668 fi
14669
14670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14671       conftest$ac_exeext conftest.$ac_ext
14672 LIBS=$ac_check_lib_save_LIBS
14673 fi
14674 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14675 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14676 if test $ac_cv_lib_socket_socket = yes; then
14677   SOCKET_LIB=-lsocket
14678 fi
14679
14680
14681 DLOPEN_LIB=''
14682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14683 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14684 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14685   echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687   ac_check_lib_save_LIBS=$LIBS
14688 LIBS="-ldl  $LIBS"
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695
14696 /* Override any GCC internal prototype to avoid an error.
14697    Use char because int might match the return type of a GCC
14698    builtin and then its argument prototype would still apply.  */
14699 #ifdef __cplusplus
14700 extern "C"
14701 #endif
14702 char dlopen ();
14703 int
14704 main ()
14705 {
14706 return dlopen ();
14707   ;
14708   return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (ac_try="$ac_link"
14713 case "(($ac_try" in
14714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715   *) ac_try_echo=$ac_try;;
14716 esac
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718   (eval "$ac_link") 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } && {
14725          test -z "$ac_c_werror_flag" ||
14726          test ! -s conftest.err
14727        } && test -s conftest$ac_exeext &&
14728        $as_test_x conftest$ac_exeext; then
14729   ac_cv_lib_dl_dlopen=yes
14730 else
14731   echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734         ac_cv_lib_dl_dlopen=no
14735 fi
14736
14737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14738       conftest$ac_exeext conftest.$ac_ext
14739 LIBS=$ac_check_lib_save_LIBS
14740 fi
14741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14743 if test $ac_cv_lib_dl_dlopen = yes; then
14744   DLOPEN_LIB=-ldl
14745 cat >>confdefs.h <<\_ACEOF
14746 #define HAVE_DLOPEN 1
14747 _ACEOF
14748
14749 fi
14750
14751
14752 { echo "$as_me:$LINENO: checking for optreset" >&5
14753 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14754 if test "${ac_cv_have_optreset+set}" = set; then
14755   echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757   cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h.  */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h.  */
14763 #include <unistd.h>
14764
14765 _ACEOF
14766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14767   $EGREP "optreset" >/dev/null 2>&1; then
14768   ac_cv_have_optreset=yes
14769 else
14770   ac_cv_have_optreset=no
14771 fi
14772 rm -f conftest*
14773
14774 fi
14775 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14776 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14777 if test $ac_cv_have_optreset = yes; then
14778   cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_OPTRESET 1
14780 _ACEOF
14781
14782 fi
14783 { echo "$as_me:$LINENO: checking for unified diff option" >&5
14784 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
14785 if diff -u $0 $0 >& /dev/null ; then
14786    UNI_DIFF_OPTS=-u
14787 else
14788    UNI_DIFF_OPTS=-c
14789 fi
14790 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14791 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
14792
14793 case "$host_os" in
14794 linux*)
14795         cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_EXT2_IOCTLS 1
14797 _ACEOF
14798
14799         ;;
14800 esac
14801 LINUX_CMT="#"
14802 CYGWIN_CMT="#"
14803 UNIX_CMT=
14804 case "$host_os" in
14805 linux*)
14806         LINUX_CMT=
14807         ;;
14808 cygwin)
14809         CYGWIN_CMT=
14810         UNIX_CMT="#"
14811         ;;
14812 esac
14813
14814
14815
14816 case "$host_os" in
14817 linux* | gnu* | k*bsd*-gnu)
14818         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14819                 root_prefix="";
14820                 echo "On $host_os systems, root_prefix defaults to ''"
14821         fi
14822         ;;
14823 esac
14824 case "$host_os" in
14825 linux* | gnu* | k*bsd*-gnu)
14826         if test "$prefix" = NONE ; then
14827                 prefix="/usr";
14828                 echo "On $host_os systems, prefix defaults to /usr"
14829                 if test "$mandir" = '${prefix}/man' ; then
14830                         echo "...and mandir defaults to /usr/share/man"
14831                         mandir=/usr/share/man
14832                 fi
14833         fi
14834 ;;
14835 esac
14836 if test "$root_prefix" = NONE ; then
14837         if test "$prefix" = NONE ; then
14838                 root_prefix="$ac_default_prefix"
14839         else
14840                 root_prefix="$prefix"
14841         fi
14842         root_bindir=$bindir
14843         root_sbindir=$sbindir
14844         root_libdir=$libdir
14845         root_sysconfdir=$sysconfdir
14846 else
14847         root_bindir='${root_prefix}/bin'
14848         root_sbindir='${root_prefix}/sbin'
14849         root_libdir='${root_prefix}/lib'
14850         root_sysconfdir='${root_prefix}/etc'
14851 fi
14852
14853
14854
14855
14856
14857 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14858 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
14859 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14860   echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h.  */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h.  */
14869 #include <stdio.h>
14870 int
14871 main ()
14872 {
14873 fflush(stdout);
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext conftest$ac_exeext
14879 if { (ac_try="$ac_link"
14880 case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_link") 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && {
14892          test -z "$ac_c_werror_flag" ||
14893          test ! -s conftest.err
14894        } && test -s conftest$ac_exeext &&
14895        $as_test_x conftest$ac_exeext; then
14896   ac_cv_e2fsprogs_use_static=yes
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901         ac_cv_e2fsprogs_use_static=no
14902 fi
14903
14904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14905       conftest$ac_exeext conftest.$ac_ext
14906 LDFLAGS=$SAVE_LDFLAGS
14907 fi
14908
14909 case "$host_os" in
14910 solaris2.*)
14911         ac_cv_e2fsprogs_use_static=no
14912 ;;
14913 esac
14914 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14915 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
14916 LDFLAG_STATIC=
14917 if test $ac_cv_e2fsprogs_use_static = yes; then
14918         LDFLAG_STATIC=-static
14919 fi
14920
14921 case "$host_os" in
14922 darwin*)
14923         echo "Using Apple Darwin / GNU libintl workaround"
14924         cat >>confdefs.h <<\_ACEOF
14925 #define _INTL_REDIRECT_MACROS 1
14926 _ACEOF
14927
14928         ;;
14929 esac
14930 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14931 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14932
14933
14934 if test "$cross_compiling" = yes ; then
14935   DO_TEST_SUITE=
14936 else
14937   DO_TEST_SUITE=check
14938 fi
14939
14940 INTL_FLAGS=
14941 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14942         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14943 fi
14944
14945 if test $cross_compiling = no; then
14946    BUILD_CFLAGS="$CFLAGS"
14947    BUILD_LDFLAGS="$LDFLAGS"
14948 else
14949    BUILD_CFLAGS=
14950    BUILD_LDFLAGS=
14951 fi
14952
14953
14954 test -d lib || mkdir lib
14955 test -d include || mkdir include
14956 test -d include/linux || mkdir include/linux
14957 test -d include/asm || mkdir include/asm
14958 for i in MCONFIG Makefile e2fsprogs.spec \
14959         util/Makefile util/subst.conf util/gen-tarball \
14960         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14961         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14962         lib/uuid/Makefile lib/uuid/uuid_types.h \
14963         lib/blkid/Makefile lib/blkid/blkid_types.h \
14964         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14965         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14966         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14967         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14968         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14969         if test -d `dirname ${srcdir}/$i` ; then
14970                 outlist="$outlist $i"
14971         fi
14972 done
14973 ac_config_files="$ac_config_files $outlist"
14974
14975 cat >confcache <<\_ACEOF
14976 # This file is a shell script that caches the results of configure
14977 # tests run on this system so they can be shared between configure
14978 # scripts and configure runs, see configure's option --config-cache.
14979 # It is not useful on other systems.  If it contains results you don't
14980 # want to keep, you may remove or edit it.
14981 #
14982 # config.status only pays attention to the cache file if you give it
14983 # the --recheck option to rerun configure.
14984 #
14985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14987 # following values.
14988
14989 _ACEOF
14990
14991 # The following way of writing the cache mishandles newlines in values,
14992 # but we know of no workaround that is simple, portable, and efficient.
14993 # So, we kill variables containing newlines.
14994 # Ultrix sh set writes to stderr and can't be redirected directly,
14995 # and sets the high bit in the cache file unless we assign to the vars.
14996 (
14997   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14998     eval ac_val=\$$ac_var
14999     case $ac_val in #(
15000     *${as_nl}*)
15001       case $ac_var in #(
15002       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15003 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15004       esac
15005       case $ac_var in #(
15006       _ | IFS | as_nl) ;; #(
15007       *) $as_unset $ac_var ;;
15008       esac ;;
15009     esac
15010   done
15011
15012   (set) 2>&1 |
15013     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15014     *${as_nl}ac_space=\ *)
15015       # `set' does not quote correctly, so add quotes (double-quote
15016       # substitution turns \\\\ into \\, and sed turns \\ into \).
15017       sed -n \
15018         "s/'/'\\\\''/g;
15019           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15020       ;; #(
15021     *)
15022       # `set' quotes correctly as required by POSIX, so do not add quotes.
15023       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15024       ;;
15025     esac |
15026     sort
15027 ) |
15028   sed '
15029      /^ac_cv_env_/b end
15030      t clear
15031      :clear
15032      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15033      t end
15034      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15035      :end' >>confcache
15036 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15037   if test -w "$cache_file"; then
15038     test "x$cache_file" != "x/dev/null" &&
15039       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15040 echo "$as_me: updating cache $cache_file" >&6;}
15041     cat confcache >$cache_file
15042   else
15043     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15044 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15045   fi
15046 fi
15047 rm -f confcache
15048
15049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15050 # Let make expand exec_prefix.
15051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15052
15053 # Transform confdefs.h into DEFS.
15054 # Protect against shell expansion while executing Makefile rules.
15055 # Protect against Makefile macro expansion.
15056 #
15057 # If the first sed substitution is executed (which looks for macros that
15058 # take arguments), then branch to the quote section.  Otherwise,
15059 # look for a macro that doesn't take arguments.
15060 ac_script='
15061 t clear
15062 :clear
15063 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15064 t quote
15065 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15066 t quote
15067 b any
15068 :quote
15069 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15070 s/\[/\\&/g
15071 s/\]/\\&/g
15072 s/\$/$$/g
15073 H
15074 :any
15075 ${
15076         g
15077         s/^\n//
15078         s/\n/ /g
15079         p
15080 }
15081 '
15082 DEFS=`sed -n "$ac_script" confdefs.h`
15083
15084
15085 ac_libobjs=
15086 ac_ltlibobjs=
15087 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15088   # 1. Remove the extension, and $U if already installed.
15089   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15090   ac_i=`echo "$ac_i" | sed "$ac_script"`
15091   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15092   #    will be set to the directory where LIBOBJS objects are built.
15093   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15094   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15095 done
15096 LIBOBJS=$ac_libobjs
15097
15098 LTLIBOBJS=$ac_ltlibobjs
15099
15100
15101
15102 : ${CONFIG_STATUS=./config.status}
15103 ac_clean_files_save=$ac_clean_files
15104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15105 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15106 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15107 cat >$CONFIG_STATUS <<_ACEOF
15108 #! $SHELL
15109 # Generated by $as_me.
15110 # Run this file to recreate the current configuration.
15111 # Compiler output produced by configure, useful for debugging
15112 # configure, is in config.log if it exists.
15113
15114 debug=false
15115 ac_cs_recheck=false
15116 ac_cs_silent=false
15117 SHELL=\${CONFIG_SHELL-$SHELL}
15118 _ACEOF
15119
15120 cat >>$CONFIG_STATUS <<\_ACEOF
15121 ## --------------------- ##
15122 ## M4sh Initialization.  ##
15123 ## --------------------- ##
15124
15125 # Be more Bourne compatible
15126 DUALCASE=1; export DUALCASE # for MKS sh
15127 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15128   emulate sh
15129   NULLCMD=:
15130   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15131   # is contrary to our usage.  Disable this feature.
15132   alias -g '${1+"$@"}'='"$@"'
15133   setopt NO_GLOB_SUBST
15134 else
15135   case `(set -o) 2>/dev/null` in
15136   *posix*) set -o posix ;;
15137 esac
15138
15139 fi
15140
15141
15142
15143
15144 # PATH needs CR
15145 # Avoid depending upon Character Ranges.
15146 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15147 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15148 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15149 as_cr_digits='0123456789'
15150 as_cr_alnum=$as_cr_Letters$as_cr_digits
15151
15152 # The user is always right.
15153 if test "${PATH_SEPARATOR+set}" != set; then
15154   echo "#! /bin/sh" >conf$$.sh
15155   echo  "exit 0"   >>conf$$.sh
15156   chmod +x conf$$.sh
15157   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15158     PATH_SEPARATOR=';'
15159   else
15160     PATH_SEPARATOR=:
15161   fi
15162   rm -f conf$$.sh
15163 fi
15164
15165 # Support unset when possible.
15166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15167   as_unset=unset
15168 else
15169   as_unset=false
15170 fi
15171
15172
15173 # IFS
15174 # We need space, tab and new line, in precisely that order.  Quoting is
15175 # there to prevent editors from complaining about space-tab.
15176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15177 # splitting by setting IFS to empty value.)
15178 as_nl='
15179 '
15180 IFS=" ""        $as_nl"
15181
15182 # Find who we are.  Look in the path if we contain no directory separator.
15183 case $0 in
15184   *[\\/]* ) as_myself=$0 ;;
15185   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $PATH
15187 do
15188   IFS=$as_save_IFS
15189   test -z "$as_dir" && as_dir=.
15190   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15191 done
15192 IFS=$as_save_IFS
15193
15194      ;;
15195 esac
15196 # We did not find ourselves, most probably we were run as `sh COMMAND'
15197 # in which case we are not to be found in the path.
15198 if test "x$as_myself" = x; then
15199   as_myself=$0
15200 fi
15201 if test ! -f "$as_myself"; then
15202   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15203   { (exit 1); exit 1; }
15204 fi
15205
15206 # Work around bugs in pre-3.0 UWIN ksh.
15207 for as_var in ENV MAIL MAILPATH
15208 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15209 done
15210 PS1='$ '
15211 PS2='> '
15212 PS4='+ '
15213
15214 # NLS nuisances.
15215 for as_var in \
15216   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15217   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15218   LC_TELEPHONE LC_TIME
15219 do
15220   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15221     eval $as_var=C; export $as_var
15222   else
15223     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15224   fi
15225 done
15226
15227 # Required to use basename.
15228 if expr a : '\(a\)' >/dev/null 2>&1 &&
15229    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15230   as_expr=expr
15231 else
15232   as_expr=false
15233 fi
15234
15235 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15236   as_basename=basename
15237 else
15238   as_basename=false
15239 fi
15240
15241
15242 # Name of the executable.
15243 as_me=`$as_basename -- "$0" ||
15244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15245          X"$0" : 'X\(//\)$' \| \
15246          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15247 echo X/"$0" |
15248     sed '/^.*\/\([^/][^/]*\)\/*$/{
15249             s//\1/
15250             q
15251           }
15252           /^X\/\(\/\/\)$/{
15253             s//\1/
15254             q
15255           }
15256           /^X\/\(\/\).*/{
15257             s//\1/
15258             q
15259           }
15260           s/.*/./; q'`
15261
15262 # CDPATH.
15263 $as_unset CDPATH
15264
15265
15266
15267   as_lineno_1=$LINENO
15268   as_lineno_2=$LINENO
15269   test "x$as_lineno_1" != "x$as_lineno_2" &&
15270   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15271
15272   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15273   # uniformly replaced by the line number.  The first 'sed' inserts a
15274   # line-number line after each line using $LINENO; the second 'sed'
15275   # does the real work.  The second script uses 'N' to pair each
15276   # line-number line with the line containing $LINENO, and appends
15277   # trailing '-' during substitution so that $LINENO is not a special
15278   # case at line end.
15279   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15280   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15281   # E. McMahon (1931-1989) for sed's syntax.  :-)
15282   sed -n '
15283     p
15284     /[$]LINENO/=
15285   ' <$as_myself |
15286     sed '
15287       s/[$]LINENO.*/&-/
15288       t lineno
15289       b
15290       :lineno
15291       N
15292       :loop
15293       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15294       t loop
15295       s/-\n.*//
15296     ' >$as_me.lineno &&
15297   chmod +x "$as_me.lineno" ||
15298     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15299    { (exit 1); exit 1; }; }
15300
15301   # Don't try to exec as it changes $[0], causing all sort of problems
15302   # (the dirname of $[0] is not the place where we might find the
15303   # original and so on.  Autoconf is especially sensitive to this).
15304   . "./$as_me.lineno"
15305   # Exit status is that of the last command.
15306   exit
15307 }
15308
15309
15310 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15311   as_dirname=dirname
15312 else
15313   as_dirname=false
15314 fi
15315
15316 ECHO_C= ECHO_N= ECHO_T=
15317 case `echo -n x` in
15318 -n*)
15319   case `echo 'x\c'` in
15320   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15321   *)   ECHO_C='\c';;
15322   esac;;
15323 *)
15324   ECHO_N='-n';;
15325 esac
15326
15327 if expr a : '\(a\)' >/dev/null 2>&1 &&
15328    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15329   as_expr=expr
15330 else
15331   as_expr=false
15332 fi
15333
15334 rm -f conf$$ conf$$.exe conf$$.file
15335 if test -d conf$$.dir; then
15336   rm -f conf$$.dir/conf$$.file
15337 else
15338   rm -f conf$$.dir
15339   mkdir conf$$.dir
15340 fi
15341 echo >conf$$.file
15342 if ln -s conf$$.file conf$$ 2>/dev/null; then
15343   as_ln_s='ln -s'
15344   # ... but there are two gotchas:
15345   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15346   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15347   # In both cases, we have to default to `cp -p'.
15348   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15349     as_ln_s='cp -p'
15350 elif ln conf$$.file conf$$ 2>/dev/null; then
15351   as_ln_s=ln
15352 else
15353   as_ln_s='cp -p'
15354 fi
15355 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15356 rmdir conf$$.dir 2>/dev/null
15357
15358 if mkdir -p . 2>/dev/null; then
15359   as_mkdir_p=:
15360 else
15361   test -d ./-p && rmdir ./-p
15362   as_mkdir_p=false
15363 fi
15364
15365 if test -x / >/dev/null 2>&1; then
15366   as_test_x='test -x'
15367 else
15368   if ls -dL / >/dev/null 2>&1; then
15369     as_ls_L_option=L
15370   else
15371     as_ls_L_option=
15372   fi
15373   as_test_x='
15374     eval sh -c '\''
15375       if test -d "$1"; then
15376         test -d "$1/.";
15377       else
15378         case $1 in
15379         -*)set "./$1";;
15380         esac;
15381         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15382         ???[sx]*):;;*)false;;esac;fi
15383     '\'' sh
15384   '
15385 fi
15386 as_executable_p=$as_test_x
15387
15388 # Sed expression to map a string onto a valid CPP name.
15389 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15390
15391 # Sed expression to map a string onto a valid variable name.
15392 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15393
15394
15395 exec 6>&1
15396
15397 # Save the log message, to keep $[0] and so on meaningful, and to
15398 # report actual input values of CONFIG_FILES etc. instead of their
15399 # values after options handling.
15400 ac_log="
15401 This file was extended by $as_me, which was
15402 generated by GNU Autoconf 2.61.  Invocation command line was
15403
15404   CONFIG_FILES    = $CONFIG_FILES
15405   CONFIG_HEADERS  = $CONFIG_HEADERS
15406   CONFIG_LINKS    = $CONFIG_LINKS
15407   CONFIG_COMMANDS = $CONFIG_COMMANDS
15408   $ $0 $@
15409
15410 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15411 "
15412
15413 _ACEOF
15414
15415 cat >>$CONFIG_STATUS <<_ACEOF
15416 # Files that config.status was made for.
15417 config_files="$ac_config_files"
15418 config_commands="$ac_config_commands"
15419
15420 _ACEOF
15421
15422 cat >>$CONFIG_STATUS <<\_ACEOF
15423 ac_cs_usage="\
15424 \`$as_me' instantiates files from templates according to the
15425 current configuration.
15426
15427 Usage: $0 [OPTIONS] [FILE]...
15428
15429   -h, --help       print this help, then exit
15430   -V, --version    print version number and configuration settings, then exit
15431   -q, --quiet      do not print progress messages
15432   -d, --debug      don't remove temporary files
15433       --recheck    update $as_me by reconfiguring in the same conditions
15434   --file=FILE[:TEMPLATE]
15435                    instantiate the configuration file FILE
15436
15437 Configuration files:
15438 $config_files
15439
15440 Configuration commands:
15441 $config_commands
15442
15443 Report bugs to <bug-autoconf@gnu.org>."
15444
15445 _ACEOF
15446 cat >>$CONFIG_STATUS <<_ACEOF
15447 ac_cs_version="\\
15448 config.status
15449 configured by $0, generated by GNU Autoconf 2.61,
15450   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15451
15452 Copyright (C) 2006 Free Software Foundation, Inc.
15453 This config.status script is free software; the Free Software Foundation
15454 gives unlimited permission to copy, distribute and modify it."
15455
15456 ac_pwd='$ac_pwd'
15457 srcdir='$srcdir'
15458 INSTALL='$INSTALL'
15459 _ACEOF
15460
15461 cat >>$CONFIG_STATUS <<\_ACEOF
15462 # If no file are specified by the user, then we need to provide default
15463 # value.  By we need to know if files were specified by the user.
15464 ac_need_defaults=:
15465 while test $# != 0
15466 do
15467   case $1 in
15468   --*=*)
15469     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15470     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15471     ac_shift=:
15472     ;;
15473   *)
15474     ac_option=$1
15475     ac_optarg=$2
15476     ac_shift=shift
15477     ;;
15478   esac
15479
15480   case $ac_option in
15481   # Handling of the options.
15482   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15483     ac_cs_recheck=: ;;
15484   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15485     echo "$ac_cs_version"; exit ;;
15486   --debug | --debu | --deb | --de | --d | -d )
15487     debug=: ;;
15488   --file | --fil | --fi | --f )
15489     $ac_shift
15490     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15491     ac_need_defaults=false;;
15492   --he | --h |  --help | --hel | -h )
15493     echo "$ac_cs_usage"; exit ;;
15494   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15495   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15496     ac_cs_silent=: ;;
15497
15498   # This is an error.
15499   -*) { echo "$as_me: error: unrecognized option: $1
15500 Try \`$0 --help' for more information." >&2
15501    { (exit 1); exit 1; }; } ;;
15502
15503   *) ac_config_targets="$ac_config_targets $1"
15504      ac_need_defaults=false ;;
15505
15506   esac
15507   shift
15508 done
15509
15510 ac_configure_extra_args=
15511
15512 if $ac_cs_silent; then
15513   exec 6>/dev/null
15514   ac_configure_extra_args="$ac_configure_extra_args --silent"
15515 fi
15516
15517 _ACEOF
15518 cat >>$CONFIG_STATUS <<_ACEOF
15519 if \$ac_cs_recheck; then
15520   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15521   CONFIG_SHELL=$SHELL
15522   export CONFIG_SHELL
15523   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15524 fi
15525
15526 _ACEOF
15527 cat >>$CONFIG_STATUS <<\_ACEOF
15528 exec 5>>config.log
15529 {
15530   echo
15531   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15532 ## Running $as_me. ##
15533 _ASBOX
15534   echo "$ac_log"
15535 } >&5
15536
15537 _ACEOF
15538 cat >>$CONFIG_STATUS <<_ACEOF
15539 #
15540 # INIT-COMMANDS
15541 #
15542 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15543     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15544     # from automake.
15545     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15546     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15547     LINGUAS="${LINGUAS-%UNSET%}"
15548
15549
15550 _ACEOF
15551
15552 cat >>$CONFIG_STATUS <<\_ACEOF
15553
15554 # Handling of arguments.
15555 for ac_config_target in $ac_config_targets
15556 do
15557   case $ac_config_target in
15558     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15559     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15560
15561   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15562 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15563    { (exit 1); exit 1; }; };;
15564   esac
15565 done
15566
15567
15568 # If the user did not use the arguments to specify the items to instantiate,
15569 # then the envvar interface is used.  Set only those that are not.
15570 # We use the long form for the default assignment because of an extremely
15571 # bizarre bug on SunOS 4.1.3.
15572 if $ac_need_defaults; then
15573   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15574   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15575 fi
15576
15577 # Have a temporary directory for convenience.  Make it in the build tree
15578 # simply because there is no reason against having it here, and in addition,
15579 # creating and moving files from /tmp can sometimes cause problems.
15580 # Hook for its removal unless debugging.
15581 # Note that there is a small window in which the directory will not be cleaned:
15582 # after its creation but before its name has been assigned to `$tmp'.
15583 $debug ||
15584 {
15585   tmp=
15586   trap 'exit_status=$?
15587   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15588 ' 0
15589   trap '{ (exit 1); exit 1; }' 1 2 13 15
15590 }
15591 # Create a (secure) tmp directory for tmp files.
15592
15593 {
15594   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15595   test -n "$tmp" && test -d "$tmp"
15596 }  ||
15597 {
15598   tmp=./conf$$-$RANDOM
15599   (umask 077 && mkdir "$tmp")
15600 } ||
15601 {
15602    echo "$me: cannot create a temporary directory in ." >&2
15603    { (exit 1); exit 1; }
15604 }
15605
15606 #
15607 # Set up the sed scripts for CONFIG_FILES section.
15608 #
15609
15610 # No need to generate the scripts if there are no CONFIG_FILES.
15611 # This happens for instance when ./config.status config.h
15612 if test -n "$CONFIG_FILES"; then
15613
15614 _ACEOF
15615
15616 # Create sed commands to just substitute file output variables.
15617
15618 # Remaining file output variables are in a fragment that also has non-file
15619 # output varibles.
15620
15621
15622
15623 ac_delim='%!_!# '
15624 for ac_last_try in false false false false false :; do
15625   cat >conf$$subs.sed <<_ACEOF
15626 SHELL!$SHELL$ac_delim
15627 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15628 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15629 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15630 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15631 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15632 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15633 exec_prefix!$exec_prefix$ac_delim
15634 prefix!$prefix$ac_delim
15635 program_transform_name!$program_transform_name$ac_delim
15636 bindir!$bindir$ac_delim
15637 sbindir!$sbindir$ac_delim
15638 libexecdir!$libexecdir$ac_delim
15639 datarootdir!$datarootdir$ac_delim
15640 datadir!$datadir$ac_delim
15641 sysconfdir!$sysconfdir$ac_delim
15642 sharedstatedir!$sharedstatedir$ac_delim
15643 localstatedir!$localstatedir$ac_delim
15644 includedir!$includedir$ac_delim
15645 oldincludedir!$oldincludedir$ac_delim
15646 docdir!$docdir$ac_delim
15647 infodir!$infodir$ac_delim
15648 htmldir!$htmldir$ac_delim
15649 dvidir!$dvidir$ac_delim
15650 pdfdir!$pdfdir$ac_delim
15651 psdir!$psdir$ac_delim
15652 libdir!$libdir$ac_delim
15653 localedir!$localedir$ac_delim
15654 mandir!$mandir$ac_delim
15655 DEFS!$DEFS$ac_delim
15656 ECHO_C!$ECHO_C$ac_delim
15657 ECHO_N!$ECHO_N$ac_delim
15658 ECHO_T!$ECHO_T$ac_delim
15659 LIBS!$LIBS$ac_delim
15660 build_alias!$build_alias$ac_delim
15661 host_alias!$host_alias$ac_delim
15662 target_alias!$target_alias$ac_delim
15663 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15664 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15665 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15666 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15667 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15668 build!$build$ac_delim
15669 build_cpu!$build_cpu$ac_delim
15670 build_vendor!$build_vendor$ac_delim
15671 build_os!$build_os$ac_delim
15672 host!$host$ac_delim
15673 host_cpu!$host_cpu$ac_delim
15674 host_vendor!$host_vendor$ac_delim
15675 host_os!$host_os$ac_delim
15676 CC!$CC$ac_delim
15677 CFLAGS!$CFLAGS$ac_delim
15678 LDFLAGS!$LDFLAGS$ac_delim
15679 CPPFLAGS!$CPPFLAGS$ac_delim
15680 ac_ct_CC!$ac_ct_CC$ac_delim
15681 EXEEXT!$EXEEXT$ac_delim
15682 OBJEXT!$OBJEXT$ac_delim
15683 CPP!$CPP$ac_delim
15684 LD!$LD$ac_delim
15685 GREP!$GREP$ac_delim
15686 EGREP!$EGREP$ac_delim
15687 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15688 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15689 HTREE_CMT!$HTREE_CMT$ac_delim
15690 ELF_CMT!$ELF_CMT$ac_delim
15691 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15692 PROFILE_CMT!$PROFILE_CMT$ac_delim
15693 CHECKER_CMT!$CHECKER_CMT$ac_delim
15694 LIB_EXT!$LIB_EXT$ac_delim
15695 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15696 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15697 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
15698 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15699 IMAGER_CMT!$IMAGER_CMT$ac_delim
15700 RESIZER_CMT!$RESIZER_CMT$ac_delim
15701 E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
15702 _ACEOF
15703
15704   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
15705     break
15706   elif $ac_last_try; then
15707     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15708 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15709    { (exit 1); exit 1; }; }
15710   else
15711     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15712   fi
15713 done
15714
15715 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15716 if test -n "$ac_eof"; then
15717   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15718   ac_eof=`expr $ac_eof + 1`
15719 fi
15720
15721 cat >>$CONFIG_STATUS <<_ACEOF
15722 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15724 /^[      ]*@MCONFIG@[    ]*$/{
15725 r $MCONFIG
15726 d
15727 }
15728 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
15729 r $MAKEFILE_ELF
15730 d
15731 }
15732 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
15733 r $MAKEFILE_BSDLIB
15734 d
15735 }
15736 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
15737 r $MAKEFILE_PROFILE
15738 d
15739 }
15740 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
15741 r $MAKEFILE_CHECKER
15742 d
15743 }
15744 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
15745 r $MAKEFILE_LIBRARY
15746 d
15747 }
15748 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
15749 r $ASM_TYPES_HEADER
15750 d
15751 }
15752 _ACEOF
15753 sed '
15754 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15755 s/^/s,@/; s/!/@,|#_!!_#|/
15756 :n
15757 t n
15758 s/'"$ac_delim"'$/,g/; t
15759 s/$/\\/; p
15760 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15761 ' >>$CONFIG_STATUS <conf$$subs.sed
15762 rm -f conf$$subs.sed
15763 cat >>$CONFIG_STATUS <<_ACEOF
15764 CEOF$ac_eof
15765 _ACEOF
15766
15767
15768 ac_delim='%!_!# '
15769 for ac_last_try in false false false false false :; do
15770   cat >conf$$subs.sed <<_ACEOF
15771 FSCK_PROG!$FSCK_PROG$ac_delim
15772 FSCK_MAN!$FSCK_MAN$ac_delim
15773 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15774 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15775 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
15776 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
15777 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
15778 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
15779 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15780 PACKAGE!$PACKAGE$ac_delim
15781 VERSION!$VERSION$ac_delim
15782 SET_MAKE!$SET_MAKE$ac_delim
15783 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15784 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15785 INSTALL_DATA!$INSTALL_DATA$ac_delim
15786 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15787 USE_NLS!$USE_NLS$ac_delim
15788 MSGFMT!$MSGFMT$ac_delim
15789 GMSGFMT!$GMSGFMT$ac_delim
15790 XGETTEXT!$XGETTEXT$ac_delim
15791 MSGMERGE!$MSGMERGE$ac_delim
15792 RANLIB!$RANLIB$ac_delim
15793 ALLOCA!$ALLOCA$ac_delim
15794 GLIBC21!$GLIBC21$ac_delim
15795 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15796 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15797 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15798 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15799 LIBICONV!$LIBICONV$ac_delim
15800 LTLIBICONV!$LTLIBICONV$ac_delim
15801 INTLBISON!$INTLBISON$ac_delim
15802 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
15803 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
15804 CATOBJEXT!$CATOBJEXT$ac_delim
15805 DATADIRNAME!$DATADIRNAME$ac_delim
15806 INSTOBJEXT!$INSTOBJEXT$ac_delim
15807 GENCAT!$GENCAT$ac_delim
15808 INTLOBJS!$INTLOBJS$ac_delim
15809 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
15810 INTLLIBS!$INTLLIBS$ac_delim
15811 LIBINTL!$LIBINTL$ac_delim
15812 LTLIBINTL!$LTLIBINTL$ac_delim
15813 POSUB!$POSUB$ac_delim
15814 BINARY_TYPE!$BINARY_TYPE$ac_delim
15815 LN!$LN$ac_delim
15816 LN_S!$LN_S$ac_delim
15817 MV!$MV$ac_delim
15818 CP!$CP$ac_delim
15819 RM!$RM$ac_delim
15820 CHMOD!$CHMOD$ac_delim
15821 AWK!$AWK$ac_delim
15822 SED!$SED$ac_delim
15823 PERL!$PERL$ac_delim
15824 LDCONFIG!$LDCONFIG$ac_delim
15825 AR!$AR$ac_delim
15826 STRIP!$STRIP$ac_delim
15827 BUILD_CC!$BUILD_CC$ac_delim
15828 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
15829 SIZEOF_INT!$SIZEOF_INT$ac_delim
15830 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
15831 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
15832 SOCKET_LIB!$SOCKET_LIB$ac_delim
15833 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
15834 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
15835 LINUX_CMT!$LINUX_CMT$ac_delim
15836 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
15837 UNIX_CMT!$UNIX_CMT$ac_delim
15838 root_prefix!$root_prefix$ac_delim
15839 root_bindir!$root_bindir$ac_delim
15840 root_sbindir!$root_sbindir$ac_delim
15841 root_libdir!$root_libdir$ac_delim
15842 root_sysconfdir!$root_sysconfdir$ac_delim
15843 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
15844 SS_DIR!$SS_DIR$ac_delim
15845 ET_DIR!$ET_DIR$ac_delim
15846 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
15847 INTL_FLAGS!$INTL_FLAGS$ac_delim
15848 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15849 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15850 LIBOBJS!$LIBOBJS$ac_delim
15851 LTLIBOBJS!$LTLIBOBJS$ac_delim
15852 _ACEOF
15853
15854   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
15855     break
15856   elif $ac_last_try; then
15857     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15858 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15859    { (exit 1); exit 1; }; }
15860   else
15861     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15862   fi
15863 done
15864
15865 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15866 if test -n "$ac_eof"; then
15867   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15868   ac_eof=`expr $ac_eof + 1`
15869 fi
15870
15871 cat >>$CONFIG_STATUS <<_ACEOF
15872 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15874 _ACEOF
15875 sed '
15876 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15877 s/^/s,@/; s/!/@,|#_!!_#|/
15878 :n
15879 t n
15880 s/'"$ac_delim"'$/,g/; t
15881 s/$/\\/; p
15882 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15883 ' >>$CONFIG_STATUS <conf$$subs.sed
15884 rm -f conf$$subs.sed
15885 cat >>$CONFIG_STATUS <<_ACEOF
15886 :end
15887 s/|#_!!_#|//g
15888 CEOF$ac_eof
15889 _ACEOF
15890
15891
15892 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15893 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15894 # trailing colons and then remove the whole line if VPATH becomes empty
15895 # (actually we leave an empty line to preserve line numbers).
15896 if test "x$srcdir" = x.; then
15897   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15898 s/:*\$(srcdir):*/:/
15899 s/:*\${srcdir}:*/:/
15900 s/:*@srcdir@:*/:/
15901 s/^\([^=]*=[     ]*\):*/\1/
15902 s/:*$//
15903 s/^[^=]*=[       ]*$//
15904 }'
15905 fi
15906
15907 cat >>$CONFIG_STATUS <<\_ACEOF
15908 fi # test -n "$CONFIG_FILES"
15909
15910
15911 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
15912 do
15913   case $ac_tag in
15914   :[FHLC]) ac_mode=$ac_tag; continue;;
15915   esac
15916   case $ac_mode$ac_tag in
15917   :[FHL]*:*);;
15918   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15919 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15920    { (exit 1); exit 1; }; };;
15921   :[FH]-) ac_tag=-:-;;
15922   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15923   esac
15924   ac_save_IFS=$IFS
15925   IFS=:
15926   set x $ac_tag
15927   IFS=$ac_save_IFS
15928   shift
15929   ac_file=$1
15930   shift
15931
15932   case $ac_mode in
15933   :L) ac_source=$1;;
15934   :[FH])
15935     ac_file_inputs=
15936     for ac_f
15937     do
15938       case $ac_f in
15939       -) ac_f="$tmp/stdin";;
15940       *) # Look for the file first in the build tree, then in the source tree
15941          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15942          # because $ac_f cannot contain `:'.
15943          test -f "$ac_f" ||
15944            case $ac_f in
15945            [\\/$]*) false;;
15946            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15947            esac ||
15948            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15949 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15950    { (exit 1); exit 1; }; };;
15951       esac
15952       ac_file_inputs="$ac_file_inputs $ac_f"
15953     done
15954
15955     # Let's still pretend it is `configure' which instantiates (i.e., don't
15956     # use $as_me), people would be surprised to read:
15957     #    /* config.h.  Generated by config.status.  */
15958     configure_input="Generated from "`IFS=:
15959           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15960     if test x"$ac_file" != x-; then
15961       configure_input="$ac_file.  $configure_input"
15962       { echo "$as_me:$LINENO: creating $ac_file" >&5
15963 echo "$as_me: creating $ac_file" >&6;}
15964     fi
15965
15966     case $ac_tag in
15967     *:-:* | *:-) cat >"$tmp/stdin";;
15968     esac
15969     ;;
15970   esac
15971
15972   ac_dir=`$as_dirname -- "$ac_file" ||
15973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15974          X"$ac_file" : 'X\(//\)[^/]' \| \
15975          X"$ac_file" : 'X\(//\)$' \| \
15976          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15977 echo X"$ac_file" |
15978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15979             s//\1/
15980             q
15981           }
15982           /^X\(\/\/\)[^/].*/{
15983             s//\1/
15984             q
15985           }
15986           /^X\(\/\/\)$/{
15987             s//\1/
15988             q
15989           }
15990           /^X\(\/\).*/{
15991             s//\1/
15992             q
15993           }
15994           s/.*/./; q'`
15995   { as_dir="$ac_dir"
15996   case $as_dir in #(
15997   -*) as_dir=./$as_dir;;
15998   esac
15999   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16000     as_dirs=
16001     while :; do
16002       case $as_dir in #(
16003       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16004       *) as_qdir=$as_dir;;
16005       esac
16006       as_dirs="'$as_qdir' $as_dirs"
16007       as_dir=`$as_dirname -- "$as_dir" ||
16008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16009          X"$as_dir" : 'X\(//\)[^/]' \| \
16010          X"$as_dir" : 'X\(//\)$' \| \
16011          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16012 echo X"$as_dir" |
16013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16014             s//\1/
16015             q
16016           }
16017           /^X\(\/\/\)[^/].*/{
16018             s//\1/
16019             q
16020           }
16021           /^X\(\/\/\)$/{
16022             s//\1/
16023             q
16024           }
16025           /^X\(\/\).*/{
16026             s//\1/
16027             q
16028           }
16029           s/.*/./; q'`
16030       test -d "$as_dir" && break
16031     done
16032     test -z "$as_dirs" || eval "mkdir $as_dirs"
16033   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16034 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16035    { (exit 1); exit 1; }; }; }
16036   ac_builddir=.
16037
16038 case "$ac_dir" in
16039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16040 *)
16041   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16042   # A ".." for each directory in $ac_dir_suffix.
16043   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16044   case $ac_top_builddir_sub in
16045   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16046   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16047   esac ;;
16048 esac
16049 ac_abs_top_builddir=$ac_pwd
16050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16051 # for backward compatibility:
16052 ac_top_builddir=$ac_top_build_prefix
16053
16054 case $srcdir in
16055   .)  # We are building in place.
16056     ac_srcdir=.
16057     ac_top_srcdir=$ac_top_builddir_sub
16058     ac_abs_top_srcdir=$ac_pwd ;;
16059   [\\/]* | ?:[\\/]* )  # Absolute name.
16060     ac_srcdir=$srcdir$ac_dir_suffix;
16061     ac_top_srcdir=$srcdir
16062     ac_abs_top_srcdir=$srcdir ;;
16063   *) # Relative name.
16064     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16065     ac_top_srcdir=$ac_top_build_prefix$srcdir
16066     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16067 esac
16068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16069
16070
16071   case $ac_mode in
16072   :F)
16073   #
16074   # CONFIG_FILE
16075   #
16076
16077   case $INSTALL in
16078   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16079   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16080   esac
16081 _ACEOF
16082
16083 cat >>$CONFIG_STATUS <<\_ACEOF
16084 # If the template does not know about datarootdir, expand it.
16085 # FIXME: This hack should be removed a few years after 2.60.
16086 ac_datarootdir_hack=; ac_datarootdir_seen=
16087
16088 case `sed -n '/datarootdir/ {
16089   p
16090   q
16091 }
16092 /@datadir@/p
16093 /@docdir@/p
16094 /@infodir@/p
16095 /@localedir@/p
16096 /@mandir@/p
16097 ' $ac_file_inputs` in
16098 *datarootdir*) ac_datarootdir_seen=yes;;
16099 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16100   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16101 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16102 _ACEOF
16103 cat >>$CONFIG_STATUS <<_ACEOF
16104   ac_datarootdir_hack='
16105   s&@datadir@&$datadir&g
16106   s&@docdir@&$docdir&g
16107   s&@infodir@&$infodir&g
16108   s&@localedir@&$localedir&g
16109   s&@mandir@&$mandir&g
16110     s&\\\${datarootdir}&$datarootdir&g' ;;
16111 esac
16112 _ACEOF
16113
16114 # Neutralize VPATH when `$srcdir' = `.'.
16115 # Shell code in configure.ac might set extrasub.
16116 # FIXME: do we really want to maintain this feature?
16117 cat >>$CONFIG_STATUS <<_ACEOF
16118   sed "$ac_vpsub
16119 $extrasub
16120 _ACEOF
16121 cat >>$CONFIG_STATUS <<\_ACEOF
16122 :t
16123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16124 s&@configure_input@&$configure_input&;t t
16125 s&@top_builddir@&$ac_top_builddir_sub&;t t
16126 s&@srcdir@&$ac_srcdir&;t t
16127 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16128 s&@top_srcdir@&$ac_top_srcdir&;t t
16129 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16130 s&@builddir@&$ac_builddir&;t t
16131 s&@abs_builddir@&$ac_abs_builddir&;t t
16132 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16133 s&@INSTALL@&$ac_INSTALL&;t t
16134 $ac_datarootdir_hack
16135 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16136
16137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16138   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16139   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16140   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16141 which seems to be undefined.  Please make sure it is defined." >&5
16142 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16143 which seems to be undefined.  Please make sure it is defined." >&2;}
16144
16145   rm -f "$tmp/stdin"
16146   case $ac_file in
16147   -) cat "$tmp/out"; rm -f "$tmp/out";;
16148   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16149   esac
16150  ;;
16151
16152
16153   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16154 echo "$as_me: executing $ac_file commands" >&6;}
16155  ;;
16156   esac
16157
16158
16159   case $ac_file$ac_mode in
16160     "default-1":C)
16161     for ac_file in $CONFIG_FILES; do
16162       # Support "outfile[:infile[:infile...]]"
16163       case "$ac_file" in
16164         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16165       esac
16166       # PO directories have a Makefile.in generated from Makefile.in.in.
16167       case "$ac_file" in */Makefile.in)
16168         # Adjust a relative srcdir.
16169         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16170         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16171         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16172         # In autoconf-2.13 it is called $ac_given_srcdir.
16173         # In autoconf-2.50 it is called $srcdir.
16174         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16175         case "$ac_given_srcdir" in
16176           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16177           /*) top_srcdir="$ac_given_srcdir" ;;
16178           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16179         esac
16180         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16181           rm -f "$ac_dir/POTFILES"
16182           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16183           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16184           POMAKEFILEDEPS="POTFILES.in"
16185           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16186           # on $ac_dir but don't depend on user-specified configuration
16187           # parameters.
16188           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16189             # The LINGUAS file contains the set of available languages.
16190             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16191               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16192             fi
16193             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16194             # Hide the ALL_LINGUAS assigment from automake.
16195             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16196             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16197           else
16198             # The set of available languages was given in configure.in.
16199             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16200           fi
16201           # Compute POFILES
16202           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16203           # Compute UPDATEPOFILES
16204           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16205           # Compute DUMMYPOFILES
16206           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16207           # Compute GMOFILES
16208           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16209           case "$ac_given_srcdir" in
16210             .) srcdirpre= ;;
16211             *) srcdirpre='$(srcdir)/' ;;
16212           esac
16213           POFILES=
16214           UPDATEPOFILES=
16215           DUMMYPOFILES=
16216           GMOFILES=
16217           for lang in $ALL_LINGUAS; do
16218             POFILES="$POFILES $srcdirpre$lang.po"
16219             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16220             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16221             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16222           done
16223           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16224           # environment variable.
16225           INST_LINGUAS=
16226           if test -n "$ALL_LINGUAS"; then
16227             for presentlang in $ALL_LINGUAS; do
16228               useit=no
16229               if test "%UNSET%" != "$LINGUAS"; then
16230                 desiredlanguages="$LINGUAS"
16231               else
16232                 desiredlanguages="$ALL_LINGUAS"
16233               fi
16234               for desiredlang in $desiredlanguages; do
16235                 # Use the presentlang catalog if desiredlang is
16236                 #   a. equal to presentlang, or
16237                 #   b. a variant of presentlang (because in this case,
16238                 #      presentlang can be used as a fallback for messages
16239                 #      which are not translated in the desiredlang catalog).
16240                 case "$desiredlang" in
16241                   "$presentlang"*) useit=yes;;
16242                 esac
16243               done
16244               if test $useit = yes; then
16245                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16246               fi
16247             done
16248           fi
16249           CATALOGS=
16250           if test -n "$INST_LINGUAS"; then
16251             for lang in $INST_LINGUAS; do
16252               CATALOGS="$CATALOGS $lang.gmo"
16253             done
16254           fi
16255           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16256           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"
16257           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16258             if test -f "$f"; then
16259               case "$f" in
16260                 *.orig | *.bak | *~) ;;
16261                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16262               esac
16263             fi
16264           done
16265         fi
16266         ;;
16267       esac
16268     done ;;
16269
16270   esac
16271 done # for ac_tag
16272
16273
16274 { (exit 0); exit 0; }
16275 _ACEOF
16276 chmod +x $CONFIG_STATUS
16277 ac_clean_files=$ac_clean_files_save
16278
16279
16280 # configure is writing to config.log, and then calls config.status.
16281 # config.status does its own redirection, appending to config.log.
16282 # Unfortunately, on DOS this fails, as config.log is still kept open
16283 # by configure, so config.status won't be able to write to it; its
16284 # output is simply discarded.  So we exec the FD to /dev/null,
16285 # effectively closing config.log, so it can be properly (re)opened and
16286 # appended to by config.status.  When coming back to configure, we
16287 # need to make the FD available again.
16288 if test "$no_create" != yes; then
16289   ac_cs_success=:
16290   ac_config_status_args=
16291   test "$silent" = yes &&
16292     ac_config_status_args="$ac_config_status_args --quiet"
16293   exec 5>/dev/null
16294   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16295   exec 5>>config.log
16296   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16297   # would make configure fail if this is the last instruction.
16298   $ac_cs_success || { (exit 1); exit 1; }
16299 fi
16300
16301 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16302