- added in idtree for efficient reqid handling
[metze/ctdb/wip.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a.
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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="ctdb.h"
565 ac_unique_file="ctdb_daemon.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 #  include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #  include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_subst_vars='SHELL
603 PATH_SEPARATOR
604 PACKAGE_NAME
605 PACKAGE_TARNAME
606 PACKAGE_VERSION
607 PACKAGE_STRING
608 PACKAGE_BUGREPORT
609 exec_prefix
610 prefix
611 program_transform_name
612 bindir
613 sbindir
614 libexecdir
615 datarootdir
616 datadir
617 sysconfdir
618 sharedstatedir
619 localstatedir
620 includedir
621 oldincludedir
622 docdir
623 infodir
624 htmldir
625 dvidir
626 pdfdir
627 psdir
628 libdir
629 localedir
630 mandir
631 DEFS
632 ECHO_C
633 ECHO_N
634 ECHO_T
635 LIBS
636 build_alias
637 host_alias
638 target_alias
639 libreplacedir
640 LIBREPLACEOBJ
641 build
642 build_cpu
643 build_vendor
644 build_os
645 host
646 host_cpu
647 host_vendor
648 host_os
649 target
650 target_cpu
651 target_vendor
652 target_os
653 CC
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
660 CPP
661 GREP
662 EGREP
663 INSTALL_PROGRAM
664 INSTALL_SCRIPT
665 INSTALL_DATA
666 libreplace_cv_immediate_structures
667 LIBOBJS
668 precompiled_headers
669 LIBDL
670 tallocdir
671 TALLOCOBJ
672 tdbdir
673 TDBOBJ
674 PYTHON
675 EXTRA_OBJ
676 LTLIBOBJS'
677 ac_subst_files=''
678       ac_precious_vars='build_alias
679 host_alias
680 target_alias
681 CC
682 CFLAGS
683 LDFLAGS
684 CPPFLAGS
685 CPP'
686
687
688 # Initialize some variables set by options.
689 ac_init_help=
690 ac_init_version=false
691 # The variables have the same names as the options, with
692 # dashes changed to underlines.
693 cache_file=/dev/null
694 exec_prefix=NONE
695 no_create=
696 no_recursion=
697 prefix=NONE
698 program_prefix=NONE
699 program_suffix=NONE
700 program_transform_name=s,x,x,
701 silent=
702 site=
703 srcdir=
704 verbose=
705 x_includes=NONE
706 x_libraries=NONE
707
708 # Installation directory options.
709 # These are left unexpanded so users can "make install exec_prefix=/foo"
710 # and all the variables that are supposed to be based on exec_prefix
711 # by default will actually change.
712 # Use braces instead of parens because sh, perl, etc. also accept them.
713 # (The list follows the same order as the GNU Coding Standards.)
714 bindir='${exec_prefix}/bin'
715 sbindir='${exec_prefix}/sbin'
716 libexecdir='${exec_prefix}/libexec'
717 datarootdir='${prefix}/share'
718 datadir='${datarootdir}'
719 sysconfdir='${prefix}/etc'
720 sharedstatedir='${prefix}/com'
721 localstatedir='${prefix}/var'
722 includedir='${prefix}/include'
723 oldincludedir='/usr/include'
724 docdir='${datarootdir}/doc/${PACKAGE}'
725 infodir='${datarootdir}/info'
726 htmldir='${docdir}'
727 dvidir='${docdir}'
728 pdfdir='${docdir}'
729 psdir='${docdir}'
730 libdir='${exec_prefix}/lib'
731 localedir='${datarootdir}/locale'
732 mandir='${datarootdir}/man'
733
734 ac_prev=
735 ac_dashdash=
736 for ac_option
737 do
738   # If the previous option needs an argument, assign it.
739   if test -n "$ac_prev"; then
740     eval $ac_prev=\$ac_option
741     ac_prev=
742     continue
743   fi
744
745   case $ac_option in
746   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
747   *)    ac_optarg=yes ;;
748   esac
749
750   # Accept the important Cygnus configure options, so we can diagnose typos.
751
752   case $ac_dashdash$ac_option in
753   --)
754     ac_dashdash=yes ;;
755
756   -bindir | --bindir | --bindi | --bind | --bin | --bi)
757     ac_prev=bindir ;;
758   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
759     bindir=$ac_optarg ;;
760
761   -build | --build | --buil | --bui | --bu)
762     ac_prev=build_alias ;;
763   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
764     build_alias=$ac_optarg ;;
765
766   -cache-file | --cache-file | --cache-fil | --cache-fi \
767   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
768     ac_prev=cache_file ;;
769   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
770   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
771     cache_file=$ac_optarg ;;
772
773   --config-cache | -C)
774     cache_file=config.cache ;;
775
776   -datadir | --datadir | --datadi | --datad)
777     ac_prev=datadir ;;
778   -datadir=* | --datadir=* | --datadi=* | --datad=*)
779     datadir=$ac_optarg ;;
780
781   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
782   | --dataroo | --dataro | --datar)
783     ac_prev=datarootdir ;;
784   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
785   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
786     datarootdir=$ac_optarg ;;
787
788   -disable-* | --disable-*)
789     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
793    { (exit 1); exit 1; }; }
794     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
795     eval enable_$ac_feature=no ;;
796
797   -docdir | --docdir | --docdi | --doc | --do)
798     ac_prev=docdir ;;
799   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
800     docdir=$ac_optarg ;;
801
802   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
803     ac_prev=dvidir ;;
804   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
805     dvidir=$ac_optarg ;;
806
807   -enable-* | --enable-*)
808     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
809     # Reject names that are not valid shell variable names.
810     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
811       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
812    { (exit 1); exit 1; }; }
813     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
814     eval enable_$ac_feature=\$ac_optarg ;;
815
816   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
817   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
818   | --exec | --exe | --ex)
819     ac_prev=exec_prefix ;;
820   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
821   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
822   | --exec=* | --exe=* | --ex=*)
823     exec_prefix=$ac_optarg ;;
824
825   -gas | --gas | --ga | --g)
826     # Obsolete; use --with-gas.
827     with_gas=yes ;;
828
829   -help | --help | --hel | --he | -h)
830     ac_init_help=long ;;
831   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
832     ac_init_help=recursive ;;
833   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
834     ac_init_help=short ;;
835
836   -host | --host | --hos | --ho)
837     ac_prev=host_alias ;;
838   -host=* | --host=* | --hos=* | --ho=*)
839     host_alias=$ac_optarg ;;
840
841   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
842     ac_prev=htmldir ;;
843   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
844   | --ht=*)
845     htmldir=$ac_optarg ;;
846
847   -includedir | --includedir | --includedi | --included | --include \
848   | --includ | --inclu | --incl | --inc)
849     ac_prev=includedir ;;
850   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
851   | --includ=* | --inclu=* | --incl=* | --inc=*)
852     includedir=$ac_optarg ;;
853
854   -infodir | --infodir | --infodi | --infod | --info | --inf)
855     ac_prev=infodir ;;
856   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
857     infodir=$ac_optarg ;;
858
859   -libdir | --libdir | --libdi | --libd)
860     ac_prev=libdir ;;
861   -libdir=* | --libdir=* | --libdi=* | --libd=*)
862     libdir=$ac_optarg ;;
863
864   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
865   | --libexe | --libex | --libe)
866     ac_prev=libexecdir ;;
867   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
868   | --libexe=* | --libex=* | --libe=*)
869     libexecdir=$ac_optarg ;;
870
871   -localedir | --localedir | --localedi | --localed | --locale)
872     ac_prev=localedir ;;
873   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
874     localedir=$ac_optarg ;;
875
876   -localstatedir | --localstatedir | --localstatedi | --localstated \
877   | --localstate | --localstat | --localsta | --localst | --locals)
878     ac_prev=localstatedir ;;
879   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
880   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
881     localstatedir=$ac_optarg ;;
882
883   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
884     ac_prev=mandir ;;
885   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
886     mandir=$ac_optarg ;;
887
888   -nfp | --nfp | --nf)
889     # Obsolete; use --without-fp.
890     with_fp=no ;;
891
892   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
893   | --no-cr | --no-c | -n)
894     no_create=yes ;;
895
896   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
897   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
898     no_recursion=yes ;;
899
900   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
901   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
902   | --oldin | --oldi | --old | --ol | --o)
903     ac_prev=oldincludedir ;;
904   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
905   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
906   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
907     oldincludedir=$ac_optarg ;;
908
909   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
910     ac_prev=prefix ;;
911   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
912     prefix=$ac_optarg ;;
913
914   -program-prefix | --program-prefix | --program-prefi | --program-pref \
915   | --program-pre | --program-pr | --program-p)
916     ac_prev=program_prefix ;;
917   -program-prefix=* | --program-prefix=* | --program-prefi=* \
918   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
919     program_prefix=$ac_optarg ;;
920
921   -program-suffix | --program-suffix | --program-suffi | --program-suff \
922   | --program-suf | --program-su | --program-s)
923     ac_prev=program_suffix ;;
924   -program-suffix=* | --program-suffix=* | --program-suffi=* \
925   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
926     program_suffix=$ac_optarg ;;
927
928   -program-transform-name | --program-transform-name \
929   | --program-transform-nam | --program-transform-na \
930   | --program-transform-n | --program-transform- \
931   | --program-transform | --program-transfor \
932   | --program-transfo | --program-transf \
933   | --program-trans | --program-tran \
934   | --progr-tra | --program-tr | --program-t)
935     ac_prev=program_transform_name ;;
936   -program-transform-name=* | --program-transform-name=* \
937   | --program-transform-nam=* | --program-transform-na=* \
938   | --program-transform-n=* | --program-transform-=* \
939   | --program-transform=* | --program-transfor=* \
940   | --program-transfo=* | --program-transf=* \
941   | --program-trans=* | --program-tran=* \
942   | --progr-tra=* | --program-tr=* | --program-t=*)
943     program_transform_name=$ac_optarg ;;
944
945   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
946     ac_prev=pdfdir ;;
947   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
948     pdfdir=$ac_optarg ;;
949
950   -psdir | --psdir | --psdi | --psd | --ps)
951     ac_prev=psdir ;;
952   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
953     psdir=$ac_optarg ;;
954
955   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
956   | -silent | --silent | --silen | --sile | --sil)
957     silent=yes ;;
958
959   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
960     ac_prev=sbindir ;;
961   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
962   | --sbi=* | --sb=*)
963     sbindir=$ac_optarg ;;
964
965   -sharedstatedir | --sharedstatedir | --sharedstatedi \
966   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
967   | --sharedst | --shareds | --shared | --share | --shar \
968   | --sha | --sh)
969     ac_prev=sharedstatedir ;;
970   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
971   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
972   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
973   | --sha=* | --sh=*)
974     sharedstatedir=$ac_optarg ;;
975
976   -site | --site | --sit)
977     ac_prev=site ;;
978   -site=* | --site=* | --sit=*)
979     site=$ac_optarg ;;
980
981   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
982     ac_prev=srcdir ;;
983   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
984     srcdir=$ac_optarg ;;
985
986   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
987   | --syscon | --sysco | --sysc | --sys | --sy)
988     ac_prev=sysconfdir ;;
989   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
990   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
991     sysconfdir=$ac_optarg ;;
992
993   -target | --target | --targe | --targ | --tar | --ta | --t)
994     ac_prev=target_alias ;;
995   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
996     target_alias=$ac_optarg ;;
997
998   -v | -verbose | --verbose | --verbos | --verbo | --verb)
999     verbose=yes ;;
1000
1001   -version | --version | --versio | --versi | --vers | -V)
1002     ac_init_version=: ;;
1003
1004   -with-* | --with-*)
1005     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1008       { echo "$as_me: error: invalid package name: $ac_package" >&2
1009    { (exit 1); exit 1; }; }
1010     ac_package=`echo $ac_package| sed 's/-/_/g'`
1011     eval with_$ac_package=\$ac_optarg ;;
1012
1013   -without-* | --without-*)
1014     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid package name: $ac_package" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_package=`echo $ac_package | sed 's/-/_/g'`
1020     eval with_$ac_package=no ;;
1021
1022   --x)
1023     # Obsolete; use --with-x.
1024     with_x=yes ;;
1025
1026   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1027   | --x-incl | --x-inc | --x-in | --x-i)
1028     ac_prev=x_includes ;;
1029   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1030   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1031     x_includes=$ac_optarg ;;
1032
1033   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1034   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1035     ac_prev=x_libraries ;;
1036   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1037   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1038     x_libraries=$ac_optarg ;;
1039
1040   -*) { echo "$as_me: error: unrecognized option: $ac_option
1041 Try \`$0 --help' for more information." >&2
1042    { (exit 1); exit 1; }; }
1043     ;;
1044
1045   *=*)
1046     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1049       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1050    { (exit 1); exit 1; }; }
1051     eval $ac_envvar=\$ac_optarg
1052     export $ac_envvar ;;
1053
1054   *)
1055     # FIXME: should be removed in autoconf 3.0.
1056     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1057     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1059     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1060     ;;
1061
1062   esac
1063 done
1064
1065 if test -n "$ac_prev"; then
1066   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1067   { echo "$as_me: error: missing argument to $ac_option" >&2
1068    { (exit 1); exit 1; }; }
1069 fi
1070
1071 # Be sure to have absolute directory names.
1072 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1073                 datadir sysconfdir sharedstatedir localstatedir includedir \
1074                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1075                 libdir localedir mandir
1076 do
1077   eval ac_val=\$$ac_var
1078   case $ac_val in
1079     [\\/$]* | ?:[\\/]* )  continue;;
1080     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1081   esac
1082   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1083    { (exit 1); exit 1; }; }
1084 done
1085
1086 # There might be people who depend on the old broken behavior: `$host'
1087 # used to hold the argument of --host etc.
1088 # FIXME: To remove some day.
1089 build=$build_alias
1090 host=$host_alias
1091 target=$target_alias
1092
1093 # FIXME: To remove some day.
1094 if test "x$host_alias" != x; then
1095   if test "x$build_alias" = x; then
1096     cross_compiling=maybe
1097     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1098     If a cross compiler is detected then cross compile mode will be used." >&2
1099   elif test "x$build_alias" != "x$host_alias"; then
1100     cross_compiling=yes
1101   fi
1102 fi
1103
1104 ac_tool_prefix=
1105 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1106
1107 test "$silent" = yes && exec 6>/dev/null
1108
1109
1110 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1111 ac_ls_di=`ls -di .` &&
1112 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1113   { echo "$as_me: error: Working directory cannot be determined" >&2
1114    { (exit 1); exit 1; }; }
1115 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1116   { echo "$as_me: error: pwd does not report name of working directory" >&2
1117    { (exit 1); exit 1; }; }
1118
1119
1120 # Find the source files, if location was not specified.
1121 if test -z "$srcdir"; then
1122   ac_srcdir_defaulted=yes
1123   # Try the directory containing this script, then the parent directory.
1124   ac_confdir=`$as_dirname -- "$0" ||
1125 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1126          X"$0" : 'X\(//\)[^/]' \| \
1127          X"$0" : 'X\(//\)$' \| \
1128          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1129 echo X"$0" |
1130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1131             s//\1/
1132             q
1133           }
1134           /^X\(\/\/\)[^/].*/{
1135             s//\1/
1136             q
1137           }
1138           /^X\(\/\/\)$/{
1139             s//\1/
1140             q
1141           }
1142           /^X\(\/\).*/{
1143             s//\1/
1144             q
1145           }
1146           s/.*/./; q'`
1147   srcdir=$ac_confdir
1148   if test ! -r "$srcdir/$ac_unique_file"; then
1149     srcdir=..
1150   fi
1151 else
1152   ac_srcdir_defaulted=no
1153 fi
1154 if test ! -r "$srcdir/$ac_unique_file"; then
1155   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1156   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1157    { (exit 1); exit 1; }; }
1158 fi
1159 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1160 ac_abs_confdir=`(
1161         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1162    { (exit 1); exit 1; }; }
1163         pwd)`
1164 # When building in place, set srcdir=.
1165 if test "$ac_abs_confdir" = "$ac_pwd"; then
1166   srcdir=.
1167 fi
1168 # Remove unnecessary trailing slashes from srcdir.
1169 # Double slashes in file names in object file debugging info
1170 # mess up M-x gdb in Emacs.
1171 case $srcdir in
1172 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1173 esac
1174 for ac_var in $ac_precious_vars; do
1175   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1176   eval ac_env_${ac_var}_value=\$${ac_var}
1177   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1178   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1179 done
1180
1181 #
1182 # Report the --help message.
1183 #
1184 if test "$ac_init_help" = "long"; then
1185   # Omit some internal or obsolete options to make the list less imposing.
1186   # This message is too long to be a string in the A/UX 3.1 sh.
1187   cat <<_ACEOF
1188 \`configure' configures this package to adapt to many kinds of systems.
1189
1190 Usage: $0 [OPTION]... [VAR=VALUE]...
1191
1192 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1193 VAR=VALUE.  See below for descriptions of some of the useful variables.
1194
1195 Defaults for the options are specified in brackets.
1196
1197 Configuration:
1198   -h, --help              display this help and exit
1199       --help=short        display options specific to this package
1200       --help=recursive    display the short help of all the included packages
1201   -V, --version           display version information and exit
1202   -q, --quiet, --silent   do not print \`checking...' messages
1203       --cache-file=FILE   cache test results in FILE [disabled]
1204   -C, --config-cache      alias for \`--cache-file=config.cache'
1205   -n, --no-create         do not create output files
1206       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1207
1208 Installation directories:
1209   --prefix=PREFIX         install architecture-independent files in PREFIX
1210                           [$ac_default_prefix]
1211   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1212                           [PREFIX]
1213
1214 By default, \`make install' will install all the files in
1215 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1216 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1217 for instance \`--prefix=\$HOME'.
1218
1219 For better control, use the options below.
1220
1221 Fine tuning of the installation directories:
1222   --bindir=DIR           user executables [EPREFIX/bin]
1223   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1224   --libexecdir=DIR       program executables [EPREFIX/libexec]
1225   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1226   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1227   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1228   --libdir=DIR           object code libraries [EPREFIX/lib]
1229   --includedir=DIR       C header files [PREFIX/include]
1230   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1231   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1232   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1233   --infodir=DIR          info documentation [DATAROOTDIR/info]
1234   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1235   --mandir=DIR           man documentation [DATAROOTDIR/man]
1236   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1237   --htmldir=DIR          html documentation [DOCDIR]
1238   --dvidir=DIR           dvi documentation [DOCDIR]
1239   --pdfdir=DIR           pdf documentation [DOCDIR]
1240   --psdir=DIR            ps documentation [DOCDIR]
1241 _ACEOF
1242
1243   cat <<\_ACEOF
1244
1245 System types:
1246   --build=BUILD     configure for building on BUILD [guessed]
1247   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1248   --target=TARGET   configure for building compilers for TARGET [HOST]
1249 _ACEOF
1250 fi
1251
1252 if test -n "$ac_init_help"; then
1253
1254   cat <<\_ACEOF
1255
1256 Optional Features:
1257   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1258   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1259   --disable-largefile     omit support for large files
1260
1261 Optional Packages:
1262   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1263   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1264   --with-python=PYTHONNAME  build Python libraries
1265
1266 Some influential environment variables:
1267   CC          C compiler command
1268   CFLAGS      C compiler flags
1269   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1270               nonstandard directory <lib dir>
1271   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1272               you have headers in a nonstandard directory <include dir>
1273   CPP         C preprocessor
1274
1275 Use these variables to override the choices made by `configure' or to help
1276 it to find libraries and programs with nonstandard names/locations.
1277
1278 _ACEOF
1279 ac_status=$?
1280 fi
1281
1282 if test "$ac_init_help" = "recursive"; then
1283   # If there are subdirs, report their specific --help.
1284   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1285     test -d "$ac_dir" || continue
1286     ac_builddir=.
1287
1288 case "$ac_dir" in
1289 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1290 *)
1291   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1292   # A ".." for each directory in $ac_dir_suffix.
1293   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1294   case $ac_top_builddir_sub in
1295   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1296   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1297   esac ;;
1298 esac
1299 ac_abs_top_builddir=$ac_pwd
1300 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1301 # for backward compatibility:
1302 ac_top_builddir=$ac_top_build_prefix
1303
1304 case $srcdir in
1305   .)  # We are building in place.
1306     ac_srcdir=.
1307     ac_top_srcdir=$ac_top_builddir_sub
1308     ac_abs_top_srcdir=$ac_pwd ;;
1309   [\\/]* | ?:[\\/]* )  # Absolute name.
1310     ac_srcdir=$srcdir$ac_dir_suffix;
1311     ac_top_srcdir=$srcdir
1312     ac_abs_top_srcdir=$srcdir ;;
1313   *) # Relative name.
1314     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1315     ac_top_srcdir=$ac_top_build_prefix$srcdir
1316     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1317 esac
1318 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1319
1320     cd "$ac_dir" || { ac_status=$?; continue; }
1321     # Check for guested configure.
1322     if test -f "$ac_srcdir/configure.gnu"; then
1323       echo &&
1324       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1325     elif test -f "$ac_srcdir/configure"; then
1326       echo &&
1327       $SHELL "$ac_srcdir/configure" --help=recursive
1328     else
1329       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1330     fi || ac_status=$?
1331     cd "$ac_pwd" || { ac_status=$?; break; }
1332   done
1333 fi
1334
1335 test -n "$ac_init_help" && exit $ac_status
1336 if $ac_init_version; then
1337   cat <<\_ACEOF
1338 configure
1339 generated by GNU Autoconf 2.60a
1340
1341 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1342 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1343 This configure script is free software; the Free Software Foundation
1344 gives unlimited permission to copy, distribute and modify it.
1345 _ACEOF
1346   exit
1347 fi
1348 cat >config.log <<_ACEOF
1349 This file contains any messages produced by compilers while
1350 running configure, to aid debugging if configure makes a mistake.
1351
1352 It was created by $as_me, which was
1353 generated by GNU Autoconf 2.60a.  Invocation command line was
1354
1355   $ $0 $@
1356
1357 _ACEOF
1358 exec 5>>config.log
1359 {
1360 cat <<_ASUNAME
1361 ## --------- ##
1362 ## Platform. ##
1363 ## --------- ##
1364
1365 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1366 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1367 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1368 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1369 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1370
1371 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1372 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1373
1374 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1375 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1376 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1377 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1378 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1379 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1380 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1381
1382 _ASUNAME
1383
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1386 do
1387   IFS=$as_save_IFS
1388   test -z "$as_dir" && as_dir=.
1389   echo "PATH: $as_dir"
1390 done
1391 IFS=$as_save_IFS
1392
1393 } >&5
1394
1395 cat >&5 <<_ACEOF
1396
1397
1398 ## ----------- ##
1399 ## Core tests. ##
1400 ## ----------- ##
1401
1402 _ACEOF
1403
1404
1405 # Keep a trace of the command line.
1406 # Strip out --no-create and --no-recursion so they do not pile up.
1407 # Strip out --silent because we don't want to record it for future runs.
1408 # Also quote any args containing shell meta-characters.
1409 # Make two passes to allow for proper duplicate-argument suppression.
1410 ac_configure_args=
1411 ac_configure_args0=
1412 ac_configure_args1=
1413 ac_must_keep_next=false
1414 for ac_pass in 1 2
1415 do
1416   for ac_arg
1417   do
1418     case $ac_arg in
1419     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1420     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421     | -silent | --silent | --silen | --sile | --sil)
1422       continue ;;
1423     *\'*)
1424       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1425     esac
1426     case $ac_pass in
1427     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1428     2)
1429       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1430       if test $ac_must_keep_next = true; then
1431         ac_must_keep_next=false # Got value, back to normal.
1432       else
1433         case $ac_arg in
1434           *=* | --config-cache | -C | -disable-* | --disable-* \
1435           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1436           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1437           | -with-* | --with-* | -without-* | --without-* | --x)
1438             case "$ac_configure_args0 " in
1439               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1440             esac
1441             ;;
1442           -* ) ac_must_keep_next=true ;;
1443         esac
1444       fi
1445       ac_configure_args="$ac_configure_args '$ac_arg'"
1446       ;;
1447     esac
1448   done
1449 done
1450 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1451 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1452
1453 # When interrupted or exit'd, cleanup temporary files, and complete
1454 # config.log.  We remove comments because anyway the quotes in there
1455 # would cause problems or look ugly.
1456 # WARNING: Use '\'' to represent an apostrophe within the trap.
1457 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1458 trap 'exit_status=$?
1459   # Save into config.log some information that might help in debugging.
1460   {
1461     echo
1462
1463     cat <<\_ASBOX
1464 ## ---------------- ##
1465 ## Cache variables. ##
1466 ## ---------------- ##
1467 _ASBOX
1468     echo
1469     # The following way of writing the cache mishandles newlines in values,
1470 (
1471   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1472     eval ac_val=\$$ac_var
1473     case $ac_val in #(
1474     *${as_nl}*)
1475       case $ac_var in #(
1476       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1477 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1478       esac
1479       case $ac_var in #(
1480       _ | IFS | as_nl) ;; #(
1481       *) $as_unset $ac_var ;;
1482       esac ;;
1483     esac
1484   done
1485   (set) 2>&1 |
1486     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1487     *${as_nl}ac_space=\ *)
1488       sed -n \
1489         "s/'\''/'\''\\\\'\'''\''/g;
1490           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1491       ;; #(
1492     *)
1493       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1494       ;;
1495     esac |
1496     sort
1497 )
1498     echo
1499
1500     cat <<\_ASBOX
1501 ## ----------------- ##
1502 ## Output variables. ##
1503 ## ----------------- ##
1504 _ASBOX
1505     echo
1506     for ac_var in $ac_subst_vars
1507     do
1508       eval ac_val=\$$ac_var
1509       case $ac_val in
1510       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1511       esac
1512       echo "$ac_var='\''$ac_val'\''"
1513     done | sort
1514     echo
1515
1516     if test -n "$ac_subst_files"; then
1517       cat <<\_ASBOX
1518 ## ------------------- ##
1519 ## File substitutions. ##
1520 ## ------------------- ##
1521 _ASBOX
1522       echo
1523       for ac_var in $ac_subst_files
1524       do
1525         eval ac_val=\$$ac_var
1526         case $ac_val in
1527         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1528         esac
1529         echo "$ac_var='\''$ac_val'\''"
1530       done | sort
1531       echo
1532     fi
1533
1534     if test -s confdefs.h; then
1535       cat <<\_ASBOX
1536 ## ----------- ##
1537 ## confdefs.h. ##
1538 ## ----------- ##
1539 _ASBOX
1540       echo
1541       cat confdefs.h
1542       echo
1543     fi
1544     test "$ac_signal" != 0 &&
1545       echo "$as_me: caught signal $ac_signal"
1546     echo "$as_me: exit $exit_status"
1547   } >&5
1548   rm -f core *.core core.conftest.* &&
1549     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1550     exit $exit_status
1551 ' 0
1552 for ac_signal in 1 2 13 15; do
1553   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1554 done
1555 ac_signal=0
1556
1557 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1558 rm -f -r conftest* confdefs.h
1559
1560 # Predefined preprocessor variables.
1561
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE_NAME "$PACKAGE_NAME"
1564 _ACEOF
1565
1566
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1569 _ACEOF
1570
1571
1572 cat >>confdefs.h <<_ACEOF
1573 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1574 _ACEOF
1575
1576
1577 cat >>confdefs.h <<_ACEOF
1578 #define PACKAGE_STRING "$PACKAGE_STRING"
1579 _ACEOF
1580
1581
1582 cat >>confdefs.h <<_ACEOF
1583 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1584 _ACEOF
1585
1586
1587 # Let the site file select an alternate cache file if it wants to.
1588 # Prefer explicitly selected file to automatically selected ones.
1589 if test -n "$CONFIG_SITE"; then
1590   set x "$CONFIG_SITE"
1591 elif test "x$prefix" != xNONE; then
1592   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1593 else
1594   set x "$ac_default_prefix/share/config.site" \
1595         "$ac_default_prefix/etc/config.site"
1596 fi
1597 shift
1598 for ac_site_file
1599 do
1600   if test -r "$ac_site_file"; then
1601     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1602 echo "$as_me: loading site script $ac_site_file" >&6;}
1603     sed 's/^/| /' "$ac_site_file" >&5
1604     . "$ac_site_file"
1605   fi
1606 done
1607
1608 if test -r "$cache_file"; then
1609   # Some versions of bash will fail to source /dev/null (special
1610   # files actually), so we avoid doing that.
1611   if test -f "$cache_file"; then
1612     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1613 echo "$as_me: loading cache $cache_file" >&6;}
1614     case $cache_file in
1615       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1616       *)                      . "./$cache_file";;
1617     esac
1618   fi
1619 else
1620   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1621 echo "$as_me: creating cache $cache_file" >&6;}
1622   >$cache_file
1623 fi
1624
1625 # Check that the precious variables saved in the cache have kept the same
1626 # value.
1627 ac_cache_corrupted=false
1628 for ac_var in $ac_precious_vars; do
1629   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1630   eval ac_new_set=\$ac_env_${ac_var}_set
1631   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1632   eval ac_new_val=\$ac_env_${ac_var}_value
1633   case $ac_old_set,$ac_new_set in
1634     set,)
1635       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1636 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1637       ac_cache_corrupted=: ;;
1638     ,set)
1639       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1640 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1641       ac_cache_corrupted=: ;;
1642     ,);;
1643     *)
1644       if test "x$ac_old_val" != "x$ac_new_val"; then
1645         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1646 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1647         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1648 echo "$as_me:   former value:  $ac_old_val" >&2;}
1649         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1650 echo "$as_me:   current value: $ac_new_val" >&2;}
1651         ac_cache_corrupted=:
1652       fi;;
1653   esac
1654   # Pass precious variables to config.status.
1655   if test "$ac_new_set" = set; then
1656     case $ac_new_val in
1657     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1658     *) ac_arg=$ac_var=$ac_new_val ;;
1659     esac
1660     case " $ac_configure_args " in
1661       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1662       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1663     esac
1664   fi
1665 done
1666 if $ac_cache_corrupted; then
1667   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1668 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1669   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1670 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1671    { (exit 1); exit 1; }; }
1672 fi
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690 ac_ext=c
1691 ac_cpp='$CPP $CPPFLAGS'
1692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1695
1696
1697
1698
1699
1700
1701 #LIBREPLACE_ALL_CHECKS: START"
1702
1703 ac_aux_dir=
1704 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1705   if test -f "$ac_dir/install-sh"; then
1706     ac_aux_dir=$ac_dir
1707     ac_install_sh="$ac_aux_dir/install-sh -c"
1708     break
1709   elif test -f "$ac_dir/install.sh"; then
1710     ac_aux_dir=$ac_dir
1711     ac_install_sh="$ac_aux_dir/install.sh -c"
1712     break
1713   elif test -f "$ac_dir/shtool"; then
1714     ac_aux_dir=$ac_dir
1715     ac_install_sh="$ac_aux_dir/shtool install -c"
1716     break
1717   fi
1718 done
1719 if test -z "$ac_aux_dir"; then
1720   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1721 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1722    { (exit 1); exit 1; }; }
1723 fi
1724
1725 # These three variables are undocumented and unsupported,
1726 # and are intended to be withdrawn in a future Autoconf release.
1727 # They can cause serious problems if a builder's source tree is in a directory
1728 # whose full name contains unusual characters.
1729 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1730 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1731 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1732
1733
1734
1735 echo "LIBREPLACE_LOCATION_CHECKS: START"
1736
1737 libreplacedir=""
1738 libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace"
1739 for d in $libreplacepaths; do
1740         if test -f "$d/replace.c"; then
1741                 libreplacedir="$d"
1742
1743                 break;
1744         fi
1745 done
1746 if test x"$libreplacedir" = "x"; then
1747         { { echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
1748 echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
1749    { (exit 1); exit 1; }; }
1750 fi
1751 LIBREPLACEOBJ="replace.o"
1752
1753
1754 # Make sure we can run config.sub.
1755 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1756   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1757 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1758    { (exit 1); exit 1; }; }
1759
1760 { echo "$as_me:$LINENO: checking build system type" >&5
1761 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1762 if test "${ac_cv_build+set}" = set; then
1763   echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765   ac_build_alias=$build_alias
1766 test "x$ac_build_alias" = x &&
1767   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1768 test "x$ac_build_alias" = x &&
1769   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1770 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1771    { (exit 1); exit 1; }; }
1772 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1773   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1774 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1775    { (exit 1); exit 1; }; }
1776
1777 fi
1778 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1779 echo "${ECHO_T}$ac_cv_build" >&6; }
1780 case $ac_cv_build in
1781 *-*-*) ;;
1782 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1783 echo "$as_me: error: invalid value of canonical build" >&2;}
1784    { (exit 1); exit 1; }; };;
1785 esac
1786 build=$ac_cv_build
1787 ac_save_IFS=$IFS; IFS='-'
1788 set x $ac_cv_build
1789 shift
1790 build_cpu=$1
1791 build_vendor=$2
1792 shift; shift
1793 # Remember, the first character of IFS is used to create $*,
1794 # except with old shells:
1795 build_os=$*
1796 IFS=$ac_save_IFS
1797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1798
1799
1800 { echo "$as_me:$LINENO: checking host system type" >&5
1801 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1802 if test "${ac_cv_host+set}" = set; then
1803   echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805   if test "x$host_alias" = x; then
1806   ac_cv_host=$ac_cv_build
1807 else
1808   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1809     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1811    { (exit 1); exit 1; }; }
1812 fi
1813
1814 fi
1815 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1816 echo "${ECHO_T}$ac_cv_host" >&6; }
1817 case $ac_cv_host in
1818 *-*-*) ;;
1819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1820 echo "$as_me: error: invalid value of canonical host" >&2;}
1821    { (exit 1); exit 1; }; };;
1822 esac
1823 host=$ac_cv_host
1824 ac_save_IFS=$IFS; IFS='-'
1825 set x $ac_cv_host
1826 shift
1827 host_cpu=$1
1828 host_vendor=$2
1829 shift; shift
1830 # Remember, the first character of IFS is used to create $*,
1831 # except with old shells:
1832 host_os=$*
1833 IFS=$ac_save_IFS
1834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1835
1836
1837 { echo "$as_me:$LINENO: checking target system type" >&5
1838 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1839 if test "${ac_cv_target+set}" = set; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   if test "x$target_alias" = x; then
1843   ac_cv_target=$ac_cv_host
1844 else
1845   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1846     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1847 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1848    { (exit 1); exit 1; }; }
1849 fi
1850
1851 fi
1852 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1853 echo "${ECHO_T}$ac_cv_target" >&6; }
1854 case $ac_cv_target in
1855 *-*-*) ;;
1856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1857 echo "$as_me: error: invalid value of canonical target" >&2;}
1858    { (exit 1); exit 1; }; };;
1859 esac
1860 target=$ac_cv_target
1861 ac_save_IFS=$IFS; IFS='-'
1862 set x $ac_cv_target
1863 shift
1864 target_cpu=$1
1865 target_vendor=$2
1866 shift; shift
1867 # Remember, the first character of IFS is used to create $*,
1868 # except with old shells:
1869 target_os=$*
1870 IFS=$ac_save_IFS
1871 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1872
1873
1874 # The aliases save the names the user supplied, while $host etc.
1875 # will get canonicalized.
1876 test -n "$target_alias" &&
1877   test "$program_prefix$program_suffix$program_transform_name" = \
1878     NONENONEs,x,x, &&
1879   program_prefix=${target_alias}-
1880
1881 echo "LIBREPLACE_LOCATION_CHECKS: END"
1882
1883
1884
1885 echo "LIBREPLACE_CC_CHECKS: START"
1886
1887
1888 ac_cv_prog_cc_Ae=no
1889
1890 savedCFLAGS=$CFLAGS
1891 ac_ext=c
1892 ac_cpp='$CPP $CPPFLAGS'
1893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1896 if test -n "$ac_tool_prefix"; then
1897   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   if test -n "$CC"; then
1905   ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912   for ac_exec_ext in '' $ac_executable_extensions; do
1913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1914     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916     break 2
1917   fi
1918 done
1919 done
1920 IFS=$as_save_IFS
1921
1922 fi
1923 fi
1924 CC=$ac_cv_prog_CC
1925 if test -n "$CC"; then
1926   { echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6; }
1928 else
1929   { echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6; }
1931 fi
1932
1933
1934 fi
1935 if test -z "$ac_cv_prog_CC"; then
1936   ac_ct_CC=$CC
1937   # Extract the first word of "gcc", so it can be a program name with args.
1938 set dummy gcc; ac_word=$2
1939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   if test -n "$ac_ct_CC"; then
1945   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952   for ac_exec_ext in '' $ac_executable_extensions; do
1953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1954     ac_cv_prog_ac_ct_CC="gcc"
1955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956     break 2
1957   fi
1958 done
1959 done
1960 IFS=$as_save_IFS
1961
1962 fi
1963 fi
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6; }
1968 else
1969   { echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6; }
1971 fi
1972
1973   if test "x$ac_ct_CC" = x; then
1974     CC=""
1975   else
1976     case $cross_compiling:$ac_tool_warned in
1977 yes:)
1978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1979 whose name does not start with the host triplet.  If you think this
1980 configuration is useful to you, please write to autoconf@gnu.org." >&5
1981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1982 whose name does not start with the host triplet.  If you think this
1983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1984 ac_tool_warned=yes ;;
1985 esac
1986     CC=$ac_ct_CC
1987   fi
1988 else
1989   CC="$ac_cv_prog_CC"
1990 fi
1991
1992 if test -z "$CC"; then
1993           if test -n "$ac_tool_prefix"; then
1994     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}cc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$CC"; then
2002   ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2011     ac_cv_prog_CC="${ac_tool_prefix}cc"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017 IFS=$as_save_IFS
2018
2019 fi
2020 fi
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023   { echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6; }
2025 else
2026   { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 fi
2029
2030
2031   fi
2032 fi
2033 if test -z "$CC"; then
2034   # Extract the first word of "cc", so it can be a program name with args.
2035 set dummy cc; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$CC"; then
2042   ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044   ac_prog_rejected=no
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2053        ac_prog_rejected=yes
2054        continue
2055      fi
2056     ac_cv_prog_CC="cc"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062 IFS=$as_save_IFS
2063
2064 if test $ac_prog_rejected = yes; then
2065   # We found a bogon in the path, so make sure we never use it.
2066   set dummy $ac_cv_prog_CC
2067   shift
2068   if test $# != 0; then
2069     # We chose a different compiler from the bogus one.
2070     # However, it has the same basename, so the bogon will be chosen
2071     # first if we set CC to just the basename; use the full file name.
2072     shift
2073     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2074   fi
2075 fi
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080   { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2082 else
2083   { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2086
2087
2088 fi
2089 if test -z "$CC"; then
2090   if test -n "$ac_tool_prefix"; then
2091   for ac_prog in cl.exe
2092   do
2093     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   if test -n "$CC"; then
2101   ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112     break 2
2113   fi
2114 done
2115 done
2116 IFS=$as_save_IFS
2117
2118 fi
2119 fi
2120 CC=$ac_cv_prog_CC
2121 if test -n "$CC"; then
2122   { echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6; }
2124 else
2125   { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2127 fi
2128
2129
2130     test -n "$CC" && break
2131   done
2132 fi
2133 if test -z "$CC"; then
2134   ac_ct_CC=$CC
2135   for ac_prog in cl.exe
2136 do
2137   # Extract the first word of "$ac_prog", so it can be a program name with args.
2138 set dummy $ac_prog; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   if test -n "$ac_ct_CC"; then
2145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152   for ac_exec_ext in '' $ac_executable_extensions; do
2153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2154     ac_cv_prog_ac_ct_CC="$ac_prog"
2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156     break 2
2157   fi
2158 done
2159 done
2160 IFS=$as_save_IFS
2161
2162 fi
2163 fi
2164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165 if test -n "$ac_ct_CC"; then
2166   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167 echo "${ECHO_T}$ac_ct_CC" >&6; }
2168 else
2169   { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2171 fi
2172
2173
2174   test -n "$ac_ct_CC" && break
2175 done
2176
2177   if test "x$ac_ct_CC" = x; then
2178     CC=""
2179   else
2180     case $cross_compiling:$ac_tool_warned in
2181 yes:)
2182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2183 whose name does not start with the host triplet.  If you think this
2184 configuration is useful to you, please write to autoconf@gnu.org." >&5
2185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2186 whose name does not start with the host triplet.  If you think this
2187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2188 ac_tool_warned=yes ;;
2189 esac
2190     CC=$ac_ct_CC
2191   fi
2192 fi
2193
2194 fi
2195
2196
2197 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: no acceptable C compiler found in \$PATH
2200 See \`config.log' for more details." >&2;}
2201    { (exit 1); exit 1; }; }
2202
2203 # Provide some information about the compiler.
2204 echo "$as_me:$LINENO: checking for C compiler version" >&5
2205 ac_compiler=`set X $ac_compile; echo $2`
2206 { (ac_try="$ac_compiler --version >&5"
2207 case "(($ac_try" in
2208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209   *) ac_try_echo=$ac_try;;
2210 esac
2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212   (eval "$ac_compiler --version >&5") 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); }
2216 { (ac_try="$ac_compiler -v >&5"
2217 case "(($ac_try" in
2218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219   *) ac_try_echo=$ac_try;;
2220 esac
2221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222   (eval "$ac_compiler -v >&5") 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); }
2226 { (ac_try="$ac_compiler -V >&5"
2227 case "(($ac_try" in
2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229   *) ac_try_echo=$ac_try;;
2230 esac
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232   (eval "$ac_compiler -V >&5") 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }
2236
2237 cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h.  */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h.  */
2243
2244 int
2245 main ()
2246 {
2247
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 ac_clean_files_save=$ac_clean_files
2253 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2254 # Try to create an executable without -o first, disregard a.out.
2255 # It will help us diagnose broken compilers, and finding out an intuition
2256 # of exeext.
2257 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2258 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2259 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2260 #
2261 # List of possible output files, starting from the most likely.
2262 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2263 # only as a last resort.  b.out is created by i960 compilers.
2264 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2265 #
2266 # The IRIX 6 linker writes into existing files which may not be
2267 # executable, retaining their permissions.  Remove them first so a
2268 # subsequent execution test works.
2269 ac_rmfiles=
2270 for ac_file in $ac_files
2271 do
2272   case $ac_file in
2273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2274     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2275   esac
2276 done
2277 rm -f $ac_rmfiles
2278
2279 if { (ac_try="$ac_link_default"
2280 case "(($ac_try" in
2281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282   *) ac_try_echo=$ac_try;;
2283 esac
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285   (eval "$ac_link_default") 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; then
2289   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2290 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2291 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2292 # so that the user can short-circuit this test for compilers unknown to
2293 # Autoconf.
2294 for ac_file in $ac_files ''
2295 do
2296   test -f "$ac_file" || continue
2297   case $ac_file in
2298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2299         ;;
2300     [ab].out )
2301         # We found the default executable, but exeext='' is most
2302         # certainly right.
2303         break;;
2304     *.* )
2305         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2306         then :; else
2307            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308         fi
2309         # We set ac_cv_exeext here because the later test for it is not
2310         # safe: cross compilers may not add the suffix if given an `-o'
2311         # argument, so we may need to know it at that point already.
2312         # Even if this section looks crufty: it has the advantage of
2313         # actually working.
2314         break;;
2315     * )
2316         break;;
2317   esac
2318 done
2319 test "$ac_cv_exeext" = no && ac_cv_exeext=
2320
2321 else
2322   ac_file=''
2323 fi
2324
2325 { echo "$as_me:$LINENO: result: $ac_file" >&5
2326 echo "${ECHO_T}$ac_file" >&6; }
2327 if test -z "$ac_file"; then
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: C compiler cannot create executables
2334 See \`config.log' for more details." >&2;}
2335    { (exit 77); exit 77; }; }
2336 fi
2337
2338 ac_exeext=$ac_cv_exeext
2339
2340 # Check that the compiler produces executables we can run.  If not, either
2341 # the compiler is broken, or we cross compile.
2342 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2343 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2344 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2345 # If not cross compiling, check that we can run a simple program.
2346 if test "$cross_compiling" != yes; then
2347   if { ac_try='./$ac_file'
2348   { (case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_try") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; }; then
2357     cross_compiling=no
2358   else
2359     if test "$cross_compiling" = maybe; then
2360         cross_compiling=yes
2361     else
2362         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2363 If you meant to cross compile, use \`--host'.
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot run C compiled programs.
2366 If you meant to cross compile, use \`--host'.
2367 See \`config.log' for more details." >&2;}
2368    { (exit 1); exit 1; }; }
2369     fi
2370   fi
2371 fi
2372 { echo "$as_me:$LINENO: result: yes" >&5
2373 echo "${ECHO_T}yes" >&6; }
2374
2375 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2376 ac_clean_files=$ac_clean_files_save
2377 # Check that the compiler produces executables we can run.  If not, either
2378 # the compiler is broken, or we cross compile.
2379 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2380 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2381 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2382 echo "${ECHO_T}$cross_compiling" >&6; }
2383
2384 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2385 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2386 if { (ac_try="$ac_link"
2387 case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392   (eval "$ac_link") 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; then
2396   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2397 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2398 # work properly (i.e., refer to `conftest.exe'), while it won't with
2399 # `rm'.
2400 for ac_file in conftest.exe conftest conftest.*; do
2401   test -f "$ac_file" || continue
2402   case $ac_file in
2403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2404     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2405           break;;
2406     * ) break;;
2407   esac
2408 done
2409 else
2410   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2413 See \`config.log' for more details." >&2;}
2414    { (exit 1); exit 1; }; }
2415 fi
2416
2417 rm -f conftest$ac_cv_exeext
2418 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2419 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2420
2421 rm -f conftest.$ac_ext
2422 EXEEXT=$ac_cv_exeext
2423 ac_exeext=$EXEEXT
2424 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2425 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2426 if test "${ac_cv_objext+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435
2436 int
2437 main ()
2438 {
2439
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.o conftest.obj
2445 if { (ac_try="$ac_compile"
2446 case "(($ac_try" in
2447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448   *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451   (eval "$ac_compile") 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; then
2455   for ac_file in conftest.o conftest.obj conftest.*; do
2456   test -f "$ac_file" || continue;
2457   case $ac_file in
2458     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2459     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2460        break;;
2461   esac
2462 done
2463 else
2464   echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2470 See \`config.log' for more details." >&2;}
2471    { (exit 1); exit 1; }; }
2472 fi
2473
2474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2475 fi
2476 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2477 echo "${ECHO_T}$ac_cv_objext" >&6; }
2478 OBJEXT=$ac_cv_objext
2479 ac_objext=$OBJEXT
2480 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2481 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491
2492 int
2493 main ()
2494 {
2495 #ifndef __GNUC__
2496        choke me
2497 #endif
2498
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (ac_try="$ac_compile"
2505 case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_compile") 2>conftest.er1
2511   ac_status=$?
2512   grep -v '^ *+' conftest.er1 >conftest.err
2513   rm -f conftest.er1
2514   cat conftest.err >&5
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); } &&
2517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2518   { (case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_try") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; } &&
2527          { ac_try='test -s conftest.$ac_objext'
2528   { (case "(($ac_try" in
2529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530   *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533   (eval "$ac_try") 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   ac_compiler_gnu=yes
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542         ac_compiler_gnu=no
2543 fi
2544
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2547
2548 fi
2549 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   ac_save_c_werror_flag=$ac_c_werror_flag
2560    ac_c_werror_flag=yes
2561    ac_cv_prog_cc_g=no
2562    CFLAGS="-g"
2563    cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569
2570 int
2571 main ()
2572 {
2573
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2580 case "(($ac_try" in
2581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582   *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585   (eval "$ac_compile") 2>conftest.er1
2586   ac_status=$?
2587   grep -v '^ *+' conftest.er1 >conftest.err
2588   rm -f conftest.er1
2589   cat conftest.err >&5
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); } &&
2592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2593   { (case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_try") 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; } &&
2602          { ac_try='test -s conftest.$ac_objext'
2603   { (case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_try") 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; }; then
2612   ac_cv_prog_cc_g=yes
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617         CFLAGS=""
2618       cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h.  */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h.  */
2624
2625 int
2626 main ()
2627 {
2628
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (ac_try="$ac_compile"
2635 case "(($ac_try" in
2636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637   *) ac_try_echo=$ac_try;;
2638 esac
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640   (eval "$ac_compile") 2>conftest.er1
2641   ac_status=$?
2642   grep -v '^ *+' conftest.er1 >conftest.err
2643   rm -f conftest.er1
2644   cat conftest.err >&5
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2648   { (case "(($ac_try" in
2649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650   *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653   (eval "$ac_try") 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663   (eval "$ac_try") 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; }; then
2667   :
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672         ac_c_werror_flag=$ac_save_c_werror_flag
2673          CFLAGS="-g"
2674          cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h.  */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h.  */
2680
2681 int
2682 main ()
2683 {
2684
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (ac_try="$ac_compile"
2691 case "(($ac_try" in
2692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693   *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696   (eval "$ac_compile") 2>conftest.er1
2697   ac_status=$?
2698   grep -v '^ *+' conftest.er1 >conftest.err
2699   rm -f conftest.er1
2700   cat conftest.err >&5
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); } &&
2703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2704   { (case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709   (eval "$ac_try") 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; } &&
2713          { ac_try='test -s conftest.$ac_objext'
2714   { (case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_try") 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723   ac_cv_prog_cc_g=yes
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728
2729 fi
2730
2731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732 fi
2733
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 fi
2736
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738    ac_c_werror_flag=$ac_save_c_werror_flag
2739 fi
2740 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2741 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2742 if test "$ac_test_CFLAGS" = set; then
2743   CFLAGS=$ac_save_CFLAGS
2744 elif test $ac_cv_prog_cc_g = yes; then
2745   if test "$GCC" = yes; then
2746     CFLAGS="-g -O2"
2747   else
2748     CFLAGS="-g"
2749   fi
2750 else
2751   if test "$GCC" = yes; then
2752     CFLAGS="-O2"
2753   else
2754     CFLAGS=
2755   fi
2756 fi
2757 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2758 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2759 if test "${ac_cv_prog_cc_c89+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762   ac_cv_prog_cc_c89=no
2763 ac_save_CC=$CC
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770 #include <stdarg.h>
2771 #include <stdio.h>
2772 #include <sys/types.h>
2773 #include <sys/stat.h>
2774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2775 struct buf { int x; };
2776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2777 static char *e (p, i)
2778      char **p;
2779      int i;
2780 {
2781   return p[i];
2782 }
2783 static char *f (char * (*g) (char **, int), char **p, ...)
2784 {
2785   char *s;
2786   va_list v;
2787   va_start (v,p);
2788   s = g (p, va_arg (v,int));
2789   va_end (v);
2790   return s;
2791 }
2792
2793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2794    function prototypes and stuff, but not '\xHH' hex character constants.
2795    These don't provoke an error unfortunately, instead are silently treated
2796    as 'x'.  The following induces an error, until -std is added to get
2797    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2798    array size at least.  It's necessary to write '\x00'==0 to get something
2799    that's true only with -std.  */
2800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2801
2802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2803    inside strings and character constants.  */
2804 #define FOO(x) 'x'
2805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2806
2807 int test (int i, double x);
2808 struct s1 {int (*f) (int a);};
2809 struct s2 {int (*f) (double a);};
2810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2811 int argc;
2812 char **argv;
2813 int
2814 main ()
2815 {
2816 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2822         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2823 do
2824   CC="$ac_save_CC $ac_arg"
2825   rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832   (eval "$ac_compile") 2>conftest.er1
2833   ac_status=$?
2834   grep -v '^ *+' conftest.er1 >conftest.err
2835   rm -f conftest.er1
2836   cat conftest.err >&5
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); } &&
2839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2840   { (case "(($ac_try" in
2841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842   *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845   (eval "$ac_try") 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; } &&
2849          { ac_try='test -s conftest.$ac_objext'
2850   { (case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_try") 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859   ac_cv_prog_cc_c89=$ac_arg
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864
2865 fi
2866
2867 rm -f core conftest.err conftest.$ac_objext
2868   test "x$ac_cv_prog_cc_c89" != "xno" && break
2869 done
2870 rm -f conftest.$ac_ext
2871 CC=$ac_save_CC
2872
2873 fi
2874 # AC_CACHE_VAL
2875 case "x$ac_cv_prog_cc_c89" in
2876   x)
2877     { echo "$as_me:$LINENO: result: none needed" >&5
2878 echo "${ECHO_T}none needed" >&6; } ;;
2879   xno)
2880     { echo "$as_me:$LINENO: result: unsupported" >&5
2881 echo "${ECHO_T}unsupported" >&6; } ;;
2882   *)
2883     CC="$CC $ac_cv_prog_cc_c89"
2884     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2885 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2886 esac
2887
2888
2889 ac_ext=c
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894
2895 CFLAGS=$savedCFLAGS
2896
2897 if test x"$GCC" != x"yes" ; then
2898    { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2899 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_cc_c99+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   ac_cv_prog_cc_c99=no
2904 ac_save_CC=$CC
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h.  */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h.  */
2911 #include <stdarg.h>
2912 #include <stdbool.h>
2913 #include <stdlib.h>
2914 #include <wchar.h>
2915 #include <stdio.h>
2916
2917 struct incomplete_array
2918 {
2919   int datasize;
2920   double data[];
2921 };
2922
2923 struct named_init {
2924   int number;
2925   const wchar_t *name;
2926   double average;
2927 };
2928
2929 typedef const char *ccp;
2930
2931 static inline int
2932 test_restrict(ccp restrict text)
2933 {
2934   // See if C++-style comments work.
2935   // Iterate through items via the restricted pointer.
2936   // Also check for declarations in for loops.
2937   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2938     continue;
2939   return 0;
2940 }
2941
2942 // Check varargs and va_copy work.
2943 static void
2944 test_varargs(const char *format, ...)
2945 {
2946   va_list args;
2947   va_start(args, format);
2948   va_list args_copy;
2949   va_copy(args_copy, args);
2950
2951   const char *str;
2952   int number;
2953   float fnumber;
2954
2955   while (*format)
2956     {
2957       switch (*format++)
2958         {
2959         case 's': // string
2960           str = va_arg(args_copy, const char *);
2961           break;
2962         case 'd': // int
2963           number = va_arg(args_copy, int);
2964           break;
2965         case 'f': // float
2966           fnumber = (float) va_arg(args_copy, double);
2967           break;
2968         default:
2969           break;
2970         }
2971     }
2972   va_end(args_copy);
2973   va_end(args);
2974 }
2975
2976 int
2977 main ()
2978 {
2979
2980   // Check bool and long long datatypes.
2981   _Bool success = false;
2982   long long int bignum = -1234567890LL;
2983   unsigned long long int ubignum = 1234567890uLL;
2984
2985   // Check restrict.
2986   if (test_restrict("String literal") != 0)
2987     success = true;
2988   char *restrict newvar = "Another string";
2989
2990   // Check varargs.
2991   test_varargs("s, d' f .", "string", 65, 34.234);
2992
2993   // Check incomplete arrays work.
2994   struct incomplete_array *ia =
2995     malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
2996   ia->datasize = 10;
2997   for (int i = 0; i < ia->datasize; ++i)
2998     ia->data[i] = (double) i * 1.234;
2999
3000   // Check named initialisers.
3001   struct named_init ni = {
3002     .number = 34,
3003     .name = L"Test wide string",
3004     .average = 543.34343,
3005   };
3006
3007   ni.number = 58;
3008
3009   int dynamic_array[ni.number];
3010   dynamic_array[43] = 543;
3011
3012   // work around unused variable warnings
3013   return  bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
3014
3015   ;
3016   return 0;
3017 }
3018 _ACEOF
3019 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3020 do
3021   CC="$ac_save_CC $ac_arg"
3022   rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_compile") 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } &&
3036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3037   { (case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_try") 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); }; } &&
3046          { ac_try='test -s conftest.$ac_objext'
3047   { (case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_try") 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; }; then
3056   ac_cv_prog_cc_c99=$ac_arg
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061
3062 fi
3063
3064 rm -f core conftest.err conftest.$ac_objext
3065   test "x$ac_cv_prog_cc_c99" != "xno" && break
3066 done
3067 rm -f conftest.$ac_ext
3068 CC=$ac_save_CC
3069
3070 fi
3071 # AC_CACHE_VAL
3072 case "x$ac_cv_prog_cc_c99" in
3073   x)
3074     { echo "$as_me:$LINENO: result: none needed" >&5
3075 echo "${ECHO_T}none needed" >&6; } ;;
3076   xno)
3077     { echo "$as_me:$LINENO: result: unsupported" >&5
3078 echo "${ECHO_T}unsupported" >&6; } ;;
3079   *)
3080     CC="$CC $ac_cv_prog_cc_c99"
3081     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3082 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3083 esac
3084
3085
3086
3087 fi
3088
3089 if test x"$GCC" = x"yes" ; then
3090         { echo "$as_me:$LINENO: checking for version of gcc" >&5
3091 echo $ECHO_N "checking for version of gcc... $ECHO_C" >&6; }
3092         GCC_VERSION=`$CC -dumpversion`
3093         { echo "$as_me:$LINENO: result: ${GCC_VERSION}" >&5
3094 echo "${ECHO_T}${GCC_VERSION}" >&6; }
3095 fi
3096
3097 cat >>confdefs.h <<\_ACEOF
3098 #define _GNU_SOURCE 1
3099 _ACEOF
3100
3101
3102
3103 ac_ext=c
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3109 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3110 # On Suns, sometimes $CPP names a directory.
3111 if test -n "$CPP" && test -d "$CPP"; then
3112   CPP=
3113 fi
3114 if test -z "$CPP"; then
3115   if test "${ac_cv_prog_CPP+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118       # Double quotes because CPP needs to be expanded
3119     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3120     do
3121       ac_preproc_ok=false
3122 for ac_c_preproc_warn_flag in '' yes
3123 do
3124   # Use a header file that comes with gcc, so configuring glibc
3125   # with a fresh cross-compiler works.
3126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127   # <limits.h> exists even on freestanding compilers.
3128   # On the NeXT, cc -E runs the code through the compiler's parser,
3129   # not just through cpp. "Syntax error" is here to catch this case.
3130   cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136 #ifdef __STDC__
3137 # include <limits.h>
3138 #else
3139 # include <assert.h>
3140 #endif
3141                      Syntax error
3142 _ACEOF
3143 if { (ac_try="$ac_cpp conftest.$ac_ext"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3150   ac_status=$?
3151   grep -v '^ *+' conftest.er1 >conftest.err
3152   rm -f conftest.er1
3153   cat conftest.err >&5
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); } >/dev/null; then
3156   if test -s conftest.err; then
3157     ac_cpp_err=$ac_c_preproc_warn_flag
3158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3159   else
3160     ac_cpp_err=
3161   fi
3162 else
3163   ac_cpp_err=yes
3164 fi
3165 if test -z "$ac_cpp_err"; then
3166   :
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171   # Broken: fails on valid input.
3172 continue
3173 fi
3174
3175 rm -f conftest.err conftest.$ac_ext
3176
3177   # OK, works on sane cases.  Now check whether nonexistent headers
3178   # can be detected and how.
3179   cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h.  */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h.  */
3185 #include <ac_nonexistent.h>
3186 _ACEOF
3187 if { (ac_try="$ac_cpp conftest.$ac_ext"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } >/dev/null; then
3200   if test -s conftest.err; then
3201     ac_cpp_err=$ac_c_preproc_warn_flag
3202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3203   else
3204     ac_cpp_err=
3205   fi
3206 else
3207   ac_cpp_err=yes
3208 fi
3209 if test -z "$ac_cpp_err"; then
3210   # Broken: success on invalid input.
3211 continue
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216   # Passes both tests.
3217 ac_preproc_ok=:
3218 break
3219 fi
3220
3221 rm -f conftest.err conftest.$ac_ext
3222
3223 done
3224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225 rm -f conftest.err conftest.$ac_ext
3226 if $ac_preproc_ok; then
3227   break
3228 fi
3229
3230     done
3231     ac_cv_prog_CPP=$CPP
3232
3233 fi
3234   CPP=$ac_cv_prog_CPP
3235 else
3236   ac_cv_prog_CPP=$CPP
3237 fi
3238 { echo "$as_me:$LINENO: result: $CPP" >&5
3239 echo "${ECHO_T}$CPP" >&6; }
3240 ac_preproc_ok=false
3241 for ac_c_preproc_warn_flag in '' yes
3242 do
3243   # Use a header file that comes with gcc, so configuring glibc
3244   # with a fresh cross-compiler works.
3245   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246   # <limits.h> exists even on freestanding compilers.
3247   # On the NeXT, cc -E runs the code through the compiler's parser,
3248   # not just through cpp. "Syntax error" is here to catch this case.
3249   cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #ifdef __STDC__
3256 # include <limits.h>
3257 #else
3258 # include <assert.h>
3259 #endif
3260                      Syntax error
3261 _ACEOF
3262 if { (ac_try="$ac_cpp conftest.$ac_ext"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3269   ac_status=$?
3270   grep -v '^ *+' conftest.er1 >conftest.err
3271   rm -f conftest.er1
3272   cat conftest.err >&5
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } >/dev/null; then
3275   if test -s conftest.err; then
3276     ac_cpp_err=$ac_c_preproc_warn_flag
3277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3278   else
3279     ac_cpp_err=
3280   fi
3281 else
3282   ac_cpp_err=yes
3283 fi
3284 if test -z "$ac_cpp_err"; then
3285   :
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290   # Broken: fails on valid input.
3291 continue
3292 fi
3293
3294 rm -f conftest.err conftest.$ac_ext
3295
3296   # OK, works on sane cases.  Now check whether nonexistent headers
3297   # can be detected and how.
3298   cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #include <ac_nonexistent.h>
3305 _ACEOF
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } >/dev/null; then
3319   if test -s conftest.err; then
3320     ac_cpp_err=$ac_c_preproc_warn_flag
3321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3322   else
3323     ac_cpp_err=
3324   fi
3325 else
3326   ac_cpp_err=yes
3327 fi
3328 if test -z "$ac_cpp_err"; then
3329   # Broken: success on invalid input.
3330 continue
3331 else
3332   echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335   # Passes both tests.
3336 ac_preproc_ok=:
3337 break
3338 fi
3339
3340 rm -f conftest.err conftest.$ac_ext
3341
3342 done
3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344 rm -f conftest.err conftest.$ac_ext
3345 if $ac_preproc_ok; then
3346   :
3347 else
3348   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3351 See \`config.log' for more details." >&2;}
3352    { (exit 1); exit 1; }; }
3353 fi
3354
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360
3361
3362 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3363 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3364 if test "${ac_cv_path_GREP+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   # Extract the first word of "grep ggrep" to use in msg output
3368 if test -z "$GREP"; then
3369 set dummy grep ggrep; ac_prog_name=$2
3370 if test "${ac_cv_path_GREP+set}" = set; then
3371   echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373   ac_path_GREP_found=false
3374 # Loop through the user's path and test for each of PROGNAME-LIST
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380   for ac_prog in grep ggrep; do
3381   for ac_exec_ext in '' $ac_executable_extensions; do
3382     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3383     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3384     # Check for GNU ac_path_GREP and select it if it is found.
3385   # Check for GNU $ac_path_GREP
3386 case `"$ac_path_GREP" --version 2>&1` in
3387 *GNU*)
3388   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3389 *)
3390   ac_count=0
3391   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3392   while :
3393   do
3394     cat "conftest.in" "conftest.in" >"conftest.tmp"
3395     mv "conftest.tmp" "conftest.in"
3396     cp "conftest.in" "conftest.nl"
3397     echo 'GREP' >> "conftest.nl"
3398     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3400     ac_count=`expr $ac_count + 1`
3401     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3402       # Best one so far, save it but keep looking for a better one
3403       ac_cv_path_GREP="$ac_path_GREP"
3404       ac_path_GREP_max=$ac_count
3405     fi
3406     # 10*(2^10) chars as input seems more than enough
3407     test $ac_count -gt 10 && break
3408   done
3409   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3410 esac
3411
3412
3413     $ac_path_GREP_found && break 3
3414   done
3415 done
3416
3417 done
3418 IFS=$as_save_IFS
3419
3420
3421 fi
3422
3423 GREP="$ac_cv_path_GREP"
3424 if test -z "$GREP"; then
3425   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3426 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3427    { (exit 1); exit 1; }; }
3428 fi
3429
3430 else
3431   ac_cv_path_GREP=$GREP
3432 fi
3433
3434
3435 fi
3436 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3437 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3438  GREP="$ac_cv_path_GREP"
3439
3440
3441 { echo "$as_me:$LINENO: checking for egrep" >&5
3442 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3443 if test "${ac_cv_path_EGREP+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3447    then ac_cv_path_EGREP="$GREP -E"
3448    else
3449      # Extract the first word of "egrep" to use in msg output
3450 if test -z "$EGREP"; then
3451 set dummy egrep; ac_prog_name=$2
3452 if test "${ac_cv_path_EGREP+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   ac_path_EGREP_found=false
3456 # Loop through the user's path and test for each of PROGNAME-LIST
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3459 do
3460   IFS=$as_save_IFS
3461   test -z "$as_dir" && as_dir=.
3462   for ac_prog in egrep; do
3463   for ac_exec_ext in '' $ac_executable_extensions; do
3464     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3465     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3466     # Check for GNU ac_path_EGREP and select it if it is found.
3467   # Check for GNU $ac_path_EGREP
3468 case `"$ac_path_EGREP" --version 2>&1` in
3469 *GNU*)
3470   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3471 *)
3472   ac_count=0
3473   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3474   while :
3475   do
3476     cat "conftest.in" "conftest.in" >"conftest.tmp"
3477     mv "conftest.tmp" "conftest.in"
3478     cp "conftest.in" "conftest.nl"
3479     echo 'EGREP' >> "conftest.nl"
3480     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3481     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3482     ac_count=`expr $ac_count + 1`
3483     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3484       # Best one so far, save it but keep looking for a better one
3485       ac_cv_path_EGREP="$ac_path_EGREP"
3486       ac_path_EGREP_max=$ac_count
3487     fi
3488     # 10*(2^10) chars as input seems more than enough
3489     test $ac_count -gt 10 && break
3490   done
3491   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3492 esac
3493
3494
3495     $ac_path_EGREP_found && break 3
3496   done
3497 done
3498
3499 done
3500 IFS=$as_save_IFS
3501
3502
3503 fi
3504
3505 EGREP="$ac_cv_path_EGREP"
3506 if test -z "$EGREP"; then
3507   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3508 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3509    { (exit 1); exit 1; }; }
3510 fi
3511
3512 else
3513   ac_cv_path_EGREP=$EGREP
3514 fi
3515
3516
3517    fi
3518 fi
3519 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3520 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3521  EGREP="$ac_cv_path_EGREP"
3522
3523
3524
3525 { echo "$as_me:$LINENO: checking for AIX" >&5
3526 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533 #ifdef _AIX
3534   yes
3535 #endif
3536
3537 _ACEOF
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539   $EGREP "yes" >/dev/null 2>&1; then
3540   { echo "$as_me:$LINENO: result: yes" >&5
3541 echo "${ECHO_T}yes" >&6; }
3542 cat >>confdefs.h <<\_ACEOF
3543 #define _ALL_SOURCE 1
3544 _ACEOF
3545
3546 else
3547   { echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6; }
3549 fi
3550 rm -f conftest*
3551
3552
3553 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3554 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3555 if test "${ac_cv_header_stdc+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564 #include <stdlib.h>
3565 #include <stdarg.h>
3566 #include <string.h>
3567 #include <float.h>
3568
3569 int
3570 main ()
3571 {
3572
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (ac_try="$ac_compile"
3579 case "(($ac_try" in
3580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581   *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584   (eval "$ac_compile") 2>conftest.er1
3585   ac_status=$?
3586   grep -v '^ *+' conftest.er1 >conftest.err
3587   rm -f conftest.er1
3588   cat conftest.err >&5
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); } &&
3591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3592   { (case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597   (eval "$ac_try") 2>&5
3598   ac_status=$?
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); }; } &&
3601          { ac_try='test -s conftest.$ac_objext'
3602   { (case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_try") 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; }; then
3611   ac_cv_header_stdc=yes
3612 else
3613   echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616         ac_cv_header_stdc=no
3617 fi
3618
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620
3621 if test $ac_cv_header_stdc = yes; then
3622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623   cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629 #include <string.h>
3630
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633   $EGREP "memchr" >/dev/null 2>&1; then
3634   :
3635 else
3636   ac_cv_header_stdc=no
3637 fi
3638 rm -f conftest*
3639
3640 fi
3641
3642 if test $ac_cv_header_stdc = yes; then
3643   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 #include <stdlib.h>
3651
3652 _ACEOF
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654   $EGREP "free" >/dev/null 2>&1; then
3655   :
3656 else
3657   ac_cv_header_stdc=no
3658 fi
3659 rm -f conftest*
3660
3661 fi
3662
3663 if test $ac_cv_header_stdc = yes; then
3664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665   if test "$cross_compiling" = yes; then
3666   :
3667 else
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #include <ctype.h>
3675 #include <stdlib.h>
3676 #if ((' ' & 0x0FF) == 0x020)
3677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3679 #else
3680 # define ISLOWER(c) \
3681                    (('a' <= (c) && (c) <= 'i') \
3682                      || ('j' <= (c) && (c) <= 'r') \
3683                      || ('s' <= (c) && (c) <= 'z'))
3684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3685 #endif
3686
3687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3688 int
3689 main ()
3690 {
3691   int i;
3692   for (i = 0; i < 256; i++)
3693     if (XOR (islower (i), ISLOWER (i))
3694         || toupper (i) != TOUPPER (i))
3695       return 2;
3696   return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest$ac_exeext
3700 if { (ac_try="$ac_link"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706   (eval "$ac_link") 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3710   { (case "(($ac_try" in
3711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712   *) ac_try_echo=$ac_try;;
3713 esac
3714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715   (eval "$ac_try") 2>&5
3716   ac_status=$?
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); }; }; then
3719   :
3720 else
3721   echo "$as_me: program exited with status $ac_status" >&5
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 ( exit $ac_status )
3726 ac_cv_header_stdc=no
3727 fi
3728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3729 fi
3730
3731
3732 fi
3733 fi
3734 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3735 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3736 if test $ac_cv_header_stdc = yes; then
3737
3738 cat >>confdefs.h <<\_ACEOF
3739 #define STDC_HEADERS 1
3740 _ACEOF
3741
3742 fi
3743
3744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3755                   inttypes.h stdint.h unistd.h
3756 do
3757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h.  */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h.  */
3769 $ac_includes_default
3770
3771 #include <$ac_header>
3772 _ACEOF
3773 rm -f conftest.$ac_objext
3774 if { (ac_try="$ac_compile"
3775 case "(($ac_try" in
3776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777   *) ac_try_echo=$ac_try;;
3778 esac
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780   (eval "$ac_compile") 2>conftest.er1
3781   ac_status=$?
3782   grep -v '^ *+' conftest.er1 >conftest.err
3783   rm -f conftest.er1
3784   cat conftest.err >&5
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } &&
3787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3788   { (case "(($ac_try" in
3789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790   *) ac_try_echo=$ac_try;;
3791 esac
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793   (eval "$ac_try") 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; } &&
3797          { ac_try='test -s conftest.$ac_objext'
3798   { (case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803   (eval "$ac_try") 2>&5
3804   ac_status=$?
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); }; }; then
3807   eval "$as_ac_Header=yes"
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812         eval "$as_ac_Header=no"
3813 fi
3814
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 fi
3817 ac_res=`eval echo '${'$as_ac_Header'}'`
3818                { echo "$as_me:$LINENO: result: $ac_res" >&5
3819 echo "${ECHO_T}$ac_res" >&6; }
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821   cat >>confdefs.h <<_ACEOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823 _ACEOF
3824
3825 fi
3826
3827 done
3828
3829
3830 if test "${ac_cv_header_minix_config_h+set}" = set; then
3831   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3832 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3833 if test "${ac_cv_header_minix_config_h+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 fi
3836 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3837 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3838 else
3839   # Is the header compilable?
3840 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3841 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h.  */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h.  */
3848 $ac_includes_default
3849 #include <minix/config.h>
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3853 case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858   (eval "$ac_compile") 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } &&
3865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866   { (case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871   (eval "$ac_try") 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; } &&
3875          { ac_try='test -s conftest.$ac_objext'
3876   { (case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881   (eval "$ac_try") 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; }; then
3885   ac_header_compiler=yes
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890         ac_header_compiler=no
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3895 echo "${ECHO_T}$ac_header_compiler" >&6; }
3896
3897 # Is the header present?
3898 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3899 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #include <minix/config.h>
3907 _ACEOF
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } >/dev/null; then
3921   if test -s conftest.err; then
3922     ac_cpp_err=$ac_c_preproc_warn_flag
3923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3924   else
3925     ac_cpp_err=
3926   fi
3927 else
3928   ac_cpp_err=yes
3929 fi
3930 if test -z "$ac_cpp_err"; then
3931   ac_header_preproc=yes
3932 else
3933   echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936   ac_header_preproc=no
3937 fi
3938
3939 rm -f conftest.err conftest.$ac_ext
3940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3941 echo "${ECHO_T}$ac_header_preproc" >&6; }
3942
3943 # So?  What about this header?
3944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3945   yes:no: )
3946     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3947 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3948     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3949 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3950     ac_header_preproc=yes
3951     ;;
3952   no:yes:* )
3953     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3954 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3955     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3956 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3957     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3958 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3959     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3960 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3961     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3962 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3963     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3964 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3965
3966     ;;
3967 esac
3968 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3969 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3970 if test "${ac_cv_header_minix_config_h+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   ac_cv_header_minix_config_h=$ac_header_preproc
3974 fi
3975 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3976 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3977
3978 fi
3979 if test $ac_cv_header_minix_config_h = yes; then
3980   MINIX=yes
3981 else
3982   MINIX=
3983 fi
3984
3985
3986 if test "$MINIX" = yes; then
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define _POSIX_SOURCE 1
3990 _ACEOF
3991
3992
3993 cat >>confdefs.h <<\_ACEOF
3994 #define _POSIX_1_SOURCE 2
3995 _ACEOF
3996
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define _MINIX 1
4000 _ACEOF
4001
4002 fi
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4015 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4016 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h.  */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h.  */
4025
4026 #         define __EXTENSIONS__ 1
4027           $ac_includes_default
4028 int
4029 main ()
4030 {
4031
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (ac_try="$ac_compile"
4038 case "(($ac_try" in
4039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040   *) ac_try_echo=$ac_try;;
4041 esac
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043   (eval "$ac_compile") 2>conftest.er1
4044   ac_status=$?
4045   grep -v '^ *+' conftest.er1 >conftest.err
4046   rm -f conftest.er1
4047   cat conftest.err >&5
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); } &&
4050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4051   { (case "(($ac_try" in
4052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053   *) ac_try_echo=$ac_try;;
4054 esac
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056   (eval "$ac_try") 2>&5
4057   ac_status=$?
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); }; } &&
4060          { ac_try='test -s conftest.$ac_objext'
4061   { (case "(($ac_try" in
4062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063   *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066   (eval "$ac_try") 2>&5
4067   ac_status=$?
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); }; }; then
4070   ac_cv_safe_to_define___extensions__=yes
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075         ac_cv_safe_to_define___extensions__=no
4076 fi
4077
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 fi
4080 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4081 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4082   test $ac_cv_safe_to_define___extensions__ = yes &&
4083     cat >>confdefs.h <<\_ACEOF
4084 #define __EXTENSIONS__ 1
4085 _ACEOF
4086
4087   cat >>confdefs.h <<\_ACEOF
4088 #define _POSIX_PTHREAD_SEMANTICS 1
4089 _ACEOF
4090
4091
4092 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4093 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4094 if test "${ac_cv_c_bigendian+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   # See if sys/param.h defines the BYTE_ORDER macro.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104 #include <sys/types.h>
4105 #include <sys/param.h>
4106
4107 int
4108 main ()
4109 {
4110 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4111         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4112  bogus endian macros
4113 #endif
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4121 case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126   (eval "$ac_compile") 2>conftest.er1
4127   ac_status=$?
4128   grep -v '^ *+' conftest.er1 >conftest.err
4129   rm -f conftest.er1
4130   cat conftest.err >&5
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); } &&
4133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4134   { (case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_try") 2>&5
4140   ac_status=$?
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); }; } &&
4143          { ac_try='test -s conftest.$ac_objext'
4144   { (case "(($ac_try" in
4145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146   *) ac_try_echo=$ac_try;;
4147 esac
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149   (eval "$ac_try") 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); }; }; then
4153   # It does; now see whether it defined to BIG_ENDIAN or not.
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160 #include <sys/types.h>
4161 #include <sys/param.h>
4162
4163 int
4164 main ()
4165 {
4166 #if BYTE_ORDER != BIG_ENDIAN
4167  not big endian
4168 #endif
4169
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (ac_try="$ac_compile"
4176 case "(($ac_try" in
4177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178   *) ac_try_echo=$ac_try;;
4179 esac
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181   (eval "$ac_compile") 2>conftest.er1
4182   ac_status=$?
4183   grep -v '^ *+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } &&
4188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4189   { (case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194   (eval "$ac_try") 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); }; } &&
4198          { ac_try='test -s conftest.$ac_objext'
4199   { (case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204   (eval "$ac_try") 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; }; then
4208   ac_cv_c_bigendian=yes
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213         ac_cv_c_bigendian=no
4214 fi
4215
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 else
4218   echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221         # It does not; compile a test program.
4222 if test "$cross_compiling" = yes; then
4223   # try to guess the endianness by grepping values into an object file
4224   ac_cv_c_bigendian=unknown
4225   cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4232 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4233 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4234 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4235 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4236 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4237 int
4238 main ()
4239 {
4240  _ascii (); _ebcdic ();
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4247 case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252   (eval "$ac_compile") 2>conftest.er1
4253   ac_status=$?
4254   grep -v '^ *+' conftest.er1 >conftest.err
4255   rm -f conftest.er1
4256   cat conftest.err >&5
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); } &&
4259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260   { (case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_try") 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest.$ac_objext'
4270   { (case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_try") 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; }; then
4279   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4280   ac_cv_c_bigendian=yes
4281 fi
4282 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4283   if test "$ac_cv_c_bigendian" = unknown; then
4284     ac_cv_c_bigendian=no
4285   else
4286     # finding both strings is unlikely to happen, but who knows?
4287     ac_cv_c_bigendian=unknown
4288   fi
4289 fi
4290 else
4291   echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294
4295 fi
4296
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 else
4299   cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305 $ac_includes_default
4306 int
4307 main ()
4308 {
4309
4310   /* Are we little or big endian?  From Harbison&Steele.  */
4311   union
4312   {
4313     long int l;
4314     char c[sizeof (long int)];
4315   } u;
4316   u.l = 1;
4317   return u.c[sizeof (long int) - 1] == 1;
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 rm -f conftest$ac_exeext
4324 if { (ac_try="$ac_link"
4325 case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330   (eval "$ac_link") 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4334   { (case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_try") 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; }; then
4343   ac_cv_c_bigendian=no
4344 else
4345   echo "$as_me: program exited with status $ac_status" >&5
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349 ( exit $ac_status )
4350 ac_cv_c_bigendian=yes
4351 fi
4352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4353 fi
4354
4355
4356 fi
4357
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4361 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4362 case $ac_cv_c_bigendian in
4363   yes)
4364
4365 cat >>confdefs.h <<\_ACEOF
4366 #define WORDS_BIGENDIAN 1
4367 _ACEOF
4368  ;;
4369   no)
4370      ;;
4371   *)
4372     { { echo "$as_me:$LINENO: error: unknown endianness
4373 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4374 echo "$as_me: error: unknown endianness
4375 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4376    { (exit 1); exit 1; }; } ;;
4377 esac
4378
4379 { echo "$as_me:$LINENO: checking for inline" >&5
4380 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4381 if test "${ac_cv_c_inline+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   ac_cv_c_inline=no
4385 for ac_kw in inline __inline__ __inline; do
4386   cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392 #ifndef __cplusplus
4393 typedef int foo_t;
4394 static $ac_kw foo_t static_foo () {return 0; }
4395 $ac_kw foo_t foo () {return 0; }
4396 #endif
4397
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_compile") 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } &&
4413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414   { (case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_try") 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; } &&
4423          { ac_try='test -s conftest.$ac_objext'
4424   { (case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_try") 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   ac_cv_c_inline=$ac_kw
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438
4439 fi
4440
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442   test "$ac_cv_c_inline" != no && break
4443 done
4444
4445 fi
4446 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4447 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4448
4449
4450 case $ac_cv_c_inline in
4451   inline | yes) ;;
4452   *)
4453     case $ac_cv_c_inline in
4454       no) ac_val=;;
4455       *) ac_val=$ac_cv_c_inline;;
4456     esac
4457     cat >>confdefs.h <<_ACEOF
4458 #ifndef __cplusplus
4459 #define inline $ac_val
4460 #endif
4461 _ACEOF
4462     ;;
4463 esac
4464
4465
4466 saved_CFLAGS="$CFLAGS";
4467 c99_init=no
4468 if test x"$c99_init" = x"no"; then
4469     { echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
4470 echo $ECHO_N "checking for C99 designated initializers... $ECHO_C" >&6; }
4471     CFLAGS="$saved_CFLAGS";
4472     cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478 #include <stdio.h>
4479 int
4480 main ()
4481 {
4482  struct foo {int x;char y;};
4483        struct foo bar = { .y = 'X', .x = 1 };
4484
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext
4490 if { (ac_try="$ac_compile"
4491 case "(($ac_try" in
4492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493   *) ac_try_echo=$ac_try;;
4494 esac
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496   (eval "$ac_compile") 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } &&
4503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4504   { (case "(($ac_try" in
4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506   *) ac_try_echo=$ac_try;;
4507 esac
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509   (eval "$ac_try") 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }; } &&
4513          { ac_try='test -s conftest.$ac_objext'
4514   { (case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_try") 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; }; then
4523   { echo "$as_me:$LINENO: result: yes" >&5
4524 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529         { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4531 fi
4532
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 fi
4535 if test x"$c99_init" = x"no"; then
4536     { echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
4537 echo $ECHO_N "checking for C99 designated initializers with -AC99... $ECHO_C" >&6; }
4538     CFLAGS="$saved_CFLAGS -AC99";
4539     cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545 #include <stdio.h>
4546 int
4547 main ()
4548 {
4549  struct foo {int x;char y;};
4550        struct foo bar = { .y = 'X', .x = 1 };
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (ac_try="$ac_compile"
4558 case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_compile") 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } &&
4570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4571   { (case "(($ac_try" in
4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573   *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576   (eval "$ac_try") 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; } &&
4580          { ac_try='test -s conftest.$ac_objext'
4581   { (case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586   (eval "$ac_try") 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   { echo "$as_me:$LINENO: result: yes" >&5
4591 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596         { echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6; }
4598 fi
4599
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 fi
4602 if test x"$c99_init" = x"no"; then
4603     { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
4604 echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=extc99... $ECHO_C" >&6; }
4605     CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
4606     cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612 #include <stdio.h>
4613 int
4614 main ()
4615 {
4616  struct foo {int x;char y;};
4617        struct foo bar = { .y = 'X', .x = 1 };
4618
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 rm -f conftest.$ac_objext
4624 if { (ac_try="$ac_compile"
4625 case "(($ac_try" in
4626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627   *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630   (eval "$ac_compile") 2>conftest.er1
4631   ac_status=$?
4632   grep -v '^ *+' conftest.er1 >conftest.err
4633   rm -f conftest.er1
4634   cat conftest.err >&5
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); } &&
4637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4638   { (case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_try") 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }; } &&
4647          { ac_try='test -s conftest.$ac_objext'
4648   { (case "(($ac_try" in
4649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650   *) ac_try_echo=$ac_try;;
4651 esac
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653   (eval "$ac_try") 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   { echo "$as_me:$LINENO: result: yes" >&5
4658 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663         { echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6; }
4665 fi
4666
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 fi
4669 if test x"$c99_init" = x"no"; then
4670     { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
4671 echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=stdc99... $ECHO_C" >&6; }
4672     CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
4673     cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h.  */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h.  */
4679 #include <stdio.h>
4680 int
4681 main ()
4682 {
4683  struct foo {int x;char y;};
4684        struct foo bar = { .y = 'X', .x = 1 };
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (ac_try="$ac_compile"
4692 case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697   (eval "$ac_compile") 2>conftest.er1
4698   ac_status=$?
4699   grep -v '^ *+' conftest.er1 >conftest.err
4700   rm -f conftest.er1
4701   cat conftest.err >&5
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } &&
4704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4705   { (case "(($ac_try" in
4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707   *) ac_try_echo=$ac_try;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710   (eval "$ac_try") 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }; } &&
4714          { ac_try='test -s conftest.$ac_objext'
4715   { (case "(($ac_try" in
4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717   *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720   (eval "$ac_try") 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); }; }; then
4724   { echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730         { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4732 fi
4733
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 if test x"$c99_init" = x"no"; then
4737     { echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
4738 echo $ECHO_N "checking for C99 designated initializers with -c99... $ECHO_C" >&6; }
4739     CFLAGS="$saved_CFLAGS -c99"
4740     cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 #include <stdio.h>
4747 int
4748 main ()
4749 {
4750  struct foo {int x;char y;};
4751        struct foo bar = { .y = 'X', .x = 1 };
4752
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 rm -f conftest.$ac_objext
4758 if { (ac_try="$ac_compile"
4759 case "(($ac_try" in
4760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761   *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764   (eval "$ac_compile") 2>conftest.er1
4765   ac_status=$?
4766   grep -v '^ *+' conftest.er1 >conftest.err
4767   rm -f conftest.er1
4768   cat conftest.err >&5
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); } &&
4771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4772   { (case "(($ac_try" in
4773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774   *) ac_try_echo=$ac_try;;
4775 esac
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777   (eval "$ac_try") 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787   (eval "$ac_try") 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }; }; then
4791   { echo "$as_me:$LINENO: result: yes" >&5
4792 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4793 else
4794   echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4796
4797         { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4799 fi
4800
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803
4804 if test "`uname`" = "HP-UX"; then
4805   if test "$ac_cv_c_compiler_gnu" = no; then
4806         # special override for broken HP-UX compiler - I can't find a way to test
4807         # this properly (its a compiler bug)
4808         CFLAGS="$CFLAGS -AC99";
4809         c99_init=yes;
4810   fi
4811 fi
4812
4813 if test x"$c99_init" = x"yes"; then
4814     saved_CFLAGS=""
4815
4816 else
4817     CFLAGS="$saved_CFLAGS"
4818     saved_CFLAGS=""
4819     { echo "$as_me:$LINENO: WARNING: c99 structure initializer are not supported" >&5
4820 echo "$as_me: WARNING: c99 structure initializer are not supported" >&2;}
4821 fi
4822
4823
4824 # Find a good install program.  We prefer a C program (faster),
4825 # so one script is as good as another.  But avoid the broken or
4826 # incompatible versions:
4827 # SysV /etc/install, /usr/sbin/install
4828 # SunOS /usr/etc/install
4829 # IRIX /sbin/install
4830 # AIX /bin/install
4831 # AmigaOS /C/install, which installs bootblocks on floppy discs
4832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4835 # OS/2's system install, which has a completely different semantic
4836 # ./install, which can be erroneously created by make from ./install.sh.
4837 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4838 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4839 if test -z "$INSTALL"; then
4840 if test "${ac_cv_path_install+set}" = set; then
4841   echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848   # Account for people who put trailing slashes in PATH elements.
4849 case $as_dir/ in
4850   ./ | .// | /cC/* | \
4851   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4852   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4853   /usr/ucb/* ) ;;
4854   *)
4855     # OSF1 and SCO ODT 3.0 have their own names for install.
4856     # Don't use installbsd from OSF since it installs stuff as root
4857     # by default.
4858     for ac_prog in ginstall scoinst install; do
4859       for ac_exec_ext in '' $ac_executable_extensions; do
4860         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4861           if test $ac_prog = install &&
4862             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4863             # AIX install.  It has an incompatible calling convention.
4864             :
4865           elif test $ac_prog = install &&
4866             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4867             # program-specific install script used by HP pwplus--don't use.
4868             :
4869           else
4870             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4871             break 3
4872           fi
4873         fi
4874       done
4875     done
4876     ;;
4877 esac
4878 done
4879 IFS=$as_save_IFS
4880
4881
4882 fi
4883   if test "${ac_cv_path_install+set}" = set; then
4884     INSTALL=$ac_cv_path_install
4885   else
4886     # As a last resort, use the slow shell script.  Don't cache a
4887     # value for INSTALL within a source directory, because that will
4888     # break other packages using the cache if that directory is
4889     # removed, or if the value is a relative name.
4890     INSTALL=$ac_install_sh
4891   fi
4892 fi
4893 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4894 echo "${ECHO_T}$INSTALL" >&6; }
4895
4896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4897 # It thinks the first close brace ends the variable substitution.
4898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4899
4900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4901
4902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4903
4904
4905 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4906 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4907 if test "${ac_cv_search_strerror+set}" = set; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   ac_func_search_save_LIBS=$LIBS
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h.  */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h.  */
4917
4918 /* Override any GCC internal prototype to avoid an error.
4919    Use char because int might match the return type of a GCC
4920    builtin and then its argument prototype would still apply.  */
4921 #ifdef __cplusplus
4922 extern "C"
4923 #endif
4924 char strerror ();
4925 int
4926 main ()
4927 {
4928 return strerror ();
4929   ;
4930   return 0;
4931 }
4932 _ACEOF
4933 for ac_lib in '' cposix; do
4934   if test -z "$ac_lib"; then
4935     ac_res="none required"
4936   else
4937     ac_res=-l$ac_lib
4938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4939   fi
4940   rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (ac_try="$ac_link"
4942 case "(($ac_try" in
4943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944   *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947   (eval "$ac_link") 2>conftest.er1
4948   ac_status=$?
4949   grep -v '^ *+' conftest.er1 >conftest.err
4950   rm -f conftest.er1
4951   cat conftest.err >&5
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); } &&
4954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); }; } &&
4964          { ac_try='test -s conftest$ac_exeext'
4965   { (case "(($ac_try" in
4966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967   *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970   (eval "$ac_try") 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; }; then
4974   ac_cv_search_strerror=$ac_res
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979
4980 fi
4981
4982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4983       conftest$ac_exeext
4984   if test "${ac_cv_search_strerror+set}" = set; then
4985   break
4986 fi
4987 done
4988 if test "${ac_cv_search_strerror+set}" = set; then
4989   :
4990 else
4991   ac_cv_search_strerror=no
4992 fi
4993 rm conftest.$ac_ext
4994 LIBS=$ac_func_search_save_LIBS
4995 fi
4996 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4997 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4998 ac_res=$ac_cv_search_strerror
4999 if test "$ac_res" != no; then
5000   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5001
5002 fi
5003
5004
5005   cat >>confdefs.h <<\EOF
5006 #ifndef _XOPEN_SOURCE_EXTENDED
5007 # define _XOPEN_SOURCE_EXTENDED 1
5008 #endif
5009 EOF
5010
5011
5012
5013
5014   cat >>confdefs.h <<\EOF
5015 #ifndef _OSF_SOURCE
5016 # define _OSF_SOURCE 1
5017 #endif
5018 EOF
5019
5020
5021
5022
5023 # Check whether --enable-largefile was given.
5024 if test "${enable_largefile+set}" = set; then
5025   enableval=$enable_largefile;
5026 fi
5027
5028 if test "$enable_largefile" != no; then
5029
5030   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5031 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5032 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   ac_cv_sys_largefile_CC=no
5036      if test "$GCC" != yes; then
5037        ac_save_CC=$CC
5038        while :; do
5039          # IRIX 6.2 and later do not support large files by default,
5040          # so use the C compiler's -n32 option if that helps.
5041          cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h.  */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h.  */
5047 #include <sys/types.h>
5048  /* Check that off_t can represent 2**63 - 1 correctly.
5049     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5050     since some C++ compilers masquerading as C compilers
5051     incorrectly reject 9223372036854775807.  */
5052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5053   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5054                        && LARGE_OFF_T % 2147483647 == 1)
5055                       ? 1 : -1];
5056 int
5057 main ()
5058 {
5059
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064          rm -f conftest.$ac_objext
5065 if { (ac_try="$ac_compile"
5066 case "(($ac_try" in
5067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068   *) ac_try_echo=$ac_try;;
5069 esac
5070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5071   (eval "$ac_compile") 2>conftest.er1
5072   ac_status=$?
5073   grep -v '^ *+' conftest.er1 >conftest.err
5074   rm -f conftest.er1
5075   cat conftest.err >&5
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); } &&
5078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5079   { (case "(($ac_try" in
5080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081   *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084   (eval "$ac_try") 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; } &&
5088          { ac_try='test -s conftest.$ac_objext'
5089   { (case "(($ac_try" in
5090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091   *) ac_try_echo=$ac_try;;
5092 esac
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094   (eval "$ac_try") 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   break
5099 else
5100   echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103
5104 fi
5105
5106 rm -f core conftest.err conftest.$ac_objext
5107          CC="$CC -n32"
5108          rm -f conftest.$ac_objext
5109 if { (ac_try="$ac_compile"
5110 case "(($ac_try" in
5111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112   *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115   (eval "$ac_compile") 2>conftest.er1
5116   ac_status=$?
5117   grep -v '^ *+' conftest.er1 >conftest.err
5118   rm -f conftest.er1
5119   cat conftest.err >&5
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } &&
5122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5123   { (case "(($ac_try" in
5124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125   *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128   (eval "$ac_try") 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; } &&
5132          { ac_try='test -s conftest.$ac_objext'
5133   { (case "(($ac_try" in
5134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135   *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138   (eval "$ac_try") 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; }; then
5142   ac_cv_sys_largefile_CC=' -n32'; break
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147
5148 fi
5149
5150 rm -f core conftest.err conftest.$ac_objext
5151          break
5152        done
5153        CC=$ac_save_CC
5154        rm -f conftest.$ac_ext
5155     fi
5156 fi
5157 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5158 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5159   if test "$ac_cv_sys_largefile_CC" != no; then
5160     CC=$CC$ac_cv_sys_largefile_CC
5161   fi
5162
5163   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5164 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5165 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   while :; do
5169   ac_cv_sys_file_offset_bits=no
5170   cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176 #include <sys/types.h>
5177  /* Check that off_t can represent 2**63 - 1 correctly.
5178     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5179     since some C++ compilers masquerading as C compilers
5180     incorrectly reject 9223372036854775807.  */
5181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5182   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5183                        && LARGE_OFF_T % 2147483647 == 1)
5184                       ? 1 : -1];
5185 int
5186 main ()
5187 {
5188
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5195 case "(($ac_try" in
5196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197   *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200   (eval "$ac_compile") 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } &&
5207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5208   { (case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213   (eval "$ac_try") 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; } &&
5217          { ac_try='test -s conftest.$ac_objext'
5218   { (case "(($ac_try" in
5219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220   *) ac_try_echo=$ac_try;;
5221 esac
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223   (eval "$ac_try") 2>&5
5224   ac_status=$?
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); }; }; then
5227   break
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232
5233 fi
5234
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236   cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242 #define _FILE_OFFSET_BITS 64
5243 #include <sys/types.h>
5244  /* Check that off_t can represent 2**63 - 1 correctly.
5245     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246     since some C++ compilers masquerading as C compilers
5247     incorrectly reject 9223372036854775807.  */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250                        && LARGE_OFF_T % 2147483647 == 1)
5251                       ? 1 : -1];
5252 int
5253 main ()
5254 {
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5262 case "(($ac_try" in
5263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264   *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267   (eval "$ac_compile") 2>conftest.er1
5268   ac_status=$?
5269   grep -v '^ *+' conftest.er1 >conftest.err
5270   rm -f conftest.er1
5271   cat conftest.err >&5
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); } &&
5274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5275   { (case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280   (eval "$ac_try") 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); }; } &&
5284          { ac_try='test -s conftest.$ac_objext'
5285   { (case "(($ac_try" in
5286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287   *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290   (eval "$ac_try") 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; }; then
5294   ac_cv_sys_file_offset_bits=64; break
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299
5300 fi
5301
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303   break
5304 done
5305 fi
5306 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5307 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5308 if test "$ac_cv_sys_file_offset_bits" != no; then
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5312 _ACEOF
5313
5314 fi
5315 rm -f conftest*
5316   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5317 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5318 if test "${ac_cv_sys_large_files+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   while :; do
5322   ac_cv_sys_large_files=no
5323   cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 #include <sys/types.h>
5330  /* Check that off_t can represent 2**63 - 1 correctly.
5331     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5332     since some C++ compilers masquerading as C compilers
5333     incorrectly reject 9223372036854775807.  */
5334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5335   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5336                        && LARGE_OFF_T % 2147483647 == 1)
5337                       ? 1 : -1];
5338 int
5339 main ()
5340 {
5341
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_compile") 2>conftest.er1
5354   ac_status=$?
5355   grep -v '^ *+' conftest.er1 >conftest.err
5356   rm -f conftest.er1
5357   cat conftest.err >&5
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } &&
5360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5361   { (case "(($ac_try" in
5362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363   *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366   (eval "$ac_try") 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; } &&
5370          { ac_try='test -s conftest.$ac_objext'
5371   { (case "(($ac_try" in
5372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373   *) ac_try_echo=$ac_try;;
5374 esac
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376   (eval "$ac_try") 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   break
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385
5386 fi
5387
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389   cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395 #define _LARGE_FILES 1
5396 #include <sys/types.h>
5397  /* Check that off_t can represent 2**63 - 1 correctly.
5398     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5399     since some C++ compilers masquerading as C compilers
5400     incorrectly reject 9223372036854775807.  */
5401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5402   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5403                        && LARGE_OFF_T % 2147483647 == 1)
5404                       ? 1 : -1];
5405 int
5406 main ()
5407 {
5408
5409   ;
5410   return 0;
5411 }
5412 _ACEOF
5413 rm -f conftest.$ac_objext
5414 if { (ac_try="$ac_compile"
5415 case "(($ac_try" in
5416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417   *) ac_try_echo=$ac_try;;
5418 esac
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420   (eval "$ac_compile") 2>conftest.er1
5421   ac_status=$?
5422   grep -v '^ *+' conftest.er1 >conftest.err
5423   rm -f conftest.er1
5424   cat conftest.err >&5
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); } &&
5427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5428   { (case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_try") 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; } &&
5437          { ac_try='test -s conftest.$ac_objext'
5438   { (case "(($ac_try" in
5439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440   *) ac_try_echo=$ac_try;;
5441 esac
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443   (eval "$ac_try") 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; }; then
5447   ac_cv_sys_large_files=1; break
5448 else
5449   echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5451
5452
5453 fi
5454
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456   break
5457 done
5458 fi
5459 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5460 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5461 if test "$ac_cv_sys_large_files" != no; then
5462
5463 cat >>confdefs.h <<_ACEOF
5464 #define _LARGE_FILES $ac_cv_sys_large_files
5465 _ACEOF
5466
5467 fi
5468 rm -f conftest*
5469 fi
5470
5471
5472 case "$host_os" in
5473         *irix6*) cat >> confdefs.h <<\EOF
5474 #include <standards.h>
5475 EOF
5476
5477                 ;;
5478         *hpux*)
5479                 # mmap on HPUX is completely broken...
5480
5481 cat >>confdefs.h <<\_ACEOF
5482 #define MMAP_BLACKLIST 1
5483 _ACEOF
5484
5485                 if test "`uname -r`" = "B.11.11"; then
5486                         { echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.11 header bug workaround" >&5
5487 echo "$as_me: WARNING: Enabling HPUX 11.11 header bug workaround" >&2;}
5488                         CFLAGS="$CFLAGS -D_LARGEFILE64_SUPPORT -D__LP64__ -DO_LARGEFILE=04000"
5489                 fi
5490                 if test "`uname -r`" = "B.11.23"; then
5491                         { echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&5
5492 echo "$as_me: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&2;}
5493                         CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
5494                 fi
5495                 ;;
5496         *aix*)
5497
5498 cat >>confdefs.h <<\_ACEOF
5499 #define BROKEN_STRNDUP 1
5500 _ACEOF
5501
5502
5503 cat >>confdefs.h <<\_ACEOF
5504 #define BROKEN_STRNLEN 1
5505 _ACEOF
5506
5507                 if test "${GCC}" != "yes"; then
5508                         ## for funky AIX compiler using strncpy()
5509                         CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
5510                 fi
5511                 ;;
5512         #
5513         # VOS may need to have POSIX support and System V compatibility enabled.
5514         #
5515         *vos*)
5516                 case "$CFLAGS" in
5517                         *-D_POSIX_C_SOURCE*);;
5518                         *)
5519                                 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
5520
5521 cat >>confdefs.h <<\_ACEOF
5522 #define _POSIX_C_SOURCE 200112L
5523 _ACEOF
5524
5525                                 ;;
5526                 esac
5527                 case "$CFLAGS" in
5528                         *-D_SYSV*|*-D_SVID_SOURCE*);;
5529                         *)
5530                                 CFLAGS="$CFLAGS -D_SYSV"
5531
5532 cat >>confdefs.h <<\_ACEOF
5533 #define _SYSV 1
5534 _ACEOF
5535
5536                                 ;;
5537                 esac
5538                 ;;
5539 esac
5540
5541
5542
5543
5544 for ac_header in standards.h
5545 do
5546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 fi
5553 ac_res=`eval echo '${'$as_ac_Header'}'`
5554                { echo "$as_me:$LINENO: result: $ac_res" >&5
5555 echo "${ECHO_T}$ac_res" >&6; }
5556 else
5557   # Is the header compilable?
5558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h.  */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h.  */
5566 $ac_includes_default
5567 #include <$ac_header>
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573   *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576   (eval "$ac_compile") 2>conftest.er1
5577   ac_status=$?
5578   grep -v '^ *+' conftest.er1 >conftest.err
5579   rm -f conftest.er1
5580   cat conftest.err >&5
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); } &&
5583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5584   { (case "(($ac_try" in
5585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586   *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589   (eval "$ac_try") 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); }; } &&
5593          { ac_try='test -s conftest.$ac_objext'
5594   { (case "(($ac_try" in
5595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596   *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599   (eval "$ac_try") 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; }; then
5603   ac_header_compiler=yes
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608         ac_header_compiler=no
5609 fi
5610
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6; }
5614
5615 # Is the header present?
5616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h.  */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h.  */
5624 #include <$ac_header>
5625 _ACEOF
5626 if { (ac_try="$ac_cpp conftest.$ac_ext"
5627 case "(($ac_try" in
5628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629   *) ac_try_echo=$ac_try;;
5630 esac
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5633   ac_status=$?
5634   grep -v '^ *+' conftest.er1 >conftest.err
5635   rm -f conftest.er1
5636   cat conftest.err >&5
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } >/dev/null; then
5639   if test -s conftest.err; then
5640     ac_cpp_err=$ac_c_preproc_warn_flag
5641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5642   else
5643     ac_cpp_err=
5644   fi
5645 else
5646   ac_cpp_err=yes
5647 fi
5648 if test -z "$ac_cpp_err"; then
5649   ac_header_preproc=yes
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654   ac_header_preproc=no
5655 fi
5656
5657 rm -f conftest.err conftest.$ac_ext
5658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5659 echo "${ECHO_T}$ac_header_preproc" >&6; }
5660
5661 # So?  What about this header?
5662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5663   yes:no: )
5664     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5668     ac_header_preproc=yes
5669     ;;
5670   no:yes:* )
5671     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5673     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5674 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5675     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5677     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5678 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5681     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5683
5684     ;;
5685 esac
5686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   eval "$as_ac_Header=\$ac_header_preproc"
5692 fi
5693 ac_res=`eval echo '${'$as_ac_Header'}'`
5694                { echo "$as_me:$LINENO: result: $ac_res" >&5
5695 echo "${ECHO_T}$ac_res" >&6; }
5696
5697 fi
5698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5699   cat >>confdefs.h <<_ACEOF
5700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5701 _ACEOF
5702
5703 fi
5704
5705 done
5706
5707
5708 # Solaris needs HAVE_LONG_LONG defined
5709 { echo "$as_me:$LINENO: checking for long long" >&5
5710 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5711 if test "${ac_cv_type_long_long+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720 $ac_includes_default
5721 typedef long long ac__type_new_;
5722 int
5723 main ()
5724 {
5725 if ((ac__type_new_ *) 0)
5726   return 0;
5727 if (sizeof (ac__type_new_))
5728   return 0;
5729   ;
5730   return 0;
5731 }
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (ac_try="$ac_compile"
5735 case "(($ac_try" in
5736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737   *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740   (eval "$ac_compile") 2>conftest.er1
5741   ac_status=$?
5742   grep -v '^ *+' conftest.er1 >conftest.err
5743   rm -f conftest.er1
5744   cat conftest.err >&5
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } &&
5747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5748   { (case "(($ac_try" in
5749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750   *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753   (eval "$ac_try") 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; } &&
5757          { ac_try='test -s conftest.$ac_objext'
5758   { (case "(($ac_try" in
5759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760   *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763   (eval "$ac_try") 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; }; then
5767   ac_cv_type_long_long=yes
5768 else
5769   echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772         ac_cv_type_long_long=no
5773 fi
5774
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 fi
5777 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5778 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5779 if test $ac_cv_type_long_long = yes; then
5780
5781 cat >>confdefs.h <<_ACEOF
5782 #define HAVE_LONG_LONG 1
5783 _ACEOF
5784
5785
5786 fi
5787
5788
5789 { echo "$as_me:$LINENO: checking for uint_t" >&5
5790 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
5791 if test "${ac_cv_type_uint_t+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h.  */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h.  */
5800 $ac_includes_default
5801 typedef uint_t ac__type_new_;
5802 int
5803 main ()
5804 {
5805 if ((ac__type_new_ *) 0)
5806   return 0;
5807 if (sizeof (ac__type_new_))
5808   return 0;
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5815 case "(($ac_try" in
5816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817   *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820   (eval "$ac_compile") 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828   { (case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_try") 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; } &&
5837          { ac_try='test -s conftest.$ac_objext'
5838   { (case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_try") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   ac_cv_type_uint_t=yes
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852         ac_cv_type_uint_t=no
5853 fi
5854
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
5858 echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
5859 if test $ac_cv_type_uint_t = yes; then
5860   :
5861 else
5862
5863 cat >>confdefs.h <<_ACEOF
5864 #define uint_t unsigned int
5865 _ACEOF
5866
5867 fi
5868
5869 { echo "$as_me:$LINENO: checking for int8_t" >&5
5870 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5871 if test "${ac_cv_type_int8_t+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h.  */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h.  */
5880 $ac_includes_default
5881 typedef int8_t ac__type_new_;
5882 int
5883 main ()
5884 {
5885 if ((ac__type_new_ *) 0)
5886   return 0;
5887 if (sizeof (ac__type_new_))
5888   return 0;
5889   ;
5890   return 0;
5891 }
5892 _ACEOF
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5895 case "(($ac_try" in
5896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897   *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900   (eval "$ac_compile") 2>conftest.er1
5901   ac_status=$?
5902   grep -v '^ *+' conftest.er1 >conftest.err
5903   rm -f conftest.er1
5904   cat conftest.err >&5
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); } &&
5907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908   { (case "(($ac_try" in
5909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910   *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913   (eval "$ac_try") 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; } &&
5917          { ac_try='test -s conftest.$ac_objext'
5918   { (case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_try") 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   ac_cv_type_int8_t=yes
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932         ac_cv_type_int8_t=no
5933 fi
5934
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 fi
5937 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
5938 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
5939 if test $ac_cv_type_int8_t = yes; then
5940   :
5941 else
5942
5943 cat >>confdefs.h <<_ACEOF
5944 #define int8_t char
5945 _ACEOF
5946
5947 fi
5948
5949 { echo "$as_me:$LINENO: checking for uint8_t" >&5
5950 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5951 if test "${ac_cv_type_uint8_t+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960 $ac_includes_default
5961 typedef uint8_t ac__type_new_;
5962 int
5963 main ()
5964 {
5965 if ((ac__type_new_ *) 0)
5966   return 0;
5967 if (sizeof (ac__type_new_))
5968   return 0;
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (ac_try="$ac_compile"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980   (eval "$ac_compile") 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5988   { (case "(($ac_try" in
5989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990   *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993   (eval "$ac_try") 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; } &&
5997          { ac_try='test -s conftest.$ac_objext'
5998   { (case "(($ac_try" in
5999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000   *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003   (eval "$ac_try") 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   ac_cv_type_uint8_t=yes
6008 else
6009   echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012         ac_cv_type_uint8_t=no
6013 fi
6014
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6018 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
6019 if test $ac_cv_type_uint8_t = yes; then
6020   :
6021 else
6022
6023 cat >>confdefs.h <<_ACEOF
6024 #define uint8_t unsigned char
6025 _ACEOF
6026
6027 fi
6028
6029 { echo "$as_me:$LINENO: checking for int16_t" >&5
6030 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
6031 if test "${ac_cv_type_int16_t+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040 $ac_includes_default
6041 typedef int16_t ac__type_new_;
6042 int
6043 main ()
6044 {
6045 if ((ac__type_new_ *) 0)
6046   return 0;
6047 if (sizeof (ac__type_new_))
6048   return 0;
6049   ;
6050   return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (ac_try="$ac_compile"
6055 case "(($ac_try" in
6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057   *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060   (eval "$ac_compile") 2>conftest.er1
6061   ac_status=$?
6062   grep -v '^ *+' conftest.er1 >conftest.err
6063   rm -f conftest.er1
6064   cat conftest.err >&5
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } &&
6067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6068   { (case "(($ac_try" in
6069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070   *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073   (eval "$ac_try") 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; } &&
6077          { ac_try='test -s conftest.$ac_objext'
6078   { (case "(($ac_try" in
6079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080   *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083   (eval "$ac_try") 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_cv_type_int16_t=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092         ac_cv_type_int16_t=no
6093 fi
6094
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 fi
6097 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6098 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
6099 if test $ac_cv_type_int16_t = yes; then
6100   :
6101 else
6102
6103 cat >>confdefs.h <<_ACEOF
6104 #define int16_t short
6105 _ACEOF
6106
6107 fi
6108
6109 { echo "$as_me:$LINENO: checking for uint16_t" >&5
6110 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6111 if test "${ac_cv_type_uint16_t+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120 $ac_includes_default
6121 typedef uint16_t ac__type_new_;
6122 int
6123 main ()
6124 {
6125 if ((ac__type_new_ *) 0)
6126   return 0;
6127 if (sizeof (ac__type_new_))
6128   return 0;
6129   ;
6130   return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140   (eval "$ac_compile") 2>conftest.er1
6141   ac_status=$?
6142   grep -v '^ *+' conftest.er1 >conftest.err
6143   rm -f conftest.er1
6144   cat conftest.err >&5
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } &&
6147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6148   { (case "(($ac_try" in
6149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150   *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153   (eval "$ac_try") 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; } &&
6157          { ac_try='test -s conftest.$ac_objext'
6158   { (case "(($ac_try" in
6159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160   *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163   (eval "$ac_try") 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }; }; then
6167   ac_cv_type_uint16_t=yes
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172         ac_cv_type_uint16_t=no
6173 fi
6174
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 fi
6177 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6178 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6179 if test $ac_cv_type_uint16_t = yes; then
6180   :
6181 else
6182
6183 cat >>confdefs.h <<_ACEOF
6184 #define uint16_t unsigned short
6185 _ACEOF
6186
6187 fi
6188
6189 { echo "$as_me:$LINENO: checking for int32_t" >&5
6190 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
6191 if test "${ac_cv_type_int32_t+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h.  */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h.  */
6200 $ac_includes_default
6201 typedef int32_t ac__type_new_;
6202 int
6203 main ()
6204 {
6205 if ((ac__type_new_ *) 0)
6206   return 0;
6207 if (sizeof (ac__type_new_))
6208   return 0;
6209   ;
6210   return 0;
6211 }
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } &&
6227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6228   { (case "(($ac_try" in
6229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230   *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233   (eval "$ac_try") 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; } &&
6237          { ac_try='test -s conftest.$ac_objext'
6238   { (case "(($ac_try" in
6239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240   *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243   (eval "$ac_try") 2>&5
6244   ac_status=$?
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); }; }; then
6247   ac_cv_type_int32_t=yes
6248 else
6249   echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6251
6252         ac_cv_type_int32_t=no
6253 fi
6254
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 fi
6257 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6258 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
6259 if test $ac_cv_type_int32_t = yes; then
6260   :
6261 else
6262
6263 cat >>confdefs.h <<_ACEOF
6264 #define int32_t long
6265 _ACEOF
6266
6267 fi
6268
6269 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6270 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6271 if test "${ac_cv_type_uint32_t+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h.  */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h.  */
6280 $ac_includes_default
6281 typedef uint32_t ac__type_new_;
6282 int
6283 main ()
6284 {
6285 if ((ac__type_new_ *) 0)
6286   return 0;
6287 if (sizeof (ac__type_new_))
6288   return 0;
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6295 case "(($ac_try" in
6296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297   *) ac_try_echo=$ac_try;;
6298 esac
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300   (eval "$ac_compile") 2>conftest.er1
6301   ac_status=$?
6302   grep -v '^ *+' conftest.er1 >conftest.err
6303   rm -f conftest.er1
6304   cat conftest.err >&5
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } &&
6307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6308   { (case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313   (eval "$ac_try") 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; } &&
6317          { ac_try='test -s conftest.$ac_objext'
6318   { (case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_try") 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; }; then
6327   ac_cv_type_uint32_t=yes
6328 else
6329   echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332         ac_cv_type_uint32_t=no
6333 fi
6334
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6338 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6339 if test $ac_cv_type_uint32_t = yes; then
6340   :
6341 else
6342
6343 cat >>confdefs.h <<_ACEOF
6344 #define uint32_t unsigned long
6345 _ACEOF
6346
6347 fi
6348
6349 { echo "$as_me:$LINENO: checking for int64_t" >&5
6350 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
6351 if test "${ac_cv_type_int64_t+set}" = set; then
6352   echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354   cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h.  */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h.  */
6360 $ac_includes_default
6361 typedef int64_t ac__type_new_;
6362 int
6363 main ()
6364 {
6365 if ((ac__type_new_ *) 0)
6366   return 0;
6367 if (sizeof (ac__type_new_))
6368   return 0;
6369   ;
6370   return 0;
6371 }
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (ac_try="$ac_compile"
6375 case "(($ac_try" in
6376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377   *) ac_try_echo=$ac_try;;
6378 esac
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380   (eval "$ac_compile") 2>conftest.er1
6381   ac_status=$?
6382   grep -v '^ *+' conftest.er1 >conftest.err
6383   rm -f conftest.er1
6384   cat conftest.err >&5
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); } &&
6387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6388   { (case "(($ac_try" in
6389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390   *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393   (eval "$ac_try") 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); }; } &&
6397          { ac_try='test -s conftest.$ac_objext'
6398   { (case "(($ac_try" in
6399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400   *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403   (eval "$ac_try") 2>&5
6404   ac_status=$?
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); }; }; then
6407   ac_cv_type_int64_t=yes
6408 else
6409   echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412         ac_cv_type_int64_t=no
6413 fi
6414
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6418 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
6419 if test $ac_cv_type_int64_t = yes; then
6420   :
6421 else
6422
6423 cat >>confdefs.h <<_ACEOF
6424 #define int64_t long long
6425 _ACEOF
6426
6427 fi
6428
6429 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6430 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6431 if test "${ac_cv_type_uint64_t+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h.  */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h.  */
6440 $ac_includes_default
6441 typedef uint64_t ac__type_new_;
6442 int
6443 main ()
6444 {
6445 if ((ac__type_new_ *) 0)
6446   return 0;
6447 if (sizeof (ac__type_new_))
6448   return 0;
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6455 case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_compile") 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6468   { (case "(($ac_try" in
6469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470   *) ac_try_echo=$ac_try;;
6471 esac
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473   (eval "$ac_try") 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; } &&
6477          { ac_try='test -s conftest.$ac_objext'
6478   { (case "(($ac_try" in
6479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480   *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483   (eval "$ac_try") 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; }; then
6487   ac_cv_type_uint64_t=yes
6488 else
6489   echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492         ac_cv_type_uint64_t=no
6493 fi
6494
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 fi
6497 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6498 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6499 if test $ac_cv_type_uint64_t = yes; then
6500   :
6501 else
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define uint64_t unsigned long long
6505 _ACEOF
6506
6507 fi
6508
6509
6510 { echo "$as_me:$LINENO: checking for size_t" >&5
6511 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6512 if test "${ac_cv_type_size_t+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521 $ac_includes_default
6522 typedef size_t ac__type_new_;
6523 int
6524 main ()
6525 {
6526 if ((ac__type_new_ *) 0)
6527   return 0;
6528 if (sizeof (ac__type_new_))
6529   return 0;
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6536 case "(($ac_try" in
6537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538   *) ac_try_echo=$ac_try;;
6539 esac
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541   (eval "$ac_compile") 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } &&
6548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6549   { (case "(($ac_try" in
6550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551   *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554   (eval "$ac_try") 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; } &&
6558          { ac_try='test -s conftest.$ac_objext'
6559   { (case "(($ac_try" in
6560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561   *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564   (eval "$ac_try") 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; }; then
6568   ac_cv_type_size_t=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573         ac_cv_type_size_t=no
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6579 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6580 if test $ac_cv_type_size_t = yes; then
6581   :
6582 else
6583
6584 cat >>confdefs.h <<_ACEOF
6585 #define size_t unsigned int
6586 _ACEOF
6587
6588 fi
6589
6590 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6591 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6592 if test "${ac_cv_type_ssize_t+set}" = set; then
6593   echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595   cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h.  */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h.  */
6601 $ac_includes_default
6602 typedef ssize_t ac__type_new_;
6603 int
6604 main ()
6605 {
6606 if ((ac__type_new_ *) 0)
6607   return 0;
6608 if (sizeof (ac__type_new_))
6609   return 0;
6610   ;
6611   return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (ac_try="$ac_compile"
6616 case "(($ac_try" in
6617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618   *) ac_try_echo=$ac_try;;
6619 esac
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621   (eval "$ac_compile") 2>conftest.er1
6622   ac_status=$?
6623   grep -v '^ *+' conftest.er1 >conftest.err
6624   rm -f conftest.er1
6625   cat conftest.err >&5
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); } &&
6628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6629   { (case "(($ac_try" in
6630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631   *) ac_try_echo=$ac_try;;
6632 esac
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634   (eval "$ac_try") 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; } &&
6638          { ac_try='test -s conftest.$ac_objext'
6639   { (case "(($ac_try" in
6640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641   *) ac_try_echo=$ac_try;;
6642 esac
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644   (eval "$ac_try") 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; }; then
6648   ac_cv_type_ssize_t=yes
6649 else
6650   echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653         ac_cv_type_ssize_t=no
6654 fi
6655
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 fi
6658 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6659 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6660 if test $ac_cv_type_ssize_t = yes; then
6661   :
6662 else
6663
6664 cat >>confdefs.h <<_ACEOF
6665 #define ssize_t int
6666 _ACEOF
6667
6668 fi
6669
6670
6671 { echo "$as_me:$LINENO: checking for int" >&5
6672 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6673 if test "${ac_cv_type_int+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
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 $ac_includes_default
6683 typedef int ac__type_new_;
6684 int
6685 main ()
6686 {
6687 if ((ac__type_new_ *) 0)
6688   return 0;
6689 if (sizeof (ac__type_new_))
6690   return 0;
6691   ;
6692   return 0;
6693 }
6694 _ACEOF
6695 rm -f conftest.$ac_objext
6696 if { (ac_try="$ac_compile"
6697 case "(($ac_try" in
6698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699   *) ac_try_echo=$ac_try;;
6700 esac
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702   (eval "$ac_compile") 2>conftest.er1
6703   ac_status=$?
6704   grep -v '^ *+' conftest.er1 >conftest.err
6705   rm -f conftest.er1
6706   cat conftest.err >&5
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); } &&
6709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6710   { (case "(($ac_try" in
6711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712   *) ac_try_echo=$ac_try;;
6713 esac
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715   (eval "$ac_try") 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; } &&
6719          { ac_try='test -s conftest.$ac_objext'
6720   { (case "(($ac_try" in
6721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722   *) ac_try_echo=$ac_try;;
6723 esac
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725   (eval "$ac_try") 2>&5
6726   ac_status=$?
6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); }; }; then
6729   ac_cv_type_int=yes
6730 else
6731   echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734         ac_cv_type_int=no
6735 fi
6736
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 fi
6739 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6740 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6741
6742 # The cast to long int works around a bug in the HP C Compiler
6743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6745 # This bug is HP SR number 8606223364.
6746 { echo "$as_me:$LINENO: checking size of int" >&5
6747 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6748 if test "${ac_cv_sizeof_int+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751   if test "$cross_compiling" = yes; then
6752   # Depending upon the size, compute the lo and hi bounds.
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h.  */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h.  */
6759 $ac_includes_default
6760                 typedef int ac__type_sizeof_;
6761
6762 int
6763 main ()
6764 {
6765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6766 test_array [0] = 0
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (ac_try="$ac_compile"
6774 case "(($ac_try" in
6775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776   *) ac_try_echo=$ac_try;;
6777 esac
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779   (eval "$ac_compile") 2>conftest.er1
6780   ac_status=$?
6781   grep -v '^ *+' conftest.er1 >conftest.err
6782   rm -f conftest.er1
6783   cat conftest.err >&5
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); } &&
6786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6787   { (case "(($ac_try" in
6788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789   *) ac_try_echo=$ac_try;;
6790 esac
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792   (eval "$ac_try") 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; } &&
6796          { ac_try='test -s conftest.$ac_objext'
6797   { (case "(($ac_try" in
6798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799   *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802   (eval "$ac_try") 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); }; }; then
6806   ac_lo=0 ac_mid=0
6807   while :; do
6808     cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h.  */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h.  */
6814 $ac_includes_default
6815                 typedef int ac__type_sizeof_;
6816
6817 int
6818 main ()
6819 {
6820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6821 test_array [0] = 0
6822
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831   *) ac_try_echo=$ac_try;;
6832 esac
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834   (eval "$ac_compile") 2>conftest.er1
6835   ac_status=$?
6836   grep -v '^ *+' conftest.er1 >conftest.err
6837   rm -f conftest.er1
6838   cat conftest.err >&5
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); } &&
6841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6842   { (case "(($ac_try" in
6843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844   *) ac_try_echo=$ac_try;;
6845 esac
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847   (eval "$ac_try") 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; } &&
6851          { ac_try='test -s conftest.$ac_objext'
6852   { (case "(($ac_try" in
6853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854   *) ac_try_echo=$ac_try;;
6855 esac
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857   (eval "$ac_try") 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; }; then
6861   ac_hi=$ac_mid; break
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866         ac_lo=`expr $ac_mid + 1`
6867                         if test $ac_lo -le $ac_mid; then
6868                           ac_lo= ac_hi=
6869                           break
6870                         fi
6871                         ac_mid=`expr 2 '*' $ac_mid + 1`
6872 fi
6873
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875   done
6876 else
6877   echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880         cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 $ac_includes_default
6887                 typedef int ac__type_sizeof_;
6888
6889 int
6890 main ()
6891 {
6892 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6893 test_array [0] = 0
6894
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6901 case "(($ac_try" in
6902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903   *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906   (eval "$ac_compile") 2>conftest.er1
6907   ac_status=$?
6908   grep -v '^ *+' conftest.er1 >conftest.err
6909   rm -f conftest.er1
6910   cat conftest.err >&5
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } &&
6913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6914   { (case "(($ac_try" in
6915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916   *) ac_try_echo=$ac_try;;
6917 esac
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919   (eval "$ac_try") 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; } &&
6923          { ac_try='test -s conftest.$ac_objext'
6924   { (case "(($ac_try" in
6925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926   *) ac_try_echo=$ac_try;;
6927 esac
6928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6929   (eval "$ac_try") 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; }; then
6933   ac_hi=-1 ac_mid=-1
6934   while :; do
6935     cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941 $ac_includes_default
6942                 typedef int ac__type_sizeof_;
6943
6944 int
6945 main ()
6946 {
6947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6948 test_array [0] = 0
6949
6950   ;
6951   return 0;
6952 }
6953 _ACEOF
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6956 case "(($ac_try" in
6957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958   *) ac_try_echo=$ac_try;;
6959 esac
6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961   (eval "$ac_compile") 2>conftest.er1
6962   ac_status=$?
6963   grep -v '^ *+' conftest.er1 >conftest.err
6964   rm -f conftest.er1
6965   cat conftest.err >&5
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } &&
6968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6969   { (case "(($ac_try" in
6970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971   *) ac_try_echo=$ac_try;;
6972 esac
6973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974   (eval "$ac_try") 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; } &&
6978          { ac_try='test -s conftest.$ac_objext'
6979   { (case "(($ac_try" in
6980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981   *) ac_try_echo=$ac_try;;
6982 esac
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984   (eval "$ac_try") 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); }; }; then
6988   ac_lo=$ac_mid; break
6989 else
6990   echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6992
6993         ac_hi=`expr '(' $ac_mid ')' - 1`
6994                         if test $ac_mid -le $ac_hi; then
6995                           ac_lo= ac_hi=
6996                           break
6997                         fi
6998                         ac_mid=`expr 2 '*' $ac_mid`
6999 fi
7000
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002   done
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007         ac_lo= ac_hi=
7008 fi
7009
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 fi
7012
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 # Binary search between lo and hi bounds.
7015 while test "x$ac_lo" != "x$ac_hi"; do
7016   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7017   cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h.  */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h.  */
7023 $ac_includes_default
7024                 typedef int ac__type_sizeof_;
7025
7026 int
7027 main ()
7028 {
7029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7030 test_array [0] = 0
7031
7032   ;
7033   return 0;
7034 }
7035 _ACEOF
7036 rm -f conftest.$ac_objext
7037 if { (ac_try="$ac_compile"
7038 case "(($ac_try" in
7039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040   *) ac_try_echo=$ac_try;;
7041 esac
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043   (eval "$ac_compile") 2>conftest.er1
7044   ac_status=$?
7045   grep -v '^ *+' conftest.er1 >conftest.err
7046   rm -f conftest.er1
7047   cat conftest.err >&5
7048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049   (exit $ac_status); } &&
7050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7051   { (case "(($ac_try" in
7052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053   *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056   (eval "$ac_try") 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; } &&
7060          { ac_try='test -s conftest.$ac_objext'
7061   { (case "(($ac_try" in
7062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063   *) ac_try_echo=$ac_try;;
7064 esac
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066   (eval "$ac_try") 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); }; }; then
7070   ac_hi=$ac_mid
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075         ac_lo=`expr '(' $ac_mid ')' + 1`
7076 fi
7077
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 done
7080 case $ac_lo in
7081 ?*) ac_cv_sizeof_int=$ac_lo;;
7082 '') if test "$ac_cv_type_int" = yes; then
7083                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7084 See \`config.log' for more details." >&5
7085 echo "$as_me: error: cannot compute sizeof (int)
7086 See \`config.log' for more details." >&2;}
7087    { (exit 77); exit 77; }; }
7088                else
7089                  ac_cv_sizeof_int=0
7090                fi ;;
7091 esac
7092 else
7093   cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h.  */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h.  */
7099 $ac_includes_default
7100                 typedef int ac__type_sizeof_;
7101
7102 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7103 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7104 #include <stdio.h>
7105 #include <stdlib.h>
7106 int
7107 main ()
7108 {
7109
7110   FILE *f = fopen ("conftest.val", "w");
7111   if (! f)
7112     return 1;
7113   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7114     {
7115       long int i = longval ();
7116       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7117         return 1;
7118       fprintf (f, "%ld\n", i);
7119     }
7120   else
7121     {
7122       unsigned long int i = ulongval ();
7123       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7124         return 1;
7125       fprintf (f, "%lu\n", i);
7126     }
7127   return ferror (f) || fclose (f) != 0;
7128
7129   ;
7130   return 0;
7131 }
7132 _ACEOF
7133 rm -f conftest$ac_exeext
7134 if { (ac_try="$ac_link"
7135 case "(($ac_try" in
7136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137   *) ac_try_echo=$ac_try;;
7138 esac
7139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7140   (eval "$ac_link") 2>&5
7141   ac_status=$?
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7144   { (case "(($ac_try" in
7145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146   *) ac_try_echo=$ac_try;;
7147 esac
7148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149   (eval "$ac_try") 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; }; then
7153   ac_cv_sizeof_int=`cat conftest.val`
7154 else
7155   echo "$as_me: program exited with status $ac_status" >&5
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 ( exit $ac_status )
7160 if test "$ac_cv_type_int" = yes; then
7161                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7162 See \`config.log' for more details." >&5
7163 echo "$as_me: error: cannot compute sizeof (int)
7164 See \`config.log' for more details." >&2;}
7165    { (exit 77); exit 77; }; }
7166                else
7167                  ac_cv_sizeof_int=0
7168                fi
7169 fi
7170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7171 fi
7172 rm -f conftest.val
7173 fi
7174 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7175 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7176
7177
7178
7179 cat >>confdefs.h <<_ACEOF
7180 #define SIZEOF_INT $ac_cv_sizeof_int
7181 _ACEOF
7182
7183
7184 { echo "$as_me:$LINENO: checking for char" >&5
7185 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
7186 if test "${ac_cv_type_char+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h.  */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h.  */
7195 $ac_includes_default
7196 typedef char ac__type_new_;
7197 int
7198 main ()
7199 {
7200 if ((ac__type_new_ *) 0)
7201   return 0;
7202 if (sizeof (ac__type_new_))
7203   return 0;
7204   ;
7205   return 0;
7206 }
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (ac_try="$ac_compile"
7210 case "(($ac_try" in
7211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212   *) ac_try_echo=$ac_try;;
7213 esac
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215   (eval "$ac_compile") 2>conftest.er1
7216   ac_status=$?
7217   grep -v '^ *+' conftest.er1 >conftest.err
7218   rm -f conftest.er1
7219   cat conftest.err >&5
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } &&
7222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7223   { (case "(($ac_try" in
7224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225   *) ac_try_echo=$ac_try;;
7226 esac
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228   (eval "$ac_try") 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; } &&
7232          { ac_try='test -s conftest.$ac_objext'
7233   { (case "(($ac_try" in
7234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235   *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238   (eval "$ac_try") 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; }; then
7242   ac_cv_type_char=yes
7243 else
7244   echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247         ac_cv_type_char=no
7248 fi
7249
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 fi
7252 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7253 echo "${ECHO_T}$ac_cv_type_char" >&6; }
7254
7255 # The cast to long int works around a bug in the HP C Compiler
7256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7258 # This bug is HP SR number 8606223364.
7259 { echo "$as_me:$LINENO: checking size of char" >&5
7260 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
7261 if test "${ac_cv_sizeof_char+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   if test "$cross_compiling" = yes; then
7265   # Depending upon the size, compute the lo and hi bounds.
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272 $ac_includes_default
7273                 typedef char ac__type_sizeof_;
7274
7275 int
7276 main ()
7277 {
7278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7279 test_array [0] = 0
7280
7281   ;
7282   return 0;
7283 }
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (ac_try="$ac_compile"
7287 case "(($ac_try" in
7288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289   *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292   (eval "$ac_compile") 2>conftest.er1
7293   ac_status=$?
7294   grep -v '^ *+' conftest.er1 >conftest.err
7295   rm -f conftest.er1
7296   cat conftest.err >&5
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); } &&
7299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7300   { (case "(($ac_try" in
7301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302   *) ac_try_echo=$ac_try;;
7303 esac
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305   (eval "$ac_try") 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); }; } &&
7309          { ac_try='test -s conftest.$ac_objext'
7310   { (case "(($ac_try" in
7311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312   *) ac_try_echo=$ac_try;;
7313 esac
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315   (eval "$ac_try") 2>&5
7316   ac_status=$?
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); }; }; then
7319   ac_lo=0 ac_mid=0
7320   while :; do
7321     cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327 $ac_includes_default
7328                 typedef char ac__type_sizeof_;
7329
7330 int
7331 main ()
7332 {
7333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7334 test_array [0] = 0
7335
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (ac_try="$ac_compile"
7342 case "(($ac_try" in
7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344   *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347   (eval "$ac_compile") 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } &&
7354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7355   { (case "(($ac_try" in
7356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357   *) ac_try_echo=$ac_try;;
7358 esac
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360   (eval "$ac_try") 2>&5
7361   ac_status=$?
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); }; } &&
7364          { ac_try='test -s conftest.$ac_objext'
7365   { (case "(($ac_try" in
7366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367   *) ac_try_echo=$ac_try;;
7368 esac
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370   (eval "$ac_try") 2>&5
7371   ac_status=$?
7372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373   (exit $ac_status); }; }; then
7374   ac_hi=$ac_mid; break
7375 else
7376   echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379         ac_lo=`expr $ac_mid + 1`
7380                         if test $ac_lo -le $ac_mid; then
7381                           ac_lo= ac_hi=
7382                           break
7383                         fi
7384                         ac_mid=`expr 2 '*' $ac_mid + 1`
7385 fi
7386
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388   done
7389 else
7390   echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7392
7393         cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h.  */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h.  */
7399 $ac_includes_default
7400                 typedef char ac__type_sizeof_;
7401
7402 int
7403 main ()
7404 {
7405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7406 test_array [0] = 0
7407
7408   ;
7409   return 0;
7410 }
7411 _ACEOF
7412 rm -f conftest.$ac_objext
7413 if { (ac_try="$ac_compile"
7414 case "(($ac_try" in
7415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416   *) ac_try_echo=$ac_try;;
7417 esac
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419   (eval "$ac_compile") 2>conftest.er1
7420   ac_status=$?
7421   grep -v '^ *+' conftest.er1 >conftest.err
7422   rm -f conftest.er1
7423   cat conftest.err >&5
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); } &&
7426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7427   { (case "(($ac_try" in
7428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429   *) ac_try_echo=$ac_try;;
7430 esac
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432   (eval "$ac_try") 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; } &&
7436          { ac_try='test -s conftest.$ac_objext'
7437   { (case "(($ac_try" in
7438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439   *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442   (eval "$ac_try") 2>&5
7443   ac_status=$?
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); }; }; then
7446   ac_hi=-1 ac_mid=-1
7447   while :; do
7448     cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h.  */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h.  */
7454 $ac_includes_default
7455                 typedef char ac__type_sizeof_;
7456
7457 int
7458 main ()
7459 {
7460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7461 test_array [0] = 0
7462
7463   ;
7464   return 0;
7465 }
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7469 case "(($ac_try" in
7470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471   *) ac_try_echo=$ac_try;;
7472 esac
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474   (eval "$ac_compile") 2>conftest.er1
7475   ac_status=$?
7476   grep -v '^ *+' conftest.er1 >conftest.err
7477   rm -f conftest.er1
7478   cat conftest.err >&5
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } &&
7481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7482   { (case "(($ac_try" in
7483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484   *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487   (eval "$ac_try") 2>&5
7488   ac_status=$?
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); }; } &&
7491          { ac_try='test -s conftest.$ac_objext'
7492   { (case "(($ac_try" in
7493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494   *) ac_try_echo=$ac_try;;
7495 esac
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497   (eval "$ac_try") 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); }; }; then
7501   ac_lo=$ac_mid; break
7502 else
7503   echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506         ac_hi=`expr '(' $ac_mid ')' - 1`
7507                         if test $ac_mid -le $ac_hi; then
7508                           ac_lo= ac_hi=
7509                           break
7510                         fi
7511                         ac_mid=`expr 2 '*' $ac_mid`
7512 fi
7513
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515   done
7516 else
7517   echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7519
7520         ac_lo= ac_hi=
7521 fi
7522
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 fi
7525
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 # Binary search between lo and hi bounds.
7528 while test "x$ac_lo" != "x$ac_hi"; do
7529   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7530   cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 $ac_includes_default
7537                 typedef char ac__type_sizeof_;
7538
7539 int
7540 main ()
7541 {
7542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7543 test_array [0] = 0
7544
7545   ;
7546   return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext
7550 if { (ac_try="$ac_compile"
7551 case "(($ac_try" in
7552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553   *) ac_try_echo=$ac_try;;
7554 esac
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556   (eval "$ac_compile") 2>conftest.er1
7557   ac_status=$?
7558   grep -v '^ *+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } &&
7563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564   { (case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569   (eval "$ac_try") 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest.$ac_objext'
7574   { (case "(($ac_try" in
7575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576   *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579   (eval "$ac_try") 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; }; then
7583   ac_hi=$ac_mid
7584 else
7585   echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588         ac_lo=`expr '(' $ac_mid ')' + 1`
7589 fi
7590
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 done
7593 case $ac_lo in
7594 ?*) ac_cv_sizeof_char=$ac_lo;;
7595 '') if test "$ac_cv_type_char" = yes; then
7596                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7597 See \`config.log' for more details." >&5
7598 echo "$as_me: error: cannot compute sizeof (char)
7599 See \`config.log' for more details." >&2;}
7600    { (exit 77); exit 77; }; }
7601                else
7602                  ac_cv_sizeof_char=0
7603                fi ;;
7604 esac
7605 else
7606   cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 $ac_includes_default
7613                 typedef char ac__type_sizeof_;
7614
7615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7617 #include <stdio.h>
7618 #include <stdlib.h>
7619 int
7620 main ()
7621 {
7622
7623   FILE *f = fopen ("conftest.val", "w");
7624   if (! f)
7625     return 1;
7626   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7627     {
7628       long int i = longval ();
7629       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7630         return 1;
7631       fprintf (f, "%ld\n", i);
7632     }
7633   else
7634     {
7635       unsigned long int i = ulongval ();
7636       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7637         return 1;
7638       fprintf (f, "%lu\n", i);
7639     }
7640   return ferror (f) || fclose (f) != 0;
7641
7642   ;
7643   return 0;
7644 }
7645 _ACEOF
7646 rm -f conftest$ac_exeext
7647 if { (ac_try="$ac_link"
7648 case "(($ac_try" in
7649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650   *) ac_try_echo=$ac_try;;
7651 esac
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653   (eval "$ac_link") 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7657   { (case "(($ac_try" in
7658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659   *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662   (eval "$ac_try") 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; }; then
7666   ac_cv_sizeof_char=`cat conftest.val`
7667 else
7668   echo "$as_me: program exited with status $ac_status" >&5
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7671
7672 ( exit $ac_status )
7673 if test "$ac_cv_type_char" = yes; then
7674                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7675 See \`config.log' for more details." >&5
7676 echo "$as_me: error: cannot compute sizeof (char)
7677 See \`config.log' for more details." >&2;}
7678    { (exit 77); exit 77; }; }
7679                else
7680                  ac_cv_sizeof_char=0
7681                fi
7682 fi
7683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7684 fi
7685 rm -f conftest.val
7686 fi
7687 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7688 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
7689
7690
7691
7692 cat >>confdefs.h <<_ACEOF
7693 #define SIZEOF_CHAR $ac_cv_sizeof_char
7694 _ACEOF
7695
7696
7697 { echo "$as_me:$LINENO: checking for short" >&5
7698 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7699 if test "${ac_cv_type_short+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h.  */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h.  */
7708 $ac_includes_default
7709 typedef short ac__type_new_;
7710 int
7711 main ()
7712 {
7713 if ((ac__type_new_ *) 0)
7714   return 0;
7715 if (sizeof (ac__type_new_))
7716   return 0;
7717   ;
7718   return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7723 case "(($ac_try" in
7724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725   *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728   (eval "$ac_compile") 2>conftest.er1
7729   ac_status=$?
7730   grep -v '^ *+' conftest.er1 >conftest.err
7731   rm -f conftest.er1
7732   cat conftest.err >&5
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); } &&
7735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7736   { (case "(($ac_try" in
7737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738   *) ac_try_echo=$ac_try;;
7739 esac
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741   (eval "$ac_try") 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; } &&
7745          { ac_try='test -s conftest.$ac_objext'
7746   { (case "(($ac_try" in
7747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748   *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751   (eval "$ac_try") 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; }; then
7755   ac_cv_type_short=yes
7756 else
7757   echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760         ac_cv_type_short=no
7761 fi
7762
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 fi
7765 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7766 echo "${ECHO_T}$ac_cv_type_short" >&6; }
7767
7768 # The cast to long int works around a bug in the HP C Compiler
7769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7771 # This bug is HP SR number 8606223364.
7772 { echo "$as_me:$LINENO: checking size of short" >&5
7773 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7774 if test "${ac_cv_sizeof_short+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   if test "$cross_compiling" = yes; then
7778   # Depending upon the size, compute the lo and hi bounds.
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785 $ac_includes_default
7786                 typedef short ac__type_sizeof_;
7787
7788 int
7789 main ()
7790 {
7791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7792 test_array [0] = 0
7793
7794   ;
7795   return 0;
7796 }
7797 _ACEOF
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7800 case "(($ac_try" in
7801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802   *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805   (eval "$ac_compile") 2>conftest.er1
7806   ac_status=$?
7807   grep -v '^ *+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } &&
7812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813   { (case "(($ac_try" in
7814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815   *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818   (eval "$ac_try") 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; } &&
7822          { ac_try='test -s conftest.$ac_objext'
7823   { (case "(($ac_try" in
7824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825   *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828   (eval "$ac_try") 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_lo=0 ac_mid=0
7833   while :; do
7834     cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840 $ac_includes_default
7841                 typedef short ac__type_sizeof_;
7842
7843 int
7844 main ()
7845 {
7846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7847 test_array [0] = 0
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7855 case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_compile") 2>conftest.er1
7861   ac_status=$?
7862   grep -v '^ *+' conftest.er1 >conftest.err
7863   rm -f conftest.er1
7864   cat conftest.err >&5
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); } &&
7867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868   { (case "(($ac_try" in
7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870   *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873   (eval "$ac_try") 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; } &&
7877          { ac_try='test -s conftest.$ac_objext'
7878   { (case "(($ac_try" in
7879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880   *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883   (eval "$ac_try") 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; }; then
7887   ac_hi=$ac_mid; break
7888 else
7889   echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892         ac_lo=`expr $ac_mid + 1`
7893                         if test $ac_lo -le $ac_mid; then
7894                           ac_lo= ac_hi=
7895                           break
7896                         fi
7897                         ac_mid=`expr 2 '*' $ac_mid + 1`
7898 fi
7899
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901   done
7902 else
7903   echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906         cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912 $ac_includes_default
7913                 typedef short ac__type_sizeof_;
7914
7915 int
7916 main ()
7917 {
7918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7919 test_array [0] = 0
7920
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (ac_try="$ac_compile"
7927 case "(($ac_try" in
7928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929   *) ac_try_echo=$ac_try;;
7930 esac
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932   (eval "$ac_compile") 2>conftest.er1
7933   ac_status=$?
7934   grep -v '^ *+' conftest.er1 >conftest.err
7935   rm -f conftest.er1
7936   cat conftest.err >&5
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); } &&
7939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7940   { (case "(($ac_try" in
7941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942   *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945   (eval "$ac_try") 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; } &&
7949          { ac_try='test -s conftest.$ac_objext'
7950   { (case "(($ac_try" in
7951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952   *) ac_try_echo=$ac_try;;
7953 esac
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955   (eval "$ac_try") 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; }; then
7959   ac_hi=-1 ac_mid=-1
7960   while :; do
7961     cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h.  */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h.  */
7967 $ac_includes_default
7968                 typedef short ac__type_sizeof_;
7969
7970 int
7971 main ()
7972 {
7973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7974 test_array [0] = 0
7975
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext
7981 if { (ac_try="$ac_compile"
7982 case "(($ac_try" in
7983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984   *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987   (eval "$ac_compile") 2>conftest.er1
7988   ac_status=$?
7989   grep -v '^ *+' conftest.er1 >conftest.err
7990   rm -f conftest.er1
7991   cat conftest.err >&5
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); } &&
7994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7995   { (case "(($ac_try" in
7996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997   *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000   (eval "$ac_try") 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); }; } &&
8004          { ac_try='test -s conftest.$ac_objext'
8005   { (case "(($ac_try" in
8006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007   *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010   (eval "$ac_try") 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); }; }; then
8014   ac_lo=$ac_mid; break
8015 else
8016   echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8018
8019         ac_hi=`expr '(' $ac_mid ')' - 1`
8020                         if test $ac_mid -le $ac_hi; then
8021                           ac_lo= ac_hi=
8022                           break
8023                         fi
8024                         ac_mid=`expr 2 '*' $ac_mid`
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028   done
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033         ac_lo= ac_hi=
8034 fi
8035
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 fi
8038
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 # Binary search between lo and hi bounds.
8041 while test "x$ac_lo" != "x$ac_hi"; do
8042   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8043   cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049 $ac_includes_default
8050                 typedef short ac__type_sizeof_;
8051
8052 int
8053 main ()
8054 {
8055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8056 test_array [0] = 0
8057
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_compile") 2>conftest.er1
8070   ac_status=$?
8071   grep -v '^ *+' conftest.er1 >conftest.err
8072   rm -f conftest.er1
8073   cat conftest.err >&5
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } &&
8076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8077   { (case "(($ac_try" in
8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079   *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082   (eval "$ac_try") 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; } &&
8086          { ac_try='test -s conftest.$ac_objext'
8087   { (case "(($ac_try" in
8088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089   *) ac_try_echo=$ac_try;;
8090 esac
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092   (eval "$ac_try") 2>&5
8093   ac_status=$?
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); }; }; then
8096   ac_hi=$ac_mid
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101         ac_lo=`expr '(' $ac_mid ')' + 1`
8102 fi
8103
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 done
8106 case $ac_lo in
8107 ?*) ac_cv_sizeof_short=$ac_lo;;
8108 '') if test "$ac_cv_type_short" = yes; then
8109                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8110 See \`config.log' for more details." >&5
8111 echo "$as_me: error: cannot compute sizeof (short)
8112 See \`config.log' for more details." >&2;}
8113    { (exit 77); exit 77; }; }
8114                else
8115                  ac_cv_sizeof_short=0
8116                fi ;;
8117 esac
8118 else
8119   cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 $ac_includes_default
8126                 typedef short ac__type_sizeof_;
8127
8128 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8129 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8130 #include <stdio.h>
8131 #include <stdlib.h>
8132 int
8133 main ()
8134 {
8135
8136   FILE *f = fopen ("conftest.val", "w");
8137   if (! f)
8138     return 1;
8139   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8140     {
8141       long int i = longval ();
8142       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8143         return 1;
8144       fprintf (f, "%ld\n", i);
8145     }
8146   else
8147     {
8148       unsigned long int i = ulongval ();
8149       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8150         return 1;
8151       fprintf (f, "%lu\n", i);
8152     }
8153   return ferror (f) || fclose (f) != 0;
8154
8155   ;
8156   return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8161 case "(($ac_try" in
8162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163   *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166   (eval "$ac_link") 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8170   { (case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_try") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   ac_cv_sizeof_short=`cat conftest.val`
8180 else
8181   echo "$as_me: program exited with status $ac_status" >&5
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ( exit $ac_status )
8186 if test "$ac_cv_type_short" = yes; then
8187                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8188 See \`config.log' for more details." >&5
8189 echo "$as_me: error: cannot compute sizeof (short)
8190 See \`config.log' for more details." >&2;}
8191    { (exit 77); exit 77; }; }
8192                else
8193                  ac_cv_sizeof_short=0
8194                fi
8195 fi
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8197 fi
8198 rm -f conftest.val
8199 fi
8200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8201 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8202
8203
8204
8205 cat >>confdefs.h <<_ACEOF
8206 #define SIZEOF_SHORT $ac_cv_sizeof_short
8207 _ACEOF
8208
8209
8210 { echo "$as_me:$LINENO: checking for long" >&5
8211 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
8212 if test "${ac_cv_type_long+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h.  */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h.  */
8221 $ac_includes_default
8222 typedef long ac__type_new_;
8223 int
8224 main ()
8225 {
8226 if ((ac__type_new_ *) 0)
8227   return 0;
8228 if (sizeof (ac__type_new_))
8229   return 0;
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8236 case "(($ac_try" in
8237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238   *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241   (eval "$ac_compile") 2>conftest.er1
8242   ac_status=$?
8243   grep -v '^ *+' conftest.er1 >conftest.err
8244   rm -f conftest.er1
8245   cat conftest.err >&5
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } &&
8248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249   { (case "(($ac_try" in
8250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251   *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254   (eval "$ac_try") 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; } &&
8258          { ac_try='test -s conftest.$ac_objext'
8259   { (case "(($ac_try" in
8260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261   *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264   (eval "$ac_try") 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   ac_cv_type_long=yes
8269 else
8270   echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273         ac_cv_type_long=no
8274 fi
8275
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 fi
8278 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8279 echo "${ECHO_T}$ac_cv_type_long" >&6; }
8280
8281 # The cast to long int works around a bug in the HP C Compiler
8282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8284 # This bug is HP SR number 8606223364.
8285 { echo "$as_me:$LINENO: checking size of long" >&5
8286 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8287 if test "${ac_cv_sizeof_long+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   if test "$cross_compiling" = yes; then
8291   # Depending upon the size, compute the lo and hi bounds.
8292 cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298 $ac_includes_default
8299                 typedef long ac__type_sizeof_;
8300
8301 int
8302 main ()
8303 {
8304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8305 test_array [0] = 0
8306
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8313 case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_compile") 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8326   { (case "(($ac_try" in
8327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328   *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331   (eval "$ac_try") 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; } &&
8335          { ac_try='test -s conftest.$ac_objext'
8336   { (case "(($ac_try" in
8337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338   *) ac_try_echo=$ac_try;;
8339 esac
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341   (eval "$ac_try") 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); }; }; then
8345   ac_lo=0 ac_mid=0
8346   while :; do
8347     cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353 $ac_includes_default
8354                 typedef long ac__type_sizeof_;
8355
8356 int
8357 main ()
8358 {
8359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8360 test_array [0] = 0
8361
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (ac_try="$ac_compile"
8368 case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_compile") 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } &&
8380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8381   { (case "(($ac_try" in
8382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383   *) ac_try_echo=$ac_try;;
8384 esac
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386   (eval "$ac_try") 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; } &&
8390          { ac_try='test -s conftest.$ac_objext'
8391   { (case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_try") 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; }; then
8400   ac_hi=$ac_mid; break
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405         ac_lo=`expr $ac_mid + 1`
8406                         if test $ac_lo -le $ac_mid; then
8407                           ac_lo= ac_hi=
8408                           break
8409                         fi
8410                         ac_mid=`expr 2 '*' $ac_mid + 1`
8411 fi
8412
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414   done
8415 else
8416   echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419         cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425 $ac_includes_default
8426                 typedef long ac__type_sizeof_;
8427
8428 int
8429 main ()
8430 {
8431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8432 test_array [0] = 0
8433
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8440 case "(($ac_try" in
8441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442   *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445   (eval "$ac_compile") 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453   { (case "(($ac_try" in
8454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455   *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458   (eval "$ac_try") 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; } &&
8462          { ac_try='test -s conftest.$ac_objext'
8463   { (case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468   (eval "$ac_try") 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }; }; then
8472   ac_hi=-1 ac_mid=-1
8473   while :; do
8474     cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h.  */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h.  */
8480 $ac_includes_default
8481                 typedef long ac__type_sizeof_;
8482
8483 int
8484 main ()
8485 {
8486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8487 test_array [0] = 0
8488
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (ac_try="$ac_compile"
8495 case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_compile") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } &&
8507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8508   { (case "(($ac_try" in
8509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510   *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513   (eval "$ac_try") 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; } &&
8517          { ac_try='test -s conftest.$ac_objext'
8518   { (case "(($ac_try" in
8519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520   *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523   (eval "$ac_try") 2>&5
8524   ac_status=$?
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); }; }; then
8527   ac_lo=$ac_mid; break
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532         ac_hi=`expr '(' $ac_mid ')' - 1`
8533                         if test $ac_mid -le $ac_hi; then
8534                           ac_lo= ac_hi=
8535                           break
8536                         fi
8537                         ac_mid=`expr 2 '*' $ac_mid`
8538 fi
8539
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541   done
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546         ac_lo= ac_hi=
8547 fi
8548
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 fi
8551
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 # Binary search between lo and hi bounds.
8554 while test "x$ac_lo" != "x$ac_hi"; do
8555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8556   cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h.  */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h.  */
8562 $ac_includes_default
8563                 typedef long ac__type_sizeof_;
8564
8565 int
8566 main ()
8567 {
8568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8569 test_array [0] = 0
8570
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_compile") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590   { (case "(($ac_try" in
8591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592   *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595   (eval "$ac_try") 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; } &&
8599          { ac_try='test -s conftest.$ac_objext'
8600   { (case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605   (eval "$ac_try") 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; }; then
8609   ac_hi=$ac_mid
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614         ac_lo=`expr '(' $ac_mid ')' + 1`
8615 fi
8616
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 done
8619 case $ac_lo in
8620 ?*) ac_cv_sizeof_long=$ac_lo;;
8621 '') if test "$ac_cv_type_long" = yes; then
8622                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8623 See \`config.log' for more details." >&5
8624 echo "$as_me: error: cannot compute sizeof (long)
8625 See \`config.log' for more details." >&2;}
8626    { (exit 77); exit 77; }; }
8627                else
8628                  ac_cv_sizeof_long=0
8629                fi ;;
8630 esac
8631 else
8632   cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h.  */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h.  */
8638 $ac_includes_default
8639                 typedef long ac__type_sizeof_;
8640
8641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8643 #include <stdio.h>
8644 #include <stdlib.h>
8645 int
8646 main ()
8647 {
8648
8649   FILE *f = fopen ("conftest.val", "w");
8650   if (! f)
8651     return 1;
8652   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8653     {
8654       long int i = longval ();
8655       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8656         return 1;
8657       fprintf (f, "%ld\n", i);
8658     }
8659   else
8660     {
8661       unsigned long int i = ulongval ();
8662       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8663         return 1;
8664       fprintf (f, "%lu\n", i);
8665     }
8666   return ferror (f) || fclose (f) != 0;
8667
8668   ;
8669   return 0;
8670 }
8671 _ACEOF
8672 rm -f conftest$ac_exeext
8673 if { (ac_try="$ac_link"
8674 case "(($ac_try" in
8675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676   *) ac_try_echo=$ac_try;;
8677 esac
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679   (eval "$ac_link") 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8683   { (case "(($ac_try" in
8684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685   *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688   (eval "$ac_try") 2>&5
8689   ac_status=$?
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); }; }; then
8692   ac_cv_sizeof_long=`cat conftest.val`
8693 else
8694   echo "$as_me: program exited with status $ac_status" >&5
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ( exit $ac_status )
8699 if test "$ac_cv_type_long" = yes; then
8700                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8701 See \`config.log' for more details." >&5
8702 echo "$as_me: error: cannot compute sizeof (long)
8703 See \`config.log' for more details." >&2;}
8704    { (exit 77); exit 77; }; }
8705                else
8706                  ac_cv_sizeof_long=0
8707                fi
8708 fi
8709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8710 fi
8711 rm -f conftest.val
8712 fi
8713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8714 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8715
8716
8717
8718 cat >>confdefs.h <<_ACEOF
8719 #define SIZEOF_LONG $ac_cv_sizeof_long
8720 _ACEOF
8721
8722
8723 { echo "$as_me:$LINENO: checking for long long" >&5
8724 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8725 if test "${ac_cv_type_long_long+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 $ac_includes_default
8735 typedef long long ac__type_new_;
8736 int
8737 main ()
8738 {
8739 if ((ac__type_new_ *) 0)
8740   return 0;
8741 if (sizeof (ac__type_new_))
8742   return 0;
8743   ;
8744   return 0;
8745 }
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8749 case "(($ac_try" in
8750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751   *) ac_try_echo=$ac_try;;
8752 esac
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754   (eval "$ac_compile") 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } &&
8761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8762   { (case "(($ac_try" in
8763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764   *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767   (eval "$ac_try") 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; } &&
8771          { ac_try='test -s conftest.$ac_objext'
8772   { (case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777   (eval "$ac_try") 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; }; then
8781   ac_cv_type_long_long=yes
8782 else
8783   echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8785
8786         ac_cv_type_long_long=no
8787 fi
8788
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 fi
8791 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8792 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8793
8794 # The cast to long int works around a bug in the HP C Compiler
8795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8797 # This bug is HP SR number 8606223364.
8798 { echo "$as_me:$LINENO: checking size of long long" >&5
8799 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8800 if test "${ac_cv_sizeof_long_long+set}" = set; then
8801   echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803   if test "$cross_compiling" = yes; then
8804   # Depending upon the size, compute the lo and hi bounds.
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h.  */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h.  */
8811 $ac_includes_default
8812                 typedef long long ac__type_sizeof_;
8813
8814 int
8815 main ()
8816 {
8817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8818 test_array [0] = 0
8819
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8826 case "(($ac_try" in
8827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828   *) ac_try_echo=$ac_try;;
8829 esac
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831   (eval "$ac_compile") 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } &&
8838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8839   { (case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844   (eval "$ac_try") 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; } &&
8848          { ac_try='test -s conftest.$ac_objext'
8849   { (case "(($ac_try" in
8850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851   *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854   (eval "$ac_try") 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); }; }; then
8858   ac_lo=0 ac_mid=0
8859   while :; do
8860     cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866 $ac_includes_default
8867                 typedef long long ac__type_sizeof_;
8868
8869 int
8870 main ()
8871 {
8872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8873 test_array [0] = 0
8874
8875   ;
8876   return 0;
8877 }
8878 _ACEOF
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8881 case "(($ac_try" in
8882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883   *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886   (eval "$ac_compile") 2>conftest.er1
8887   ac_status=$?
8888   grep -v '^ *+' conftest.er1 >conftest.err
8889   rm -f conftest.er1
8890   cat conftest.err >&5
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } &&
8893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8894   { (case "(($ac_try" in
8895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896   *) ac_try_echo=$ac_try;;
8897 esac
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899   (eval "$ac_try") 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; } &&
8903          { ac_try='test -s conftest.$ac_objext'
8904   { (case "(($ac_try" in
8905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906   *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909   (eval "$ac_try") 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); }; }; then
8913   ac_hi=$ac_mid; break
8914 else
8915   echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918         ac_lo=`expr $ac_mid + 1`
8919                         if test $ac_lo -le $ac_mid; then
8920                           ac_lo= ac_hi=
8921                           break
8922                         fi
8923                         ac_mid=`expr 2 '*' $ac_mid + 1`
8924 fi
8925
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927   done
8928 else
8929   echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8931
8932         cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h.  */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h.  */
8938 $ac_includes_default
8939                 typedef long long ac__type_sizeof_;
8940
8941 int
8942 main ()
8943 {
8944 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8945 test_array [0] = 0
8946
8947   ;
8948   return 0;
8949 }
8950 _ACEOF
8951 rm -f conftest.$ac_objext
8952 if { (ac_try="$ac_compile"
8953 case "(($ac_try" in
8954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955   *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958   (eval "$ac_compile") 2>conftest.er1
8959   ac_status=$?
8960   grep -v '^ *+' conftest.er1 >conftest.err
8961   rm -f conftest.er1
8962   cat conftest.err >&5
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); } &&
8965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8966   { (case "(($ac_try" in
8967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968   *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971   (eval "$ac_try") 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; } &&
8975          { ac_try='test -s conftest.$ac_objext'
8976   { (case "(($ac_try" in
8977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978   *) ac_try_echo=$ac_try;;
8979 esac
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981   (eval "$ac_try") 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); }; }; then
8985   ac_hi=-1 ac_mid=-1
8986   while :; do
8987     cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h.  */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h.  */
8993 $ac_includes_default
8994                 typedef long long ac__type_sizeof_;
8995
8996 int
8997 main ()
8998 {
8999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9000 test_array [0] = 0
9001
9002   ;
9003   return 0;
9004 }
9005 _ACEOF
9006 rm -f conftest.$ac_objext
9007 if { (ac_try="$ac_compile"
9008 case "(($ac_try" in
9009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010   *) ac_try_echo=$ac_try;;
9011 esac
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013   (eval "$ac_compile") 2>conftest.er1
9014   ac_status=$?
9015   grep -v '^ *+' conftest.er1 >conftest.err
9016   rm -f conftest.er1
9017   cat conftest.err >&5
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } &&
9020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9021   { (case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026   (eval "$ac_try") 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; } &&
9030          { ac_try='test -s conftest.$ac_objext'
9031   { (case "(($ac_try" in
9032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033   *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036   (eval "$ac_try") 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; }; then
9040   ac_lo=$ac_mid; break
9041 else
9042   echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045         ac_hi=`expr '(' $ac_mid ')' - 1`
9046                         if test $ac_mid -le $ac_hi; then
9047                           ac_lo= ac_hi=
9048                           break
9049                         fi
9050                         ac_mid=`expr 2 '*' $ac_mid`
9051 fi
9052
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054   done
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059         ac_lo= ac_hi=
9060 fi
9061
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 fi
9064
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 # Binary search between lo and hi bounds.
9067 while test "x$ac_lo" != "x$ac_hi"; do
9068   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9069   cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h.  */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h.  */
9075 $ac_includes_default
9076                 typedef long long ac__type_sizeof_;
9077
9078 int
9079 main ()
9080 {
9081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9082 test_array [0] = 0
9083
9084   ;
9085   return 0;
9086 }
9087 _ACEOF
9088 rm -f conftest.$ac_objext
9089 if { (ac_try="$ac_compile"
9090 case "(($ac_try" in
9091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092   *) ac_try_echo=$ac_try;;
9093 esac
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095   (eval "$ac_compile") 2>conftest.er1
9096   ac_status=$?
9097   grep -v '^ *+' conftest.er1 >conftest.err
9098   rm -f conftest.er1
9099   cat conftest.err >&5
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); } &&
9102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9103   { (case "(($ac_try" in
9104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105   *) ac_try_echo=$ac_try;;
9106 esac
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108   (eval "$ac_try") 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); }; } &&
9112          { ac_try='test -s conftest.$ac_objext'
9113   { (case "(($ac_try" in
9114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115   *) ac_try_echo=$ac_try;;
9116 esac
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118   (eval "$ac_try") 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; }; then
9122   ac_hi=$ac_mid
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127         ac_lo=`expr '(' $ac_mid ')' + 1`
9128 fi
9129
9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131 done
9132 case $ac_lo in
9133 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9134 '') if test "$ac_cv_type_long_long" = yes; then
9135                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9136 See \`config.log' for more details." >&5
9137 echo "$as_me: error: cannot compute sizeof (long long)
9138 See \`config.log' for more details." >&2;}
9139    { (exit 77); exit 77; }; }
9140                else
9141                  ac_cv_sizeof_long_long=0
9142                fi ;;
9143 esac
9144 else
9145   cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h.  */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h.  */
9151 $ac_includes_default
9152                 typedef long long ac__type_sizeof_;
9153
9154 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9155 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9156 #include <stdio.h>
9157 #include <stdlib.h>
9158 int
9159 main ()
9160 {
9161
9162   FILE *f = fopen ("conftest.val", "w");
9163   if (! f)
9164     return 1;
9165   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9166     {
9167       long int i = longval ();
9168       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9169         return 1;
9170       fprintf (f, "%ld\n", i);
9171     }
9172   else
9173     {
9174       unsigned long int i = ulongval ();
9175       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9176         return 1;
9177       fprintf (f, "%lu\n", i);
9178     }
9179   return ferror (f) || fclose (f) != 0;
9180
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9187 case "(($ac_try" in
9188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189   *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192   (eval "$ac_link") 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9196   { (case "(($ac_try" in
9197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198   *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201   (eval "$ac_try") 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); }; }; then
9205   ac_cv_sizeof_long_long=`cat conftest.val`
9206 else
9207   echo "$as_me: program exited with status $ac_status" >&5
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9210
9211 ( exit $ac_status )
9212 if test "$ac_cv_type_long_long" = yes; then
9213                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9214 See \`config.log' for more details." >&5
9215 echo "$as_me: error: cannot compute sizeof (long long)
9216 See \`config.log' for more details." >&2;}
9217    { (exit 77); exit 77; }; }
9218                else
9219                  ac_cv_sizeof_long_long=0
9220                fi
9221 fi
9222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9223 fi
9224 rm -f conftest.val
9225 fi
9226 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9227 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9228
9229
9230
9231 cat >>confdefs.h <<_ACEOF
9232 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9233 _ACEOF
9234
9235
9236
9237 { echo "$as_me:$LINENO: checking for off_t" >&5
9238 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9239 if test "${ac_cv_type_off_t+set}" = set; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248 $ac_includes_default
9249 typedef off_t ac__type_new_;
9250 int
9251 main ()
9252 {
9253 if ((ac__type_new_ *) 0)
9254   return 0;
9255 if (sizeof (ac__type_new_))
9256   return 0;
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext
9262 if { (ac_try="$ac_compile"
9263 case "(($ac_try" in
9264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265   *) ac_try_echo=$ac_try;;
9266 esac
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268   (eval "$ac_compile") 2>conftest.er1
9269   ac_status=$?
9270   grep -v '^ *+' conftest.er1 >conftest.err
9271   rm -f conftest.er1
9272   cat conftest.err >&5
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); } &&
9275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; } &&
9285          { ac_try='test -s conftest.$ac_objext'
9286   { (case "(($ac_try" in
9287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288   *) ac_try_echo=$ac_try;;
9289 esac
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291   (eval "$ac_try") 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; }; then
9295   ac_cv_type_off_t=yes
9296 else
9297   echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300         ac_cv_type_off_t=no
9301 fi
9302
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 fi
9305 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9306 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9307
9308 # The cast to long int works around a bug in the HP C Compiler
9309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9311 # This bug is HP SR number 8606223364.
9312 { echo "$as_me:$LINENO: checking size of off_t" >&5
9313 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
9314 if test "${ac_cv_sizeof_off_t+set}" = set; then
9315   echo $ECHO_N "(cached) $ECHO_C" >&6
9316 else
9317   if test "$cross_compiling" = yes; then
9318   # Depending upon the size, compute the lo and hi bounds.
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325 $ac_includes_default
9326                 typedef off_t ac__type_sizeof_;
9327
9328 int
9329 main ()
9330 {
9331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9332 test_array [0] = 0
9333
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (ac_try="$ac_compile"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_compile") 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } &&
9352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9353   { (case "(($ac_try" in
9354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355   *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358   (eval "$ac_try") 2>&5
9359   ac_status=$?
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); }; } &&
9362          { ac_try='test -s conftest.$ac_objext'
9363   { (case "(($ac_try" in
9364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365   *) ac_try_echo=$ac_try;;
9366 esac
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368   (eval "$ac_try") 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; }; then
9372   ac_lo=0 ac_mid=0
9373   while :; do
9374     cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h.  */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h.  */
9380 $ac_includes_default
9381                 typedef off_t ac__type_sizeof_;
9382
9383 int
9384 main ()
9385 {
9386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9387 test_array [0] = 0
9388
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9395 case "(($ac_try" in
9396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397   *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400   (eval "$ac_compile") 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } &&
9407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9408   { (case "(($ac_try" in
9409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410   *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413   (eval "$ac_try") 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; } &&
9417          { ac_try='test -s conftest.$ac_objext'
9418   { (case "(($ac_try" in
9419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420   *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423   (eval "$ac_try") 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   ac_hi=$ac_mid; break
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432         ac_lo=`expr $ac_mid + 1`
9433                         if test $ac_lo -le $ac_mid; then
9434                           ac_lo= ac_hi=
9435                           break
9436                         fi
9437                         ac_mid=`expr 2 '*' $ac_mid + 1`
9438 fi
9439
9440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9441   done
9442 else
9443   echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446         cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h.  */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h.  */
9452 $ac_includes_default
9453                 typedef off_t ac__type_sizeof_;
9454
9455 int
9456 main ()
9457 {
9458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9459 test_array [0] = 0
9460
9461   ;
9462   return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9467 case "(($ac_try" in
9468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469   *) ac_try_echo=$ac_try;;
9470 esac
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472   (eval "$ac_compile") 2>conftest.er1
9473   ac_status=$?
9474   grep -v '^ *+' conftest.er1 >conftest.err
9475   rm -f conftest.er1
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } &&
9479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9480   { (case "(($ac_try" in
9481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482   *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485   (eval "$ac_try") 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; } &&
9489          { ac_try='test -s conftest.$ac_objext'
9490   { (case "(($ac_try" in
9491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492   *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495   (eval "$ac_try") 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; }; then
9499   ac_hi=-1 ac_mid=-1
9500   while :; do
9501     cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h.  */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h.  */
9507 $ac_includes_default
9508                 typedef off_t ac__type_sizeof_;
9509
9510 int
9511 main ()
9512 {
9513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9514 test_array [0] = 0
9515
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext
9521 if { (ac_try="$ac_compile"
9522 case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_compile") 2>conftest.er1
9528   ac_status=$?
9529   grep -v '^ *+' conftest.er1 >conftest.err
9530   rm -f conftest.er1
9531   cat conftest.err >&5
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } &&
9534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; } &&
9544          { ac_try='test -s conftest.$ac_objext'
9545   { (case "(($ac_try" in
9546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547   *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550   (eval "$ac_try") 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; }; then
9554   ac_lo=$ac_mid; break
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559         ac_hi=`expr '(' $ac_mid ')' - 1`
9560                         if test $ac_mid -le $ac_hi; then
9561                           ac_lo= ac_hi=
9562                           break
9563                         fi
9564                         ac_mid=`expr 2 '*' $ac_mid`
9565 fi
9566
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568   done
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573         ac_lo= ac_hi=
9574 fi
9575
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577 fi
9578
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 # Binary search between lo and hi bounds.
9581 while test "x$ac_lo" != "x$ac_hi"; do
9582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9583   cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h.  */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h.  */
9589 $ac_includes_default
9590                 typedef off_t ac__type_sizeof_;
9591
9592 int
9593 main ()
9594 {
9595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9596 test_array [0] = 0
9597
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext
9603 if { (ac_try="$ac_compile"
9604 case "(($ac_try" in
9605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606   *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609   (eval "$ac_compile") 2>conftest.er1
9610   ac_status=$?
9611   grep -v '^ *+' conftest.er1 >conftest.err
9612   rm -f conftest.er1
9613   cat conftest.err >&5
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); } &&
9616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9617   { (case "(($ac_try" in
9618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619   *) ac_try_echo=$ac_try;;
9620 esac
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622   (eval "$ac_try") 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; } &&
9626          { ac_try='test -s conftest.$ac_objext'
9627   { (case "(($ac_try" in
9628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629   *) ac_try_echo=$ac_try;;
9630 esac
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632   (eval "$ac_try") 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); }; }; then
9636   ac_hi=$ac_mid
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641         ac_lo=`expr '(' $ac_mid ')' + 1`
9642 fi
9643
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 done
9646 case $ac_lo in
9647 ?*) ac_cv_sizeof_off_t=$ac_lo;;
9648 '') if test "$ac_cv_type_off_t" = yes; then
9649                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9650 See \`config.log' for more details." >&5
9651 echo "$as_me: error: cannot compute sizeof (off_t)
9652 See \`config.log' for more details." >&2;}
9653    { (exit 77); exit 77; }; }
9654                else
9655                  ac_cv_sizeof_off_t=0
9656                fi ;;
9657 esac
9658 else
9659   cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9665 $ac_includes_default
9666                 typedef off_t ac__type_sizeof_;
9667
9668 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9669 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9670 #include <stdio.h>
9671 #include <stdlib.h>
9672 int
9673 main ()
9674 {
9675
9676   FILE *f = fopen ("conftest.val", "w");
9677   if (! f)
9678     return 1;
9679   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9680     {
9681       long int i = longval ();
9682       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9683         return 1;
9684       fprintf (f, "%ld\n", i);
9685     }
9686   else
9687     {
9688       unsigned long int i = ulongval ();
9689       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9690         return 1;
9691       fprintf (f, "%lu\n", i);
9692     }
9693   return ferror (f) || fclose (f) != 0;
9694
9695   ;
9696   return 0;
9697 }
9698 _ACEOF
9699 rm -f conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9701 case "(($ac_try" in
9702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703   *) ac_try_echo=$ac_try;;
9704 esac
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706   (eval "$ac_link") 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9710   { (case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715   (eval "$ac_try") 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   ac_cv_sizeof_off_t=`cat conftest.val`
9720 else
9721   echo "$as_me: program exited with status $ac_status" >&5
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 ( exit $ac_status )
9726 if test "$ac_cv_type_off_t" = yes; then
9727                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9728 See \`config.log' for more details." >&5
9729 echo "$as_me: error: cannot compute sizeof (off_t)
9730 See \`config.log' for more details." >&2;}
9731    { (exit 77); exit 77; }; }
9732                else
9733                  ac_cv_sizeof_off_t=0
9734                fi
9735 fi
9736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9737 fi
9738 rm -f conftest.val
9739 fi
9740 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9741 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
9742
9743
9744
9745 cat >>confdefs.h <<_ACEOF
9746 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9747 _ACEOF
9748
9749
9750 { echo "$as_me:$LINENO: checking for size_t" >&5
9751 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9752 if test "${ac_cv_type_size_t+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755   cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761 $ac_includes_default
9762 typedef size_t ac__type_new_;
9763 int
9764 main ()
9765 {
9766 if ((ac__type_new_ *) 0)
9767   return 0;
9768 if (sizeof (ac__type_new_))
9769   return 0;
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext
9775 if { (ac_try="$ac_compile"
9776 case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_compile") 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789   { (case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_try") 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; } &&
9798          { ac_try='test -s conftest.$ac_objext'
9799   { (case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804   (eval "$ac_try") 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808   ac_cv_type_size_t=yes
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813         ac_cv_type_size_t=no
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 fi
9818 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9819 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9820
9821 # The cast to long int works around a bug in the HP C Compiler
9822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9824 # This bug is HP SR number 8606223364.
9825 { echo "$as_me:$LINENO: checking size of size_t" >&5
9826 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9827 if test "${ac_cv_sizeof_size_t+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   if test "$cross_compiling" = yes; then
9831   # Depending upon the size, compute the lo and hi bounds.
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838 $ac_includes_default
9839                 typedef size_t ac__type_sizeof_;
9840
9841 int
9842 main ()
9843 {
9844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9845 test_array [0] = 0
9846
9847   ;
9848   return 0;
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (ac_try="$ac_compile"
9853 case "(($ac_try" in
9854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855   *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858   (eval "$ac_compile") 2>conftest.er1
9859   ac_status=$?
9860   grep -v '^ *+' conftest.er1 >conftest.err
9861   rm -f conftest.er1
9862   cat conftest.err >&5
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); } &&
9865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866   { (case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_try") 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; } &&
9875          { ac_try='test -s conftest.$ac_objext'
9876   { (case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_try") 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_lo=0 ac_mid=0
9886   while :; do
9887     cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893 $ac_includes_default
9894                 typedef size_t ac__type_sizeof_;
9895
9896 int
9897 main ()
9898 {
9899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9900 test_array [0] = 0
9901
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext
9907 if { (ac_try="$ac_compile"
9908 case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_compile") 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921   { (case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926   (eval "$ac_try") 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; } &&
9930          { ac_try='test -s conftest.$ac_objext'
9931   { (case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_try") 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; }; then
9940   ac_hi=$ac_mid; break
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945         ac_lo=`expr $ac_mid + 1`
9946                         if test $ac_lo -le $ac_mid; then
9947                           ac_lo= ac_hi=
9948                           break
9949                         fi
9950                         ac_mid=`expr 2 '*' $ac_mid + 1`
9951 fi
9952
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954   done
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959         cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 $ac_includes_default
9966                 typedef size_t ac__type_sizeof_;
9967
9968 int
9969 main ()
9970 {
9971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9972 test_array [0] = 0
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (ac_try="$ac_compile"
9980 case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_compile") 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } &&
9992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993   { (case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_try") 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; } &&
10002          { ac_try='test -s conftest.$ac_objext'
10003   { (case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_try") 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; }; then
10012   ac_hi=-1 ac_mid=-1
10013   while :; do
10014     cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h.  */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h.  */
10020 $ac_includes_default
10021                 typedef size_t ac__type_sizeof_;
10022
10023 int
10024 main ()
10025 {
10026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10027 test_array [0] = 0
10028
10029   ;
10030   return 0;
10031 }
10032 _ACEOF
10033 rm -f conftest.$ac_objext
10034 if { (ac_try="$ac_compile"
10035 case "(($ac_try" in
10036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037   *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040   (eval "$ac_compile") 2>conftest.er1
10041   ac_status=$?
10042   grep -v '^ *+' conftest.er1 >conftest.err
10043   rm -f conftest.er1
10044   cat conftest.err >&5
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); } &&
10047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10048   { (case "(($ac_try" in
10049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050   *) ac_try_echo=$ac_try;;
10051 esac
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053   (eval "$ac_try") 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; } &&
10057          { ac_try='test -s conftest.$ac_objext'
10058   { (case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063   (eval "$ac_try") 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   ac_lo=$ac_mid; break
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072         ac_hi=`expr '(' $ac_mid ')' - 1`
10073                         if test $ac_mid -le $ac_hi; then
10074                           ac_lo= ac_hi=
10075                           break
10076                         fi
10077                         ac_mid=`expr 2 '*' $ac_mid`
10078 fi
10079
10080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081   done
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086         ac_lo= ac_hi=
10087 fi
10088
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 fi
10091
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 # Binary search between lo and hi bounds.
10094 while test "x$ac_lo" != "x$ac_hi"; do
10095   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10096   cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h.  */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h.  */
10102 $ac_includes_default
10103                 typedef size_t ac__type_sizeof_;
10104
10105 int
10106 main ()
10107 {
10108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10109 test_array [0] = 0
10110
10111   ;
10112   return 0;
10113 }
10114 _ACEOF
10115 rm -f conftest.$ac_objext
10116 if { (ac_try="$ac_compile"
10117 case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122   (eval "$ac_compile") 2>conftest.er1
10123   ac_status=$?
10124   grep -v '^ *+' conftest.er1 >conftest.err
10125   rm -f conftest.er1
10126   cat conftest.err >&5
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } &&
10129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10130   { (case "(($ac_try" in
10131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132   *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135   (eval "$ac_try") 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); }; } &&
10139          { ac_try='test -s conftest.$ac_objext'
10140   { (case "(($ac_try" in
10141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142   *) ac_try_echo=$ac_try;;
10143 esac
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145   (eval "$ac_try") 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); }; }; then
10149   ac_hi=$ac_mid
10150 else
10151   echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10153
10154         ac_lo=`expr '(' $ac_mid ')' + 1`
10155 fi
10156
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 done
10159 case $ac_lo in
10160 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10161 '') if test "$ac_cv_type_size_t" = yes; then
10162                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10163 See \`config.log' for more details." >&5
10164 echo "$as_me: error: cannot compute sizeof (size_t)
10165 See \`config.log' for more details." >&2;}
10166    { (exit 77); exit 77; }; }
10167                else
10168                  ac_cv_sizeof_size_t=0
10169                fi ;;
10170 esac
10171 else
10172   cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178 $ac_includes_default
10179                 typedef size_t ac__type_sizeof_;
10180
10181 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10182 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10183 #include <stdio.h>
10184 #include <stdlib.h>
10185 int
10186 main ()
10187 {
10188
10189   FILE *f = fopen ("conftest.val", "w");
10190   if (! f)
10191     return 1;
10192   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10193     {
10194       long int i = longval ();
10195       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10196         return 1;
10197       fprintf (f, "%ld\n", i);
10198     }
10199   else
10200     {
10201       unsigned long int i = ulongval ();
10202       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10203         return 1;
10204       fprintf (f, "%lu\n", i);
10205     }
10206   return ferror (f) || fclose (f) != 0;
10207
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 rm -f conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216   *) ac_try_echo=$ac_try;;
10217 esac
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219   (eval "$ac_link") 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10223   { (case "(($ac_try" in
10224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225   *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228   (eval "$ac_try") 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   ac_cv_sizeof_size_t=`cat conftest.val`
10233 else
10234   echo "$as_me: program exited with status $ac_status" >&5
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10237
10238 ( exit $ac_status )
10239 if test "$ac_cv_type_size_t" = yes; then
10240                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10241 See \`config.log' for more details." >&5
10242 echo "$as_me: error: cannot compute sizeof (size_t)
10243 See \`config.log' for more details." >&2;}
10244    { (exit 77); exit 77; }; }
10245                else
10246                  ac_cv_sizeof_size_t=0
10247                fi
10248 fi
10249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10250 fi
10251 rm -f conftest.val
10252 fi
10253 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10254 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10255
10256
10257
10258 cat >>confdefs.h <<_ACEOF
10259 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10260 _ACEOF
10261
10262
10263 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10264 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10265 if test "${ac_cv_type_ssize_t+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 $ac_includes_default
10275 typedef ssize_t ac__type_new_;
10276 int
10277 main ()
10278 {
10279 if ((ac__type_new_ *) 0)
10280   return 0;
10281 if (sizeof (ac__type_new_))
10282   return 0;
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (ac_try="$ac_compile"
10289 case "(($ac_try" in
10290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291   *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294   (eval "$ac_compile") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10302   { (case "(($ac_try" in
10303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304   *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307   (eval "$ac_try") 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; } &&
10311          { ac_try='test -s conftest.$ac_objext'
10312   { (case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_try") 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); }; }; then
10321   ac_cv_type_ssize_t=yes
10322 else
10323   echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326         ac_cv_type_ssize_t=no
10327 fi
10328
10329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10330 fi
10331 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10332 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10333
10334 # The cast to long int works around a bug in the HP C Compiler
10335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10337 # This bug is HP SR number 8606223364.
10338 { echo "$as_me:$LINENO: checking size of ssize_t" >&5
10339 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
10340 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343   if test "$cross_compiling" = yes; then
10344   # Depending upon the size, compute the lo and hi bounds.
10345 cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h.  */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h.  */
10351 $ac_includes_default
10352                 typedef ssize_t ac__type_sizeof_;
10353
10354 int
10355 main ()
10356 {
10357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10358 test_array [0] = 0
10359
10360   ;
10361   return 0;
10362 }
10363 _ACEOF
10364 rm -f conftest.$ac_objext
10365 if { (ac_try="$ac_compile"
10366 case "(($ac_try" in
10367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368   *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371   (eval "$ac_compile") 2>conftest.er1
10372   ac_status=$?
10373   grep -v '^ *+' conftest.er1 >conftest.err
10374   rm -f conftest.er1
10375   cat conftest.err >&5
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); } &&
10378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10379   { (case "(($ac_try" in
10380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381   *) ac_try_echo=$ac_try;;
10382 esac
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384   (eval "$ac_try") 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; } &&
10388          { ac_try='test -s conftest.$ac_objext'
10389   { (case "(($ac_try" in
10390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391   *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394   (eval "$ac_try") 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; }; then
10398   ac_lo=0 ac_mid=0
10399   while :; do
10400     cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h.  */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h.  */
10406 $ac_includes_default
10407                 typedef ssize_t ac__type_sizeof_;
10408
10409 int
10410 main ()
10411 {
10412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10413 test_array [0] = 0
10414
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest.$ac_objext
10420 if { (ac_try="$ac_compile"
10421 case "(($ac_try" in
10422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423   *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426   (eval "$ac_compile") 2>conftest.er1
10427   ac_status=$?
10428   grep -v '^ *+' conftest.er1 >conftest.err
10429   rm -f conftest.er1
10430   cat conftest.err >&5
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } &&
10433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434   { (case "(($ac_try" in
10435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436   *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439   (eval "$ac_try") 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); }; } &&
10443          { ac_try='test -s conftest.$ac_objext'
10444   { (case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_try") 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; }; then
10453   ac_hi=$ac_mid; break
10454 else
10455   echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458         ac_lo=`expr $ac_mid + 1`
10459                         if test $ac_lo -le $ac_mid; then
10460                           ac_lo= ac_hi=
10461                           break
10462                         fi
10463                         ac_mid=`expr 2 '*' $ac_mid + 1`
10464 fi
10465
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467   done
10468 else
10469   echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472         cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h.  */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h.  */
10478 $ac_includes_default
10479                 typedef ssize_t ac__type_sizeof_;
10480
10481 int
10482 main ()
10483 {
10484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10485 test_array [0] = 0
10486
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498   (eval "$ac_compile") 2>conftest.er1
10499   ac_status=$?
10500   grep -v '^ *+' conftest.er1 >conftest.err
10501   rm -f conftest.er1
10502   cat conftest.err >&5
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); } &&
10505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506   { (case "(($ac_try" in
10507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508   *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511   (eval "$ac_try") 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; } &&
10515          { ac_try='test -s conftest.$ac_objext'
10516   { (case "(($ac_try" in
10517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518   *) ac_try_echo=$ac_try;;
10519 esac
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521   (eval "$ac_try") 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); }; }; then
10525   ac_hi=-1 ac_mid=-1
10526   while :; do
10527     cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h.  */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h.  */
10533 $ac_includes_default
10534                 typedef ssize_t ac__type_sizeof_;
10535
10536 int
10537 main ()
10538 {
10539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10540 test_array [0] = 0
10541
10542   ;
10543   return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (ac_try="$ac_compile"
10548 case "(($ac_try" in
10549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550   *) ac_try_echo=$ac_try;;
10551 esac
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553   (eval "$ac_compile") 2>conftest.er1
10554   ac_status=$?
10555   grep -v '^ *+' conftest.er1 >conftest.err
10556   rm -f conftest.er1
10557   cat conftest.err >&5
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } &&
10560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10561   { (case "(($ac_try" in
10562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563   *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566   (eval "$ac_try") 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; } &&
10570          { ac_try='test -s conftest.$ac_objext'
10571   { (case "(($ac_try" in
10572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573   *) ac_try_echo=$ac_try;;
10574 esac
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576   (eval "$ac_try") 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); }; }; then
10580   ac_lo=$ac_mid; break
10581 else
10582   echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585         ac_hi=`expr '(' $ac_mid ')' - 1`
10586                         if test $ac_mid -le $ac_hi; then
10587                           ac_lo= ac_hi=
10588                           break
10589                         fi
10590                         ac_mid=`expr 2 '*' $ac_mid`
10591 fi
10592
10593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594   done
10595 else
10596   echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10598
10599         ac_lo= ac_hi=
10600 fi
10601
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 fi
10604
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 # Binary search between lo and hi bounds.
10607 while test "x$ac_lo" != "x$ac_hi"; do
10608   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10609   cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615 $ac_includes_default
10616                 typedef ssize_t ac__type_sizeof_;
10617
10618 int
10619 main ()
10620 {
10621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10622 test_array [0] = 0
10623
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_compile") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } &&
10642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643   { (case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_try") 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest.$ac_objext'
10653   { (case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658   (eval "$ac_try") 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_hi=$ac_mid
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667         ac_lo=`expr '(' $ac_mid ')' + 1`
10668 fi
10669
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 done
10672 case $ac_lo in
10673 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
10674 '') if test "$ac_cv_type_ssize_t" = yes; then
10675                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10676 See \`config.log' for more details." >&5
10677 echo "$as_me: error: cannot compute sizeof (ssize_t)
10678 See \`config.log' for more details." >&2;}
10679    { (exit 77); exit 77; }; }
10680                else
10681                  ac_cv_sizeof_ssize_t=0
10682                fi ;;
10683 esac
10684 else
10685   cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h.  */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h.  */
10691 $ac_includes_default
10692                 typedef ssize_t ac__type_sizeof_;
10693
10694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10696 #include <stdio.h>
10697 #include <stdlib.h>
10698 int
10699 main ()
10700 {
10701
10702   FILE *f = fopen ("conftest.val", "w");
10703   if (! f)
10704     return 1;
10705   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10706     {
10707       long int i = longval ();
10708       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10709         return 1;
10710       fprintf (f, "%ld\n", i);
10711     }
10712   else
10713     {
10714       unsigned long int i = ulongval ();
10715       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10716         return 1;
10717       fprintf (f, "%lu\n", i);
10718     }
10719   return ferror (f) || fclose (f) != 0;
10720
10721   ;
10722   return 0;
10723 }
10724 _ACEOF
10725 rm -f conftest$ac_exeext
10726 if { (ac_try="$ac_link"
10727 case "(($ac_try" in
10728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729   *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732   (eval "$ac_link") 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10736   { (case "(($ac_try" in
10737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738   *) ac_try_echo=$ac_try;;
10739 esac
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741   (eval "$ac_try") 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; }; then
10745   ac_cv_sizeof_ssize_t=`cat conftest.val`
10746 else
10747   echo "$as_me: program exited with status $ac_status" >&5
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 ( exit $ac_status )
10752 if test "$ac_cv_type_ssize_t" = yes; then
10753                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10754 See \`config.log' for more details." >&5
10755 echo "$as_me: error: cannot compute sizeof (ssize_t)
10756 See \`config.log' for more details." >&2;}
10757    { (exit 77); exit 77; }; }
10758                else
10759                  ac_cv_sizeof_ssize_t=0
10760                fi
10761 fi
10762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10763 fi
10764 rm -f conftest.val
10765 fi
10766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
10767 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
10768
10769
10770
10771 cat >>confdefs.h <<_ACEOF
10772 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
10773 _ACEOF
10774
10775
10776
10777 { echo "$as_me:$LINENO: checking for intptr_t" >&5
10778 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
10779 if test "${ac_cv_type_intptr_t+set}" = set; then
10780   echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10782   cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h.  */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h.  */
10788 $ac_includes_default
10789 typedef intptr_t ac__type_new_;
10790 int
10791 main ()
10792 {
10793 if ((ac__type_new_ *) 0)
10794   return 0;
10795 if (sizeof (ac__type_new_))
10796   return 0;
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (ac_try="$ac_compile"
10803 case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_compile") 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } &&
10815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10816   { (case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821   (eval "$ac_try") 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; } &&
10825          { ac_try='test -s conftest.$ac_objext'
10826   { (case "(($ac_try" in
10827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828   *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831   (eval "$ac_try") 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; }; then
10835   ac_cv_type_intptr_t=yes
10836 else
10837   echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840         ac_cv_type_intptr_t=no
10841 fi
10842
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 fi
10845 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
10846 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
10847 if test $ac_cv_type_intptr_t = yes; then
10848   :
10849 else
10850
10851 cat >>confdefs.h <<_ACEOF
10852 #define intptr_t unsigned long long
10853 _ACEOF
10854
10855 fi
10856
10857 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10858 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10859 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862   cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868 $ac_includes_default
10869 typedef ptrdiff_t ac__type_new_;
10870 int
10871 main ()
10872 {
10873 if ((ac__type_new_ *) 0)
10874   return 0;
10875 if (sizeof (ac__type_new_))
10876   return 0;
10877   ;
10878   return 0;
10879 }
10880 _ACEOF
10881 rm -f conftest.$ac_objext
10882 if { (ac_try="$ac_compile"
10883 case "(($ac_try" in
10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885   *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888   (eval "$ac_compile") 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10896   { (case "(($ac_try" in
10897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898   *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901   (eval "$ac_try") 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; } &&
10905          { ac_try='test -s conftest.$ac_objext'
10906   { (case "(($ac_try" in
10907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908   *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911   (eval "$ac_try") 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; }; then
10915   ac_cv_type_ptrdiff_t=yes
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920         ac_cv_type_ptrdiff_t=no
10921 fi
10922
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10924 fi
10925 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10926 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10927 if test $ac_cv_type_ptrdiff_t = yes; then
10928   :
10929 else
10930
10931 cat >>confdefs.h <<_ACEOF
10932 #define ptrdiff_t unsigned long long
10933 _ACEOF
10934
10935 fi
10936
10937
10938 if test x"$ac_cv_type_long_long" != x"yes";then
10939         { { echo "$as_me:$LINENO: error: LIBREPLACE needs type 'long long'" >&5
10940 echo "$as_me: error: LIBREPLACE needs type 'long long'" >&2;}
10941    { (exit 1); exit 1; }; }
10942 fi
10943 if test $ac_cv_sizeof_long_long -lt 8;then
10944         { { echo "$as_me:$LINENO: error: LIBREPLACE needs sizeof(long long) >= 8" >&5
10945 echo "$as_me: error: LIBREPLACE needs sizeof(long long) >= 8" >&2;}
10946    { (exit 1); exit 1; }; }
10947 fi
10948
10949 ############################################
10950 # check if the compiler can do immediate structures
10951
10952 { echo "$as_me:$LINENO: checking for immediate structures" >&5
10953 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6; }
10954 if test "${libreplace_cv_immediate_structures+set}" = set; then
10955   echo $ECHO_N "(cached) $ECHO_C" >&6
10956 else
10957
10958         cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h.  */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h.  */
10964
10965                 #include <stdio.h>
10966
10967 int
10968 main ()
10969 {
10970
10971                 typedef struct {unsigned x;} FOOBAR;
10972                 #define X_FOOBAR(x) ((FOOBAR) { x })
10973                 #define FOO_ONE X_FOOBAR(1)
10974                 FOOBAR f = FOO_ONE;
10975                 static const struct {
10976                         FOOBAR y;
10977                 } f2[] = {
10978                         {FOO_ONE}
10979                 };
10980
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_compile") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000   { (case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005   (eval "$ac_try") 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; } &&
11009          { ac_try='test -s conftest.$ac_objext'
11010   { (case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_try") 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   libreplace_cv_immediate_structures=yes
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024         libreplace_cv_immediate_structures=no
11025 fi
11026
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028
11029 fi
11030 { echo "$as_me:$LINENO: result: $libreplace_cv_immediate_structures" >&5
11031 echo "${ECHO_T}$libreplace_cv_immediate_structures" >&6; }
11032 if test x"$libreplace_cv_immediate_structures" = x"yes"; then
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_IMMEDIATE_STRUCTURES 1
11036 _ACEOF
11037
11038 fi
11039
11040
11041 echo "LIBREPLACE_CC_CHECKS: END"
11042
11043
11044
11045 echo "LIBREPLACE_BROKEN_CHECKS: START"
11046
11047 libreplacedir=""
11048 for d in "$srcdir" "$srcdir/lib/replace" "$srcdir/libreplace" "$srcdir/../libreplace" "$srcdir/../replace"; do
11049         if test -f "$d/replace.c"; then
11050                 libreplacedir="$d"
11051
11052                 break;
11053         fi
11054 done
11055 LIBREPLACEOBJ="replace.o"
11056
11057
11058 LIBREPLACEOBJ="${LIBREPLACEOBJ} snprintf.o"
11059
11060 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11061 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11062 if test "${ac_cv_type_signal+set}" = set; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065   cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h.  */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h.  */
11071 #include <sys/types.h>
11072 #include <signal.h>
11073
11074 int
11075 main ()
11076 {
11077 return *(signal (0, 0)) (0) == 1;
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext
11083 if { (ac_try="$ac_compile"
11084 case "(($ac_try" in
11085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086   *) ac_try_echo=$ac_try;;
11087 esac
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089   (eval "$ac_compile") 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
11093   cat conftest.err >&5
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097   { (case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102   (eval "$ac_try") 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }; } &&
11106          { ac_try='test -s conftest.$ac_objext'
11107   { (case "(($ac_try" in
11108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109   *) ac_try_echo=$ac_try;;
11110 esac
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112   (eval "$ac_try") 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; }; then
11116   ac_cv_type_signal=int
11117 else
11118   echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121         ac_cv_type_signal=void
11122 fi
11123
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 fi
11126 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11127 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11128
11129 cat >>confdefs.h <<_ACEOF
11130 #define RETSIGTYPE $ac_cv_type_signal
11131 _ACEOF
11132
11133
11134 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11135 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11136 if test "${ac_cv_type_uid_t+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h.  */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h.  */
11145 #include <sys/types.h>
11146
11147 _ACEOF
11148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11149   $EGREP "uid_t" >/dev/null 2>&1; then
11150   ac_cv_type_uid_t=yes
11151 else
11152   ac_cv_type_uid_t=no
11153 fi
11154 rm -f conftest*
11155
11156 fi
11157 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11158 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11159 if test $ac_cv_type_uid_t = no; then
11160
11161 cat >>confdefs.h <<\_ACEOF
11162 #define uid_t int
11163 _ACEOF
11164
11165
11166 cat >>confdefs.h <<\_ACEOF
11167 #define gid_t int
11168 _ACEOF
11169
11170 fi
11171
11172 { echo "$as_me:$LINENO: checking for mode_t" >&5
11173 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11174 if test "${ac_cv_type_mode_t+set}" = set; then
11175   echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177   cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h.  */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h.  */
11183 $ac_includes_default
11184 typedef mode_t ac__type_new_;
11185 int
11186 main ()
11187 {
11188 if ((ac__type_new_ *) 0)
11189   return 0;
11190 if (sizeof (ac__type_new_))
11191   return 0;
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_compile") 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } &&
11210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211   { (case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216   (eval "$ac_try") 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; } &&
11220          { ac_try='test -s conftest.$ac_objext'
11221   { (case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_try") 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; }; then
11230   ac_cv_type_mode_t=yes
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235         ac_cv_type_mode_t=no
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 fi
11240 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11241 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11242 if test $ac_cv_type_mode_t = yes; then
11243   :
11244 else
11245
11246 cat >>confdefs.h <<_ACEOF
11247 #define mode_t int
11248 _ACEOF
11249
11250 fi
11251
11252 { echo "$as_me:$LINENO: checking for off_t" >&5
11253 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11254 if test "${ac_cv_type_off_t+set}" = set; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 $ac_includes_default
11264 typedef off_t ac__type_new_;
11265 int
11266 main ()
11267 {
11268 if ((ac__type_new_ *) 0)
11269   return 0;
11270 if (sizeof (ac__type_new_))
11271   return 0;
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_compile") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291   { (case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_try") 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); }; } &&
11300          { ac_try='test -s conftest.$ac_objext'
11301   { (case "(($ac_try" in
11302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303   *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306   (eval "$ac_try") 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   ac_cv_type_off_t=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315         ac_cv_type_off_t=no
11316 fi
11317
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 fi
11320 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11321 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11322 if test $ac_cv_type_off_t = yes; then
11323   :
11324 else
11325
11326 cat >>confdefs.h <<_ACEOF
11327 #define off_t long int
11328 _ACEOF
11329
11330 fi
11331
11332 { echo "$as_me:$LINENO: checking for size_t" >&5
11333 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11334 if test "${ac_cv_type_size_t+set}" = set; then
11335   echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337   cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343 $ac_includes_default
11344 typedef size_t ac__type_new_;
11345 int
11346 main ()
11347 {
11348 if ((ac__type_new_ *) 0)
11349   return 0;
11350 if (sizeof (ac__type_new_))
11351   return 0;
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360   *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363   (eval "$ac_compile") 2>conftest.er1
11364   ac_status=$?
11365   grep -v '^ *+' conftest.er1 >conftest.err
11366   rm -f conftest.er1
11367   cat conftest.err >&5
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); } &&
11370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11371   { (case "(($ac_try" in
11372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373   *) ac_try_echo=$ac_try;;
11374 esac
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376   (eval "$ac_try") 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; } &&
11380          { ac_try='test -s conftest.$ac_objext'
11381   { (case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386   (eval "$ac_try") 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; }; then
11390   ac_cv_type_size_t=yes
11391 else
11392   echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11394
11395         ac_cv_type_size_t=no
11396 fi
11397
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399 fi
11400 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11401 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11402 if test $ac_cv_type_size_t = yes; then
11403   :
11404 else
11405
11406 cat >>confdefs.h <<_ACEOF
11407 #define size_t unsigned int
11408 _ACEOF
11409
11410 fi
11411
11412 { echo "$as_me:$LINENO: checking for pid_t" >&5
11413 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11414 if test "${ac_cv_type_pid_t+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h.  */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h.  */
11423 $ac_includes_default
11424 typedef pid_t ac__type_new_;
11425 int
11426 main ()
11427 {
11428 if ((ac__type_new_ *) 0)
11429   return 0;
11430 if (sizeof (ac__type_new_))
11431   return 0;
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (ac_try="$ac_compile"
11438 case "(($ac_try" in
11439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440   *) ac_try_echo=$ac_try;;
11441 esac
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443   (eval "$ac_compile") 2>conftest.er1
11444   ac_status=$?
11445   grep -v '^ *+' conftest.er1 >conftest.err
11446   rm -f conftest.er1
11447   cat conftest.err >&5
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); } &&
11450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11451   { (case "(($ac_try" in
11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453   *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456   (eval "$ac_try") 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); }; } &&
11460          { ac_try='test -s conftest.$ac_objext'
11461   { (case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_try") 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; }; then
11470   ac_cv_type_pid_t=yes
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475         ac_cv_type_pid_t=no
11476 fi
11477
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479 fi
11480 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11481 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11482 if test $ac_cv_type_pid_t = yes; then
11483   :
11484 else
11485
11486 cat >>confdefs.h <<_ACEOF
11487 #define pid_t int
11488 _ACEOF
11489
11490 fi
11491
11492 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11493 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
11494 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 $ac_includes_default
11504 int
11505 main ()
11506 {
11507 static struct stat ac_aggr;
11508 if (ac_aggr.st_rdev)
11509 return 0;
11510   ;
11511   return 0;
11512 }
11513 _ACEOF
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_compile") 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } &&
11528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11529   { (case "(($ac_try" in
11530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531   *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534   (eval "$ac_try") 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; } &&
11538          { ac_try='test -s conftest.$ac_objext'
11539   { (case "(($ac_try" in
11540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541   *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544   (eval "$ac_try") 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; }; then
11548   ac_cv_member_struct_stat_st_rdev=yes
11549 else
11550   echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553         cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559 $ac_includes_default
11560 int
11561 main ()
11562 {
11563 static struct stat ac_aggr;
11564 if (sizeof ac_aggr.st_rdev)
11565 return 0;
11566   ;
11567   return 0;
11568 }
11569 _ACEOF
11570 rm -f conftest.$ac_objext
11571 if { (ac_try="$ac_compile"
11572 case "(($ac_try" in
11573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574   *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577   (eval "$ac_compile") 2>conftest.er1
11578   ac_status=$?
11579   grep -v '^ *+' conftest.er1 >conftest.err
11580   rm -f conftest.er1
11581   cat conftest.err >&5
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } &&
11584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585   { (case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_try") 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; } &&
11594          { ac_try='test -s conftest.$ac_objext'
11595   { (case "(($ac_try" in
11596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597   *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600   (eval "$ac_try") 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   ac_cv_member_struct_stat_st_rdev=yes
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609         ac_cv_member_struct_stat_st_rdev=no
11610 fi
11611
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 fi
11614
11615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11616 fi
11617 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11618 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
11619 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11620
11621 cat >>confdefs.h <<_ACEOF
11622 #define HAVE_STRUCT_STAT_ST_RDEV 1
11623 _ACEOF
11624
11625
11626 cat >>confdefs.h <<\_ACEOF
11627 #define HAVE_ST_RDEV 1
11628 _ACEOF
11629
11630 fi
11631
11632
11633 { echo "$as_me:$LINENO: checking for ino_t" >&5
11634 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
11635 if test "${ac_cv_type_ino_t+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 $ac_includes_default
11645 typedef ino_t ac__type_new_;
11646 int
11647 main ()
11648 {
11649 if ((ac__type_new_ *) 0)
11650   return 0;
11651 if (sizeof (ac__type_new_))
11652   return 0;
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext
11658 if { (ac_try="$ac_compile"
11659 case "(($ac_try" in
11660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661   *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664   (eval "$ac_compile") 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672   { (case "(($ac_try" in
11673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674   *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677   (eval "$ac_try") 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; } &&
11681          { ac_try='test -s conftest.$ac_objext'
11682   { (case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_try") 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; }; then
11691   ac_cv_type_ino_t=yes
11692 else
11693   echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696         ac_cv_type_ino_t=no
11697 fi
11698
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700 fi
11701 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11702 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
11703 if test $ac_cv_type_ino_t = yes; then
11704   :
11705 else
11706
11707 cat >>confdefs.h <<_ACEOF
11708 #define ino_t unsigned
11709 _ACEOF
11710
11711 fi
11712
11713 { echo "$as_me:$LINENO: checking for loff_t" >&5
11714 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6; }
11715 if test "${ac_cv_type_loff_t+set}" = set; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718   cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724 $ac_includes_default
11725 typedef loff_t ac__type_new_;
11726 int
11727 main ()
11728 {
11729 if ((ac__type_new_ *) 0)
11730   return 0;
11731 if (sizeof (ac__type_new_))
11732   return 0;
11733   ;
11734   return 0;
11735 }
11736 _ACEOF
11737 rm -f conftest.$ac_objext
11738 if { (ac_try="$ac_compile"
11739 case "(($ac_try" in
11740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741   *) ac_try_echo=$ac_try;;
11742 esac
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744   (eval "$ac_compile") 2>conftest.er1
11745   ac_status=$?
11746   grep -v '^ *+' conftest.er1 >conftest.err
11747   rm -f conftest.er1
11748   cat conftest.err >&5
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); } &&
11751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752   { (case "(($ac_try" in
11753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754   *) ac_try_echo=$ac_try;;
11755 esac
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757   (eval "$ac_try") 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); }; } &&
11761          { ac_try='test -s conftest.$ac_objext'
11762   { (case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_try") 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   ac_cv_type_loff_t=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776         ac_cv_type_loff_t=no
11777 fi
11778
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 fi
11781 { echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
11782 echo "${ECHO_T}$ac_cv_type_loff_t" >&6; }
11783 if test $ac_cv_type_loff_t = yes; then
11784   :
11785 else
11786
11787 cat >>confdefs.h <<_ACEOF
11788 #define loff_t off_t
11789 _ACEOF
11790
11791 fi
11792
11793 { echo "$as_me:$LINENO: checking for offset_t" >&5
11794 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6; }
11795 if test "${ac_cv_type_offset_t+set}" = set; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798   cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h.  */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h.  */
11804 $ac_includes_default
11805 typedef offset_t ac__type_new_;
11806 int
11807 main ()
11808 {
11809 if ((ac__type_new_ *) 0)
11810   return 0;
11811 if (sizeof (ac__type_new_))
11812   return 0;
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (ac_try="$ac_compile"
11819 case "(($ac_try" in
11820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821   *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824   (eval "$ac_compile") 2>conftest.er1
11825   ac_status=$?
11826   grep -v '^ *+' conftest.er1 >conftest.err
11827   rm -f conftest.er1
11828   cat conftest.err >&5
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); } &&
11831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11832   { (case "(($ac_try" in
11833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834   *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837   (eval "$ac_try") 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; } &&
11841          { ac_try='test -s conftest.$ac_objext'
11842   { (case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_try") 2>&5
11848   ac_status=$?
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); }; }; then
11851   ac_cv_type_offset_t=yes
11852 else
11853   echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856         ac_cv_type_offset_t=no
11857 fi
11858
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 fi
11861 { echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
11862 echo "${ECHO_T}$ac_cv_type_offset_t" >&6; }
11863 if test $ac_cv_type_offset_t = yes; then
11864   :
11865 else
11866
11867 cat >>confdefs.h <<_ACEOF
11868 #define offset_t loff_t
11869 _ACEOF
11870
11871 fi
11872
11873
11874 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11875 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11876 if test "${ac_cv_func_memcmp_working+set}" = set; then
11877   echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879   if test "$cross_compiling" = yes; then
11880   ac_cv_func_memcmp_working=no
11881 else
11882   cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 $ac_includes_default
11889 int
11890 main ()
11891 {
11892
11893   /* Some versions of memcmp are not 8-bit clean.  */
11894   char c0 = '\100', c1 = '\200', c2 = '\201';
11895   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11896     return 1;
11897
11898   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11899      or more and with at least one buffer not starting on a 4-byte boundary.
11900      William Lewis provided this test program.   */
11901   {
11902     char foo[21];
11903     char bar[21];
11904     int i;
11905     for (i = 0; i < 4; i++)
11906       {
11907         char *a = foo + i;
11908         char *b = bar + i;
11909         strcpy (a, "--------01111111");
11910         strcpy (b, "--------10000000");
11911         if (memcmp (a, b, 16) >= 0)
11912           return 1;
11913       }
11914     return 0;
11915   }
11916
11917   ;
11918   return 0;
11919 }
11920 _ACEOF
11921 rm -f conftest$ac_exeext
11922 if { (ac_try="$ac_link"
11923 case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_link") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11932   { (case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_try") 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; }; then
11941   ac_cv_func_memcmp_working=yes
11942 else
11943   echo "$as_me: program exited with status $ac_status" >&5
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ( exit $ac_status )
11948 ac_cv_func_memcmp_working=no
11949 fi
11950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11951 fi
11952
11953
11954 fi
11955 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11956 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11957 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11958   *" memcmp.$ac_objext "* ) ;;
11959   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11960  ;;
11961 esac
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975 for ac_func in pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp
11976 do
11977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11991 #define $ac_func innocuous_$ac_func
11992
11993 /* System header to define __stub macros and hopefully few prototypes,
11994     which can conflict with char $ac_func (); below.
11995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996     <limits.h> exists even on freestanding compilers.  */
11997
11998 #ifdef __STDC__
11999 # include <limits.h>
12000 #else
12001 # include <assert.h>
12002 #endif
12003
12004 #undef $ac_func
12005
12006 /* Override any GCC internal prototype to avoid an error.
12007    Use char because int might match the return type of a GCC
12008    builtin and then its argument prototype would still apply.  */
12009 #ifdef __cplusplus
12010 extern "C"
12011 #endif
12012 char $ac_func ();
12013 /* The GNU C library defines this for functions which it implements
12014     to always fail with ENOSYS.  Some functions are actually named
12015     something starting with __ and the normal name is an alias.  */
12016 #if defined __stub_$ac_func || defined __stub___$ac_func
12017 choke me
12018 #endif
12019
12020 int
12021 main ()
12022 {
12023 return $ac_func ();
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_link") 2>conftest.er1
12036   ac_status=$?
12037   grep -v '^ *+' conftest.er1 >conftest.err
12038   rm -f conftest.er1
12039   cat conftest.err >&5
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } &&
12042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12043   { (case "(($ac_try" in
12044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045   *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048   (eval "$ac_try") 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; } &&
12052          { ac_try='test -s conftest$ac_exeext'
12053   { (case "(($ac_try" in
12054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055   *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058   (eval "$ac_try") 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); }; }; then
12062   eval "$as_ac_var=yes"
12063 else
12064   echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067         eval "$as_ac_var=no"
12068 fi
12069
12070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12071       conftest$ac_exeext conftest.$ac_ext
12072 fi
12073 ac_res=`eval echo '${'$as_ac_var'}'`
12074                { echo "$as_me:$LINENO: result: $ac_res" >&5
12075 echo "${ECHO_T}$ac_res" >&6; }
12076 if test `eval echo '${'$as_ac_var'}'` = yes; then
12077   cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12079 _ACEOF
12080
12081 fi
12082 done
12083
12084
12085
12086
12087 for ac_header in stdbool.h sys/select.h
12088 do
12089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 fi
12096 ac_res=`eval echo '${'$as_ac_Header'}'`
12097                { echo "$as_me:$LINENO: result: $ac_res" >&5
12098 echo "${ECHO_T}$ac_res" >&6; }
12099 else
12100   # Is the header compilable?
12101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h.  */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h.  */
12109 $ac_includes_default
12110 #include <$ac_header>
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (ac_try="$ac_compile"
12114 case "(($ac_try" in
12115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116   *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119   (eval "$ac_compile") 2>conftest.er1
12120   ac_status=$?
12121   grep -v '^ *+' conftest.er1 >conftest.err
12122   rm -f conftest.er1
12123   cat conftest.err >&5
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); } &&
12126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127   { (case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_try") 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; } &&
12136          { ac_try='test -s conftest.$ac_objext'
12137   { (case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142   (eval "$ac_try") 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }; }; then
12146   ac_header_compiler=yes
12147 else
12148   echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12150
12151         ac_header_compiler=no
12152 fi
12153
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12156 echo "${ECHO_T}$ac_header_compiler" >&6; }
12157
12158 # Is the header present?
12159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167 #include <$ac_header>
12168 _ACEOF
12169 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12182   if test -s conftest.err; then
12183     ac_cpp_err=$ac_c_preproc_warn_flag
12184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12185   else
12186     ac_cpp_err=
12187   fi
12188 else
12189   ac_cpp_err=yes
12190 fi
12191 if test -z "$ac_cpp_err"; then
12192   ac_header_preproc=yes
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197   ac_header_preproc=no
12198 fi
12199
12200 rm -f conftest.err conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6; }
12203
12204 # So?  What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206   yes:no: )
12207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12211     ac_header_preproc=yes
12212     ;;
12213   no:yes:* )
12214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12226
12227     ;;
12228 esac
12229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12232   echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234   eval "$as_ac_Header=\$ac_header_preproc"
12235 fi
12236 ac_res=`eval echo '${'$as_ac_Header'}'`
12237                { echo "$as_me:$LINENO: result: $ac_res" >&5
12238 echo "${ECHO_T}$ac_res" >&6; }
12239
12240 fi
12241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12242   cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12244 _ACEOF
12245
12246 fi
12247
12248 done
12249
12250
12251
12252 for ac_header in sys/epoll.h
12253 do
12254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 fi
12261 ac_res=`eval echo '${'$as_ac_Header'}'`
12262                { echo "$as_me:$LINENO: result: $ac_res" >&5
12263 echo "${ECHO_T}$ac_res" >&6; }
12264 else
12265   # Is the header compilable?
12266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h.  */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h.  */
12274 $ac_includes_default
12275 #include <$ac_header>
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (ac_try="$ac_compile"
12279 case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_compile") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } &&
12291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12292   { (case "(($ac_try" in
12293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294   *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297   (eval "$ac_try") 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; } &&
12301          { ac_try='test -s conftest.$ac_objext'
12302   { (case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307   (eval "$ac_try") 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; }; then
12311   ac_header_compiler=yes
12312 else
12313   echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316         ac_header_compiler=no
12317 fi
12318
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12321 echo "${ECHO_T}$ac_header_compiler" >&6; }
12322
12323 # Is the header present?
12324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h.  */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h.  */
12332 #include <$ac_header>
12333 _ACEOF
12334 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12347   if test -s conftest.err; then
12348     ac_cpp_err=$ac_c_preproc_warn_flag
12349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12350   else
12351     ac_cpp_err=
12352   fi
12353 else
12354   ac_cpp_err=yes
12355 fi
12356 if test -z "$ac_cpp_err"; then
12357   ac_header_preproc=yes
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362   ac_header_preproc=no
12363 fi
12364
12365 rm -f conftest.err conftest.$ac_ext
12366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12367 echo "${ECHO_T}$ac_header_preproc" >&6; }
12368
12369 # So?  What about this header?
12370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12371   yes:no: )
12372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12376     ac_header_preproc=yes
12377     ;;
12378   no:yes:* )
12379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12391
12392     ;;
12393 esac
12394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   eval "$as_ac_Header=\$ac_header_preproc"
12400 fi
12401 ac_res=`eval echo '${'$as_ac_Header'}'`
12402                { echo "$as_me:$LINENO: result: $ac_res" >&5
12403 echo "${ECHO_T}$ac_res" >&6; }
12404
12405 fi
12406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12407   cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12409 _ACEOF
12410
12411 fi
12412
12413 done
12414
12415
12416 for ac_func in epoll_create
12417 do
12418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12432 #define $ac_func innocuous_$ac_func
12433
12434 /* System header to define __stub macros and hopefully few prototypes,
12435     which can conflict with char $ac_func (); below.
12436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437     <limits.h> exists even on freestanding compilers.  */
12438
12439 #ifdef __STDC__
12440 # include <limits.h>
12441 #else
12442 # include <assert.h>
12443 #endif
12444
12445 #undef $ac_func
12446
12447 /* Override any GCC internal prototype to avoid an error.
12448    Use char because int might match the return type of a GCC
12449    builtin and then its argument prototype would still apply.  */
12450 #ifdef __cplusplus
12451 extern "C"
12452 #endif
12453 char $ac_func ();
12454 /* The GNU C library defines this for functions which it implements
12455     to always fail with ENOSYS.  Some functions are actually named
12456     something starting with __ and the normal name is an alias.  */
12457 #if defined __stub_$ac_func || defined __stub___$ac_func
12458 choke me
12459 #endif
12460
12461 int
12462 main ()
12463 {
12464 return $ac_func ();
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473   *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476   (eval "$ac_link") 2>conftest.er1
12477   ac_status=$?
12478   grep -v '^ *+' conftest.er1 >conftest.err
12479   rm -f conftest.er1
12480   cat conftest.err >&5
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); } &&
12483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12484   { (case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_try") 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); }; } &&
12493          { ac_try='test -s conftest$ac_exeext'
12494   { (case "(($ac_try" in
12495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496   *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499   (eval "$ac_try") 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; }; then
12503   eval "$as_ac_var=yes"
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508         eval "$as_ac_var=no"
12509 fi
12510
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512       conftest$ac_exeext conftest.$ac_ext
12513 fi
12514 ac_res=`eval echo '${'$as_ac_var'}'`
12515                { echo "$as_me:$LINENO: result: $ac_res" >&5
12516 echo "${ECHO_T}$ac_res" >&6; }
12517 if test `eval echo '${'$as_ac_var'}'` = yes; then
12518   cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12520 _ACEOF
12521
12522 fi
12523 done
12524
12525
12526 { echo "$as_me:$LINENO: checking for bool" >&5
12527 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
12528 if test "${ac_cv_type_bool+set}" = set; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537
12538 $ac_includes_default
12539 #ifdef HAVE_STDBOOL_H
12540 #include <stdbool.h>
12541 #endif
12542
12543
12544 typedef bool ac__type_new_;
12545 int
12546 main ()
12547 {
12548 if ((ac__type_new_ *) 0)
12549   return 0;
12550 if (sizeof (ac__type_new_))
12551   return 0;
12552   ;
12553   return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560   *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563   (eval "$ac_compile") 2>conftest.er1
12564   ac_status=$?
12565   grep -v '^ *+' conftest.er1 >conftest.err
12566   rm -f conftest.er1
12567   cat conftest.err >&5
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } &&
12570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571   { (case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_try") 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; } &&
12580          { ac_try='test -s conftest.$ac_objext'
12581   { (case "(($ac_try" in
12582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583   *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586   (eval "$ac_try") 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_cv_type_bool=yes
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595         ac_cv_type_bool=no
12596 fi
12597
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599 fi
12600 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
12601 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
12602 if test $ac_cv_type_bool = yes; then
12603
12604 cat >>confdefs.h <<\_ACEOF
12605 #define HAVE_BOOL 1
12606 _ACEOF
12607
12608 fi
12609
12610
12611 { echo "$as_me:$LINENO: checking for _Bool" >&5
12612 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12613 if test "${ac_cv_type__Bool+set}" = set; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622
12623 $ac_includes_default
12624 #ifdef HAVE_STDBOOL_H
12625 #include <stdbool.h>
12626 #endif
12627
12628
12629 typedef _Bool ac__type_new_;
12630 int
12631 main ()
12632 {
12633 if ((ac__type_new_ *) 0)
12634   return 0;
12635 if (sizeof (ac__type_new_))
12636   return 0;
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (ac_try="$ac_compile"
12643 case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_compile") 2>conftest.er1
12649   ac_status=$?
12650   grep -v '^ *+' conftest.er1 >conftest.err
12651   rm -f conftest.er1
12652   cat conftest.err >&5
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); } &&
12655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656   { (case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_try") 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; } &&
12665          { ac_try='test -s conftest.$ac_objext'
12666   { (case "(($ac_try" in
12667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668   *) ac_try_echo=$ac_try;;
12669 esac
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671   (eval "$ac_try") 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; }; then
12675   ac_cv_type__Bool=yes
12676 else
12677   echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680         ac_cv_type__Bool=no
12681 fi
12682
12683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12684 fi
12685 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12686 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12687 if test $ac_cv_type__Bool = yes; then
12688
12689 cat >>confdefs.h <<\_ACEOF
12690 #define HAVE__Bool 1
12691 _ACEOF
12692
12693 fi
12694
12695
12696 { echo "$as_me:$LINENO: checking for working mmap" >&5
12697 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12698 if test "${samba_cv_HAVE_MMAP+set}" = set; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701
12702 if test "$cross_compiling" = yes; then
12703   samba_cv_HAVE_MMAP=cross
12704 else
12705   cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h.  */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h.  */
12711 #include "$libreplacedir/test/shared_mmap.c"
12712 _ACEOF
12713 rm -f conftest$ac_exeext
12714 if { (ac_try="$ac_link"
12715 case "(($ac_try" in
12716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717   *) ac_try_echo=$ac_try;;
12718 esac
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720   (eval "$ac_link") 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12724   { (case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_try") 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; }; then
12733   samba_cv_HAVE_MMAP=yes
12734 else
12735   echo "$as_me: program exited with status $ac_status" >&5
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 ( exit $ac_status )
12740 samba_cv_HAVE_MMAP=no
12741 fi
12742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12743 fi
12744
12745
12746 fi
12747 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
12748 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6; }
12749 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
12750
12751 cat >>confdefs.h <<\_ACEOF
12752 #define HAVE_MMAP 1
12753 _ACEOF
12754
12755 fi
12756
12757
12758
12759
12760 for ac_header in sys/syslog.h syslog.h
12761 do
12762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12764   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 fi
12769 ac_res=`eval echo '${'$as_ac_Header'}'`
12770                { echo "$as_me:$LINENO: result: $ac_res" >&5
12771 echo "${ECHO_T}$ac_res" >&6; }
12772 else
12773   # Is the header compilable?
12774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12776 cat >conftest.$ac_ext <<_ACEOF
12777 /* confdefs.h.  */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h.  */
12782 $ac_includes_default
12783 #include <$ac_header>
12784 _ACEOF
12785 rm -f conftest.$ac_objext
12786 if { (ac_try="$ac_compile"
12787 case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792   (eval "$ac_compile") 2>conftest.er1
12793   ac_status=$?
12794   grep -v '^ *+' conftest.er1 >conftest.err
12795   rm -f conftest.er1
12796   cat conftest.err >&5
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } &&
12799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800   { (case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_try") 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; } &&
12809          { ac_try='test -s conftest.$ac_objext'
12810   { (case "(($ac_try" in
12811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812   *) ac_try_echo=$ac_try;;
12813 esac
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815   (eval "$ac_try") 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); }; }; then
12819   ac_header_compiler=yes
12820 else
12821   echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12823
12824         ac_header_compiler=no
12825 fi
12826
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6; }
12830
12831 # Is the header present?
12832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h.  */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h.  */
12840 #include <$ac_header>
12841 _ACEOF
12842 if { (ac_try="$ac_cpp conftest.$ac_ext"
12843 case "(($ac_try" in
12844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845   *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12849   ac_status=$?
12850   grep -v '^ *+' conftest.er1 >conftest.err
12851   rm -f conftest.er1
12852   cat conftest.err >&5
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); } >/dev/null; then
12855   if test -s conftest.err; then
12856     ac_cpp_err=$ac_c_preproc_warn_flag
12857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12858   else
12859     ac_cpp_err=
12860   fi
12861 else
12862   ac_cpp_err=yes
12863 fi
12864 if test -z "$ac_cpp_err"; then
12865   ac_header_preproc=yes
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870   ac_header_preproc=no
12871 fi
12872
12873 rm -f conftest.err conftest.$ac_ext
12874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12875 echo "${ECHO_T}$ac_header_preproc" >&6; }
12876
12877 # So?  What about this header?
12878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12879   yes:no: )
12880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12884     ac_header_preproc=yes
12885     ;;
12886   no:yes:* )
12887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12899
12900     ;;
12901 esac
12902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12905   echo $ECHO_N "(cached) $ECHO_C" >&6
12906 else
12907   eval "$as_ac_Header=\$ac_header_preproc"
12908 fi
12909 ac_res=`eval echo '${'$as_ac_Header'}'`
12910                { echo "$as_me:$LINENO: result: $ac_res" >&5
12911 echo "${ECHO_T}$ac_res" >&6; }
12912
12913 fi
12914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12915   cat >>confdefs.h <<_ACEOF
12916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12917 _ACEOF
12918
12919 fi
12920
12921 done
12922
12923
12924
12925 for ac_header in sys/time.h time.h
12926 do
12927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12929   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12932   echo $ECHO_N "(cached) $ECHO_C" >&6
12933 fi
12934 ac_res=`eval echo '${'$as_ac_Header'}'`
12935                { echo "$as_me:$LINENO: result: $ac_res" >&5
12936 echo "${ECHO_T}$ac_res" >&6; }
12937 else
12938   # Is the header compilable?
12939 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947 $ac_includes_default
12948 #include <$ac_header>
12949 _ACEOF
12950 rm -f conftest.$ac_objext
12951 if { (ac_try="$ac_compile"
12952 case "(($ac_try" in
12953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954   *) ac_try_echo=$ac_try;;
12955 esac
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957   (eval "$ac_compile") 2>conftest.er1
12958   ac_status=$?
12959   grep -v '^ *+' conftest.er1 >conftest.err
12960   rm -f conftest.er1
12961   cat conftest.err >&5
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); } &&
12964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12965   { (case "(($ac_try" in
12966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967   *) ac_try_echo=$ac_try;;
12968 esac
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970   (eval "$ac_try") 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; } &&
12974          { ac_try='test -s conftest.$ac_objext'
12975   { (case "(($ac_try" in
12976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977   *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980   (eval "$ac_try") 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; }; then
12984   ac_header_compiler=yes
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989         ac_header_compiler=no
12990 fi
12991
12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12994 echo "${ECHO_T}$ac_header_compiler" >&6; }
12995
12996 # Is the header present?
12997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005 #include <$ac_header>
13006 _ACEOF
13007 if { (ac_try="$ac_cpp conftest.$ac_ext"
13008 case "(($ac_try" in
13009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010   *) ac_try_echo=$ac_try;;
13011 esac
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13014   ac_status=$?
13015   grep -v '^ *+' conftest.er1 >conftest.err
13016   rm -f conftest.er1
13017   cat conftest.err >&5
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); } >/dev/null; then
13020   if test -s conftest.err; then
13021     ac_cpp_err=$ac_c_preproc_warn_flag
13022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13023   else
13024     ac_cpp_err=
13025   fi
13026 else
13027   ac_cpp_err=yes
13028 fi
13029 if test -z "$ac_cpp_err"; then
13030   ac_header_preproc=yes
13031 else
13032   echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035   ac_header_preproc=no
13036 fi
13037
13038 rm -f conftest.err conftest.$ac_ext
13039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13040 echo "${ECHO_T}$ac_header_preproc" >&6; }
13041
13042 # So?  What about this header?
13043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13044   yes:no: )
13045     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13048 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13049     ac_header_preproc=yes
13050     ;;
13051   no:yes:* )
13052     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13054     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13055 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13056     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13057 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13058     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13059 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13062     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13063 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13064
13065     ;;
13066 esac
13067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13070   echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072   eval "$as_ac_Header=\$ac_header_preproc"
13073 fi
13074 ac_res=`eval echo '${'$as_ac_Header'}'`
13075                { echo "$as_me:$LINENO: result: $ac_res" >&5
13076 echo "${ECHO_T}$ac_res" >&6; }
13077
13078 fi
13079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13080   cat >>confdefs.h <<_ACEOF
13081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13082 _ACEOF
13083
13084 fi
13085
13086 done
13087
13088
13089
13090 for ac_header in stdarg.h vararg.h
13091 do
13092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13094   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 fi
13099 ac_res=`eval echo '${'$as_ac_Header'}'`
13100                { echo "$as_me:$LINENO: result: $ac_res" >&5
13101 echo "${ECHO_T}$ac_res" >&6; }
13102 else
13103   # Is the header compilable?
13104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13106 cat >conftest.$ac_ext <<_ACEOF
13107 /* confdefs.h.  */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h.  */
13112 $ac_includes_default
13113 #include <$ac_header>
13114 _ACEOF
13115 rm -f conftest.$ac_objext
13116 if { (ac_try="$ac_compile"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_compile") 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } &&
13129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13130   { (case "(($ac_try" in
13131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132   *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135   (eval "$ac_try") 2>&5
13136   ac_status=$?
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); }; } &&
13139          { ac_try='test -s conftest.$ac_objext'
13140   { (case "(($ac_try" in
13141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142   *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145   (eval "$ac_try") 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); }; }; then
13149   ac_header_compiler=yes
13150 else
13151   echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154         ac_header_compiler=no
13155 fi
13156
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13159 echo "${ECHO_T}$ac_header_compiler" >&6; }
13160
13161 # Is the header present?
13162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170 #include <$ac_header>
13171 _ACEOF
13172 if { (ac_try="$ac_cpp conftest.$ac_ext"
13173 case "(($ac_try" in
13174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175   *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13179   ac_status=$?
13180   grep -v '^ *+' conftest.er1 >conftest.err
13181   rm -f conftest.er1
13182   cat conftest.err >&5
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } >/dev/null; then
13185   if test -s conftest.err; then
13186     ac_cpp_err=$ac_c_preproc_warn_flag
13187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13188   else
13189     ac_cpp_err=
13190   fi
13191 else
13192   ac_cpp_err=yes
13193 fi
13194 if test -z "$ac_cpp_err"; then
13195   ac_header_preproc=yes
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200   ac_header_preproc=no
13201 fi
13202
13203 rm -f conftest.err conftest.$ac_ext
13204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13205 echo "${ECHO_T}$ac_header_preproc" >&6; }
13206
13207 # So?  What about this header?
13208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13209   yes:no: )
13210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13214     ac_header_preproc=yes
13215     ;;
13216   no:yes:* )
13217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13219     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13221     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13223     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13227     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13229
13230     ;;
13231 esac
13232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13235   echo $ECHO_N "(cached) $ECHO_C" >&6
13236 else
13237   eval "$as_ac_Header=\$ac_header_preproc"
13238 fi
13239 ac_res=`eval echo '${'$as_ac_Header'}'`
13240                { echo "$as_me:$LINENO: result: $ac_res" >&5
13241 echo "${ECHO_T}$ac_res" >&6; }
13242
13243 fi
13244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13245   cat >>confdefs.h <<_ACEOF
13246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13247 _ACEOF
13248
13249 fi
13250
13251 done
13252
13253
13254
13255
13256
13257 for ac_header in sys/socket.h netinet/in.h netdb.h arpa/inet.h
13258 do
13259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13264   echo $ECHO_N "(cached) $ECHO_C" >&6
13265 fi
13266 ac_res=`eval echo '${'$as_ac_Header'}'`
13267                { echo "$as_me:$LINENO: result: $ac_res" >&5
13268 echo "${ECHO_T}$ac_res" >&6; }
13269 else
13270   # Is the header compilable?
13271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h.  */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h.  */
13279 $ac_includes_default
13280 #include <$ac_header>
13281 _ACEOF
13282 rm -f conftest.$ac_objext
13283 if { (ac_try="$ac_compile"
13284 case "(($ac_try" in
13285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286   *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289   (eval "$ac_compile") 2>conftest.er1
13290   ac_status=$?
13291   grep -v '^ *+' conftest.er1 >conftest.err
13292   rm -f conftest.er1
13293   cat conftest.err >&5
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); } &&
13296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13297   { (case "(($ac_try" in
13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299   *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302   (eval "$ac_try") 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; } &&
13306          { ac_try='test -s conftest.$ac_objext'
13307   { (case "(($ac_try" in
13308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309   *) ac_try_echo=$ac_try;;
13310 esac
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312   (eval "$ac_try") 2>&5
13313   ac_status=$?
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); }; }; then
13316   ac_header_compiler=yes
13317 else
13318   echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321         ac_header_compiler=no
13322 fi
13323
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 echo "${ECHO_T}$ac_header_compiler" >&6; }
13327
13328 # Is the header present?
13329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 #include <$ac_header>
13338 _ACEOF
13339 if { (ac_try="$ac_cpp conftest.$ac_ext"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13346   ac_status=$?
13347   grep -v '^ *+' conftest.er1 >conftest.err
13348   rm -f conftest.er1
13349   cat conftest.err >&5
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); } >/dev/null; then
13352   if test -s conftest.err; then
13353     ac_cpp_err=$ac_c_preproc_warn_flag
13354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13355   else
13356     ac_cpp_err=
13357   fi
13358 else
13359   ac_cpp_err=yes
13360 fi
13361 if test -z "$ac_cpp_err"; then
13362   ac_header_preproc=yes
13363 else
13364   echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13366
13367   ac_header_preproc=no
13368 fi
13369
13370 rm -f conftest.err conftest.$ac_ext
13371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13372 echo "${ECHO_T}$ac_header_preproc" >&6; }
13373
13374 # So?  What about this header?
13375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13376   yes:no: )
13377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13381     ac_header_preproc=yes
13382     ;;
13383   no:yes:* )
13384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13386     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13387 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13388     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13390     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13391 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13394     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13396
13397     ;;
13398 esac
13399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   eval "$as_ac_Header=\$ac_header_preproc"
13405 fi
13406 ac_res=`eval echo '${'$as_ac_Header'}'`
13407                { echo "$as_me:$LINENO: result: $ac_res" >&5
13408 echo "${ECHO_T}$ac_res" >&6; }
13409
13410 fi
13411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13412   cat >>confdefs.h <<_ACEOF
13413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13414 _ACEOF
13415
13416 fi
13417
13418 done
13419
13420
13421
13422
13423
13424 for ac_header in netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
13425 do
13426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13428   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 fi
13433 ac_res=`eval echo '${'$as_ac_Header'}'`
13434                { echo "$as_me:$LINENO: result: $ac_res" >&5
13435 echo "${ECHO_T}$ac_res" >&6; }
13436 else
13437   # Is the header compilable?
13438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h.  */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h.  */
13446 $ac_includes_default
13447 #include <$ac_header>
13448 _ACEOF
13449 rm -f conftest.$ac_objext
13450 if { (ac_try="$ac_compile"
13451 case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_compile") 2>conftest.er1
13457   ac_status=$?
13458   grep -v '^ *+' conftest.er1 >conftest.err
13459   rm -f conftest.er1
13460   cat conftest.err >&5
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } &&
13463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13464   { (case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_try") 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; } &&
13473          { ac_try='test -s conftest.$ac_objext'
13474   { (case "(($ac_try" in
13475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476   *) ac_try_echo=$ac_try;;
13477 esac
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479   (eval "$ac_try") 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); }; }; then
13483   ac_header_compiler=yes
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488         ac_header_compiler=no
13489 fi
13490
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 echo "${ECHO_T}$ac_header_compiler" >&6; }
13494
13495 # Is the header present?
13496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504 #include <$ac_header>
13505 _ACEOF
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
13507 case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13513   ac_status=$?
13514   grep -v '^ *+' conftest.er1 >conftest.err
13515   rm -f conftest.er1
13516   cat conftest.err >&5
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); } >/dev/null; then
13519   if test -s conftest.err; then
13520     ac_cpp_err=$ac_c_preproc_warn_flag
13521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13522   else
13523     ac_cpp_err=
13524   fi
13525 else
13526   ac_cpp_err=yes
13527 fi
13528 if test -z "$ac_cpp_err"; then
13529   ac_header_preproc=yes
13530 else
13531   echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534   ac_header_preproc=no
13535 fi
13536
13537 rm -f conftest.err conftest.$ac_ext
13538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13539 echo "${ECHO_T}$ac_header_preproc" >&6; }
13540
13541 # So?  What about this header?
13542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13543   yes:no: )
13544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13548     ac_header_preproc=yes
13549     ;;
13550   no:yes:* )
13551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13563
13564     ;;
13565 esac
13566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13569   echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571   eval "$as_ac_Header=\$ac_header_preproc"
13572 fi
13573 ac_res=`eval echo '${'$as_ac_Header'}'`
13574                { echo "$as_me:$LINENO: result: $ac_res" >&5
13575 echo "${ECHO_T}$ac_res" >&6; }
13576
13577 fi
13578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13579   cat >>confdefs.h <<_ACEOF
13580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13581 _ACEOF
13582
13583 fi
13584
13585 done
13586
13587
13588
13589 for ac_header in sys/sockio.h sys/un.h
13590 do
13591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13596   echo $ECHO_N "(cached) $ECHO_C" >&6
13597 fi
13598 ac_res=`eval echo '${'$as_ac_Header'}'`
13599                { echo "$as_me:$LINENO: result: $ac_res" >&5
13600 echo "${ECHO_T}$ac_res" >&6; }
13601 else
13602   # Is the header compilable?
13603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h.  */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h.  */
13611 $ac_includes_default
13612 #include <$ac_header>
13613 _ACEOF
13614 rm -f conftest.$ac_objext
13615 if { (ac_try="$ac_compile"
13616 case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621   (eval "$ac_compile") 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629   { (case "(($ac_try" in
13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631   *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634   (eval "$ac_try") 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; } &&
13638          { ac_try='test -s conftest.$ac_objext'
13639   { (case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_try") 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; }; then
13648   ac_header_compiler=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653         ac_header_compiler=no
13654 fi
13655
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13658 echo "${ECHO_T}$ac_header_compiler" >&6; }
13659
13660 # Is the header present?
13661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13663 cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669 #include <$ac_header>
13670 _ACEOF
13671 if { (ac_try="$ac_cpp conftest.$ac_ext"
13672 case "(($ac_try" in
13673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674   *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13678   ac_status=$?
13679   grep -v '^ *+' conftest.er1 >conftest.err
13680   rm -f conftest.er1
13681   cat conftest.err >&5
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); } >/dev/null; then
13684   if test -s conftest.err; then
13685     ac_cpp_err=$ac_c_preproc_warn_flag
13686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13687   else
13688     ac_cpp_err=
13689   fi
13690 else
13691   ac_cpp_err=yes
13692 fi
13693 if test -z "$ac_cpp_err"; then
13694   ac_header_preproc=yes
13695 else
13696   echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13698
13699   ac_header_preproc=no
13700 fi
13701
13702 rm -f conftest.err conftest.$ac_ext
13703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13704 echo "${ECHO_T}$ac_header_preproc" >&6; }
13705
13706 # So?  What about this header?
13707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13708   yes:no: )
13709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13713     ac_header_preproc=yes
13714     ;;
13715   no:yes:* )
13716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13728
13729     ;;
13730 esac
13731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13734   echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736   eval "$as_ac_Header=\$ac_header_preproc"
13737 fi
13738 ac_res=`eval echo '${'$as_ac_Header'}'`
13739                { echo "$as_me:$LINENO: result: $ac_res" >&5
13740 echo "${ECHO_T}$ac_res" >&6; }
13741
13742 fi
13743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13744   cat >>confdefs.h <<_ACEOF
13745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13746 _ACEOF
13747
13748 fi
13749
13750 done
13751
13752
13753
13754 { echo "$as_me:$LINENO: checking for usable net/if.h" >&5
13755 echo $ECHO_N "checking for usable net/if.h... $ECHO_C" >&6; }
13756 if test "${libreplace_cv_USABLE_NET_IF_H+set}" = set; then
13757   echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759
13760         cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h.  */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h.  */
13766
13767                 $ac_includes_default
13768                 #if HAVE_SYS_SOCKET_H
13769                 # include <sys/socket.h>
13770                 #endif
13771                 #include <net/if.h>
13772                 int main(void) {return 0;}
13773 _ACEOF
13774 rm -f conftest.$ac_objext
13775 if { (ac_try="$ac_compile"
13776 case "(($ac_try" in
13777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778   *) ac_try_echo=$ac_try;;
13779 esac
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781   (eval "$ac_compile") 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } &&
13788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13789   { (case "(($ac_try" in
13790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791   *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794   (eval "$ac_try") 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; } &&
13798          { ac_try='test -s conftest.$ac_objext'
13799   { (case "(($ac_try" in
13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801   *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804   (eval "$ac_try") 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; }; then
13808   libreplace_cv_USABLE_NET_IF_H=yes
13809 else
13810   echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813         libreplace_cv_USABLE_NET_IF_H=no
13814
13815 fi
13816
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818
13819 fi
13820 { echo "$as_me:$LINENO: result: $libreplace_cv_USABLE_NET_IF_H" >&5
13821 echo "${ECHO_T}$libreplace_cv_USABLE_NET_IF_H" >&6; }
13822 if test x"$libreplace_cv_USABLE_NET_IF_H" = x"yes";then
13823
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_NET_IF_H 1
13826 _ACEOF
13827
13828 fi
13829
13830 { echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
13831 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6; }
13832 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835
13836 if test "$cross_compiling" = yes; then
13837   samba_cv_REPLACE_INET_NTOA=cross
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h.  */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h.  */
13845
13846 #include <stdio.h>
13847 #include <unistd.h>
13848 #include <sys/types.h>
13849 #include <netinet/in.h>
13850 #ifdef HAVE_ARPA_INET_H
13851 #include <arpa/inet.h>
13852 #endif
13853 main() { struct in_addr ip; ip.s_addr = 0x12345678;
13854 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
13855     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
13856 exit(1);}
13857 _ACEOF
13858 rm -f conftest$ac_exeext
13859 if { (ac_try="$ac_link"
13860 case "(($ac_try" in
13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862   *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865   (eval "$ac_link") 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13869   { (case "(($ac_try" in
13870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871   *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874   (eval "$ac_try") 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); }; }; then
13878   samba_cv_REPLACE_INET_NTOA=yes
13879 else
13880   echo "$as_me: program exited with status $ac_status" >&5
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13883
13884 ( exit $ac_status )
13885 samba_cv_REPLACE_INET_NTOA=no
13886 fi
13887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13888 fi
13889
13890
13891 fi
13892 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
13893 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6; }
13894 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
13895
13896 cat >>confdefs.h <<\_ACEOF
13897 #define REPLACE_INET_NTOA 1
13898 _ACEOF
13899
13900 fi
13901
13902 cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h.  */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h.  */
13908
13909 #include <sys/types.h>
13910 #if STDC_HEADERS
13911 #include <stdlib.h>
13912 #include <stddef.h>
13913 #endif
13914 #include <sys/socket.h>
13915 int
13916 main ()
13917 {
13918 socklen_t foo;
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext
13924 if { (ac_try="$ac_compile"
13925 case "(($ac_try" in
13926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927   *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930   (eval "$ac_compile") 2>conftest.er1
13931   ac_status=$?
13932   grep -v '^ *+' conftest.er1 >conftest.err
13933   rm -f conftest.er1
13934   cat conftest.err >&5
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13938   { (case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943   (eval "$ac_try") 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; } &&
13947          { ac_try='test -s conftest.$ac_objext'
13948   { (case "(($ac_try" in
13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950   *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953   (eval "$ac_try") 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   :
13958 else
13959   echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13961
13962
13963 cat >>confdefs.h <<\_ACEOF
13964 #define socklen_t int
13965 _ACEOF
13966
13967 fi
13968
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970
13971
13972
13973
13974
13975
13976
13977
13978 for ac_func in seteuid setresuid setegid setresgid chroot bzero strerror
13979 do
13980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13984   echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986   cat >conftest.$ac_ext <<_ACEOF
13987 /* confdefs.h.  */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h.  */
13992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13994 #define $ac_func innocuous_$ac_func
13995
13996 /* System header to define __stub macros and hopefully few prototypes,
13997     which can conflict with char $ac_func (); below.
13998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13999     <limits.h> exists even on freestanding compilers.  */
14000
14001 #ifdef __STDC__
14002 # include <limits.h>
14003 #else
14004 # include <assert.h>
14005 #endif
14006
14007 #undef $ac_func
14008
14009 /* Override any GCC internal prototype to avoid an error.
14010    Use char because int might match the return type of a GCC
14011    builtin and then its argument prototype would still apply.  */
14012 #ifdef __cplusplus
14013 extern "C"
14014 #endif
14015 char $ac_func ();
14016 /* The GNU C library defines this for functions which it implements
14017     to always fail with ENOSYS.  Some functions are actually named
14018     something starting with __ and the normal name is an alias.  */
14019 #if defined __stub_$ac_func || defined __stub___$ac_func
14020 choke me
14021 #endif
14022
14023 int
14024 main ()
14025 {
14026 return $ac_func ();
14027   ;
14028   return 0;
14029 }
14030 _ACEOF
14031 rm -f conftest.$ac_objext conftest$ac_exeext
14032 if { (ac_try="$ac_link"
14033 case "(($ac_try" in
14034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035   *) ac_try_echo=$ac_try;;
14036 esac
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038   (eval "$ac_link") 2>conftest.er1
14039   ac_status=$?
14040   grep -v '^ *+' conftest.er1 >conftest.err
14041   rm -f conftest.er1
14042   cat conftest.err >&5
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); } &&
14045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14046   { (case "(($ac_try" in
14047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048   *) ac_try_echo=$ac_try;;
14049 esac
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051   (eval "$ac_try") 2>&5
14052   ac_status=$?
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); }; } &&
14055          { ac_try='test -s conftest$ac_exeext'
14056   { (case "(($ac_try" in
14057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058   *) ac_try_echo=$ac_try;;
14059 esac
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061   (eval "$ac_try") 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); }; }; then
14065   eval "$as_ac_var=yes"
14066 else
14067   echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14069
14070         eval "$as_ac_var=no"
14071 fi
14072
14073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14074       conftest$ac_exeext conftest.$ac_ext
14075 fi
14076 ac_res=`eval echo '${'$as_ac_var'}'`
14077                { echo "$as_me:$LINENO: result: $ac_res" >&5
14078 echo "${ECHO_T}$ac_res" >&6; }
14079 if test `eval echo '${'$as_ac_var'}'` = yes; then
14080   cat >>confdefs.h <<_ACEOF
14081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14082 _ACEOF
14083
14084 fi
14085 done
14086
14087
14088
14089
14090
14091
14092
14093 for ac_func in vsyslog setlinebuf mktime ftruncate chsize rename
14094 do
14095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h.  */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h.  */
14107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14109 #define $ac_func innocuous_$ac_func
14110
14111 /* System header to define __stub macros and hopefully few prototypes,
14112     which can conflict with char $ac_func (); below.
14113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14114     <limits.h> exists even on freestanding compilers.  */
14115
14116 #ifdef __STDC__
14117 # include <limits.h>
14118 #else
14119 # include <assert.h>
14120 #endif
14121
14122 #undef $ac_func
14123
14124 /* Override any GCC internal prototype to avoid an error.
14125    Use char because int might match the return type of a GCC
14126    builtin and then its argument prototype would still apply.  */
14127 #ifdef __cplusplus
14128 extern "C"
14129 #endif
14130 char $ac_func ();
14131 /* The GNU C library defines this for functions which it implements
14132     to always fail with ENOSYS.  Some functions are actually named
14133     something starting with __ and the normal name is an alias.  */
14134 #if defined __stub_$ac_func || defined __stub___$ac_func
14135 choke me
14136 #endif
14137
14138 int
14139 main ()
14140 {
14141 return $ac_func ();
14142   ;
14143   return 0;
14144 }
14145 _ACEOF
14146 rm -f conftest.$ac_objext conftest$ac_exeext
14147 if { (ac_try="$ac_link"
14148 case "(($ac_try" in
14149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150   *) ac_try_echo=$ac_try;;
14151 esac
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153   (eval "$ac_link") 2>conftest.er1
14154   ac_status=$?
14155   grep -v '^ *+' conftest.er1 >conftest.err
14156   rm -f conftest.er1
14157   cat conftest.err >&5
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); } &&
14160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161   { (case "(($ac_try" in
14162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163   *) ac_try_echo=$ac_try;;
14164 esac
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166   (eval "$ac_try") 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; } &&
14170          { ac_try='test -s conftest$ac_exeext'
14171   { (case "(($ac_try" in
14172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173   *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176   (eval "$ac_try") 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; }; then
14180   eval "$as_ac_var=yes"
14181 else
14182   echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185         eval "$as_ac_var=no"
14186 fi
14187
14188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14189       conftest$ac_exeext conftest.$ac_ext
14190 fi
14191 ac_res=`eval echo '${'$as_ac_var'}'`
14192                { echo "$as_me:$LINENO: result: $ac_res" >&5
14193 echo "${ECHO_T}$ac_res" >&6; }
14194 if test `eval echo '${'$as_ac_var'}'` = yes; then
14195   cat >>confdefs.h <<_ACEOF
14196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14197 _ACEOF
14198
14199 fi
14200 done
14201
14202
14203
14204
14205
14206
14207
14208
14209 for ac_func in waitpid strlcpy strlcat innetgr initgroups memmove strdup
14210 do
14211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14215   echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217   cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h.  */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h.  */
14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14225 #define $ac_func innocuous_$ac_func
14226
14227 /* System header to define __stub macros and hopefully few prototypes,
14228     which can conflict with char $ac_func (); below.
14229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14230     <limits.h> exists even on freestanding compilers.  */
14231
14232 #ifdef __STDC__
14233 # include <limits.h>
14234 #else
14235 # include <assert.h>
14236 #endif
14237
14238 #undef $ac_func
14239
14240 /* Override any GCC internal prototype to avoid an error.
14241    Use char because int might match the return type of a GCC
14242    builtin and then its argument prototype would still apply.  */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 char $ac_func ();
14247 /* The GNU C library defines this for functions which it implements
14248     to always fail with ENOSYS.  Some functions are actually named
14249     something starting with __ and the normal name is an alias.  */
14250 #if defined __stub_$ac_func || defined __stub___$ac_func
14251 choke me
14252 #endif
14253
14254 int
14255 main ()
14256 {
14257 return $ac_func ();
14258   ;
14259   return 0;
14260 }
14261 _ACEOF
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266   *) ac_try_echo=$ac_try;;
14267 esac
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269   (eval "$ac_link") 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277   { (case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_try") 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; } &&
14286          { ac_try='test -s conftest$ac_exeext'
14287   { (case "(($ac_try" in
14288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289   *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292   (eval "$ac_try") 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); }; }; then
14296   eval "$as_ac_var=yes"
14297 else
14298   echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14300
14301         eval "$as_ac_var=no"
14302 fi
14303
14304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14305       conftest$ac_exeext conftest.$ac_ext
14306 fi
14307 ac_res=`eval echo '${'$as_ac_var'}'`
14308                { echo "$as_me:$LINENO: result: $ac_res" >&5
14309 echo "${ECHO_T}$ac_res" >&6; }
14310 if test `eval echo '${'$as_ac_var'}'` = yes; then
14311   cat >>confdefs.h <<_ACEOF
14312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14313 _ACEOF
14314
14315 fi
14316 done
14317
14318
14319
14320
14321
14322
14323
14324
14325 for ac_func in pread pwrite strndup strcasestr strtok_r mkdtemp socketpair
14326 do
14327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333   cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14341 #define $ac_func innocuous_$ac_func
14342
14343 /* System header to define __stub macros and hopefully few prototypes,
14344     which can conflict with char $ac_func (); below.
14345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14346     <limits.h> exists even on freestanding compilers.  */
14347
14348 #ifdef __STDC__
14349 # include <limits.h>
14350 #else
14351 # include <assert.h>
14352 #endif
14353
14354 #undef $ac_func
14355
14356 /* Override any GCC internal prototype to avoid an error.
14357    Use char because int might match the return type of a GCC
14358    builtin and then its argument prototype would still apply.  */
14359 #ifdef __cplusplus
14360 extern "C"
14361 #endif
14362 char $ac_func ();
14363 /* The GNU C library defines this for functions which it implements
14364     to always fail with ENOSYS.  Some functions are actually named
14365     something starting with __ and the normal name is an alias.  */
14366 #if defined __stub_$ac_func || defined __stub___$ac_func
14367 choke me
14368 #endif
14369
14370 int
14371 main ()
14372 {
14373 return $ac_func ();
14374   ;
14375   return 0;
14376 }
14377 _ACEOF
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (ac_try="$ac_link"
14380 case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385   (eval "$ac_link") 2>conftest.er1
14386   ac_status=$?
14387   grep -v '^ *+' conftest.er1 >conftest.err
14388   rm -f conftest.er1
14389   cat conftest.err >&5
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } &&
14392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14393   { (case "(($ac_try" in
14394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395   *) ac_try_echo=$ac_try;;
14396 esac
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398   (eval "$ac_try") 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; } &&
14402          { ac_try='test -s conftest$ac_exeext'
14403   { (case "(($ac_try" in
14404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405   *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408   (eval "$ac_try") 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); }; }; then
14412   eval "$as_ac_var=yes"
14413 else
14414   echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417         eval "$as_ac_var=no"
14418 fi
14419
14420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421       conftest$ac_exeext conftest.$ac_ext
14422 fi
14423 ac_res=`eval echo '${'$as_ac_var'}'`
14424                { echo "$as_me:$LINENO: result: $ac_res" >&5
14425 echo "${ECHO_T}$ac_res" >&6; }
14426 if test `eval echo '${'$as_ac_var'}'` = yes; then
14427   cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14429 _ACEOF
14430
14431 fi
14432 done
14433
14434
14435  { echo "$as_me:$LINENO: checking for setresuid declaration" >&5
14436 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6; }
14437 if test "${ac_cv_have_setresuid_decl+set}" = set; then
14438   echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440
14441     cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447 #include <unistd.h>
14448 int
14449 main ()
14450 {
14451 int i = (int)setresuid
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (ac_try="$ac_compile"
14458 case "(($ac_try" in
14459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460   *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463   (eval "$ac_compile") 2>conftest.er1
14464   ac_status=$?
14465   grep -v '^ *+' conftest.er1 >conftest.err
14466   rm -f conftest.er1
14467   cat conftest.err >&5
14468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); } &&
14470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14471   { (case "(($ac_try" in
14472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473   *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476   (eval "$ac_try") 2>&5
14477   ac_status=$?
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); }; } &&
14480          { ac_try='test -s conftest.$ac_objext'
14481   { (case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486   (eval "$ac_try") 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; }; then
14490   ac_cv_have_setresuid_decl=yes
14491 else
14492   echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495         ac_cv_have_setresuid_decl=no
14496 fi
14497
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 fi
14500 { echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
14501 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6; }
14502  if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
14503
14504 cat >>confdefs.h <<\_ACEOF
14505 #define HAVE_SETRESUID_DECL 1
14506 _ACEOF
14507
14508  fi
14509
14510
14511  { echo "$as_me:$LINENO: checking for setresgid declaration" >&5
14512 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6; }
14513 if test "${ac_cv_have_setresgid_decl+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516
14517     cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 #include <unistd.h>
14524 int
14525 main ()
14526 {
14527 int i = (int)setresgid
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_compile") 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547   { (case "(($ac_try" in
14548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549   *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552   (eval "$ac_try") 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; } &&
14556          { ac_try='test -s conftest.$ac_objext'
14557   { (case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_try") 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_cv_have_setresgid_decl=yes
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571         ac_cv_have_setresgid_decl=no
14572 fi
14573
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575 fi
14576 { echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
14577 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6; }
14578  if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
14579
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_SETRESGID_DECL 1
14582 _ACEOF
14583
14584  fi
14585
14586
14587  { echo "$as_me:$LINENO: checking for errno declaration" >&5
14588 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6; }
14589 if test "${ac_cv_have_errno_decl+set}" = set; then
14590   echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592
14593     cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599 #include <errno.h>
14600 int
14601 main ()
14602 {
14603 int i = (int)errno
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (ac_try="$ac_compile"
14610 case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615   (eval "$ac_compile") 2>conftest.er1
14616   ac_status=$?
14617   grep -v '^ *+' conftest.er1 >conftest.err
14618   rm -f conftest.er1
14619   cat conftest.err >&5
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); } &&
14622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14623   { (case "(($ac_try" in
14624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625   *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628   (eval "$ac_try") 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; } &&
14632          { ac_try='test -s conftest.$ac_objext'
14633   { (case "(($ac_try" in
14634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635   *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638   (eval "$ac_try") 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; }; then
14642   ac_cv_have_errno_decl=yes
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647         ac_cv_have_errno_decl=no
14648 fi
14649
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 fi
14652 { echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
14653 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6; }
14654  if test x"$ac_cv_have_errno_decl" = x"yes"; then
14655
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_ERRNO_DECL 1
14658 _ACEOF
14659
14660  fi
14661
14662
14663 { echo "$as_me:$LINENO: checking for secure mkstemp" >&5
14664 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6; }
14665 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668
14669 if test "$cross_compiling" = yes; then
14670   samba_cv_HAVE_SECURE_MKSTEMP=cross
14671 else
14672   cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 #include <stdlib.h>
14679 #include <sys/types.h>
14680 #include <sys/stat.h>
14681 #include <unistd.h>
14682 main() {
14683   struct stat st;
14684   char tpl[20]="/tmp/test.XXXXXX";
14685   int fd = mkstemp(tpl);
14686   if (fd == -1) exit(1);
14687   unlink(tpl);
14688   if (fstat(fd, &st) != 0) exit(1);
14689   if ((st.st_mode & 0777) != 0600) exit(1);
14690   exit(0);
14691 }
14692 _ACEOF
14693 rm -f conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697   *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700   (eval "$ac_link") 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14704   { (case "(($ac_try" in
14705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706   *) ac_try_echo=$ac_try;;
14707 esac
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709   (eval "$ac_try") 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); }; }; then
14713   samba_cv_HAVE_SECURE_MKSTEMP=yes
14714 else
14715   echo "$as_me: program exited with status $ac_status" >&5
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719 ( exit $ac_status )
14720 samba_cv_HAVE_SECURE_MKSTEMP=no
14721 fi
14722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14723 fi
14724
14725
14726 fi
14727 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
14728 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6; }
14729 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
14730
14731 cat >>confdefs.h <<\_ACEOF
14732 #define HAVE_SECURE_MKSTEMP 1
14733 _ACEOF
14734
14735 fi
14736
14737
14738
14739 for ac_header in stdio.h strings.h
14740 do
14741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746   echo $ECHO_N "(cached) $ECHO_C" >&6
14747 fi
14748 ac_res=`eval echo '${'$as_ac_Header'}'`
14749                { echo "$as_me:$LINENO: result: $ac_res" >&5
14750 echo "${ECHO_T}$ac_res" >&6; }
14751 else
14752   # Is the header compilable?
14753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14755 cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h.  */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h.  */
14761 $ac_includes_default
14762 #include <$ac_header>
14763 _ACEOF
14764 rm -f conftest.$ac_objext
14765 if { (ac_try="$ac_compile"
14766 case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_compile") 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779   { (case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_try") 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; } &&
14788          { ac_try='test -s conftest.$ac_objext'
14789   { (case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_try") 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; }; then
14798   ac_header_compiler=yes
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803         ac_header_compiler=no
14804 fi
14805
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14809
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 #include <$ac_header>
14820 _ACEOF
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } >/dev/null; then
14834   if test -s conftest.err; then
14835     ac_cpp_err=$ac_c_preproc_warn_flag
14836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14837   else
14838     ac_cpp_err=
14839   fi
14840 else
14841   ac_cpp_err=yes
14842 fi
14843 if test -z "$ac_cpp_err"; then
14844   ac_header_preproc=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849   ac_header_preproc=no
14850 fi
14851
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14855
14856 # So?  What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858   yes:no: )
14859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863     ac_header_preproc=yes
14864     ;;
14865   no:yes:* )
14866     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14870     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14878
14879     ;;
14880 esac
14881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   eval "$as_ac_Header=\$ac_header_preproc"
14887 fi
14888 ac_res=`eval echo '${'$as_ac_Header'}'`
14889                { echo "$as_me:$LINENO: result: $ac_res" >&5
14890 echo "${ECHO_T}$ac_res" >&6; }
14891
14892 fi
14893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14894   cat >>confdefs.h <<_ACEOF
14895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14896 _ACEOF
14897
14898 fi
14899
14900 done
14901
14902 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14903 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
14904 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907   cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h.  */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h.  */
14913 $ac_includes_default
14914 int
14915 main ()
14916 {
14917 #ifndef snprintf
14918   char *p = (char *) snprintf;
14919   return !p;
14920 #endif
14921
14922   ;
14923   return 0;
14924 }
14925 _ACEOF
14926 rm -f conftest.$ac_objext
14927 if { (ac_try="$ac_compile"
14928 case "(($ac_try" in
14929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930   *) ac_try_echo=$ac_try;;
14931 esac
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933   (eval "$ac_compile") 2>conftest.er1
14934   ac_status=$?
14935   grep -v '^ *+' conftest.er1 >conftest.err
14936   rm -f conftest.er1
14937   cat conftest.err >&5
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); } &&
14940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14941   { (case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_try") 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; } &&
14950          { ac_try='test -s conftest.$ac_objext'
14951   { (case "(($ac_try" in
14952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953   *) ac_try_echo=$ac_try;;
14954 esac
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956   (eval "$ac_try") 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; }; then
14960   ac_cv_have_decl_snprintf=yes
14961 else
14962   echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965         ac_cv_have_decl_snprintf=no
14966 fi
14967
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 fi
14970 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14971 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
14972 if test $ac_cv_have_decl_snprintf = yes; then
14973
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_DECL_SNPRINTF 1
14976 _ACEOF
14977
14978
14979 else
14980   cat >>confdefs.h <<_ACEOF
14981 #define HAVE_DECL_SNPRINTF 0
14982 _ACEOF
14983
14984
14985 fi
14986 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14987 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
14988 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14989   echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991   cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h.  */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h.  */
14997 $ac_includes_default
14998 int
14999 main ()
15000 {
15001 #ifndef vsnprintf
15002   char *p = (char *) vsnprintf;
15003   return !p;
15004 #endif
15005
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017   (eval "$ac_compile") 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025   { (case "(($ac_try" in
15026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027   *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030   (eval "$ac_try") 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; } &&
15034          { ac_try='test -s conftest.$ac_objext'
15035   { (case "(($ac_try" in
15036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037   *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040   (eval "$ac_try") 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; }; then
15044   ac_cv_have_decl_vsnprintf=yes
15045 else
15046   echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049         ac_cv_have_decl_vsnprintf=no
15050 fi
15051
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 fi
15054 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15055 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
15056 if test $ac_cv_have_decl_vsnprintf = yes; then
15057
15058 cat >>confdefs.h <<_ACEOF
15059 #define HAVE_DECL_VSNPRINTF 1
15060 _ACEOF
15061
15062
15063 else
15064   cat >>confdefs.h <<_ACEOF
15065 #define HAVE_DECL_VSNPRINTF 0
15066 _ACEOF
15067
15068
15069 fi
15070 { echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
15071 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6; }
15072 if test "${ac_cv_have_decl_asprintf+set}" = set; then
15073   echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075   cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081 $ac_includes_default
15082 int
15083 main ()
15084 {
15085 #ifndef asprintf
15086   char *p = (char *) asprintf;
15087   return !p;
15088 #endif
15089
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 rm -f conftest.$ac_objext
15095 if { (ac_try="$ac_compile"
15096 case "(($ac_try" in
15097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098   *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101   (eval "$ac_compile") 2>conftest.er1
15102   ac_status=$?
15103   grep -v '^ *+' conftest.er1 >conftest.err
15104   rm -f conftest.er1
15105   cat conftest.err >&5
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } &&
15108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15109   { (case "(($ac_try" in
15110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111   *) ac_try_echo=$ac_try;;
15112 esac
15113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114   (eval "$ac_try") 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; } &&
15118          { ac_try='test -s conftest.$ac_objext'
15119   { (case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124   (eval "$ac_try") 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128   ac_cv_have_decl_asprintf=yes
15129 else
15130   echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133         ac_cv_have_decl_asprintf=no
15134 fi
15135
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 fi
15138 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
15139 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6; }
15140 if test $ac_cv_have_decl_asprintf = yes; then
15141
15142 cat >>confdefs.h <<_ACEOF
15143 #define HAVE_DECL_ASPRINTF 1
15144 _ACEOF
15145
15146
15147 else
15148   cat >>confdefs.h <<_ACEOF
15149 #define HAVE_DECL_ASPRINTF 0
15150 _ACEOF
15151
15152
15153 fi
15154 { echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
15155 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6; }
15156 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
15157   echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159   cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h.  */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h.  */
15165 $ac_includes_default
15166 int
15167 main ()
15168 {
15169 #ifndef vasprintf
15170   char *p = (char *) vasprintf;
15171   return !p;
15172 #endif
15173
15174   ;
15175   return 0;
15176 }
15177 _ACEOF
15178 rm -f conftest.$ac_objext
15179 if { (ac_try="$ac_compile"
15180 case "(($ac_try" in
15181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182   *) ac_try_echo=$ac_try;;
15183 esac
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185   (eval "$ac_compile") 2>conftest.er1
15186   ac_status=$?
15187   grep -v '^ *+' conftest.er1 >conftest.err
15188   rm -f conftest.er1
15189   cat conftest.err >&5
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); } &&
15192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15193   { (case "(($ac_try" in
15194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15195   *) ac_try_echo=$ac_try;;
15196 esac
15197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15198   (eval "$ac_try") 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); }; } &&
15202          { ac_try='test -s conftest.$ac_objext'
15203   { (case "(($ac_try" in
15204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205   *) ac_try_echo=$ac_try;;
15206 esac
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208   (eval "$ac_try") 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); }; }; then
15212   ac_cv_have_decl_vasprintf=yes
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217         ac_cv_have_decl_vasprintf=no
15218 fi
15219
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 fi
15222 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
15223 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6; }
15224 if test $ac_cv_have_decl_vasprintf = yes; then
15225
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_DECL_VASPRINTF 1
15228 _ACEOF
15229
15230
15231 else
15232   cat >>confdefs.h <<_ACEOF
15233 #define HAVE_DECL_VASPRINTF 0
15234 _ACEOF
15235
15236
15237 fi
15238
15239
15240
15241
15242
15243
15244 for ac_func in snprintf vsnprintf asprintf vasprintf
15245 do
15246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15250   echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252   cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15260 #define $ac_func innocuous_$ac_func
15261
15262 /* System header to define __stub macros and hopefully few prototypes,
15263     which can conflict with char $ac_func (); below.
15264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15265     <limits.h> exists even on freestanding compilers.  */
15266
15267 #ifdef __STDC__
15268 # include <limits.h>
15269 #else
15270 # include <assert.h>
15271 #endif
15272
15273 #undef $ac_func
15274
15275 /* Override any GCC internal prototype to avoid an error.
15276    Use char because int might match the return type of a GCC
15277    builtin and then its argument prototype would still apply.  */
15278 #ifdef __cplusplus
15279 extern "C"
15280 #endif
15281 char $ac_func ();
15282 /* The GNU C library defines this for functions which it implements
15283     to always fail with ENOSYS.  Some functions are actually named
15284     something starting with __ and the normal name is an alias.  */
15285 #if defined __stub_$ac_func || defined __stub___$ac_func
15286 choke me
15287 #endif
15288
15289 int
15290 main ()
15291 {
15292 return $ac_func ();
15293   ;
15294   return 0;
15295 }
15296 _ACEOF
15297 rm -f conftest.$ac_objext conftest$ac_exeext
15298 if { (ac_try="$ac_link"
15299 case "(($ac_try" in
15300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301   *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304   (eval "$ac_link") 2>conftest.er1
15305   ac_status=$?
15306   grep -v '^ *+' conftest.er1 >conftest.err
15307   rm -f conftest.er1
15308   cat conftest.err >&5
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } &&
15311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312   { (case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_try") 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; } &&
15321          { ac_try='test -s conftest$ac_exeext'
15322   { (case "(($ac_try" in
15323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324   *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327   (eval "$ac_try") 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; }; then
15331   eval "$as_ac_var=yes"
15332 else
15333   echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336         eval "$as_ac_var=no"
15337 fi
15338
15339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15340       conftest$ac_exeext conftest.$ac_ext
15341 fi
15342 ac_res=`eval echo '${'$as_ac_var'}'`
15343                { echo "$as_me:$LINENO: result: $ac_res" >&5
15344 echo "${ECHO_T}$ac_res" >&6; }
15345 if test `eval echo '${'$as_ac_var'}'` = yes; then
15346   cat >>confdefs.h <<_ACEOF
15347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15348 _ACEOF
15349
15350 fi
15351 done
15352
15353
15354 { echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
15355 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
15356 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
15357   echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359
15360 if test "$cross_compiling" = yes; then
15361   samba_cv_HAVE_C99_VSNPRINTF=cross
15362 else
15363   cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h.  */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h.  */
15369
15370 #include <sys/types.h>
15371 #include <stdio.h>
15372 #include <stdarg.h>
15373 #include <stdlib.h>
15374 void foo(const char *format, ...) {
15375        va_list ap;
15376        int len;
15377        char buf[20];
15378        long long l = 1234567890;
15379        l *= 100;
15380
15381        va_start(ap, format);
15382        len = vsnprintf(buf, 0, format, ap);
15383        va_end(ap);
15384        if (len != 5) exit(1);
15385
15386        va_start(ap, format);
15387        len = vsnprintf(0, 0, format, ap);
15388        va_end(ap);
15389        if (len != 5) exit(2);
15390
15391        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
15392
15393        if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
15394        if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
15395        if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
15396        if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
15397
15398        exit(0);
15399 }
15400 main() { foo("hello"); }
15401
15402 _ACEOF
15403 rm -f conftest$ac_exeext
15404 if { (ac_try="$ac_link"
15405 case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_link") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15414   { (case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_try") 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); }; }; then
15423   samba_cv_HAVE_C99_VSNPRINTF=yes
15424 else
15425   echo "$as_me: program exited with status $ac_status" >&5
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429 ( exit $ac_status )
15430 samba_cv_HAVE_C99_VSNPRINTF=no
15431 fi
15432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15433 fi
15434
15435
15436 fi
15437 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
15438 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6; }
15439 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
15440
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE_C99_VSNPRINTF 1
15443 _ACEOF
15444
15445 fi
15446
15447
15448 { echo "$as_me:$LINENO: checking for va_copy" >&5
15449 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
15450 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h.  */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h.  */
15460 #include <stdarg.h>
15461 va_list ap1,ap2;
15462 int
15463 main ()
15464 {
15465 va_copy(ap1,ap2);
15466   ;
15467   return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_link") 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485   { (case "(($ac_try" in
15486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487   *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490   (eval "$ac_try") 2>&5
15491   ac_status=$?
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); }; } &&
15494          { ac_try='test -s conftest$ac_exeext'
15495   { (case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_try") 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; }; then
15504   samba_cv_HAVE_VA_COPY=yes
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509         samba_cv_HAVE_VA_COPY=no
15510 fi
15511
15512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513       conftest$ac_exeext conftest.$ac_ext
15514 fi
15515 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
15516 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6; }
15517 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
15518
15519 cat >>confdefs.h <<\_ACEOF
15520 #define HAVE_VA_COPY 1
15521 _ACEOF
15522
15523 fi
15524
15525 if test x"$samba_cv_HAVE_VA_COPY" != x"yes"; then
15526 { echo "$as_me:$LINENO: checking for __va_copy" >&5
15527 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
15528 if test "${samba_cv_HAVE___VA_COPY+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h.  */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h.  */
15538 #include <stdarg.h>
15539 va_list ap1,ap2;
15540 int
15541 main ()
15542 {
15543 __va_copy(ap1,ap2);
15544   ;
15545   return 0;
15546 }
15547 _ACEOF
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (ac_try="$ac_link"
15550 case "(($ac_try" in
15551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552   *) ac_try_echo=$ac_try;;
15553 esac
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555   (eval "$ac_link") 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15563   { (case "(($ac_try" in
15564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565   *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568   (eval "$ac_try") 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); }; } &&
15572          { ac_try='test -s conftest$ac_exeext'
15573   { (case "(($ac_try" in
15574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575   *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578   (eval "$ac_try") 2>&5
15579   ac_status=$?
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); }; }; then
15582   samba_cv_HAVE___VA_COPY=yes
15583 else
15584   echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587         samba_cv_HAVE___VA_COPY=no
15588 fi
15589
15590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15591       conftest$ac_exeext conftest.$ac_ext
15592 fi
15593 { echo "$as_me:$LINENO: result: $samba_cv_HAVE___VA_COPY" >&5
15594 echo "${ECHO_T}$samba_cv_HAVE___VA_COPY" >&6; }
15595 if test x"$samba_cv_HAVE___VA_COPY" = x"yes"; then
15596
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE___VA_COPY 1
15599 _ACEOF
15600
15601 fi
15602 fi
15603
15604 { echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
15605 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6; }
15606 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
15607   echo $ECHO_N "(cached) $ECHO_C" >&6
15608 else
15609
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h.  */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h.  */
15616 #include <stdio.h>
15617 int
15618 main ()
15619 {
15620 printf("%s\n", __FUNCTION__);
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext
15626 if { (ac_try="$ac_compile"
15627 case "(($ac_try" in
15628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629   *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632   (eval "$ac_compile") 2>conftest.er1
15633   ac_status=$?
15634   grep -v '^ *+' conftest.er1 >conftest.err
15635   rm -f conftest.er1
15636   cat conftest.err >&5
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); } &&
15639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640   { (case "(($ac_try" in
15641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642   *) ac_try_echo=$ac_try;;
15643 esac
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645   (eval "$ac_try") 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; } &&
15649          { ac_try='test -s conftest.$ac_objext'
15650   { (case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655   (eval "$ac_try") 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }; then
15659   samba_cv_HAVE_FUNCTION_MACRO=yes
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664         samba_cv_HAVE_FUNCTION_MACRO=no
15665 fi
15666
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15668 fi
15669 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
15670 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6; }
15671 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
15672
15673 cat >>confdefs.h <<\_ACEOF
15674 #define HAVE_FUNCTION_MACRO 1
15675 _ACEOF
15676
15677 else
15678         { echo "$as_me:$LINENO: checking for __func__ macro" >&5
15679 echo $ECHO_N "checking for __func__ macro... $ECHO_C" >&6; }
15680 if test "${samba_cv_HAVE_func_MACRO+set}" = set; then
15681   echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683
15684     cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h.  */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h.  */
15690 #include <stdio.h>
15691 int
15692 main ()
15693 {
15694 printf("%s\n", __func__);
15695   ;
15696   return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706   (eval "$ac_compile") 2>conftest.er1
15707   ac_status=$?
15708   grep -v '^ *+' conftest.er1 >conftest.err
15709   rm -f conftest.er1
15710   cat conftest.err >&5
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); } &&
15713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15714   { (case "(($ac_try" in
15715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716   *) ac_try_echo=$ac_try;;
15717 esac
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719   (eval "$ac_try") 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); }; } &&
15723          { ac_try='test -s conftest.$ac_objext'
15724   { (case "(($ac_try" in
15725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726   *) ac_try_echo=$ac_try;;
15727 esac
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729   (eval "$ac_try") 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; }; then
15733   samba_cv_HAVE_func_MACRO=yes
15734 else
15735   echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15737
15738         samba_cv_HAVE_func_MACRO=no
15739 fi
15740
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 fi
15743 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_func_MACRO" >&5
15744 echo "${ECHO_T}$samba_cv_HAVE_func_MACRO" >&6; }
15745     if test x"$samba_cv_HAVE_func_MACRO" = x"yes"; then
15746
15747 cat >>confdefs.h <<\_ACEOF
15748 #define HAVE_func_MACRO 1
15749 _ACEOF
15750
15751     fi
15752 fi
15753
15754
15755
15756 for ac_header in sys/param.h limits.h
15757 do
15758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763   echo $ECHO_N "(cached) $ECHO_C" >&6
15764 fi
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766                { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15768 else
15769   # Is the header compilable?
15770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778 $ac_includes_default
15779 #include <$ac_header>
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_compile") 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796   { (case "(($ac_try" in
15797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798   *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801   (eval "$ac_try") 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; } &&
15805          { ac_try='test -s conftest.$ac_objext'
15806   { (case "(($ac_try" in
15807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808   *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811   (eval "$ac_try") 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }; }; then
15815   ac_header_compiler=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820         ac_header_compiler=no
15821 fi
15822
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15826
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h.  */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h.  */
15836 #include <$ac_header>
15837 _ACEOF
15838 if { (ac_try="$ac_cpp conftest.$ac_ext"
15839 case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } >/dev/null; then
15851   if test -s conftest.err; then
15852     ac_cpp_err=$ac_c_preproc_warn_flag
15853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15854   else
15855     ac_cpp_err=
15856   fi
15857 else
15858   ac_cpp_err=yes
15859 fi
15860 if test -z "$ac_cpp_err"; then
15861   ac_header_preproc=yes
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866   ac_header_preproc=no
15867 fi
15868
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15872
15873 # So?  What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15875   yes:no: )
15876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880     ac_header_preproc=yes
15881     ;;
15882   no:yes:* )
15883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15895
15896     ;;
15897 esac
15898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903   eval "$as_ac_Header=\$ac_header_preproc"
15904 fi
15905 ac_res=`eval echo '${'$as_ac_Header'}'`
15906                { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15908
15909 fi
15910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15911   cat >>confdefs.h <<_ACEOF
15912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15913 _ACEOF
15914
15915 fi
15916
15917 done
15918
15919
15920 { echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
15921 echo $ECHO_N "checking for comparison_fn_t... $ECHO_C" >&6; }
15922 if test "${ac_cv_type_comparison_fn_t+set}" = set; then
15923   echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925   cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h.  */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h.  */
15931 $ac_includes_default
15932 typedef comparison_fn_t ac__type_new_;
15933 int
15934 main ()
15935 {
15936 if ((ac__type_new_ *) 0)
15937   return 0;
15938 if (sizeof (ac__type_new_))
15939   return 0;
15940   ;
15941   return 0;
15942 }
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948   *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951   (eval "$ac_compile") 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959   { (case "(($ac_try" in
15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961   *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964   (eval "$ac_try") 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; } &&
15968          { ac_try='test -s conftest.$ac_objext'
15969   { (case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974   (eval "$ac_try") 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; }; then
15978   ac_cv_type_comparison_fn_t=yes
15979 else
15980   echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983         ac_cv_type_comparison_fn_t=no
15984 fi
15985
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987 fi
15988 { echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
15989 echo "${ECHO_T}$ac_cv_type_comparison_fn_t" >&6; }
15990 if test $ac_cv_type_comparison_fn_t = yes; then
15991
15992 cat >>confdefs.h <<\_ACEOF
15993 #define HAVE_COMPARISON_FN_T 1
15994 _ACEOF
15995
15996 fi
15997
15998
15999
16000
16001 for ac_func in strnlen setenv
16002 do
16003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009   cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16017 #define $ac_func innocuous_$ac_func
16018
16019 /* System header to define __stub macros and hopefully few prototypes,
16020     which can conflict with char $ac_func (); below.
16021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16022     <limits.h> exists even on freestanding compilers.  */
16023
16024 #ifdef __STDC__
16025 # include <limits.h>
16026 #else
16027 # include <assert.h>
16028 #endif
16029
16030 #undef $ac_func
16031
16032 /* Override any GCC internal prototype to avoid an error.
16033    Use char because int might match the return type of a GCC
16034    builtin and then its argument prototype would still apply.  */
16035 #ifdef __cplusplus
16036 extern "C"
16037 #endif
16038 char $ac_func ();
16039 /* The GNU C library defines this for functions which it implements
16040     to always fail with ENOSYS.  Some functions are actually named
16041     something starting with __ and the normal name is an alias.  */
16042 #if defined __stub_$ac_func || defined __stub___$ac_func
16043 choke me
16044 #endif
16045
16046 int
16047 main ()
16048 {
16049 return $ac_func ();
16050   ;
16051   return 0;
16052 }
16053 _ACEOF
16054 rm -f conftest.$ac_objext conftest$ac_exeext
16055 if { (ac_try="$ac_link"
16056 case "(($ac_try" in
16057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058   *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061   (eval "$ac_link") 2>conftest.er1
16062   ac_status=$?
16063   grep -v '^ *+' conftest.er1 >conftest.err
16064   rm -f conftest.er1
16065   cat conftest.err >&5
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } &&
16068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16069   { (case "(($ac_try" in
16070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071   *) ac_try_echo=$ac_try;;
16072 esac
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074   (eval "$ac_try") 2>&5
16075   ac_status=$?
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); }; } &&
16078          { ac_try='test -s conftest$ac_exeext'
16079   { (case "(($ac_try" in
16080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081   *) ac_try_echo=$ac_try;;
16082 esac
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084   (eval "$ac_try") 2>&5
16085   ac_status=$?
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); }; }; then
16088   eval "$as_ac_var=yes"
16089 else
16090   echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093         eval "$as_ac_var=no"
16094 fi
16095
16096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16097       conftest$ac_exeext conftest.$ac_ext
16098 fi
16099 ac_res=`eval echo '${'$as_ac_var'}'`
16100                { echo "$as_me:$LINENO: result: $ac_res" >&5
16101 echo "${ECHO_T}$ac_res" >&6; }
16102 if test `eval echo '${'$as_ac_var'}'` = yes; then
16103   cat >>confdefs.h <<_ACEOF
16104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16105 _ACEOF
16106
16107 fi
16108 done
16109
16110
16111
16112
16113
16114
16115
16116 for ac_func in strtoull __strtoull strtouq strtoll __strtoll strtoq
16117 do
16118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16122   echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124   cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h.  */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h.  */
16130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16132 #define $ac_func innocuous_$ac_func
16133
16134 /* System header to define __stub macros and hopefully few prototypes,
16135     which can conflict with char $ac_func (); below.
16136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16137     <limits.h> exists even on freestanding compilers.  */
16138
16139 #ifdef __STDC__
16140 # include <limits.h>
16141 #else
16142 # include <assert.h>
16143 #endif
16144
16145 #undef $ac_func
16146
16147 /* Override any GCC internal prototype to avoid an error.
16148    Use char because int might match the return type of a GCC
16149    builtin and then its argument prototype would still apply.  */
16150 #ifdef __cplusplus
16151 extern "C"
16152 #endif
16153 char $ac_func ();
16154 /* The GNU C library defines this for functions which it implements
16155     to always fail with ENOSYS.  Some functions are actually named
16156     something starting with __ and the normal name is an alias.  */
16157 #if defined __stub_$ac_func || defined __stub___$ac_func
16158 choke me
16159 #endif
16160
16161 int
16162 main ()
16163 {
16164 return $ac_func ();
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_link") 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } &&
16183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184   { (case "(($ac_try" in
16185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186   *) ac_try_echo=$ac_try;;
16187 esac
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189   (eval "$ac_try") 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; } &&
16193          { ac_try='test -s conftest$ac_exeext'
16194   { (case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_try") 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; }; then
16203   eval "$as_ac_var=yes"
16204 else
16205   echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16207
16208         eval "$as_ac_var=no"
16209 fi
16210
16211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16212       conftest$ac_exeext conftest.$ac_ext
16213 fi
16214 ac_res=`eval echo '${'$as_ac_var'}'`
16215                { echo "$as_me:$LINENO: result: $ac_res" >&5
16216 echo "${ECHO_T}$ac_res" >&6; }
16217 if test `eval echo '${'$as_ac_var'}'` = yes; then
16218   cat >>confdefs.h <<_ACEOF
16219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16220 _ACEOF
16221
16222 fi
16223 done
16224
16225
16226 # this test disabled as we don't actually need __VA_ARGS__ yet
16227 cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h.  */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h.  */
16233
16234 #define eprintf(...) fprintf(stderr, __VA_ARGS__)
16235 eprintf("bla", "bar");
16236
16237 _ACEOF
16238 if { (ac_try="$ac_cpp conftest.$ac_ext"
16239 case "(($ac_try" in
16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241   *) ac_try_echo=$ac_try;;
16242 esac
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16245   ac_status=$?
16246   grep -v '^ *+' conftest.er1 >conftest.err
16247   rm -f conftest.er1
16248   cat conftest.err >&5
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); } >/dev/null; then
16251   if test -s conftest.err; then
16252     ac_cpp_err=$ac_c_preproc_warn_flag
16253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16254   else
16255     ac_cpp_err=
16256   fi
16257 else
16258   ac_cpp_err=yes
16259 fi
16260 if test -z "$ac_cpp_err"; then
16261
16262 cat >>confdefs.h <<\_ACEOF
16263 #define HAVE__VA_ARGS__MACRO 1
16264 _ACEOF
16265
16266 else
16267   echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270
16271 fi
16272
16273 rm -f conftest.err conftest.$ac_ext
16274
16275 # Check prerequisites
16276
16277
16278
16279 for ac_func in memset printf syslog
16280 do
16281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16295 #define $ac_func innocuous_$ac_func
16296
16297 /* System header to define __stub macros and hopefully few prototypes,
16298     which can conflict with char $ac_func (); below.
16299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16300     <limits.h> exists even on freestanding compilers.  */
16301
16302 #ifdef __STDC__
16303 # include <limits.h>
16304 #else
16305 # include <assert.h>
16306 #endif
16307
16308 #undef $ac_func
16309
16310 /* Override any GCC internal prototype to avoid an error.
16311    Use char because int might match the return type of a GCC
16312    builtin and then its argument prototype would still apply.  */
16313 #ifdef __cplusplus
16314 extern "C"
16315 #endif
16316 char $ac_func ();
16317 /* The GNU C library defines this for functions which it implements
16318     to always fail with ENOSYS.  Some functions are actually named
16319     something starting with __ and the normal name is an alias.  */
16320 #if defined __stub_$ac_func || defined __stub___$ac_func
16321 choke me
16322 #endif
16323
16324 int
16325 main ()
16326 {
16327 return $ac_func ();
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 rm -f conftest.$ac_objext conftest$ac_exeext
16333 if { (ac_try="$ac_link"
16334 case "(($ac_try" in
16335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336   *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339   (eval "$ac_link") 2>conftest.er1
16340   ac_status=$?
16341   grep -v '^ *+' conftest.er1 >conftest.err
16342   rm -f conftest.er1
16343   cat conftest.err >&5
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); } &&
16346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347   { (case "(($ac_try" in
16348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349   *) ac_try_echo=$ac_try;;
16350 esac
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352   (eval "$ac_try") 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; } &&
16356          { ac_try='test -s conftest$ac_exeext'
16357   { (case "(($ac_try" in
16358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359   *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362   (eval "$ac_try") 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   eval "$as_ac_var=yes"
16367 else
16368   echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16370
16371         eval "$as_ac_var=no"
16372 fi
16373
16374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16375       conftest$ac_exeext conftest.$ac_ext
16376 fi
16377 ac_res=`eval echo '${'$as_ac_var'}'`
16378                { echo "$as_me:$LINENO: result: $ac_res" >&5
16379 echo "${ECHO_T}$ac_res" >&6; }
16380 if test `eval echo '${'$as_ac_var'}'` = yes; then
16381   cat >>confdefs.h <<_ACEOF
16382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16383 _ACEOF
16384
16385 else
16386    { { echo "$as_me:$LINENO: error: Required function not found" >&5
16387 echo "$as_me: error: Required function not found" >&2;}
16388    { (exit 1); exit 1; }; }
16389 fi
16390 done
16391
16392
16393 { echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
16394 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6; }
16395 if test "${samba_cv_sig_atomic_t+set}" = set; then
16396   echo $ECHO_N "(cached) $ECHO_C" >&6
16397 else
16398
16399     cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h.  */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h.  */
16405
16406 #include <sys/types.h>
16407 #if STDC_HEADERS
16408 #include <stdlib.h>
16409 #include <stddef.h>
16410 #endif
16411 #include <signal.h>
16412 int
16413 main ()
16414 {
16415 sig_atomic_t i = 0
16416   ;
16417   return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext
16421 if { (ac_try="$ac_compile"
16422 case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_compile") 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } &&
16434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435   { (case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_try") 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; } &&
16444          { ac_try='test -s conftest.$ac_objext'
16445   { (case "(($ac_try" in
16446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447   *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450   (eval "$ac_try") 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; }; then
16454   samba_cv_sig_atomic_t=yes
16455 else
16456   echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459         samba_cv_sig_atomic_t=no
16460 fi
16461
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463 fi
16464 { echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
16465 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6; }
16466 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
16467
16468 cat >>confdefs.h <<\_ACEOF
16469 #define HAVE_SIG_ATOMIC_T_TYPE 1
16470 _ACEOF
16471
16472 fi
16473
16474
16475 { echo "$as_me:$LINENO: checking for O_DIRECT flag to open(2)" >&5
16476 echo $ECHO_N "checking for O_DIRECT flag to open(2)... $ECHO_C" >&6; }
16477 if test "${samba_cv_HAVE_OPEN_O_DIRECT+set}" = set; then
16478   echo $ECHO_N "(cached) $ECHO_C" >&6
16479 else
16480
16481 cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h.  */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h.  */
16487
16488 #include <unistd.h>
16489 #ifdef HAVE_FCNTL_H
16490 #include <fcntl.h>
16491 #endif
16492 int
16493 main ()
16494 {
16495 int fd = open("/dev/null", O_DIRECT);
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext
16501 if { (ac_try="$ac_compile"
16502 case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507   (eval "$ac_compile") 2>conftest.er1
16508   ac_status=$?
16509   grep -v '^ *+' conftest.er1 >conftest.err
16510   rm -f conftest.er1
16511   cat conftest.err >&5
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); } &&
16514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515   { (case "(($ac_try" in
16516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517   *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520   (eval "$ac_try") 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; } &&
16524          { ac_try='test -s conftest.$ac_objext'
16525   { (case "(($ac_try" in
16526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527   *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530   (eval "$ac_try") 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); }; }; then
16534   samba_cv_HAVE_OPEN_O_DIRECT=yes
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539         samba_cv_HAVE_OPEN_O_DIRECT=no
16540 fi
16541
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 fi
16544 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_OPEN_O_DIRECT" >&5
16545 echo "${ECHO_T}$samba_cv_HAVE_OPEN_O_DIRECT" >&6; }
16546 if test x"$samba_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
16547
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_OPEN_O_DIRECT 1
16550 _ACEOF
16551
16552 fi
16553
16554
16555 { echo "$as_me:$LINENO: checking that the C compiler can precompile header files" >&5
16556 echo $ECHO_N "checking that the C compiler can precompile header files... $ECHO_C" >&6; }
16557 if test "${samba_cv_precompiled_headers+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560
16561                 touch conftest.h
16562         if ${CC-cc} conftest.h 2> /dev/null && test -f conftest.h.gch; then
16563                 precompiled_headers=yes
16564         else
16565                 precompiled_headers=no
16566         fi
16567 fi
16568 { echo "$as_me:$LINENO: result: $samba_cv_precompiled_headers" >&5
16569 echo "${ECHO_T}$samba_cv_precompiled_headers" >&6; }
16570
16571
16572
16573 { echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
16574 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6; }
16575 if test "${samba_cv_volatile+set}" = set; then
16576   echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578
16579         cat >conftest.$ac_ext <<_ACEOF
16580 /* confdefs.h.  */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h.  */
16585 #include <sys/types.h>
16586 int
16587 main ()
16588 {
16589 volatile int i = 0
16590   ;
16591   return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext
16595 if { (ac_try="$ac_compile"
16596 case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_compile") 2>conftest.er1
16602   ac_status=$?
16603   grep -v '^ *+' conftest.er1 >conftest.err
16604   rm -f conftest.er1
16605   cat conftest.err >&5
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } &&
16608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609   { (case "(($ac_try" in
16610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611   *) ac_try_echo=$ac_try;;
16612 esac
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614   (eval "$ac_try") 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; } &&
16618          { ac_try='test -s conftest.$ac_objext'
16619   { (case "(($ac_try" in
16620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621   *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624   (eval "$ac_try") 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; }; then
16628   samba_cv_volatile=yes
16629 else
16630   echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633         samba_cv_volatile=no
16634 fi
16635
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637 fi
16638 { echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
16639 echo "${ECHO_T}$samba_cv_volatile" >&6; }
16640 if test x"$samba_cv_volatile" = x"yes"; then
16641
16642 cat >>confdefs.h <<\_ACEOF
16643 #define HAVE_VOLATILE 1
16644 _ACEOF
16645
16646 fi
16647
16648 # filesys
16649
16650
16651
16652
16653
16654 ac_header_dirent=no
16655 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16656   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16657 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16658 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16660   echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662   cat >conftest.$ac_ext <<_ACEOF
16663 /* confdefs.h.  */
16664 _ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h.  */
16668 #include <sys/types.h>
16669 #include <$ac_hdr>
16670
16671 int
16672 main ()
16673 {
16674 if ((DIR *) 0)
16675 return 0;
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 rm -f conftest.$ac_objext
16681 if { (ac_try="$ac_compile"
16682 case "(($ac_try" in
16683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684   *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687   (eval "$ac_compile") 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } &&
16694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16695   { (case "(($ac_try" in
16696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697   *) ac_try_echo=$ac_try;;
16698 esac
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700   (eval "$ac_try") 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); }; } &&
16704          { ac_try='test -s conftest.$ac_objext'
16705   { (case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_try") 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; }; then
16714   eval "$as_ac_Header=yes"
16715 else
16716   echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16718
16719         eval "$as_ac_Header=no"
16720 fi
16721
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723 fi
16724 ac_res=`eval echo '${'$as_ac_Header'}'`
16725                { echo "$as_me:$LINENO: result: $ac_res" >&5
16726 echo "${ECHO_T}$ac_res" >&6; }
16727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16728   cat >>confdefs.h <<_ACEOF
16729 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16730 _ACEOF
16731
16732 ac_header_dirent=$ac_hdr; break
16733 fi
16734
16735 done
16736 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16737 if test $ac_header_dirent = dirent.h; then
16738   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16739 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16740 if test "${ac_cv_search_opendir+set}" = set; then
16741   echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743   ac_func_search_save_LIBS=$LIBS
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750
16751 /* Override any GCC internal prototype to avoid an error.
16752    Use char because int might match the return type of a GCC
16753    builtin and then its argument prototype would still apply.  */
16754 #ifdef __cplusplus
16755 extern "C"
16756 #endif
16757 char opendir ();
16758 int
16759 main ()
16760 {
16761 return opendir ();
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 for ac_lib in '' dir; do
16767   if test -z "$ac_lib"; then
16768     ac_res="none required"
16769   else
16770     ac_res=-l$ac_lib
16771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16772   fi
16773   rm -f conftest.$ac_objext conftest$ac_exeext
16774 if { (ac_try="$ac_link"
16775 case "(($ac_try" in
16776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777   *) ac_try_echo=$ac_try;;
16778 esac
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780   (eval "$ac_link") 2>conftest.er1
16781   ac_status=$?
16782   grep -v '^ *+' conftest.er1 >conftest.err
16783   rm -f conftest.er1
16784   cat conftest.err >&5
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } &&
16787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16788   { (case "(($ac_try" in
16789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790   *) ac_try_echo=$ac_try;;
16791 esac
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793   (eval "$ac_try") 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; } &&
16797          { ac_try='test -s conftest$ac_exeext'
16798   { (case "(($ac_try" in
16799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800   *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803   (eval "$ac_try") 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); }; }; then
16807   ac_cv_search_opendir=$ac_res
16808 else
16809   echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812
16813 fi
16814
16815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16816       conftest$ac_exeext
16817   if test "${ac_cv_search_opendir+set}" = set; then
16818   break
16819 fi
16820 done
16821 if test "${ac_cv_search_opendir+set}" = set; then
16822   :
16823 else
16824   ac_cv_search_opendir=no
16825 fi
16826 rm conftest.$ac_ext
16827 LIBS=$ac_func_search_save_LIBS
16828 fi
16829 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16830 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16831 ac_res=$ac_cv_search_opendir
16832 if test "$ac_res" != no; then
16833   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16834
16835 fi
16836
16837 else
16838   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16839 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16840 if test "${ac_cv_search_opendir+set}" = set; then
16841   echo $ECHO_N "(cached) $ECHO_C" >&6
16842 else
16843   ac_func_search_save_LIBS=$LIBS
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850
16851 /* Override any GCC internal prototype to avoid an error.
16852    Use char because int might match the return type of a GCC
16853    builtin and then its argument prototype would still apply.  */
16854 #ifdef __cplusplus
16855 extern "C"
16856 #endif
16857 char opendir ();
16858 int
16859 main ()
16860 {
16861 return opendir ();
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 for ac_lib in '' x; do
16867   if test -z "$ac_lib"; then
16868     ac_res="none required"
16869   else
16870     ac_res=-l$ac_lib
16871     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16872   fi
16873   rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_link") 2>conftest.er1
16881   ac_status=$?
16882   grep -v '^ *+' conftest.er1 >conftest.err
16883   rm -f conftest.er1
16884   cat conftest.err >&5
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); } &&
16887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888   { (case "(($ac_try" in
16889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890   *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893   (eval "$ac_try") 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; } &&
16897          { ac_try='test -s conftest$ac_exeext'
16898   { (case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_try") 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; }; then
16907   ac_cv_search_opendir=$ac_res
16908 else
16909   echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912
16913 fi
16914
16915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16916       conftest$ac_exeext
16917   if test "${ac_cv_search_opendir+set}" = set; then
16918   break
16919 fi
16920 done
16921 if test "${ac_cv_search_opendir+set}" = set; then
16922   :
16923 else
16924   ac_cv_search_opendir=no
16925 fi
16926 rm conftest.$ac_ext
16927 LIBS=$ac_func_search_save_LIBS
16928 fi
16929 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16930 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16931 ac_res=$ac_cv_search_opendir
16932 if test "$ac_res" != no; then
16933   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16934
16935 fi
16936
16937 fi
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948 for ac_header in fcntl.h sys/fcntl.h sys/acl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h
16949 do
16950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16952   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16955   echo $ECHO_N "(cached) $ECHO_C" >&6
16956 fi
16957 ac_res=`eval echo '${'$as_ac_Header'}'`
16958                { echo "$as_me:$LINENO: result: $ac_res" >&5
16959 echo "${ECHO_T}$ac_res" >&6; }
16960 else
16961   # Is the header compilable?
16962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16964 cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h.  */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h.  */
16970 $ac_includes_default
16971 #include <$ac_header>
16972 _ACEOF
16973 rm -f conftest.$ac_objext
16974 if { (ac_try="$ac_compile"
16975 case "(($ac_try" in
16976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977   *) ac_try_echo=$ac_try;;
16978 esac
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980   (eval "$ac_compile") 2>conftest.er1
16981   ac_status=$?
16982   grep -v '^ *+' conftest.er1 >conftest.err
16983   rm -f conftest.er1
16984   cat conftest.err >&5
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } &&
16987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16988   { (case "(($ac_try" in
16989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990   *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993   (eval "$ac_try") 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; } &&
16997          { ac_try='test -s conftest.$ac_objext'
16998   { (case "(($ac_try" in
16999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000   *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003   (eval "$ac_try") 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); }; }; then
17007   ac_header_compiler=yes
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012         ac_header_compiler=no
17013 fi
17014
17015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17017 echo "${ECHO_T}$ac_header_compiler" >&6; }
17018
17019 # Is the header present?
17020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h.  */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h.  */
17028 #include <$ac_header>
17029 _ACEOF
17030 if { (ac_try="$ac_cpp conftest.$ac_ext"
17031 case "(($ac_try" in
17032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033   *) ac_try_echo=$ac_try;;
17034 esac
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17037   ac_status=$?
17038   grep -v '^ *+' conftest.er1 >conftest.err
17039   rm -f conftest.er1
17040   cat conftest.err >&5
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); } >/dev/null; then
17043   if test -s conftest.err; then
17044     ac_cpp_err=$ac_c_preproc_warn_flag
17045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17046   else
17047     ac_cpp_err=
17048   fi
17049 else
17050   ac_cpp_err=yes
17051 fi
17052 if test -z "$ac_cpp_err"; then
17053   ac_header_preproc=yes
17054 else
17055   echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058   ac_header_preproc=no
17059 fi
17060
17061 rm -f conftest.err conftest.$ac_ext
17062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17063 echo "${ECHO_T}$ac_header_preproc" >&6; }
17064
17065 # So?  What about this header?
17066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17067   yes:no: )
17068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17072     ac_header_preproc=yes
17073     ;;
17074   no:yes:* )
17075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17087
17088     ;;
17089 esac
17090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17093   echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095   eval "$as_ac_Header=\$ac_header_preproc"
17096 fi
17097 ac_res=`eval echo '${'$as_ac_Header'}'`
17098                { echo "$as_me:$LINENO: result: $ac_res" >&5
17099 echo "${ECHO_T}$ac_res" >&6; }
17100
17101 fi
17102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17103   cat >>confdefs.h <<_ACEOF
17104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17105 _ACEOF
17106
17107 fi
17108
17109 done
17110
17111
17112 # select
17113
17114 for ac_header in sys/select.h
17115 do
17116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17118   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17121   echo $ECHO_N "(cached) $ECHO_C" >&6
17122 fi
17123 ac_res=`eval echo '${'$as_ac_Header'}'`
17124                { echo "$as_me:$LINENO: result: $ac_res" >&5
17125 echo "${ECHO_T}$ac_res" >&6; }
17126 else
17127   # Is the header compilable?
17128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136 $ac_includes_default
17137 #include <$ac_header>
17138 _ACEOF
17139 rm -f conftest.$ac_objext
17140 if { (ac_try="$ac_compile"
17141 case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_compile") 2>conftest.er1
17147   ac_status=$?
17148   grep -v '^ *+' conftest.er1 >conftest.err
17149   rm -f conftest.er1
17150   cat conftest.err >&5
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); } &&
17153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154   { (case "(($ac_try" in
17155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156   *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159   (eval "$ac_try") 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; } &&
17163          { ac_try='test -s conftest.$ac_objext'
17164   { (case "(($ac_try" in
17165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166   *) ac_try_echo=$ac_try;;
17167 esac
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169   (eval "$ac_try") 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); }; }; then
17173   ac_header_compiler=yes
17174 else
17175   echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178         ac_header_compiler=no
17179 fi
17180
17181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17183 echo "${ECHO_T}$ac_header_compiler" >&6; }
17184
17185 # Is the header present?
17186 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17188 cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 #include <$ac_header>
17195 _ACEOF
17196 if { (ac_try="$ac_cpp conftest.$ac_ext"
17197 case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17203   ac_status=$?
17204   grep -v '^ *+' conftest.er1 >conftest.err
17205   rm -f conftest.er1
17206   cat conftest.err >&5
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); } >/dev/null; then
17209   if test -s conftest.err; then
17210     ac_cpp_err=$ac_c_preproc_warn_flag
17211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17212   else
17213     ac_cpp_err=
17214   fi
17215 else
17216   ac_cpp_err=yes
17217 fi
17218 if test -z "$ac_cpp_err"; then
17219   ac_header_preproc=yes
17220 else
17221   echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224   ac_header_preproc=no
17225 fi
17226
17227 rm -f conftest.err conftest.$ac_ext
17228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17229 echo "${ECHO_T}$ac_header_preproc" >&6; }
17230
17231 # So?  What about this header?
17232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17233   yes:no: )
17234     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17238     ac_header_preproc=yes
17239     ;;
17240   no:yes:* )
17241     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17243     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17244 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17245     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17247     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17248 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17251     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17253
17254     ;;
17255 esac
17256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17259   echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261   eval "$as_ac_Header=\$ac_header_preproc"
17262 fi
17263 ac_res=`eval echo '${'$as_ac_Header'}'`
17264                { echo "$as_me:$LINENO: result: $ac_res" >&5
17265 echo "${ECHO_T}$ac_res" >&6; }
17266
17267 fi
17268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17269   cat >>confdefs.h <<_ACEOF
17270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17271 _ACEOF
17272
17273 fi
17274
17275 done
17276
17277
17278 # time
17279
17280
17281 for ac_header in sys/time.h utime.h
17282 do
17283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17285   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17288   echo $ECHO_N "(cached) $ECHO_C" >&6
17289 fi
17290 ac_res=`eval echo '${'$as_ac_Header'}'`
17291                { echo "$as_me:$LINENO: result: $ac_res" >&5
17292 echo "${ECHO_T}$ac_res" >&6; }
17293 else
17294   # Is the header compilable?
17295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h.  */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h.  */
17303 $ac_includes_default
17304 #include <$ac_header>
17305 _ACEOF
17306 rm -f conftest.$ac_objext
17307 if { (ac_try="$ac_compile"
17308 case "(($ac_try" in
17309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310   *) ac_try_echo=$ac_try;;
17311 esac
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313   (eval "$ac_compile") 2>conftest.er1
17314   ac_status=$?
17315   grep -v '^ *+' conftest.er1 >conftest.err
17316   rm -f conftest.er1
17317   cat conftest.err >&5
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); } &&
17320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17321   { (case "(($ac_try" in
17322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323   *) ac_try_echo=$ac_try;;
17324 esac
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326   (eval "$ac_try") 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); }; } &&
17330          { ac_try='test -s conftest.$ac_objext'
17331   { (case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_try") 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; }; then
17340   ac_header_compiler=yes
17341 else
17342   echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345         ac_header_compiler=no
17346 fi
17347
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17350 echo "${ECHO_T}$ac_header_compiler" >&6; }
17351
17352 # Is the header present?
17353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17355 cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h.  */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h.  */
17361 #include <$ac_header>
17362 _ACEOF
17363 if { (ac_try="$ac_cpp conftest.$ac_ext"
17364 case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17370   ac_status=$?
17371   grep -v '^ *+' conftest.er1 >conftest.err
17372   rm -f conftest.er1
17373   cat conftest.err >&5
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } >/dev/null; then
17376   if test -s conftest.err; then
17377     ac_cpp_err=$ac_c_preproc_warn_flag
17378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17379   else
17380     ac_cpp_err=
17381   fi
17382 else
17383   ac_cpp_err=yes
17384 fi
17385 if test -z "$ac_cpp_err"; then
17386   ac_header_preproc=yes
17387 else
17388   echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391   ac_header_preproc=no
17392 fi
17393
17394 rm -f conftest.err conftest.$ac_ext
17395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17396 echo "${ECHO_T}$ac_header_preproc" >&6; }
17397
17398 # So?  What about this header?
17399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17400   yes:no: )
17401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17405     ac_header_preproc=yes
17406     ;;
17407   no:yes:* )
17408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17420
17421     ;;
17422 esac
17423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   eval "$as_ac_Header=\$ac_header_preproc"
17429 fi
17430 ac_res=`eval echo '${'$as_ac_Header'}'`
17431                { echo "$as_me:$LINENO: result: $ac_res" >&5
17432 echo "${ECHO_T}$ac_res" >&6; }
17433
17434 fi
17435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17436   cat >>confdefs.h <<_ACEOF
17437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17438 _ACEOF
17439
17440 fi
17441
17442 done
17443
17444 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17445 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17446 if test "${ac_cv_header_time+set}" = set; then
17447   echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449   cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h.  */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h.  */
17455 #include <sys/types.h>
17456 #include <sys/time.h>
17457 #include <time.h>
17458
17459 int
17460 main ()
17461 {
17462 if ((struct tm *) 0)
17463 return 0;
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 rm -f conftest.$ac_objext
17469 if { (ac_try="$ac_compile"
17470 case "(($ac_try" in
17471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472   *) ac_try_echo=$ac_try;;
17473 esac
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475   (eval "$ac_compile") 2>conftest.er1
17476   ac_status=$?
17477   grep -v '^ *+' conftest.er1 >conftest.err
17478   rm -f conftest.er1
17479   cat conftest.err >&5
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); } &&
17482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17483   { (case "(($ac_try" in
17484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485   *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488   (eval "$ac_try") 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; } &&
17492          { ac_try='test -s conftest.$ac_objext'
17493   { (case "(($ac_try" in
17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495   *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498   (eval "$ac_try") 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); }; }; then
17502   ac_cv_header_time=yes
17503 else
17504   echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507         ac_cv_header_time=no
17508 fi
17509
17510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17511 fi
17512 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17513 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17514 if test $ac_cv_header_time = yes; then
17515
17516 cat >>confdefs.h <<\_ACEOF
17517 #define TIME_WITH_SYS_TIME 1
17518 _ACEOF
17519
17520 fi
17521
17522
17523 # wait
17524 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
17525 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
17526 if test "${ac_cv_header_sys_wait_h+set}" = set; then
17527   echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529   cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h.  */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h.  */
17535 #include <sys/types.h>
17536 #include <sys/wait.h>
17537 #ifndef WEXITSTATUS
17538 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17539 #endif
17540 #ifndef WIFEXITED
17541 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17542 #endif
17543
17544 int
17545 main ()
17546 {
17547   int s;
17548   wait (&s);
17549   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (ac_try="$ac_compile"
17556 case "(($ac_try" in
17557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558   *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561   (eval "$ac_compile") 2>conftest.er1
17562   ac_status=$?
17563   grep -v '^ *+' conftest.er1 >conftest.err
17564   rm -f conftest.er1
17565   cat conftest.err >&5
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); } &&
17568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17569   { (case "(($ac_try" in
17570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571   *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574   (eval "$ac_try") 2>&5
17575   ac_status=$?
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); }; } &&
17578          { ac_try='test -s conftest.$ac_objext'
17579   { (case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_try") 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; }; then
17588   ac_cv_header_sys_wait_h=yes
17589 else
17590   echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593         ac_cv_header_sys_wait_h=no
17594 fi
17595
17596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597 fi
17598 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
17599 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
17600 if test $ac_cv_header_sys_wait_h = yes; then
17601
17602 cat >>confdefs.h <<\_ACEOF
17603 #define HAVE_SYS_WAIT_H 1
17604 _ACEOF
17605
17606 fi
17607
17608
17609 # capability
17610
17611 for ac_header in sys/capability.h
17612 do
17613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17615   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17618   echo $ECHO_N "(cached) $ECHO_C" >&6
17619 fi
17620 ac_res=`eval echo '${'$as_ac_Header'}'`
17621                { echo "$as_me:$LINENO: result: $ac_res" >&5
17622 echo "${ECHO_T}$ac_res" >&6; }
17623 else
17624   # Is the header compilable?
17625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633 $ac_includes_default
17634 #include <$ac_header>
17635 _ACEOF
17636 rm -f conftest.$ac_objext
17637 if { (ac_try="$ac_compile"
17638 case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643   (eval "$ac_compile") 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } &&
17650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17651   { (case "(($ac_try" in
17652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653   *) ac_try_echo=$ac_try;;
17654 esac
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656   (eval "$ac_try") 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; } &&
17660          { ac_try='test -s conftest.$ac_objext'
17661   { (case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666   (eval "$ac_try") 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; }; then
17670   ac_header_compiler=yes
17671 else
17672   echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675         ac_header_compiler=no
17676 fi
17677
17678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17680 echo "${ECHO_T}$ac_header_compiler" >&6; }
17681
17682 # Is the header present?
17683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17685 cat >conftest.$ac_ext <<_ACEOF
17686 /* confdefs.h.  */
17687 _ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h.  */
17691 #include <$ac_header>
17692 _ACEOF
17693 if { (ac_try="$ac_cpp conftest.$ac_ext"
17694 case "(($ac_try" in
17695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696   *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17700   ac_status=$?
17701   grep -v '^ *+' conftest.er1 >conftest.err
17702   rm -f conftest.er1
17703   cat conftest.err >&5
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); } >/dev/null; then
17706   if test -s conftest.err; then
17707     ac_cpp_err=$ac_c_preproc_warn_flag
17708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17709   else
17710     ac_cpp_err=
17711   fi
17712 else
17713   ac_cpp_err=yes
17714 fi
17715 if test -z "$ac_cpp_err"; then
17716   ac_header_preproc=yes
17717 else
17718   echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17720
17721   ac_header_preproc=no
17722 fi
17723
17724 rm -f conftest.err conftest.$ac_ext
17725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17726 echo "${ECHO_T}$ac_header_preproc" >&6; }
17727
17728 # So?  What about this header?
17729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17730   yes:no: )
17731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17735     ac_header_preproc=yes
17736     ;;
17737   no:yes:* )
17738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17750
17751     ;;
17752 esac
17753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   eval "$as_ac_Header=\$ac_header_preproc"
17759 fi
17760 ac_res=`eval echo '${'$as_ac_Header'}'`
17761                { echo "$as_me:$LINENO: result: $ac_res" >&5
17762 echo "${ECHO_T}$ac_res" >&6; }
17763
17764 fi
17765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17766   cat >>confdefs.h <<_ACEOF
17767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17768 _ACEOF
17769
17770 fi
17771
17772 done
17773
17774
17775 # passwd
17776
17777
17778
17779
17780
17781
17782
17783 for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
17784 do
17785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17787   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17790   echo $ECHO_N "(cached) $ECHO_C" >&6
17791 fi
17792 ac_res=`eval echo '${'$as_ac_Header'}'`
17793                { echo "$as_me:$LINENO: result: $ac_res" >&5
17794 echo "${ECHO_T}$ac_res" >&6; }
17795 else
17796   # Is the header compilable?
17797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805 $ac_includes_default
17806 #include <$ac_header>
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_compile") 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } &&
17822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17823   { (case "(($ac_try" in
17824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825   *) ac_try_echo=$ac_try;;
17826 esac
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828   (eval "$ac_try") 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }; } &&
17832          { ac_try='test -s conftest.$ac_objext'
17833   { (case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_try") 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; }; then
17842   ac_header_compiler=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847         ac_header_compiler=no
17848 fi
17849
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17852 echo "${ECHO_T}$ac_header_compiler" >&6; }
17853
17854 # Is the header present?
17855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17857 cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863 #include <$ac_header>
17864 _ACEOF
17865 if { (ac_try="$ac_cpp conftest.$ac_ext"
17866 case "(($ac_try" in
17867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868   *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17872   ac_status=$?
17873   grep -v '^ *+' conftest.er1 >conftest.err
17874   rm -f conftest.er1
17875   cat conftest.err >&5
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); } >/dev/null; then
17878   if test -s conftest.err; then
17879     ac_cpp_err=$ac_c_preproc_warn_flag
17880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17881   else
17882     ac_cpp_err=
17883   fi
17884 else
17885   ac_cpp_err=yes
17886 fi
17887 if test -z "$ac_cpp_err"; then
17888   ac_header_preproc=yes
17889 else
17890   echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17892
17893   ac_header_preproc=no
17894 fi
17895
17896 rm -f conftest.err conftest.$ac_ext
17897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17898 echo "${ECHO_T}$ac_header_preproc" >&6; }
17899
17900 # So?  What about this header?
17901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17902   yes:no: )
17903     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17907     ac_header_preproc=yes
17908     ;;
17909   no:yes:* )
17910     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17912     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17913 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17914     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17916     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17917 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17920     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17922
17923     ;;
17924 esac
17925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17928   echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930   eval "$as_ac_Header=\$ac_header_preproc"
17931 fi
17932 ac_res=`eval echo '${'$as_ac_Header'}'`
17933                { echo "$as_me:$LINENO: result: $ac_res" >&5
17934 echo "${ECHO_T}$ac_res" >&6; }
17935
17936 fi
17937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17938   cat >>confdefs.h <<_ACEOF
17939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17940 _ACEOF
17941
17942 fi
17943
17944 done
17945
17946
17947 # locale
17948
17949
17950 for ac_header in ctype.h locale.h
17951 do
17952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17954   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17957   echo $ECHO_N "(cached) $ECHO_C" >&6
17958 fi
17959 ac_res=`eval echo '${'$as_ac_Header'}'`
17960                { echo "$as_me:$LINENO: result: $ac_res" >&5
17961 echo "${ECHO_T}$ac_res" >&6; }
17962 else
17963   # Is the header compilable?
17964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h.  */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h.  */
17972 $ac_includes_default
17973 #include <$ac_header>
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982   (eval "$ac_compile") 2>conftest.er1
17983   ac_status=$?
17984   grep -v '^ *+' conftest.er1 >conftest.err
17985   rm -f conftest.er1
17986   cat conftest.err >&5
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); } &&
17989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17990   { (case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_try") 2>&5
17996   ac_status=$?
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); }; } &&
17999          { ac_try='test -s conftest.$ac_objext'
18000   { (case "(($ac_try" in
18001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002   *) ac_try_echo=$ac_try;;
18003 esac
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005   (eval "$ac_try") 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; }; then
18009   ac_header_compiler=yes
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014         ac_header_compiler=no
18015 fi
18016
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18019 echo "${ECHO_T}$ac_header_compiler" >&6; }
18020
18021 # Is the header present?
18022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18024 cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h.  */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h.  */
18030 #include <$ac_header>
18031 _ACEOF
18032 if { (ac_try="$ac_cpp conftest.$ac_ext"
18033 case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18039   ac_status=$?
18040   grep -v '^ *+' conftest.er1 >conftest.err
18041   rm -f conftest.er1
18042   cat conftest.err >&5
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); } >/dev/null; then
18045   if test -s conftest.err; then
18046     ac_cpp_err=$ac_c_preproc_warn_flag
18047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18048   else
18049     ac_cpp_err=
18050   fi
18051 else
18052   ac_cpp_err=yes
18053 fi
18054 if test -z "$ac_cpp_err"; then
18055   ac_header_preproc=yes
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060   ac_header_preproc=no
18061 fi
18062
18063 rm -f conftest.err conftest.$ac_ext
18064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18065 echo "${ECHO_T}$ac_header_preproc" >&6; }
18066
18067 # So?  What about this header?
18068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18069   yes:no: )
18070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18074     ac_header_preproc=yes
18075     ;;
18076   no:yes:* )
18077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18089
18090     ;;
18091 esac
18092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   eval "$as_ac_Header=\$ac_header_preproc"
18098 fi
18099 ac_res=`eval echo '${'$as_ac_Header'}'`
18100                { echo "$as_me:$LINENO: result: $ac_res" >&5
18101 echo "${ECHO_T}$ac_res" >&6; }
18102
18103 fi
18104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18105   cat >>confdefs.h <<_ACEOF
18106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18107 _ACEOF
18108
18109 fi
18110
18111 done
18112
18113
18114 # glob
18115
18116 for ac_header in fnmatch.h
18117 do
18118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18120   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 fi
18125 ac_res=`eval echo '${'$as_ac_Header'}'`
18126                { echo "$as_me:$LINENO: result: $ac_res" >&5
18127 echo "${ECHO_T}$ac_res" >&6; }
18128 else
18129   # Is the header compilable?
18130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18132 cat >conftest.$ac_ext <<_ACEOF
18133 /* confdefs.h.  */
18134 _ACEOF
18135 cat confdefs.h >>conftest.$ac_ext
18136 cat >>conftest.$ac_ext <<_ACEOF
18137 /* end confdefs.h.  */
18138 $ac_includes_default
18139 #include <$ac_header>
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145   *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148   (eval "$ac_compile") 2>conftest.er1
18149   ac_status=$?
18150   grep -v '^ *+' conftest.er1 >conftest.err
18151   rm -f conftest.er1
18152   cat conftest.err >&5
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); } &&
18155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156   { (case "(($ac_try" in
18157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158   *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161   (eval "$ac_try") 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; } &&
18165          { ac_try='test -s conftest.$ac_objext'
18166   { (case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_try") 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   ac_header_compiler=yes
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180         ac_header_compiler=no
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18185 echo "${ECHO_T}$ac_header_compiler" >&6; }
18186
18187 # Is the header present?
18188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196 #include <$ac_header>
18197 _ACEOF
18198 if { (ac_try="$ac_cpp conftest.$ac_ext"
18199 case "(($ac_try" in
18200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201   *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18205   ac_status=$?
18206   grep -v '^ *+' conftest.er1 >conftest.err
18207   rm -f conftest.er1
18208   cat conftest.err >&5
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } >/dev/null; then
18211   if test -s conftest.err; then
18212     ac_cpp_err=$ac_c_preproc_warn_flag
18213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18214   else
18215     ac_cpp_err=
18216   fi
18217 else
18218   ac_cpp_err=yes
18219 fi
18220 if test -z "$ac_cpp_err"; then
18221   ac_header_preproc=yes
18222 else
18223   echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226   ac_header_preproc=no
18227 fi
18228
18229 rm -f conftest.err conftest.$ac_ext
18230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18231 echo "${ECHO_T}$ac_header_preproc" >&6; }
18232
18233 # So?  What about this header?
18234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18235   yes:no: )
18236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18240     ac_header_preproc=yes
18241     ;;
18242   no:yes:* )
18243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18255
18256     ;;
18257 esac
18258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18261   echo $ECHO_N "(cached) $ECHO_C" >&6
18262 else
18263   eval "$as_ac_Header=\$ac_header_preproc"
18264 fi
18265 ac_res=`eval echo '${'$as_ac_Header'}'`
18266                { echo "$as_me:$LINENO: result: $ac_res" >&5
18267 echo "${ECHO_T}$ac_res" >&6; }
18268
18269 fi
18270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18271   cat >>confdefs.h <<_ACEOF
18272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18273 _ACEOF
18274
18275 fi
18276
18277 done
18278
18279
18280 # shmem
18281
18282
18283
18284 for ac_header in sys/ipc.h sys/mman.h sys/shm.h
18285 do
18286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18288   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18291   echo $ECHO_N "(cached) $ECHO_C" >&6
18292 fi
18293 ac_res=`eval echo '${'$as_ac_Header'}'`
18294                { echo "$as_me:$LINENO: result: $ac_res" >&5
18295 echo "${ECHO_T}$ac_res" >&6; }
18296 else
18297   # Is the header compilable?
18298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18300 cat >conftest.$ac_ext <<_ACEOF
18301 /* confdefs.h.  */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h.  */
18306 $ac_includes_default
18307 #include <$ac_header>
18308 _ACEOF
18309 rm -f conftest.$ac_objext
18310 if { (ac_try="$ac_compile"
18311 case "(($ac_try" in
18312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313   *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316   (eval "$ac_compile") 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } &&
18323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324   { (case "(($ac_try" in
18325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326   *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329   (eval "$ac_try") 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; } &&
18333          { ac_try='test -s conftest.$ac_objext'
18334   { (case "(($ac_try" in
18335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336   *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339   (eval "$ac_try") 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; }; then
18343   ac_header_compiler=yes
18344 else
18345   echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348         ac_header_compiler=no
18349 fi
18350
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18353 echo "${ECHO_T}$ac_header_compiler" >&6; }
18354
18355 # Is the header present?
18356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18358 cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h.  */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h.  */
18364 #include <$ac_header>
18365 _ACEOF
18366 if { (ac_try="$ac_cpp conftest.$ac_ext"
18367 case "(($ac_try" in
18368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369   *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18373   ac_status=$?
18374   grep -v '^ *+' conftest.er1 >conftest.err
18375   rm -f conftest.er1
18376   cat conftest.err >&5
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); } >/dev/null; then
18379   if test -s conftest.err; then
18380     ac_cpp_err=$ac_c_preproc_warn_flag
18381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18382   else
18383     ac_cpp_err=
18384   fi
18385 else
18386   ac_cpp_err=yes
18387 fi
18388 if test -z "$ac_cpp_err"; then
18389   ac_header_preproc=yes
18390 else
18391   echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394   ac_header_preproc=no
18395 fi
18396
18397 rm -f conftest.err conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18399 echo "${ECHO_T}$ac_header_preproc" >&6; }
18400
18401 # So?  What about this header?
18402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18403   yes:no: )
18404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18408     ac_header_preproc=yes
18409     ;;
18410   no:yes:* )
18411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18423
18424     ;;
18425 esac
18426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18429   echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431   eval "$as_ac_Header=\$ac_header_preproc"
18432 fi
18433 ac_res=`eval echo '${'$as_ac_Header'}'`
18434                { echo "$as_me:$LINENO: result: $ac_res" >&5
18435 echo "${ECHO_T}$ac_res" >&6; }
18436
18437 fi
18438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18439   cat >>confdefs.h <<_ACEOF
18440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18441 _ACEOF
18442
18443 fi
18444
18445 done
18446
18447
18448 # terminal
18449
18450
18451
18452 for ac_header in termios.h termio.h sys/termio.h
18453 do
18454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18456   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18459   echo $ECHO_N "(cached) $ECHO_C" >&6
18460 fi
18461 ac_res=`eval echo '${'$as_ac_Header'}'`
18462                { echo "$as_me:$LINENO: result: $ac_res" >&5
18463 echo "${ECHO_T}$ac_res" >&6; }
18464 else
18465   # Is the header compilable?
18466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18468 cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h.  */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h.  */
18474 $ac_includes_default
18475 #include <$ac_header>
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484   (eval "$ac_compile") 2>conftest.er1
18485   ac_status=$?
18486   grep -v '^ *+' conftest.er1 >conftest.err
18487   rm -f conftest.er1
18488   cat conftest.err >&5
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); } &&
18491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492   { (case "(($ac_try" in
18493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494   *) ac_try_echo=$ac_try;;
18495 esac
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497   (eval "$ac_try") 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; } &&
18501          { ac_try='test -s conftest.$ac_objext'
18502   { (case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507   (eval "$ac_try") 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; }; then
18511   ac_header_compiler=yes
18512 else
18513   echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18515
18516         ac_header_compiler=no
18517 fi
18518
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18521 echo "${ECHO_T}$ac_header_compiler" >&6; }
18522
18523 # Is the header present?
18524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18526 cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h.  */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h.  */
18532 #include <$ac_header>
18533 _ACEOF
18534 if { (ac_try="$ac_cpp conftest.$ac_ext"
18535 case "(($ac_try" in
18536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537   *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18541   ac_status=$?
18542   grep -v '^ *+' conftest.er1 >conftest.err
18543   rm -f conftest.er1
18544   cat conftest.err >&5
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); } >/dev/null; then
18547   if test -s conftest.err; then
18548     ac_cpp_err=$ac_c_preproc_warn_flag
18549     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18550   else
18551     ac_cpp_err=
18552   fi
18553 else
18554   ac_cpp_err=yes
18555 fi
18556 if test -z "$ac_cpp_err"; then
18557   ac_header_preproc=yes
18558 else
18559   echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562   ac_header_preproc=no
18563 fi
18564
18565 rm -f conftest.err conftest.$ac_ext
18566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18567 echo "${ECHO_T}$ac_header_preproc" >&6; }
18568
18569 # So?  What about this header?
18570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18571   yes:no: )
18572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18576     ac_header_preproc=yes
18577     ;;
18578   no:yes:* )
18579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18591
18592     ;;
18593 esac
18594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18597   echo $ECHO_N "(cached) $ECHO_C" >&6
18598 else
18599   eval "$as_ac_Header=\$ac_header_preproc"
18600 fi
18601 ac_res=`eval echo '${'$as_ac_Header'}'`
18602                { echo "$as_me:$LINENO: result: $ac_res" >&5
18603 echo "${ECHO_T}$ac_res" >&6; }
18604
18605 fi
18606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18607   cat >>confdefs.h <<_ACEOF
18608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18609 _ACEOF
18610
18611 fi
18612
18613 done
18614
18615
18616
18617 save_LIBS="$LIBS"
18618 LIBS=""
18619
18620 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18621 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18622 if test "${ac_cv_search_dlopen+set}" = set; then
18623   echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625   ac_func_search_save_LIBS=$LIBS
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632
18633 /* Override any GCC internal prototype to avoid an error.
18634    Use char because int might match the return type of a GCC
18635    builtin and then its argument prototype would still apply.  */
18636 #ifdef __cplusplus
18637 extern "C"
18638 #endif
18639 char dlopen ();
18640 int
18641 main ()
18642 {
18643 return dlopen ();
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 for ac_lib in '' dl; do
18649   if test -z "$ac_lib"; then
18650     ac_res="none required"
18651   else
18652     ac_res=-l$ac_lib
18653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18654   fi
18655   rm -f conftest.$ac_objext conftest$ac_exeext
18656 if { (ac_try="$ac_link"
18657 case "(($ac_try" in
18658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659   *) ac_try_echo=$ac_try;;
18660 esac
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662   (eval "$ac_link") 2>conftest.er1
18663   ac_status=$?
18664   grep -v '^ *+' conftest.er1 >conftest.err
18665   rm -f conftest.er1
18666   cat conftest.err >&5
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); } &&
18669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18670   { (case "(($ac_try" in
18671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672   *) ac_try_echo=$ac_try;;
18673 esac
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675   (eval "$ac_try") 2>&5
18676   ac_status=$?
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); }; } &&
18679          { ac_try='test -s conftest$ac_exeext'
18680   { (case "(($ac_try" in
18681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682   *) ac_try_echo=$ac_try;;
18683 esac
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685   (eval "$ac_try") 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; }; then
18689   ac_cv_search_dlopen=$ac_res
18690 else
18691   echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18693
18694
18695 fi
18696
18697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18698       conftest$ac_exeext
18699   if test "${ac_cv_search_dlopen+set}" = set; then
18700   break
18701 fi
18702 done
18703 if test "${ac_cv_search_dlopen+set}" = set; then
18704   :
18705 else
18706   ac_cv_search_dlopen=no
18707 fi
18708 rm conftest.$ac_ext
18709 LIBS=$ac_func_search_save_LIBS
18710 fi
18711 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18712 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18713 ac_res=$ac_cv_search_dlopen
18714 if test "$ac_res" != no; then
18715   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18716
18717 fi
18718
18719
18720
18721 for ac_header in dlfcn.h
18722 do
18723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18725   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18728   echo $ECHO_N "(cached) $ECHO_C" >&6
18729 fi
18730 ac_res=`eval echo '${'$as_ac_Header'}'`
18731                { echo "$as_me:$LINENO: result: $ac_res" >&5
18732 echo "${ECHO_T}$ac_res" >&6; }
18733 else
18734   # Is the header compilable?
18735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h.  */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h.  */
18743 $ac_includes_default
18744 #include <$ac_header>
18745 _ACEOF
18746 rm -f conftest.$ac_objext
18747 if { (ac_try="$ac_compile"
18748 case "(($ac_try" in
18749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750   *) ac_try_echo=$ac_try;;
18751 esac
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753   (eval "$ac_compile") 2>conftest.er1
18754   ac_status=$?
18755   grep -v '^ *+' conftest.er1 >conftest.err
18756   rm -f conftest.er1
18757   cat conftest.err >&5
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); } &&
18760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761   { (case "(($ac_try" in
18762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763   *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766   (eval "$ac_try") 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); }; } &&
18770          { ac_try='test -s conftest.$ac_objext'
18771   { (case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776   (eval "$ac_try") 2>&5
18777   ac_status=$?
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); }; }; then
18780   ac_header_compiler=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785         ac_header_compiler=no
18786 fi
18787
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18790 echo "${ECHO_T}$ac_header_compiler" >&6; }
18791
18792 # Is the header present?
18793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18795 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h.  */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h.  */
18801 #include <$ac_header>
18802 _ACEOF
18803 if { (ac_try="$ac_cpp conftest.$ac_ext"
18804 case "(($ac_try" in
18805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806   *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18810   ac_status=$?
18811   grep -v '^ *+' conftest.er1 >conftest.err
18812   rm -f conftest.er1
18813   cat conftest.err >&5
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); } >/dev/null; then
18816   if test -s conftest.err; then
18817     ac_cpp_err=$ac_c_preproc_warn_flag
18818     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18819   else
18820     ac_cpp_err=
18821   fi
18822 else
18823   ac_cpp_err=yes
18824 fi
18825 if test -z "$ac_cpp_err"; then
18826   ac_header_preproc=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831   ac_header_preproc=no
18832 fi
18833
18834 rm -f conftest.err conftest.$ac_ext
18835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18836 echo "${ECHO_T}$ac_header_preproc" >&6; }
18837
18838 # So?  What about this header?
18839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18840   yes:no: )
18841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18845     ac_header_preproc=yes
18846     ;;
18847   no:yes:* )
18848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18850     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18851 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18852     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18854     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18855 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18858     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18860
18861     ;;
18862 esac
18863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18866   echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868   eval "$as_ac_Header=\$ac_header_preproc"
18869 fi
18870 ac_res=`eval echo '${'$as_ac_Header'}'`
18871                { echo "$as_me:$LINENO: result: $ac_res" >&5
18872 echo "${ECHO_T}$ac_res" >&6; }
18873
18874 fi
18875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18876   cat >>confdefs.h <<_ACEOF
18877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18878 _ACEOF
18879
18880 fi
18881
18882 done
18883
18884
18885 libreplace_cv_dlfcn=no
18886
18887
18888
18889
18890 for ac_func in dlopen dlsym dlerror dlclose
18891 do
18892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898   cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18906 #define $ac_func innocuous_$ac_func
18907
18908 /* System header to define __stub macros and hopefully few prototypes,
18909     which can conflict with char $ac_func (); below.
18910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18911     <limits.h> exists even on freestanding compilers.  */
18912
18913 #ifdef __STDC__
18914 # include <limits.h>
18915 #else
18916 # include <assert.h>
18917 #endif
18918
18919 #undef $ac_func
18920
18921 /* Override any GCC internal prototype to avoid an error.
18922    Use char because int might match the return type of a GCC
18923    builtin and then its argument prototype would still apply.  */
18924 #ifdef __cplusplus
18925 extern "C"
18926 #endif
18927 char $ac_func ();
18928 /* The GNU C library defines this for functions which it implements
18929     to always fail with ENOSYS.  Some functions are actually named
18930     something starting with __ and the normal name is an alias.  */
18931 #if defined __stub_$ac_func || defined __stub___$ac_func
18932 choke me
18933 #endif
18934
18935 int
18936 main ()
18937 {
18938 return $ac_func ();
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947   *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950   (eval "$ac_link") 2>conftest.er1
18951   ac_status=$?
18952   grep -v '^ *+' conftest.er1 >conftest.err
18953   rm -f conftest.er1
18954   cat conftest.err >&5
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); } &&
18957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18958   { (case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_try") 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; } &&
18967          { ac_try='test -s conftest$ac_exeext'
18968   { (case "(($ac_try" in
18969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970   *) ac_try_echo=$ac_try;;
18971 esac
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973   (eval "$ac_try") 2>&5
18974   ac_status=$?
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); }; }; then
18977   eval "$as_ac_var=yes"
18978 else
18979   echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         eval "$as_ac_var=no"
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18986       conftest$ac_exeext conftest.$ac_ext
18987 fi
18988 ac_res=`eval echo '${'$as_ac_var'}'`
18989                { echo "$as_me:$LINENO: result: $ac_res" >&5
18990 echo "${ECHO_T}$ac_res" >&6; }
18991 if test `eval echo '${'$as_ac_var'}'` = yes; then
18992   cat >>confdefs.h <<_ACEOF
18993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18994 _ACEOF
18995
18996 else
18997   libreplace_cv_dlfcn=yes
18998 fi
18999 done
19000
19001
19002 if test x"${libreplace_cv_dlfcn}" = x"yes";then
19003         LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
19004 fi
19005
19006 LIBDL="$LIBS"
19007
19008 LIBS="$save_LIBS"
19009
19010 { echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19011 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6; }
19012 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015
19016 SAVE_CPPFLAGS="$CPPFLAGS"
19017 CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
19018 cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h.  */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h.  */
19024
19025 #include "confdefs.h"
19026 #define _LIBREPLACE_REPLACE_H
19027 #define REPLACE_GETPASS 1
19028 #define main dont_declare_main
19029 #include "$libreplacedir/getpass.c"
19030 #undef main
19031
19032 int
19033 main ()
19034 {
19035
19036   ;
19037   return 0;
19038 }
19039 _ACEOF
19040 rm -f conftest.$ac_objext
19041 if { (ac_try="$ac_compile"
19042 case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_compile") 2>conftest.er1
19048   ac_status=$?
19049   grep -v '^ *+' conftest.er1 >conftest.err
19050   rm -f conftest.er1
19051   cat conftest.err >&5
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } &&
19054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19055   { (case "(($ac_try" in
19056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057   *) ac_try_echo=$ac_try;;
19058 esac
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060   (eval "$ac_try") 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); }; } &&
19064          { ac_try='test -s conftest.$ac_objext'
19065   { (case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070   (eval "$ac_try") 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); }; }; then
19074   samba_cv_REPLACE_GETPASS=yes
19075 else
19076   echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079         samba_cv_REPLACE_GETPASS=no
19080 fi
19081
19082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19083 CPPFLAGS="$SAVE_CPPFLAGS"
19084
19085 fi
19086 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19087 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6; }
19088 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19089
19090 cat >>confdefs.h <<\_ACEOF
19091 #define REPLACE_GETPASS 1
19092 _ACEOF
19093
19094         LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
19095 fi
19096
19097
19098
19099
19100
19101 for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
19102 do
19103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19105   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19108   echo $ECHO_N "(cached) $ECHO_C" >&6
19109 fi
19110 ac_res=`eval echo '${'$as_ac_Header'}'`
19111                { echo "$as_me:$LINENO: result: $ac_res" >&5
19112 echo "${ECHO_T}$ac_res" >&6; }
19113 else
19114   # Is the header compilable?
19115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123 $ac_includes_default
19124 #include <$ac_header>
19125 _ACEOF
19126 rm -f conftest.$ac_objext
19127 if { (ac_try="$ac_compile"
19128 case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_compile") 2>conftest.er1
19134   ac_status=$?
19135   grep -v '^ *+' conftest.er1 >conftest.err
19136   rm -f conftest.er1
19137   cat conftest.err >&5
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } &&
19140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; } &&
19150          { ac_try='test -s conftest.$ac_objext'
19151   { (case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156   (eval "$ac_try") 2>&5
19157   ac_status=$?
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); }; }; then
19160   ac_header_compiler=yes
19161 else
19162   echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19164
19165         ac_header_compiler=no
19166 fi
19167
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19170 echo "${ECHO_T}$ac_header_compiler" >&6; }
19171
19172 # Is the header present?
19173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19175 cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 #include <$ac_header>
19182 _ACEOF
19183 if { (ac_try="$ac_cpp conftest.$ac_ext"
19184 case "(($ac_try" in
19185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186   *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19190   ac_status=$?
19191   grep -v '^ *+' conftest.er1 >conftest.err
19192   rm -f conftest.er1
19193   cat conftest.err >&5
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); } >/dev/null; then
19196   if test -s conftest.err; then
19197     ac_cpp_err=$ac_c_preproc_warn_flag
19198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19199   else
19200     ac_cpp_err=
19201   fi
19202 else
19203   ac_cpp_err=yes
19204 fi
19205 if test -z "$ac_cpp_err"; then
19206   ac_header_preproc=yes
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211   ac_header_preproc=no
19212 fi
19213
19214 rm -f conftest.err conftest.$ac_ext
19215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19216 echo "${ECHO_T}$ac_header_preproc" >&6; }
19217
19218 # So?  What about this header?
19219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19220   yes:no: )
19221     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19225     ac_header_preproc=yes
19226     ;;
19227   no:yes:* )
19228     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19230     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19231 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19232     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19234     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19235 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19238     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19240
19241     ;;
19242 esac
19243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   eval "$as_ac_Header=\$ac_header_preproc"
19249 fi
19250 ac_res=`eval echo '${'$as_ac_Header'}'`
19251                { echo "$as_me:$LINENO: result: $ac_res" >&5
19252 echo "${ECHO_T}$ac_res" >&6; }
19253
19254 fi
19255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19256   cat >>confdefs.h <<_ACEOF
19257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19258 _ACEOF
19259
19260 fi
19261
19262 done
19263
19264
19265 #######################################
19266 # Check for mkdir mode
19267 { echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
19268 echo $ECHO_N "checking whether mkdir supports mode... $ECHO_C" >&6; }
19269 if test "${ac_mkdir_has_mode+set}" = set; then
19270   echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272   cat >conftest.$ac_ext <<_ACEOF
19273 /* confdefs.h.  */
19274 _ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h.  */
19278
19279                 #include <stdio.h>
19280                 #ifdef HAVE_DIRECT_H
19281                 #include <direct.h>
19282                 #endif
19283 int
19284 main ()
19285 {
19286
19287                         mkdir("foo",0777);
19288                         return 0;
19289
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298   *) ac_try_echo=$ac_try;;
19299 esac
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301   (eval "$ac_compile") 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } &&
19308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19309   { (case "(($ac_try" in
19310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311   *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314   (eval "$ac_try") 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; } &&
19318          { ac_try='test -s conftest.$ac_objext'
19319   { (case "(($ac_try" in
19320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321   *) ac_try_echo=$ac_try;;
19322 esac
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324   (eval "$ac_try") 2>&5
19325   ac_status=$?
19326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327   (exit $ac_status); }; }; then
19328   ac_mkdir_has_mode="yes"
19329 else
19330   echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19332
19333         ac_mkdir_has_mode="no"
19334 fi
19335
19336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 fi
19338 { echo "$as_me:$LINENO: result: $ac_mkdir_has_mode" >&5
19339 echo "${ECHO_T}$ac_mkdir_has_mode" >&6; }
19340
19341 if test "$ac_mkdir_has_mode" = "yes"
19342 then
19343
19344 cat >>confdefs.h <<\_ACEOF
19345 #define HAVE_MKDIR_MODE 1
19346 _ACEOF
19347
19348 fi
19349
19350
19351 for ac_func in timegm
19352 do
19353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19357   echo $ECHO_N "(cached) $ECHO_C" >&6
19358 else
19359   cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h.  */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h.  */
19365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19367 #define $ac_func innocuous_$ac_func
19368
19369 /* System header to define __stub macros and hopefully few prototypes,
19370     which can conflict with char $ac_func (); below.
19371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19372     <limits.h> exists even on freestanding compilers.  */
19373
19374 #ifdef __STDC__
19375 # include <limits.h>
19376 #else
19377 # include <assert.h>
19378 #endif
19379
19380 #undef $ac_func
19381
19382 /* Override any GCC internal prototype to avoid an error.
19383    Use char because int might match the return type of a GCC
19384    builtin and then its argument prototype would still apply.  */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 char $ac_func ();
19389 /* The GNU C library defines this for functions which it implements
19390     to always fail with ENOSYS.  Some functions are actually named
19391     something starting with __ and the normal name is an alias.  */
19392 #if defined __stub_$ac_func || defined __stub___$ac_func
19393 choke me
19394 #endif
19395
19396 int
19397 main ()
19398 {
19399 return $ac_func ();
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408   *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411   (eval "$ac_link") 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } &&
19418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19419   { (case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_try") 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; } &&
19428          { ac_try='test -s conftest$ac_exeext'
19429   { (case "(($ac_try" in
19430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431   *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434   (eval "$ac_try") 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   eval "$as_ac_var=yes"
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443         eval "$as_ac_var=no"
19444 fi
19445
19446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447       conftest$ac_exeext conftest.$ac_ext
19448 fi
19449 ac_res=`eval echo '${'$as_ac_var'}'`
19450                { echo "$as_me:$LINENO: result: $ac_res" >&5
19451 echo "${ECHO_T}$ac_res" >&6; }
19452 if test `eval echo '${'$as_ac_var'}'` = yes; then
19453   cat >>confdefs.h <<_ACEOF
19454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19455 _ACEOF
19456
19457 else
19458   LIBREPLACEOBJ="${LIBREPLACEOBJ} timegm.o"
19459 fi
19460 done
19461
19462
19463 { echo "$as_me:$LINENO: checking for broken readdir" >&5
19464 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
19465 if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468
19469         if test "$cross_compiling" = yes; then
19470   libreplace_cv_READDIR_NEEDED="assuming not"
19471 else
19472   cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478
19479 #define test_readdir_os2_delete main
19480 #include "$libreplacedir/test/os2_delete.c"
19481 _ACEOF
19482 rm -f conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_link") 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19493   { (case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_try") 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; }; then
19502   libreplace_cv_READDIR_NEEDED=no
19503 else
19504   echo "$as_me: program exited with status $ac_status" >&5
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 ( exit $ac_status )
19509 libreplace_cv_READDIR_NEEDED=yes
19510 fi
19511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19512 fi
19513
19514
19515
19516 fi
19517 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
19518 echo "${ECHO_T}$libreplace_cv_READDIR_NEEDED" >&6; }
19519
19520 #
19521 # try to replace with getdirentries() if needed
19522 #
19523 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19524
19525 for ac_func in getdirentries
19526 do
19527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533   cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19541 #define $ac_func innocuous_$ac_func
19542
19543 /* System header to define __stub macros and hopefully few prototypes,
19544     which can conflict with char $ac_func (); below.
19545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19546     <limits.h> exists even on freestanding compilers.  */
19547
19548 #ifdef __STDC__
19549 # include <limits.h>
19550 #else
19551 # include <assert.h>
19552 #endif
19553
19554 #undef $ac_func
19555
19556 /* Override any GCC internal prototype to avoid an error.
19557    Use char because int might match the return type of a GCC
19558    builtin and then its argument prototype would still apply.  */
19559 #ifdef __cplusplus
19560 extern "C"
19561 #endif
19562 char $ac_func ();
19563 /* The GNU C library defines this for functions which it implements
19564     to always fail with ENOSYS.  Some functions are actually named
19565     something starting with __ and the normal name is an alias.  */
19566 #if defined __stub_$ac_func || defined __stub___$ac_func
19567 choke me
19568 #endif
19569
19570 int
19571 main ()
19572 {
19573 return $ac_func ();
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_link") 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } &&
19592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593   { (case "(($ac_try" in
19594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595   *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598   (eval "$ac_try") 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; } &&
19602          { ac_try='test -s conftest$ac_exeext'
19603   { (case "(($ac_try" in
19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605   *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608   (eval "$ac_try") 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; }; then
19612   eval "$as_ac_var=yes"
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617         eval "$as_ac_var=no"
19618 fi
19619
19620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19621       conftest$ac_exeext conftest.$ac_ext
19622 fi
19623 ac_res=`eval echo '${'$as_ac_var'}'`
19624                { echo "$as_me:$LINENO: result: $ac_res" >&5
19625 echo "${ECHO_T}$ac_res" >&6; }
19626 if test `eval echo '${'$as_ac_var'}'` = yes; then
19627   cat >>confdefs.h <<_ACEOF
19628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19629 _ACEOF
19630
19631 fi
19632 done
19633
19634 { echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
19635 echo $ECHO_N "checking for prototype long telldir(const DIR *dir)... $ECHO_C" >&6; }
19636 if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
19637   echo $ECHO_N "(cached) $ECHO_C" >&6
19638 else
19639   cat >conftest.$ac_ext <<_ACEOF
19640
19641                 $ac_includes_default
19642
19643         #include <dirent.h>
19644
19645                 long telldir(const DIR *dir)
19646                 {
19647
19648         return 0;
19649
19650                 }
19651
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (ac_try="$ac_compile"
19655 case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_compile") 2>conftest.er1
19661   ac_status=$?
19662   grep -v '^ *+' conftest.er1 >conftest.err
19663   rm -f conftest.er1
19664   cat conftest.err >&5
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } &&
19667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19668   { (case "(($ac_try" in
19669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670   *) ac_try_echo=$ac_try;;
19671 esac
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673   (eval "$ac_try") 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; } &&
19677          { ac_try='test -s conftest.$ac_objext'
19678   { (case "(($ac_try" in
19679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680   *) ac_try_echo=$ac_try;;
19681 esac
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683   (eval "$ac_try") 2>&5
19684   ac_status=$?
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); }; }; then
19687
19688                 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
19689
19690 else
19691   echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694
19695                 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
19696
19697 fi
19698
19699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19700
19701 fi
19702 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
19703 echo "${ECHO_T}$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
19704 if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
19705
19706
19707 cat >>confdefs.h <<\_ACEOF
19708 #define TELLDIR_TAKES_CONST_DIR 1
19709 _ACEOF
19710
19711
19712 fi
19713
19714
19715
19716 { echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
19717 echo $ECHO_N "checking for prototype int seekdir(DIR *dir, long ofs)... $ECHO_C" >&6; }
19718 if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   cat >conftest.$ac_ext <<_ACEOF
19722
19723                 $ac_includes_default
19724
19725         #include <dirent.h>
19726
19727                 int seekdir(DIR *dir, long ofs)
19728                 {
19729
19730         return 0;
19731
19732                 }
19733
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (ac_try="$ac_compile"
19737 case "(($ac_try" in
19738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739   *) ac_try_echo=$ac_try;;
19740 esac
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742   (eval "$ac_compile") 2>conftest.er1
19743   ac_status=$?
19744   grep -v '^ *+' conftest.er1 >conftest.err
19745   rm -f conftest.er1
19746   cat conftest.err >&5
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } &&
19749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19750   { (case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_try") 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; } &&
19759          { ac_try='test -s conftest.$ac_objext'
19760   { (case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_try") 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); }; }; then
19769
19770                 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
19771
19772 else
19773   echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776
19777                 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
19778
19779 fi
19780
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782
19783 fi
19784 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
19785 echo "${ECHO_T}$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
19786 if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
19787
19788
19789 cat >>confdefs.h <<\_ACEOF
19790 #define SEEKDIR_RETURNS_INT 1
19791 _ACEOF
19792
19793
19794 fi
19795
19796
19797 { echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
19798 echo $ECHO_N "checking for replacing readdir using getdirentries()... $ECHO_C" >&6; }
19799 if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
19800   echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802
19803         if test "$cross_compiling" = yes; then
19804   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19805 See \`config.log' for more details." >&5
19806 echo "$as_me: error: cannot run test program while cross compiling
19807 See \`config.log' for more details." >&2;}
19808    { (exit 1); exit 1; }; }
19809 else
19810   cat >conftest.$ac_ext <<_ACEOF
19811 /* confdefs.h.  */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h.  */
19816
19817 #define _LIBREPLACE_REPLACE_H
19818 #include "$libreplacedir/repdir_getdirentries.c"
19819 #define test_readdir_os2_delete main
19820 #include "$libreplacedir/test/os2_delete.c"
19821 _ACEOF
19822 rm -f conftest$ac_exeext
19823 if { (ac_try="$ac_link"
19824 case "(($ac_try" in
19825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826   *) ac_try_echo=$ac_try;;
19827 esac
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829   (eval "$ac_link") 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19833   { (case "(($ac_try" in
19834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835   *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838   (eval "$ac_try") 2>&5
19839   ac_status=$?
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); }; }; then
19842   libreplace_cv_READDIR_GETDIRENTRIES=yes
19843 else
19844   echo "$as_me: program exited with status $ac_status" >&5
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19847
19848 ( exit $ac_status )
19849 libreplace_cv_READDIR_GETDIRENTRIES=no
19850 fi
19851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19852 fi
19853
19854
19855
19856 fi
19857 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
19858 echo "${ECHO_T}$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
19859 fi
19860 if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
19861
19862 cat >>confdefs.h <<\_ACEOF
19863 #define REPLACE_READDIR 1
19864 _ACEOF
19865
19866
19867 cat >>confdefs.h <<\_ACEOF
19868 #define REPLACE_READDIR_GETDIRENTRIES 1
19869 _ACEOF
19870
19871         LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdirentries.o"
19872         libreplace_cv_READDIR_NEEDED=no
19873 fi
19874
19875 #
19876 # try to replace with getdents() if needed
19877 #
19878 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19879
19880 for ac_func in getdents
19881 do
19882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886   echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888   cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19896 #define $ac_func innocuous_$ac_func
19897
19898 /* System header to define __stub macros and hopefully few prototypes,
19899     which can conflict with char $ac_func (); below.
19900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901     <limits.h> exists even on freestanding compilers.  */
19902
19903 #ifdef __STDC__
19904 # include <limits.h>
19905 #else
19906 # include <assert.h>
19907 #endif
19908
19909 #undef $ac_func
19910
19911 /* Override any GCC internal prototype to avoid an error.
19912    Use char because int might match the return type of a GCC
19913    builtin and then its argument prototype would still apply.  */
19914 #ifdef __cplusplus
19915 extern "C"
19916 #endif
19917 char $ac_func ();
19918 /* The GNU C library defines this for functions which it implements
19919     to always fail with ENOSYS.  Some functions are actually named
19920     something starting with __ and the normal name is an alias.  */
19921 #if defined __stub_$ac_func || defined __stub___$ac_func
19922 choke me
19923 #endif
19924
19925 int
19926 main ()
19927 {
19928 return $ac_func ();
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_link") 2>conftest.er1
19941   ac_status=$?
19942   grep -v '^ *+' conftest.er1 >conftest.err
19943   rm -f conftest.er1
19944   cat conftest.err >&5
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); } &&
19947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19948   { (case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_try") 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; } &&
19957          { ac_try='test -s conftest$ac_exeext'
19958   { (case "(($ac_try" in
19959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960   *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963   (eval "$ac_try") 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); }; }; then
19967   eval "$as_ac_var=yes"
19968 else
19969   echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972         eval "$as_ac_var=no"
19973 fi
19974
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976       conftest$ac_exeext conftest.$ac_ext
19977 fi
19978 ac_res=`eval echo '${'$as_ac_var'}'`
19979                { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19981 if test `eval echo '${'$as_ac_var'}'` = yes; then
19982   cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19984 _ACEOF
19985
19986 fi
19987 done
19988
19989 { echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
19990 echo $ECHO_N "checking for replacing readdir using getdents()... $ECHO_C" >&6; }
19991 if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
19992   echo $ECHO_N "(cached) $ECHO_C" >&6
19993 else
19994
19995         if test "$cross_compiling" = yes; then
19996   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19997 See \`config.log' for more details." >&5
19998 echo "$as_me: error: cannot run test program while cross compiling
19999 See \`config.log' for more details." >&2;}
20000    { (exit 1); exit 1; }; }
20001 else
20002   cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008
20009 #define _LIBREPLACE_REPLACE_H
20010 #error _donot_use_getdents_replacement_anymore
20011 #include "$libreplacedir/repdir_getdents.c"
20012 #define test_readdir_os2_delete main
20013 #include "$libreplacedir/test/os2_delete.c"
20014 _ACEOF
20015 rm -f conftest$ac_exeext
20016 if { (ac_try="$ac_link"
20017 case "(($ac_try" in
20018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019   *) ac_try_echo=$ac_try;;
20020 esac
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022   (eval "$ac_link") 2>&5
20023   ac_status=$?
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20026   { (case "(($ac_try" in
20027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028   *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031   (eval "$ac_try") 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); }; }; then
20035   libreplace_cv_READDIR_GETDENTS=yes
20036 else
20037   echo "$as_me: program exited with status $ac_status" >&5
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041 ( exit $ac_status )
20042 libreplace_cv_READDIR_GETDENTS=no
20043 fi
20044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20045 fi
20046
20047
20048
20049 fi
20050 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
20051 echo "${ECHO_T}$libreplace_cv_READDIR_GETDENTS" >&6; }
20052 fi
20053 if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
20054
20055 cat >>confdefs.h <<\_ACEOF
20056 #define REPLACE_READDIR 1
20057 _ACEOF
20058
20059
20060 cat >>confdefs.h <<\_ACEOF
20061 #define REPLACE_READDIR_GETDENTS 1
20062 _ACEOF
20063
20064         LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdents.o"
20065         libreplace_cv_READDIR_NEEDED=no
20066 fi
20067
20068 { echo "$as_me:$LINENO: checking a usable readdir()" >&5
20069 echo $ECHO_N "checking a usable readdir()... $ECHO_C" >&6; }
20070 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
20071         { echo "$as_me:$LINENO: result: no" >&5
20072 echo "${ECHO_T}no" >&6; }
20073         { echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
20074 echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
20075 else
20076         { echo "$as_me:$LINENO: result: yes" >&5
20077 echo "${ECHO_T}yes" >&6; }
20078 fi
20079
20080
20081
20082
20083
20084
20085
20086
20087 for ac_func in syslog memset setnetgrent getnetgrent endnetgrent memcpy
20088 do
20089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20093   echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095   cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h.  */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h.  */
20101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20103 #define $ac_func innocuous_$ac_func
20104
20105 /* System header to define __stub macros and hopefully few prototypes,
20106     which can conflict with char $ac_func (); below.
20107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20108     <limits.h> exists even on freestanding compilers.  */
20109
20110 #ifdef __STDC__
20111 # include <limits.h>
20112 #else
20113 # include <assert.h>
20114 #endif
20115
20116 #undef $ac_func
20117
20118 /* Override any GCC internal prototype to avoid an error.
20119    Use char because int might match the return type of a GCC
20120    builtin and then its argument prototype would still apply.  */
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char $ac_func ();
20125 /* The GNU C library defines this for functions which it implements
20126     to always fail with ENOSYS.  Some functions are actually named
20127     something starting with __ and the normal name is an alias.  */
20128 #if defined __stub_$ac_func || defined __stub___$ac_func
20129 choke me
20130 #endif
20131
20132 int
20133 main ()
20134 {
20135 return $ac_func ();
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (ac_try="$ac_link"
20142 case "(($ac_try" in
20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144   *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147   (eval "$ac_link") 2>conftest.er1
20148   ac_status=$?
20149   grep -v '^ *+' conftest.er1 >conftest.err
20150   rm -f conftest.er1
20151   cat conftest.err >&5
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } &&
20154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20155   { (case "(($ac_try" in
20156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157   *) ac_try_echo=$ac_try;;
20158 esac
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160   (eval "$ac_try") 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; } &&
20164          { ac_try='test -s conftest$ac_exeext'
20165   { (case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_try") 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; }; then
20174   eval "$as_ac_var=yes"
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179         eval "$as_ac_var=no"
20180 fi
20181
20182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20183       conftest$ac_exeext conftest.$ac_ext
20184 fi
20185 ac_res=`eval echo '${'$as_ac_var'}'`
20186                { echo "$as_me:$LINENO: result: $ac_res" >&5
20187 echo "${ECHO_T}$ac_res" >&6; }
20188 if test `eval echo '${'$as_ac_var'}'` = yes; then
20189   cat >>confdefs.h <<_ACEOF
20190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20191 _ACEOF
20192
20193 else
20194   { { echo "$as_me:$LINENO: error: Required function not found" >&5
20195 echo "$as_me: error: Required function not found" >&2;}
20196    { (exit 1); exit 1; }; }
20197 fi
20198 done
20199
20200
20201 echo "LIBREPLACE_BROKEN_CHECKS: END"
20202
20203
20204 #LIBREPLACE_ALL_CHECKS: END"
20205
20206
20207
20208 if test "$ac_cv_c_compiler_gnu" = yes; then
20209    CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings"
20210 fi
20211
20212 ac_config_headers="$ac_config_headers config.h"
20213
20214
20215 EXTRA_OBJ=""
20216
20217 tallocdir=""
20218 tallocpaths="$srcdir $srcdir/lib/talloc $srcdir/talloc $srcdir/../talloc"
20219 for d in $tallocpaths; do
20220         if test -f "$d/talloc.c"; then
20221                 tallocdir="$d"
20222
20223                 break;
20224         fi
20225 done
20226 if test x"$tallocdir" = "x"; then
20227    { { echo "$as_me:$LINENO: error: cannot find talloc source in $tallocpaths" >&5
20228 echo "$as_me: error: cannot find talloc source in $tallocpaths" >&2;}
20229    { (exit 1); exit 1; }; }
20230 fi
20231 TALLOCOBJ="talloc.o"
20232
20233
20234 { echo "$as_me:$LINENO: checking for size_t" >&5
20235 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20236 if test "${ac_cv_type_size_t+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239   cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245 $ac_includes_default
20246 typedef size_t ac__type_new_;
20247 int
20248 main ()
20249 {
20250 if ((ac__type_new_ *) 0)
20251   return 0;
20252 if (sizeof (ac__type_new_))
20253   return 0;
20254   ;
20255   return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (ac_try="$ac_compile"
20260 case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_compile") 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } &&
20272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273   { (case "(($ac_try" in
20274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275   *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278   (eval "$ac_try") 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; } &&
20282          { ac_try='test -s conftest.$ac_objext'
20283   { (case "(($ac_try" in
20284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285   *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288   (eval "$ac_try") 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); }; }; then
20292   ac_cv_type_size_t=yes
20293 else
20294   echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20296
20297         ac_cv_type_size_t=no
20298 fi
20299
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 fi
20302 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20303 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20304
20305 # The cast to long int works around a bug in the HP C Compiler
20306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20308 # This bug is HP SR number 8606223364.
20309 { echo "$as_me:$LINENO: checking size of size_t" >&5
20310 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20311 if test "${ac_cv_sizeof_size_t+set}" = set; then
20312   echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314   if test "$cross_compiling" = yes; then
20315   # Depending upon the size, compute the lo and hi bounds.
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322 $ac_includes_default
20323                 typedef size_t ac__type_sizeof_;
20324
20325 int
20326 main ()
20327 {
20328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20329 test_array [0] = 0
20330
20331   ;
20332   return 0;
20333 }
20334 _ACEOF
20335 rm -f conftest.$ac_objext
20336 if { (ac_try="$ac_compile"
20337 case "(($ac_try" in
20338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339   *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342   (eval "$ac_compile") 2>conftest.er1
20343   ac_status=$?
20344   grep -v '^ *+' conftest.er1 >conftest.err
20345   rm -f conftest.er1
20346   cat conftest.err >&5
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); } &&
20349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20350   { (case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_try") 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; } &&
20359          { ac_try='test -s conftest.$ac_objext'
20360   { (case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_try") 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; }; then
20369   ac_lo=0 ac_mid=0
20370   while :; do
20371     cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h.  */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h.  */
20377 $ac_includes_default
20378                 typedef size_t ac__type_sizeof_;
20379
20380 int
20381 main ()
20382 {
20383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20384 test_array [0] = 0
20385
20386   ;
20387   return 0;
20388 }
20389 _ACEOF
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394   *) ac_try_echo=$ac_try;;
20395 esac
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397   (eval "$ac_compile") 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } &&
20404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20405   { (case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_try") 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; } &&
20414          { ac_try='test -s conftest.$ac_objext'
20415   { (case "(($ac_try" in
20416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417   *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420   (eval "$ac_try") 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; }; then
20424   ac_hi=$ac_mid; break
20425 else
20426   echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429         ac_lo=`expr $ac_mid + 1`
20430                         if test $ac_lo -le $ac_mid; then
20431                           ac_lo= ac_hi=
20432                           break
20433                         fi
20434                         ac_mid=`expr 2 '*' $ac_mid + 1`
20435 fi
20436
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438   done
20439 else
20440   echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20442
20443         cat >conftest.$ac_ext <<_ACEOF
20444 /* confdefs.h.  */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h.  */
20449 $ac_includes_default
20450                 typedef size_t ac__type_sizeof_;
20451
20452 int
20453 main ()
20454 {
20455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20456 test_array [0] = 0
20457
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 rm -f conftest.$ac_objext
20463 if { (ac_try="$ac_compile"
20464 case "(($ac_try" in
20465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466   *) ac_try_echo=$ac_try;;
20467 esac
20468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20469   (eval "$ac_compile") 2>conftest.er1
20470   ac_status=$?
20471   grep -v '^ *+' conftest.er1 >conftest.err
20472   rm -f conftest.er1
20473   cat conftest.err >&5
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } &&
20476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20477   { (case "(($ac_try" in
20478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479   *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482   (eval "$ac_try") 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); }; } &&
20486          { ac_try='test -s conftest.$ac_objext'
20487   { (case "(($ac_try" in
20488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489   *) ac_try_echo=$ac_try;;
20490 esac
20491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492   (eval "$ac_try") 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); }; }; then
20496   ac_hi=-1 ac_mid=-1
20497   while :; do
20498     cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504 $ac_includes_default
20505                 typedef size_t ac__type_sizeof_;
20506
20507 int
20508 main ()
20509 {
20510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20511 test_array [0] = 0
20512
20513   ;
20514   return 0;
20515 }
20516 _ACEOF
20517 rm -f conftest.$ac_objext
20518 if { (ac_try="$ac_compile"
20519 case "(($ac_try" in
20520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521   *) ac_try_echo=$ac_try;;
20522 esac
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524   (eval "$ac_compile") 2>conftest.er1
20525   ac_status=$?
20526   grep -v '^ *+' conftest.er1 >conftest.err
20527   rm -f conftest.er1
20528   cat conftest.err >&5
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } &&
20531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20532   { (case "(($ac_try" in
20533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534   *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537   (eval "$ac_try") 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; } &&
20541          { ac_try='test -s conftest.$ac_objext'
20542   { (case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547   (eval "$ac_try") 2>&5
20548   ac_status=$?
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); }; }; then
20551   ac_lo=$ac_mid; break
20552 else
20553   echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556         ac_hi=`expr '(' $ac_mid ')' - 1`
20557                         if test $ac_mid -le $ac_hi; then
20558                           ac_lo= ac_hi=
20559                           break
20560                         fi
20561                         ac_mid=`expr 2 '*' $ac_mid`
20562 fi
20563
20564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565   done
20566 else
20567   echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20569
20570         ac_lo= ac_hi=
20571 fi
20572
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 fi
20575
20576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577 # Binary search between lo and hi bounds.
20578 while test "x$ac_lo" != "x$ac_hi"; do
20579   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20580   cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h.  */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h.  */
20586 $ac_includes_default
20587                 typedef size_t ac__type_sizeof_;
20588
20589 int
20590 main ()
20591 {
20592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20593 test_array [0] = 0
20594
20595   ;
20596   return 0;
20597 }
20598 _ACEOF
20599 rm -f conftest.$ac_objext
20600 if { (ac_try="$ac_compile"
20601 case "(($ac_try" in
20602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603   *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606   (eval "$ac_compile") 2>conftest.er1
20607   ac_status=$?
20608   grep -v '^ *+' conftest.er1 >conftest.err
20609   rm -f conftest.er1
20610   cat conftest.err >&5
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); } &&
20613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614   { (case "(($ac_try" in
20615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616   *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619   (eval "$ac_try") 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; } &&
20623          { ac_try='test -s conftest.$ac_objext'
20624   { (case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629   (eval "$ac_try") 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; }; then
20633   ac_hi=$ac_mid
20634 else
20635   echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20637
20638         ac_lo=`expr '(' $ac_mid ')' + 1`
20639 fi
20640
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 done
20643 case $ac_lo in
20644 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20645 '') if test "$ac_cv_type_size_t" = yes; then
20646                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20647 See \`config.log' for more details." >&5
20648 echo "$as_me: error: cannot compute sizeof (size_t)
20649 See \`config.log' for more details." >&2;}
20650    { (exit 77); exit 77; }; }
20651                else
20652                  ac_cv_sizeof_size_t=0
20653                fi ;;
20654 esac
20655 else
20656   cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662 $ac_includes_default
20663                 typedef size_t ac__type_sizeof_;
20664
20665 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20666 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20667 #include <stdio.h>
20668 #include <stdlib.h>
20669 int
20670 main ()
20671 {
20672
20673   FILE *f = fopen ("conftest.val", "w");
20674   if (! f)
20675     return 1;
20676   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20677     {
20678       long int i = longval ();
20679       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20680         return 1;
20681       fprintf (f, "%ld\n", i);
20682     }
20683   else
20684     {
20685       unsigned long int i = ulongval ();
20686       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20687         return 1;
20688       fprintf (f, "%lu\n", i);
20689     }
20690   return ferror (f) || fclose (f) != 0;
20691
20692   ;
20693   return 0;
20694 }
20695 _ACEOF
20696 rm -f conftest$ac_exeext
20697 if { (ac_try="$ac_link"
20698 case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_link") 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20707   { (case "(($ac_try" in
20708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709   *) ac_try_echo=$ac_try;;
20710 esac
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712   (eval "$ac_try") 2>&5
20713   ac_status=$?
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); }; }; then
20716   ac_cv_sizeof_size_t=`cat conftest.val`
20717 else
20718   echo "$as_me: program exited with status $ac_status" >&5
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 ( exit $ac_status )
20723 if test "$ac_cv_type_size_t" = yes; then
20724                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20725 See \`config.log' for more details." >&5
20726 echo "$as_me: error: cannot compute sizeof (size_t)
20727 See \`config.log' for more details." >&2;}
20728    { (exit 77); exit 77; }; }
20729                else
20730                  ac_cv_sizeof_size_t=0
20731                fi
20732 fi
20733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20734 fi
20735 rm -f conftest.val
20736 fi
20737 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20738 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20739
20740
20741
20742 cat >>confdefs.h <<_ACEOF
20743 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20744 _ACEOF
20745
20746
20747 { echo "$as_me:$LINENO: checking for void *" >&5
20748 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20749 if test "${ac_cv_type_void_p+set}" = set; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752   cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758 $ac_includes_default
20759 typedef void * ac__type_new_;
20760 int
20761 main ()
20762 {
20763 if ((ac__type_new_ *) 0)
20764   return 0;
20765 if (sizeof (ac__type_new_))
20766   return 0;
20767   ;
20768   return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest.$ac_objext
20772 if { (ac_try="$ac_compile"
20773 case "(($ac_try" in
20774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775   *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778   (eval "$ac_compile") 2>conftest.er1
20779   ac_status=$?
20780   grep -v '^ *+' conftest.er1 >conftest.err
20781   rm -f conftest.er1
20782   cat conftest.err >&5
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); } &&
20785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20786   { (case "(($ac_try" in
20787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788   *) ac_try_echo=$ac_try;;
20789 esac
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791   (eval "$ac_try") 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); }; } &&
20795          { ac_try='test -s conftest.$ac_objext'
20796   { (case "(($ac_try" in
20797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798   *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801   (eval "$ac_try") 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; }; then
20805   ac_cv_type_void_p=yes
20806 else
20807   echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810         ac_cv_type_void_p=no
20811 fi
20812
20813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20814 fi
20815 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20816 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20817
20818 # The cast to long int works around a bug in the HP C Compiler
20819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20821 # This bug is HP SR number 8606223364.
20822 { echo "$as_me:$LINENO: checking size of void *" >&5
20823 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20824 if test "${ac_cv_sizeof_void_p+set}" = set; then
20825   echo $ECHO_N "(cached) $ECHO_C" >&6
20826 else
20827   if test "$cross_compiling" = yes; then
20828   # Depending upon the size, compute the lo and hi bounds.
20829 cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h.  */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h.  */
20835 $ac_includes_default
20836                 typedef void * ac__type_sizeof_;
20837
20838 int
20839 main ()
20840 {
20841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20842 test_array [0] = 0
20843
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_compile") 2>conftest.er1
20856   ac_status=$?
20857   grep -v '^ *+' conftest.er1 >conftest.err
20858   rm -f conftest.er1
20859   cat conftest.err >&5
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } &&
20862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20863   { (case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_try") 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; } &&
20872          { ac_try='test -s conftest.$ac_objext'
20873   { (case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_try") 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); }; }; then
20882   ac_lo=0 ac_mid=0
20883   while :; do
20884     cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890 $ac_includes_default
20891                 typedef void * ac__type_sizeof_;
20892
20893 int
20894 main ()
20895 {
20896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20897 test_array [0] = 0
20898
20899   ;
20900   return 0;
20901 }
20902 _ACEOF
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910   (eval "$ac_compile") 2>conftest.er1
20911   ac_status=$?
20912   grep -v '^ *+' conftest.er1 >conftest.err
20913   rm -f conftest.er1
20914   cat conftest.err >&5
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); } &&
20917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20918   { (case "(($ac_try" in
20919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920   *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923   (eval "$ac_try") 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; } &&
20927          { ac_try='test -s conftest.$ac_objext'
20928   { (case "(($ac_try" in
20929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930   *) ac_try_echo=$ac_try;;
20931 esac
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933   (eval "$ac_try") 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); }; }; then
20937   ac_hi=$ac_mid; break
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942         ac_lo=`expr $ac_mid + 1`
20943                         if test $ac_lo -le $ac_mid; then
20944                           ac_lo= ac_hi=
20945                           break
20946                         fi
20947                         ac_mid=`expr 2 '*' $ac_mid + 1`
20948 fi
20949
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951   done
20952 else
20953   echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956         cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h.  */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h.  */
20962 $ac_includes_default
20963                 typedef void * ac__type_sizeof_;
20964
20965 int
20966 main ()
20967 {
20968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20969 test_array [0] = 0
20970
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_compile") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } &&
20989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20990   { (case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_try") 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; } &&
20999          { ac_try='test -s conftest.$ac_objext'
21000   { (case "(($ac_try" in
21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002   *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005   (eval "$ac_try") 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); }; }; then
21009   ac_hi=-1 ac_mid=-1
21010   while :; do
21011     cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017 $ac_includes_default
21018                 typedef void * ac__type_sizeof_;
21019
21020 int
21021 main ()
21022 {
21023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21024 test_array [0] = 0
21025
21026   ;
21027   return 0;
21028 }
21029 _ACEOF
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034   *) ac_try_echo=$ac_try;;
21035 esac
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037   (eval "$ac_compile") 2>conftest.er1
21038   ac_status=$?
21039   grep -v '^ *+' conftest.er1 >conftest.err
21040   rm -f conftest.er1
21041   cat conftest.err >&5
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); } &&
21044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21045   { (case "(($ac_try" in
21046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047   *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050   (eval "$ac_try") 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); }; } &&
21054          { ac_try='test -s conftest.$ac_objext'
21055   { (case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_try") 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; }; then
21064   ac_lo=$ac_mid; break
21065 else
21066   echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069         ac_hi=`expr '(' $ac_mid ')' - 1`
21070                         if test $ac_mid -le $ac_hi; then
21071                           ac_lo= ac_hi=
21072                           break
21073                         fi
21074                         ac_mid=`expr 2 '*' $ac_mid`
21075 fi
21076
21077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21078   done
21079 else
21080   echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083         ac_lo= ac_hi=
21084 fi
21085
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087 fi
21088
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 # Binary search between lo and hi bounds.
21091 while test "x$ac_lo" != "x$ac_hi"; do
21092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21093   cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099 $ac_includes_default
21100                 typedef void * ac__type_sizeof_;
21101
21102 int
21103 main ()
21104 {
21105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21106 test_array [0] = 0
21107
21108   ;
21109   return 0;
21110 }
21111 _ACEOF
21112 rm -f conftest.$ac_objext
21113 if { (ac_try="$ac_compile"
21114 case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_compile") 2>conftest.er1
21120   ac_status=$?
21121   grep -v '^ *+' conftest.er1 >conftest.err
21122   rm -f conftest.er1
21123   cat conftest.err >&5
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); } &&
21126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21127   { (case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132   (eval "$ac_try") 2>&5
21133   ac_status=$?
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); }; } &&
21136          { ac_try='test -s conftest.$ac_objext'
21137   { (case "(($ac_try" in
21138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139   *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142   (eval "$ac_try") 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); }; }; then
21146   ac_hi=$ac_mid
21147 else
21148   echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21150
21151         ac_lo=`expr '(' $ac_mid ')' + 1`
21152 fi
21153
21154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21155 done
21156 case $ac_lo in
21157 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21158 '') if test "$ac_cv_type_void_p" = yes; then
21159                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21160 See \`config.log' for more details." >&5
21161 echo "$as_me: error: cannot compute sizeof (void *)
21162 See \`config.log' for more details." >&2;}
21163    { (exit 77); exit 77; }; }
21164                else
21165                  ac_cv_sizeof_void_p=0
21166                fi ;;
21167 esac
21168 else
21169   cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h.  */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h.  */
21175 $ac_includes_default
21176                 typedef void * ac__type_sizeof_;
21177
21178 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21179 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21180 #include <stdio.h>
21181 #include <stdlib.h>
21182 int
21183 main ()
21184 {
21185
21186   FILE *f = fopen ("conftest.val", "w");
21187   if (! f)
21188     return 1;
21189   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21190     {
21191       long int i = longval ();
21192       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21193         return 1;
21194       fprintf (f, "%ld\n", i);
21195     }
21196   else
21197     {
21198       unsigned long int i = ulongval ();
21199       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21200         return 1;
21201       fprintf (f, "%lu\n", i);
21202     }
21203   return ferror (f) || fclose (f) != 0;
21204
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest$ac_exeext
21210 if { (ac_try="$ac_link"
21211 case "(($ac_try" in
21212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213   *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216   (eval "$ac_link") 2>&5
21217   ac_status=$?
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21220   { (case "(($ac_try" in
21221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222   *) ac_try_echo=$ac_try;;
21223 esac
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225   (eval "$ac_try") 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); }; }; then
21229   ac_cv_sizeof_void_p=`cat conftest.val`
21230 else
21231   echo "$as_me: program exited with status $ac_status" >&5
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 ( exit $ac_status )
21236 if test "$ac_cv_type_void_p" = yes; then
21237                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21238 See \`config.log' for more details." >&5
21239 echo "$as_me: error: cannot compute sizeof (void *)
21240 See \`config.log' for more details." >&2;}
21241    { (exit 77); exit 77; }; }
21242                else
21243                  ac_cv_sizeof_void_p=0
21244                fi
21245 fi
21246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21247 fi
21248 rm -f conftest.val
21249 fi
21250 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21251 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21252
21253
21254
21255 cat >>confdefs.h <<_ACEOF
21256 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21257 _ACEOF
21258
21259
21260
21261 if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
21262         { echo "$as_me:$LINENO: WARNING: size_t cannot represent the amount of used memory of a process" >&5
21263 echo "$as_me: WARNING: size_t cannot represent the amount of used memory of a process" >&2;}
21264         { echo "$as_me:$LINENO: WARNING: please report this to <samba-technical@samba.org>" >&5
21265 echo "$as_me: WARNING: please report this to <samba-technical@samba.org>" >&2;}
21266         { echo "$as_me:$LINENO: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&5
21267 echo "$as_me: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&2;}
21268         { echo "$as_me:$LINENO: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&5
21269 echo "$as_me: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&2;}
21270         { { echo "$as_me:$LINENO: error: sizeof(size_t) < sizeof(void *)" >&5
21271 echo "$as_me: error: sizeof(size_t) < sizeof(void *)" >&2;}
21272    { (exit 1); exit 1; }; }
21273 fi
21274
21275 tdbdir=""
21276 tdbpaths="$srcdir $srcdir/lib/tdb $srcdir/tdb $srcdir/../tdb"
21277 for d in $tdbpaths; do
21278         if test -f "$d/common/tdb.c"; then
21279                 tdbdir="$d"
21280
21281                 break;
21282         fi
21283 done
21284 if test x"$tdbdir" = "x"; then
21285    { { echo "$as_me:$LINENO: error: cannot find tdb source in $tdbpaths" >&5
21286 echo "$as_me: error: cannot find tdb source in $tdbpaths" >&2;}
21287    { (exit 1); exit 1; }; }
21288 fi
21289 TDBOBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o"
21290 TDBOBJ="$TDBOBJ common/freelist.o common/io.o common/lock.o common/open.o"
21291
21292
21293
21294
21295
21296
21297
21298 for ac_func in mmap pread pwrite getpagesize utime
21299 do
21300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21304   echo $ECHO_N "(cached) $ECHO_C" >&6
21305 else
21306   cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h.  */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h.  */
21312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21314 #define $ac_func innocuous_$ac_func
21315
21316 /* System header to define __stub macros and hopefully few prototypes,
21317     which can conflict with char $ac_func (); below.
21318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21319     <limits.h> exists even on freestanding compilers.  */
21320
21321 #ifdef __STDC__
21322 # include <limits.h>
21323 #else
21324 # include <assert.h>
21325 #endif
21326
21327 #undef $ac_func
21328
21329 /* Override any GCC internal prototype to avoid an error.
21330    Use char because int might match the return type of a GCC
21331    builtin and then its argument prototype would still apply.  */
21332 #ifdef __cplusplus
21333 extern "C"
21334 #endif
21335 char $ac_func ();
21336 /* The GNU C library defines this for functions which it implements
21337     to always fail with ENOSYS.  Some functions are actually named
21338     something starting with __ and the normal name is an alias.  */
21339 #if defined __stub_$ac_func || defined __stub___$ac_func
21340 choke me
21341 #endif
21342
21343 int
21344 main ()
21345 {
21346 return $ac_func ();
21347   ;
21348   return 0;
21349 }
21350 _ACEOF
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355   *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358   (eval "$ac_link") 2>conftest.er1
21359   ac_status=$?
21360   grep -v '^ *+' conftest.er1 >conftest.err
21361   rm -f conftest.er1
21362   cat conftest.err >&5
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); } &&
21365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21366   { (case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_try") 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; } &&
21375          { ac_try='test -s conftest$ac_exeext'
21376   { (case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_try") 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); }; }; then
21385   eval "$as_ac_var=yes"
21386 else
21387   echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390         eval "$as_ac_var=no"
21391 fi
21392
21393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21394       conftest$ac_exeext conftest.$ac_ext
21395 fi
21396 ac_res=`eval echo '${'$as_ac_var'}'`
21397                { echo "$as_me:$LINENO: result: $ac_res" >&5
21398 echo "${ECHO_T}$ac_res" >&6; }
21399 if test `eval echo '${'$as_ac_var'}'` = yes; then
21400   cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21402 _ACEOF
21403
21404 fi
21405 done
21406
21407
21408
21409
21410 for ac_header in getopt.h sys/select.h sys/time.h
21411 do
21412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21414   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21417   echo $ECHO_N "(cached) $ECHO_C" >&6
21418 fi
21419 ac_res=`eval echo '${'$as_ac_Header'}'`
21420                { echo "$as_me:$LINENO: result: $ac_res" >&5
21421 echo "${ECHO_T}$ac_res" >&6; }
21422 else
21423   # Is the header compilable?
21424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21426 cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 $ac_includes_default
21433 #include <$ac_header>
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442   (eval "$ac_compile") 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } &&
21449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21450   { (case "(($ac_try" in
21451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452   *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455   (eval "$ac_try") 2>&5
21456   ac_status=$?
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); }; } &&
21459          { ac_try='test -s conftest.$ac_objext'
21460   { (case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_try") 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; }; then
21469   ac_header_compiler=yes
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474         ac_header_compiler=no
21475 fi
21476
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21479 echo "${ECHO_T}$ac_header_compiler" >&6; }
21480
21481 # Is the header present?
21482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490 #include <$ac_header>
21491 _ACEOF
21492 if { (ac_try="$ac_cpp conftest.$ac_ext"
21493 case "(($ac_try" in
21494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495   *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21499   ac_status=$?
21500   grep -v '^ *+' conftest.er1 >conftest.err
21501   rm -f conftest.er1
21502   cat conftest.err >&5
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); } >/dev/null; then
21505   if test -s conftest.err; then
21506     ac_cpp_err=$ac_c_preproc_warn_flag
21507     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21508   else
21509     ac_cpp_err=
21510   fi
21511 else
21512   ac_cpp_err=yes
21513 fi
21514 if test -z "$ac_cpp_err"; then
21515   ac_header_preproc=yes
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520   ac_header_preproc=no
21521 fi
21522
21523 rm -f conftest.err conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21525 echo "${ECHO_T}$ac_header_preproc" >&6; }
21526
21527 # So?  What about this header?
21528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21529   yes:no: )
21530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21534     ac_header_preproc=yes
21535     ;;
21536   no:yes:* )
21537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21539     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21540 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21541     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21543     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21544 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21547     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21549
21550     ;;
21551 esac
21552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21555   echo $ECHO_N "(cached) $ECHO_C" >&6
21556 else
21557   eval "$as_ac_Header=\$ac_header_preproc"
21558 fi
21559 ac_res=`eval echo '${'$as_ac_Header'}'`
21560                { echo "$as_me:$LINENO: result: $ac_res" >&5
21561 echo "${ECHO_T}$ac_res" >&6; }
21562
21563 fi
21564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21565   cat >>confdefs.h <<_ACEOF
21566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21567 _ACEOF
21568
21569 fi
21570
21571 done
21572
21573
21574
21575  { echo "$as_me:$LINENO: checking for pread declaration" >&5
21576 echo $ECHO_N "checking for pread declaration... $ECHO_C" >&6; }
21577 if test "${ac_cv_have_pread_decl+set}" = set; then
21578   echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580
21581     cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587 #include <unistd.h>
21588 int
21589 main ()
21590 {
21591 int i = (int)pread
21592   ;
21593   return 0;
21594 }
21595 _ACEOF
21596 rm -f conftest.$ac_objext
21597 if { (ac_try="$ac_compile"
21598 case "(($ac_try" in
21599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600   *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603   (eval "$ac_compile") 2>conftest.er1
21604   ac_status=$?
21605   grep -v '^ *+' conftest.er1 >conftest.err
21606   rm -f conftest.er1
21607   cat conftest.err >&5
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } &&
21610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21611   { (case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616   (eval "$ac_try") 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }; } &&
21620          { ac_try='test -s conftest.$ac_objext'
21621   { (case "(($ac_try" in
21622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623   *) ac_try_echo=$ac_try;;
21624 esac
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626   (eval "$ac_try") 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); }; }; then
21630   ac_cv_have_pread_decl=yes
21631 else
21632   echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635         ac_cv_have_pread_decl=no
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 fi
21640 { echo "$as_me:$LINENO: result: $ac_cv_have_pread_decl" >&5
21641 echo "${ECHO_T}$ac_cv_have_pread_decl" >&6; }
21642  if test x"$ac_cv_have_pread_decl" = x"yes"; then
21643
21644 cat >>confdefs.h <<\_ACEOF
21645 #define HAVE_PREAD_DECL 1
21646 _ACEOF
21647
21648  fi
21649
21650
21651  { echo "$as_me:$LINENO: checking for pwrite declaration" >&5
21652 echo $ECHO_N "checking for pwrite declaration... $ECHO_C" >&6; }
21653 if test "${ac_cv_have_pwrite_decl+set}" = set; then
21654   echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656
21657     cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h.  */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h.  */
21663 #include <unistd.h>
21664 int
21665 main ()
21666 {
21667 int i = (int)pwrite
21668   ;
21669   return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676   *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679   (eval "$ac_compile") 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } &&
21686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21687   { (case "(($ac_try" in
21688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689   *) ac_try_echo=$ac_try;;
21690 esac
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692   (eval "$ac_try") 2>&5
21693   ac_status=$?
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); }; } &&
21696          { ac_try='test -s conftest.$ac_objext'
21697   { (case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702   (eval "$ac_try") 2>&5
21703   ac_status=$?
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); }; }; then
21706   ac_cv_have_pwrite_decl=yes
21707 else
21708   echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21710
21711         ac_cv_have_pwrite_decl=no
21712 fi
21713
21714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21715 fi
21716 { echo "$as_me:$LINENO: result: $ac_cv_have_pwrite_decl" >&5
21717 echo "${ECHO_T}$ac_cv_have_pwrite_decl" >&6; }
21718  if test x"$ac_cv_have_pwrite_decl" = x"yes"; then
21719
21720 cat >>confdefs.h <<\_ACEOF
21721 #define HAVE_PWRITE_DECL 1
21722 _ACEOF
21723
21724  fi
21725
21726
21727 { echo "$as_me:$LINENO: checking for Python" >&5
21728 echo $ECHO_N "checking for Python... $ECHO_C" >&6; }
21729
21730 PYTHON=
21731
21732
21733 # Check whether --with-python was given.
21734 if test "${with_python+set}" = set; then
21735   withval=$with_python;  case "${withval-python}" in
21736   yes)
21737         PYTHON=python
21738         ;;
21739   no)
21740         PYTHON=
21741         ;;
21742   *)
21743         PYTHON=${withval-python}
21744         ;;
21745   esac
21746 fi
21747
21748
21749 if test x"$PYTHON" != "x"; then
21750         incdir=`python -c 'import sys; print "%s/include/python%d.%d" % (sys.prefix, sys.version_info[0], sys.version_info[1])'`
21751         CPPFLAGS="$CPPFLAGS -I $incdir"
21752 fi
21753
21754 if test x"$PYTHON" != "x"; then
21755         { echo "$as_me:$LINENO: result: ${withval-python}" >&5
21756 echo "${ECHO_T}${withval-python}" >&6; }
21757 else
21758         echo -n ""
21759         { echo "$as_me:$LINENO: result: no" >&5
21760 echo "${ECHO_T}no" >&6; }
21761 fi
21762
21763
21764
21765
21766
21767
21768 ac_config_files="$ac_config_files Makefile"
21769
21770 cat >confcache <<\_ACEOF
21771 # This file is a shell script that caches the results of configure
21772 # tests run on this system so they can be shared between configure
21773 # scripts and configure runs, see configure's option --config-cache.
21774 # It is not useful on other systems.  If it contains results you don't
21775 # want to keep, you may remove or edit it.
21776 #
21777 # config.status only pays attention to the cache file if you give it
21778 # the --recheck option to rerun configure.
21779 #
21780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21782 # following values.
21783
21784 _ACEOF
21785
21786 # The following way of writing the cache mishandles newlines in values,
21787 # but we know of no workaround that is simple, portable, and efficient.
21788 # So, we kill variables containing newlines.
21789 # Ultrix sh set writes to stderr and can't be redirected directly,
21790 # and sets the high bit in the cache file unless we assign to the vars.
21791 (
21792   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21793     eval ac_val=\$$ac_var
21794     case $ac_val in #(
21795     *${as_nl}*)
21796       case $ac_var in #(
21797       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21798 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21799       esac
21800       case $ac_var in #(
21801       _ | IFS | as_nl) ;; #(
21802       *) $as_unset $ac_var ;;
21803       esac ;;
21804     esac
21805   done
21806
21807   (set) 2>&1 |
21808     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21809     *${as_nl}ac_space=\ *)
21810       # `set' does not quote correctly, so add quotes (double-quote
21811       # substitution turns \\\\ into \\, and sed turns \\ into \).
21812       sed -n \
21813         "s/'/'\\\\''/g;
21814           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21815       ;; #(
21816     *)
21817       # `set' quotes correctly as required by POSIX, so do not add quotes.
21818       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21819       ;;
21820     esac |
21821     sort
21822 ) |
21823   sed '
21824      /^ac_cv_env_/b end
21825      t clear
21826      :clear
21827      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21828      t end
21829      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21830      :end' >>confcache
21831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21832   if test -w "$cache_file"; then
21833     test "x$cache_file" != "x/dev/null" &&
21834       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21835 echo "$as_me: updating cache $cache_file" >&6;}
21836     cat confcache >$cache_file
21837   else
21838     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21839 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21840   fi
21841 fi
21842 rm -f confcache
21843
21844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21845 # Let make expand exec_prefix.
21846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21847
21848 DEFS=-DHAVE_CONFIG_H
21849
21850 ac_libobjs=
21851 ac_ltlibobjs=
21852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21853   # 1. Remove the extension, and $U if already installed.
21854   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21855   ac_i=`echo "$ac_i" | sed "$ac_script"`
21856   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21857   #    will be set to the directory where LIBOBJS objects are built.
21858   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21859   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21860 done
21861 LIBOBJS=$ac_libobjs
21862
21863 LTLIBOBJS=$ac_ltlibobjs
21864
21865
21866
21867 : ${CONFIG_STATUS=./config.status}
21868 ac_clean_files_save=$ac_clean_files
21869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21870 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21871 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21872 cat >$CONFIG_STATUS <<_ACEOF
21873 #! $SHELL
21874 # Generated by $as_me.
21875 # Run this file to recreate the current configuration.
21876 # Compiler output produced by configure, useful for debugging
21877 # configure, is in config.log if it exists.
21878
21879 debug=false
21880 ac_cs_recheck=false
21881 ac_cs_silent=false
21882 SHELL=\${CONFIG_SHELL-$SHELL}
21883 _ACEOF
21884
21885 cat >>$CONFIG_STATUS <<\_ACEOF
21886 ## --------------------- ##
21887 ## M4sh Initialization.  ##
21888 ## --------------------- ##
21889
21890 # Be Bourne compatible
21891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21892   emulate sh
21893   NULLCMD=:
21894   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21895   # is contrary to our usage.  Disable this feature.
21896   alias -g '${1+"$@"}'='"$@"'
21897   setopt NO_GLOB_SUBST
21898 else
21899   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21900 fi
21901 BIN_SH=xpg4; export BIN_SH # for Tru64
21902 DUALCASE=1; export DUALCASE # for MKS sh
21903
21904
21905 # PATH needs CR
21906 # Avoid depending upon Character Ranges.
21907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21910 as_cr_digits='0123456789'
21911 as_cr_alnum=$as_cr_Letters$as_cr_digits
21912
21913 # The user is always right.
21914 if test "${PATH_SEPARATOR+set}" != set; then
21915   echo "#! /bin/sh" >conf$$.sh
21916   echo  "exit 0"   >>conf$$.sh
21917   chmod +x conf$$.sh
21918   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21919     PATH_SEPARATOR=';'
21920   else
21921     PATH_SEPARATOR=:
21922   fi
21923   rm -f conf$$.sh
21924 fi
21925
21926 # Support unset when possible.
21927 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21928   as_unset=unset
21929 else
21930   as_unset=false
21931 fi
21932
21933
21934 # IFS
21935 # We need space, tab and new line, in precisely that order.  Quoting is
21936 # there to prevent editors from complaining about space-tab.
21937 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21938 # splitting by setting IFS to empty value.)
21939 as_nl='
21940 '
21941 IFS=" ""        $as_nl"
21942
21943 # Find who we are.  Look in the path if we contain no directory separator.
21944 case $0 in
21945   *[\\/]* ) as_myself=$0 ;;
21946   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21947 for as_dir in $PATH
21948 do
21949   IFS=$as_save_IFS
21950   test -z "$as_dir" && as_dir=.
21951   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21952 done
21953 IFS=$as_save_IFS
21954
21955      ;;
21956 esac
21957 # We did not find ourselves, most probably we were run as `sh COMMAND'
21958 # in which case we are not to be found in the path.
21959 if test "x$as_myself" = x; then
21960   as_myself=$0
21961 fi
21962 if test ! -f "$as_myself"; then
21963   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21964   { (exit 1); exit 1; }
21965 fi
21966
21967 # Work around bugs in pre-3.0 UWIN ksh.
21968 for as_var in ENV MAIL MAILPATH
21969 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21970 done
21971 PS1='$ '
21972 PS2='> '
21973 PS4='+ '
21974
21975 # NLS nuisances.
21976 for as_var in \
21977   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21978   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21979   LC_TELEPHONE LC_TIME
21980 do
21981   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21982     eval $as_var=C; export $as_var
21983   else
21984     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21985   fi
21986 done
21987
21988 # Required to use basename.
21989 if expr a : '\(a\)' >/dev/null 2>&1 &&
21990    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21991   as_expr=expr
21992 else
21993   as_expr=false
21994 fi
21995
21996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21997   as_basename=basename
21998 else
21999   as_basename=false
22000 fi
22001
22002
22003 # Name of the executable.
22004 as_me=`$as_basename -- "$0" ||
22005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22006          X"$0" : 'X\(//\)$' \| \
22007          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22008 echo X/"$0" |
22009     sed '/^.*\/\([^/][^/]*\)\/*$/{
22010             s//\1/
22011             q
22012           }
22013           /^X\/\(\/\/\)$/{
22014             s//\1/
22015             q
22016           }
22017           /^X\/\(\/\).*/{
22018             s//\1/
22019             q
22020           }
22021           s/.*/./; q'`
22022
22023 # CDPATH.
22024 $as_unset CDPATH
22025
22026
22027
22028   as_lineno_1=$LINENO
22029   as_lineno_2=$LINENO
22030   test "x$as_lineno_1" != "x$as_lineno_2" &&
22031   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22032
22033   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22034   # uniformly replaced by the line number.  The first 'sed' inserts a
22035   # line-number line after each line using $LINENO; the second 'sed'
22036   # does the real work.  The second script uses 'N' to pair each
22037   # line-number line with the line containing $LINENO, and appends
22038   # trailing '-' during substitution so that $LINENO is not a special
22039   # case at line end.
22040   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22041   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22042   # E. McMahon (1931-1989) for sed's syntax.  :-)
22043   sed -n '
22044     p
22045     /[$]LINENO/=
22046   ' <$as_myself |
22047     sed '
22048       s/[$]LINENO.*/&-/
22049       t lineno
22050       b
22051       :lineno
22052       N
22053       :loop
22054       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22055       t loop
22056       s/-\n.*//
22057     ' >$as_me.lineno &&
22058   chmod +x "$as_me.lineno" ||
22059     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22060    { (exit 1); exit 1; }; }
22061
22062   # Don't try to exec as it changes $[0], causing all sort of problems
22063   # (the dirname of $[0] is not the place where we might find the
22064   # original and so on.  Autoconf is especially sensitive to this).
22065   . "./$as_me.lineno"
22066   # Exit status is that of the last command.
22067   exit
22068 }
22069
22070
22071 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22072   as_dirname=dirname
22073 else
22074   as_dirname=false
22075 fi
22076
22077 ECHO_C= ECHO_N= ECHO_T=
22078 case `echo -n x` in
22079 -n*)
22080   case `echo 'x\c'` in
22081   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22082   *)   ECHO_C='\c';;
22083   esac;;
22084 *)
22085   ECHO_N='-n';;
22086 esac
22087
22088 if expr a : '\(a\)' >/dev/null 2>&1 &&
22089    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22090   as_expr=expr
22091 else
22092   as_expr=false
22093 fi
22094
22095 rm -f conf$$ conf$$.exe conf$$.file
22096 if test -d conf$$.dir; then
22097   rm -f conf$$.dir/conf$$.file
22098 else
22099   rm -f conf$$.dir
22100   mkdir conf$$.dir
22101 fi
22102 echo >conf$$.file
22103 if ln -s conf$$.file conf$$ 2>/dev/null; then
22104   as_ln_s='ln -s'
22105   # ... but there are two gotchas:
22106   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22107   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22108   # In both cases, we have to default to `cp -p'.
22109   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22110     as_ln_s='cp -p'
22111 elif ln conf$$.file conf$$ 2>/dev/null; then
22112   as_ln_s=ln
22113 else
22114   as_ln_s='cp -p'
22115 fi
22116 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22117 rmdir conf$$.dir 2>/dev/null
22118
22119 if mkdir -p . 2>/dev/null; then
22120   as_mkdir_p=:
22121 else
22122   test -d ./-p && rmdir ./-p
22123   as_mkdir_p=false
22124 fi
22125
22126 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22127 # systems may use methods other than mode bits to determine executability.
22128 cat >conf$$.file <<_ASEOF
22129 #! /bin/sh
22130 exit 0
22131 _ASEOF
22132 chmod +x conf$$.file
22133 if test -x conf$$.file >/dev/null 2>&1; then
22134   as_executable_p="test -x"
22135 else
22136   as_executable_p=:
22137 fi
22138 rm -f conf$$.file
22139
22140 # Sed expression to map a string onto a valid CPP name.
22141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22142
22143 # Sed expression to map a string onto a valid variable name.
22144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22145
22146
22147 exec 6>&1
22148
22149 # Save the log message, to keep $[0] and so on meaningful, and to
22150 # report actual input values of CONFIG_FILES etc. instead of their
22151 # values after options handling.
22152 ac_log="
22153 This file was extended by $as_me, which was
22154 generated by GNU Autoconf 2.60a.  Invocation command line was
22155
22156   CONFIG_FILES    = $CONFIG_FILES
22157   CONFIG_HEADERS  = $CONFIG_HEADERS
22158   CONFIG_LINKS    = $CONFIG_LINKS
22159   CONFIG_COMMANDS = $CONFIG_COMMANDS
22160   $ $0 $@
22161
22162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22163 "
22164
22165 _ACEOF
22166
22167 cat >>$CONFIG_STATUS <<_ACEOF
22168 # Files that config.status was made for.
22169 config_files="$ac_config_files"
22170 config_headers="$ac_config_headers"
22171
22172 _ACEOF
22173
22174 cat >>$CONFIG_STATUS <<\_ACEOF
22175 ac_cs_usage="\
22176 \`$as_me' instantiates files from templates according to the
22177 current configuration.
22178
22179 Usage: $0 [OPTIONS] [FILE]...
22180
22181   -h, --help       print this help, then exit
22182   -V, --version    print version number and configuration settings, then exit
22183   -q, --quiet      do not print progress messages
22184   -d, --debug      don't remove temporary files
22185       --recheck    update $as_me by reconfiguring in the same conditions
22186   --file=FILE[:TEMPLATE]
22187                    instantiate the configuration file FILE
22188   --header=FILE[:TEMPLATE]
22189                    instantiate the configuration header FILE
22190
22191 Configuration files:
22192 $config_files
22193
22194 Configuration headers:
22195 $config_headers
22196
22197 Report bugs to <bug-autoconf@gnu.org>."
22198
22199 _ACEOF
22200 cat >>$CONFIG_STATUS <<_ACEOF
22201 ac_cs_version="\\
22202 config.status
22203 configured by $0, generated by GNU Autoconf 2.60a,
22204   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22205
22206 Copyright (C) 2006 Free Software Foundation, Inc.
22207 This config.status script is free software; the Free Software Foundation
22208 gives unlimited permission to copy, distribute and modify it."
22209
22210 ac_pwd='$ac_pwd'
22211 srcdir='$srcdir'
22212 INSTALL='$INSTALL'
22213 _ACEOF
22214
22215 cat >>$CONFIG_STATUS <<\_ACEOF
22216 # If no file are specified by the user, then we need to provide default
22217 # value.  By we need to know if files were specified by the user.
22218 ac_need_defaults=:
22219 while test $# != 0
22220 do
22221   case $1 in
22222   --*=*)
22223     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22224     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22225     ac_shift=:
22226     ;;
22227   *)
22228     ac_option=$1
22229     ac_optarg=$2
22230     ac_shift=shift
22231     ;;
22232   esac
22233
22234   case $ac_option in
22235   # Handling of the options.
22236   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22237     ac_cs_recheck=: ;;
22238   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22239     echo "$ac_cs_version"; exit ;;
22240   --debug | --debu | --deb | --de | --d | -d )
22241     debug=: ;;
22242   --file | --fil | --fi | --f )
22243     $ac_shift
22244     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22245     ac_need_defaults=false;;
22246   --header | --heade | --head | --hea )
22247     $ac_shift
22248     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22249     ac_need_defaults=false;;
22250   --he | --h)
22251     # Conflict between --help and --header
22252     { echo "$as_me: error: ambiguous option: $1
22253 Try \`$0 --help' for more information." >&2
22254    { (exit 1); exit 1; }; };;
22255   --help | --hel | -h )
22256     echo "$ac_cs_usage"; exit ;;
22257   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22258   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22259     ac_cs_silent=: ;;
22260
22261   # This is an error.
22262   -*) { echo "$as_me: error: unrecognized option: $1
22263 Try \`$0 --help' for more information." >&2
22264    { (exit 1); exit 1; }; } ;;
22265
22266   *) ac_config_targets="$ac_config_targets $1"
22267      ac_need_defaults=false ;;
22268
22269   esac
22270   shift
22271 done
22272
22273 ac_configure_extra_args=
22274
22275 if $ac_cs_silent; then
22276   exec 6>/dev/null
22277   ac_configure_extra_args="$ac_configure_extra_args --silent"
22278 fi
22279
22280 _ACEOF
22281 cat >>$CONFIG_STATUS <<_ACEOF
22282 if \$ac_cs_recheck; then
22283   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22284   CONFIG_SHELL=$SHELL
22285   export CONFIG_SHELL
22286   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22287 fi
22288
22289 _ACEOF
22290 cat >>$CONFIG_STATUS <<\_ACEOF
22291 exec 5>>config.log
22292 {
22293   echo
22294   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22295 ## Running $as_me. ##
22296 _ASBOX
22297   echo "$ac_log"
22298 } >&5
22299
22300 _ACEOF
22301 cat >>$CONFIG_STATUS <<_ACEOF
22302 _ACEOF
22303
22304 cat >>$CONFIG_STATUS <<\_ACEOF
22305
22306 # Handling of arguments.
22307 for ac_config_target in $ac_config_targets
22308 do
22309   case $ac_config_target in
22310     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22311     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22312
22313   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22314 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22315    { (exit 1); exit 1; }; };;
22316   esac
22317 done
22318
22319
22320 # If the user did not use the arguments to specify the items to instantiate,
22321 # then the envvar interface is used.  Set only those that are not.
22322 # We use the long form for the default assignment because of an extremely
22323 # bizarre bug on SunOS 4.1.3.
22324 if $ac_need_defaults; then
22325   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22326   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22327 fi
22328
22329 # Have a temporary directory for convenience.  Make it in the build tree
22330 # simply because there is no reason against having it here, and in addition,
22331 # creating and moving files from /tmp can sometimes cause problems.
22332 # Hook for its removal unless debugging.
22333 # Note that there is a small window in which the directory will not be cleaned:
22334 # after its creation but before its name has been assigned to `$tmp'.
22335 $debug ||
22336 {
22337   tmp=
22338   trap 'exit_status=$?
22339   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22340 ' 0
22341   trap '{ (exit 1); exit 1; }' 1 2 13 15
22342 }
22343 # Create a (secure) tmp directory for tmp files.
22344
22345 {
22346   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22347   test -n "$tmp" && test -d "$tmp"
22348 }  ||
22349 {
22350   tmp=./conf$$-$RANDOM
22351   (umask 077 && mkdir "$tmp")
22352 } ||
22353 {
22354    echo "$me: cannot create a temporary directory in ." >&2
22355    { (exit 1); exit 1; }
22356 }
22357
22358 #
22359 # Set up the sed scripts for CONFIG_FILES section.
22360 #
22361
22362 # No need to generate the scripts if there are no CONFIG_FILES.
22363 # This happens for instance when ./config.status config.h
22364 if test -n "$CONFIG_FILES"; then
22365
22366 _ACEOF
22367
22368
22369
22370 ac_delim='%!_!# '
22371 for ac_last_try in false false false false false :; do
22372   cat >conf$$subs.sed <<_ACEOF
22373 SHELL!$SHELL$ac_delim
22374 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22375 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22376 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22377 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22378 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22379 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22380 exec_prefix!$exec_prefix$ac_delim
22381 prefix!$prefix$ac_delim
22382 program_transform_name!$program_transform_name$ac_delim
22383 bindir!$bindir$ac_delim
22384 sbindir!$sbindir$ac_delim
22385 libexecdir!$libexecdir$ac_delim
22386 datarootdir!$datarootdir$ac_delim
22387 datadir!$datadir$ac_delim
22388 sysconfdir!$sysconfdir$ac_delim
22389 sharedstatedir!$sharedstatedir$ac_delim
22390 localstatedir!$localstatedir$ac_delim
22391 includedir!$includedir$ac_delim
22392 oldincludedir!$oldincludedir$ac_delim
22393 docdir!$docdir$ac_delim
22394 infodir!$infodir$ac_delim
22395 htmldir!$htmldir$ac_delim
22396 dvidir!$dvidir$ac_delim
22397 pdfdir!$pdfdir$ac_delim
22398 psdir!$psdir$ac_delim
22399 libdir!$libdir$ac_delim
22400 localedir!$localedir$ac_delim
22401 mandir!$mandir$ac_delim
22402 DEFS!$DEFS$ac_delim
22403 ECHO_C!$ECHO_C$ac_delim
22404 ECHO_N!$ECHO_N$ac_delim
22405 ECHO_T!$ECHO_T$ac_delim
22406 LIBS!$LIBS$ac_delim
22407 build_alias!$build_alias$ac_delim
22408 host_alias!$host_alias$ac_delim
22409 target_alias!$target_alias$ac_delim
22410 libreplacedir!$libreplacedir$ac_delim
22411 LIBREPLACEOBJ!$LIBREPLACEOBJ$ac_delim
22412 build!$build$ac_delim
22413 build_cpu!$build_cpu$ac_delim
22414 build_vendor!$build_vendor$ac_delim
22415 build_os!$build_os$ac_delim
22416 host!$host$ac_delim
22417 host_cpu!$host_cpu$ac_delim
22418 host_vendor!$host_vendor$ac_delim
22419 host_os!$host_os$ac_delim
22420 target!$target$ac_delim
22421 target_cpu!$target_cpu$ac_delim
22422 target_vendor!$target_vendor$ac_delim
22423 target_os!$target_os$ac_delim
22424 CC!$CC$ac_delim
22425 CFLAGS!$CFLAGS$ac_delim
22426 LDFLAGS!$LDFLAGS$ac_delim
22427 CPPFLAGS!$CPPFLAGS$ac_delim
22428 ac_ct_CC!$ac_ct_CC$ac_delim
22429 EXEEXT!$EXEEXT$ac_delim
22430 OBJEXT!$OBJEXT$ac_delim
22431 CPP!$CPP$ac_delim
22432 GREP!$GREP$ac_delim
22433 EGREP!$EGREP$ac_delim
22434 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22435 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22436 INSTALL_DATA!$INSTALL_DATA$ac_delim
22437 libreplace_cv_immediate_structures!$libreplace_cv_immediate_structures$ac_delim
22438 LIBOBJS!$LIBOBJS$ac_delim
22439 precompiled_headers!$precompiled_headers$ac_delim
22440 LIBDL!$LIBDL$ac_delim
22441 tallocdir!$tallocdir$ac_delim
22442 TALLOCOBJ!$TALLOCOBJ$ac_delim
22443 tdbdir!$tdbdir$ac_delim
22444 TDBOBJ!$TDBOBJ$ac_delim
22445 PYTHON!$PYTHON$ac_delim
22446 EXTRA_OBJ!$EXTRA_OBJ$ac_delim
22447 LTLIBOBJS!$LTLIBOBJS$ac_delim
22448 _ACEOF
22449
22450   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
22451     break
22452   elif $ac_last_try; then
22453     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22454 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22455    { (exit 1); exit 1; }; }
22456   else
22457     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22458   fi
22459 done
22460
22461 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22462 if test -n "$ac_eof"; then
22463   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22464   ac_eof=`expr $ac_eof + 1`
22465 fi
22466
22467 cat >>$CONFIG_STATUS <<_ACEOF
22468 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22470 _ACEOF
22471 sed '
22472 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22473 s/^/s,@/; s/!/@,|#_!!_#|/
22474 :n
22475 t n
22476 s/'"$ac_delim"'$/,g/; t
22477 s/$/\\/; p
22478 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22479 ' >>$CONFIG_STATUS <conf$$subs.sed
22480 rm -f conf$$subs.sed
22481 cat >>$CONFIG_STATUS <<_ACEOF
22482 :end
22483 s/|#_!!_#|//g
22484 CEOF$ac_eof
22485 _ACEOF
22486
22487
22488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22490 # trailing colons and then remove the whole line if VPATH becomes empty
22491 # (actually we leave an empty line to preserve line numbers).
22492 if test "x$srcdir" = x.; then
22493   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22494 s/:*\$(srcdir):*/:/
22495 s/:*\${srcdir}:*/:/
22496 s/:*@srcdir@:*/:/
22497 s/^\([^=]*=[     ]*\):*/\1/
22498 s/:*$//
22499 s/^[^=]*=[       ]*$//
22500 }'
22501 fi
22502
22503 cat >>$CONFIG_STATUS <<\_ACEOF
22504 fi # test -n "$CONFIG_FILES"
22505
22506
22507 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
22508 do
22509   case $ac_tag in
22510   :[FHLC]) ac_mode=$ac_tag; continue;;
22511   esac
22512   case $ac_mode$ac_tag in
22513   :[FHL]*:*);;
22514   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22515 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22516    { (exit 1); exit 1; }; };;
22517   :[FH]-) ac_tag=-:-;;
22518   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22519   esac
22520   ac_save_IFS=$IFS
22521   IFS=:
22522   set x $ac_tag
22523   IFS=$ac_save_IFS
22524   shift
22525   ac_file=$1
22526   shift
22527
22528   case $ac_mode in
22529   :L) ac_source=$1;;
22530   :[FH])
22531     ac_file_inputs=
22532     for ac_f
22533     do
22534       case $ac_f in
22535       -) ac_f="$tmp/stdin";;
22536       *) # Look for the file first in the build tree, then in the source tree
22537          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22538          # because $ac_f cannot contain `:'.
22539          test -f "$ac_f" ||
22540            case $ac_f in
22541            [\\/$]*) false;;
22542            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22543            esac ||
22544            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22545 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22546    { (exit 1); exit 1; }; };;
22547       esac
22548       ac_file_inputs="$ac_file_inputs $ac_f"
22549     done
22550
22551     # Let's still pretend it is `configure' which instantiates (i.e., don't
22552     # use $as_me), people would be surprised to read:
22553     #    /* config.h.  Generated by config.status.  */
22554     configure_input="Generated from "`IFS=:
22555           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22556     if test x"$ac_file" != x-; then
22557       configure_input="$ac_file.  $configure_input"
22558       { echo "$as_me:$LINENO: creating $ac_file" >&5
22559 echo "$as_me: creating $ac_file" >&6;}
22560     fi
22561
22562     case $ac_tag in
22563     *:-:* | *:-) cat >"$tmp/stdin";;
22564     esac
22565     ;;
22566   esac
22567
22568   ac_dir=`$as_dirname -- "$ac_file" ||
22569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22570          X"$ac_file" : 'X\(//\)[^/]' \| \
22571          X"$ac_file" : 'X\(//\)$' \| \
22572          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22573 echo X"$ac_file" |
22574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22575             s//\1/
22576             q
22577           }
22578           /^X\(\/\/\)[^/].*/{
22579             s//\1/
22580             q
22581           }
22582           /^X\(\/\/\)$/{
22583             s//\1/
22584             q
22585           }
22586           /^X\(\/\).*/{
22587             s//\1/
22588             q
22589           }
22590           s/.*/./; q'`
22591   { as_dir="$ac_dir"
22592   case $as_dir in #(
22593   -*) as_dir=./$as_dir;;
22594   esac
22595   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22596     as_dirs=
22597     while :; do
22598       case $as_dir in #(
22599       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22600       *) as_qdir=$as_dir;;
22601       esac
22602       as_dirs="'$as_qdir' $as_dirs"
22603       as_dir=`$as_dirname -- "$as_dir" ||
22604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22605          X"$as_dir" : 'X\(//\)[^/]' \| \
22606          X"$as_dir" : 'X\(//\)$' \| \
22607          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22608 echo X"$as_dir" |
22609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22610             s//\1/
22611             q
22612           }
22613           /^X\(\/\/\)[^/].*/{
22614             s//\1/
22615             q
22616           }
22617           /^X\(\/\/\)$/{
22618             s//\1/
22619             q
22620           }
22621           /^X\(\/\).*/{
22622             s//\1/
22623             q
22624           }
22625           s/.*/./; q'`
22626       test -d "$as_dir" && break
22627     done
22628     test -z "$as_dirs" || eval "mkdir $as_dirs"
22629   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22630 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22631    { (exit 1); exit 1; }; }; }
22632   ac_builddir=.
22633
22634 case "$ac_dir" in
22635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22636 *)
22637   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22638   # A ".." for each directory in $ac_dir_suffix.
22639   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22640   case $ac_top_builddir_sub in
22641   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22642   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22643   esac ;;
22644 esac
22645 ac_abs_top_builddir=$ac_pwd
22646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22647 # for backward compatibility:
22648 ac_top_builddir=$ac_top_build_prefix
22649
22650 case $srcdir in
22651   .)  # We are building in place.
22652     ac_srcdir=.
22653     ac_top_srcdir=$ac_top_builddir_sub
22654     ac_abs_top_srcdir=$ac_pwd ;;
22655   [\\/]* | ?:[\\/]* )  # Absolute name.
22656     ac_srcdir=$srcdir$ac_dir_suffix;
22657     ac_top_srcdir=$srcdir
22658     ac_abs_top_srcdir=$srcdir ;;
22659   *) # Relative name.
22660     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22661     ac_top_srcdir=$ac_top_build_prefix$srcdir
22662     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22663 esac
22664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22665
22666
22667   case $ac_mode in
22668   :F)
22669   #
22670   # CONFIG_FILE
22671   #
22672
22673   case $INSTALL in
22674   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22675   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22676   esac
22677 _ACEOF
22678
22679 cat >>$CONFIG_STATUS <<\_ACEOF
22680 # If the template does not know about datarootdir, expand it.
22681 # FIXME: This hack should be removed a few years after 2.60.
22682 ac_datarootdir_hack=; ac_datarootdir_seen=
22683
22684 case `sed -n '/datarootdir/ {
22685   p
22686   q
22687 }
22688 /@datadir@/p
22689 /@docdir@/p
22690 /@infodir@/p
22691 /@localedir@/p
22692 /@mandir@/p
22693 ' $ac_file_inputs` in
22694 *datarootdir*) ac_datarootdir_seen=yes;;
22695 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22696   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22697 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22698 _ACEOF
22699 cat >>$CONFIG_STATUS <<_ACEOF
22700   ac_datarootdir_hack='
22701   s&@datadir@&$datadir&g
22702   s&@docdir@&$docdir&g
22703   s&@infodir@&$infodir&g
22704   s&@localedir@&$localedir&g
22705   s&@mandir@&$mandir&g
22706     s&\\\${datarootdir}&$datarootdir&g' ;;
22707 esac
22708 _ACEOF
22709
22710 # Neutralize VPATH when `$srcdir' = `.'.
22711 # Shell code in configure.ac might set extrasub.
22712 # FIXME: do we really want to maintain this feature?
22713 cat >>$CONFIG_STATUS <<_ACEOF
22714   sed "$ac_vpsub
22715 $extrasub
22716 _ACEOF
22717 cat >>$CONFIG_STATUS <<\_ACEOF
22718 :t
22719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22720 s&@configure_input@&$configure_input&;t t
22721 s&@top_builddir@&$ac_top_builddir_sub&;t t
22722 s&@srcdir@&$ac_srcdir&;t t
22723 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22724 s&@top_srcdir@&$ac_top_srcdir&;t t
22725 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22726 s&@builddir@&$ac_builddir&;t t
22727 s&@abs_builddir@&$ac_abs_builddir&;t t
22728 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22729 s&@INSTALL@&$ac_INSTALL&;t t
22730 $ac_datarootdir_hack
22731 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
22732
22733 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22734   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22735   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22736   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22737 which seems to be undefined.  Please make sure it is defined." >&5
22738 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22739 which seems to be undefined.  Please make sure it is defined." >&2;}
22740
22741   rm -f "$tmp/stdin"
22742   case $ac_file in
22743   -) cat "$tmp/out"; rm -f "$tmp/out";;
22744   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22745   esac
22746  ;;
22747   :H)
22748   #
22749   # CONFIG_HEADER
22750   #
22751 _ACEOF
22752
22753 # Transform confdefs.h into a sed script `conftest.defines', that
22754 # substitutes the proper values into config.h.in to produce config.h.
22755 rm -f conftest.defines conftest.tail
22756 # First, append a space to every undef/define line, to ease matching.
22757 echo 's/$/ /' >conftest.defines
22758 # Then, protect against being on the right side of a sed subst, or in
22759 # an unquoted here document, in config.status.  If some macros were
22760 # called several times there might be several #defines for the same
22761 # symbol, which is useless.  But do not sort them, since the last
22762 # AC_DEFINE must be honored.
22763 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22764 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22765 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22766 # PARAMS is the parameter list in the macro definition--in most cases, it's
22767 # just an empty string.
22768 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22769 ac_dB='\\)[      (].*,\\1define\\2'
22770 ac_dC=' '
22771 ac_dD=' ,'
22772
22773 uniq confdefs.h |
22774   sed -n '
22775         t rset
22776         :rset
22777         s/^[     ]*#[    ]*define[       ][      ]*//
22778         t ok
22779         d
22780         :ok
22781         s/[\\&,]/\\&/g
22782         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22783         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22784   ' >>conftest.defines
22785
22786 # Remove the space that was appended to ease matching.
22787 # Then replace #undef with comments.  This is necessary, for
22788 # example, in the case of _POSIX_SOURCE, which is predefined and required
22789 # on some systems where configure will not decide to define it.
22790 # (The regexp can be short, since the line contains either #define or #undef.)
22791 echo 's/ $//
22792 s,^[     #]*u.*,/* & */,' >>conftest.defines
22793
22794 # Break up conftest.defines:
22795 ac_max_sed_lines=50
22796
22797 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22798 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22799 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22800 # et cetera.
22801 ac_in='$ac_file_inputs'
22802 ac_out='"$tmp/out1"'
22803 ac_nxt='"$tmp/out2"'
22804
22805 while :
22806 do
22807   # Write a here document:
22808     cat >>$CONFIG_STATUS <<_ACEOF
22809     # First, check the format of the line:
22810     cat >"\$tmp/defines.sed" <<\\CEOF
22811 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22812 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22813 b
22814 :def
22815 _ACEOF
22816   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22817   echo 'CEOF
22818     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22819   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22820   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22821   grep . conftest.tail >/dev/null || break
22822   rm -f conftest.defines
22823   mv conftest.tail conftest.defines
22824 done
22825 rm -f conftest.defines conftest.tail
22826
22827 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22828 cat >>$CONFIG_STATUS <<\_ACEOF
22829   if test x"$ac_file" != x-; then
22830     echo "/* $configure_input  */" >"$tmp/config.h"
22831     cat "$ac_result" >>"$tmp/config.h"
22832     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22833       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22834 echo "$as_me: $ac_file is unchanged" >&6;}
22835     else
22836       rm -f $ac_file
22837       mv "$tmp/config.h" $ac_file
22838     fi
22839   else
22840     echo "/* $configure_input  */"
22841     cat "$ac_result"
22842   fi
22843   rm -f "$tmp/out12"
22844  ;;
22845
22846
22847   esac
22848
22849 done # for ac_tag
22850
22851
22852 { (exit 0); exit 0; }
22853 _ACEOF
22854 chmod +x $CONFIG_STATUS
22855 ac_clean_files=$ac_clean_files_save
22856
22857
22858 # configure is writing to config.log, and then calls config.status.
22859 # config.status does its own redirection, appending to config.log.
22860 # Unfortunately, on DOS this fails, as config.log is still kept open
22861 # by configure, so config.status won't be able to write to it; its
22862 # output is simply discarded.  So we exec the FD to /dev/null,
22863 # effectively closing config.log, so it can be properly (re)opened and
22864 # appended to by config.status.  When coming back to configure, we
22865 # need to make the FD available again.
22866 if test "$no_create" != yes; then
22867   ac_cs_success=:
22868   ac_config_status_args=
22869   test "$silent" = yes &&
22870     ac_config_status_args="$ac_config_status_args --quiet"
22871   exec 5>/dev/null
22872   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22873   exec 5>>config.log
22874   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22875   # would make configure fail if this is the last instruction.
22876   $ac_cs_success || { (exit 1); exit 1; }
22877 fi
22878