regenerate configure after changing configure.ac
[amitay/samba.git] / ctdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
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_test.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #if HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #if HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #if STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # if HAVE_STDLIB_H
580 #  include <stdlib.h>
581 # endif
582 #endif
583 #if HAVE_STRING_H
584 # if !STDC_HEADERS && HAVE_MEMORY_H
585 #  include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #if HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #if HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #if HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #if 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.60
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.60.  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   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2326 See \`config.log' for more details." >&5
2327 echo "$as_me: error: C compiler cannot create executables
2328 See \`config.log' for more details." >&2;}
2329    { (exit 77); exit 77; }; }
2330 fi
2331
2332 ac_exeext=$ac_cv_exeext
2333 { echo "$as_me:$LINENO: result: $ac_file" >&5
2334 echo "${ECHO_T}$ac_file" >&6; }
2335
2336 # Check that the compiler produces executables we can run.  If not, either
2337 # the compiler is broken, or we cross compile.
2338 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2339 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2340 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2341 # If not cross compiling, check that we can run a simple program.
2342 if test "$cross_compiling" != yes; then
2343   if { ac_try='./$ac_file'
2344   { (case "(($ac_try" in
2345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346   *) ac_try_echo=$ac_try;;
2347 esac
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349   (eval "$ac_try") 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353     cross_compiling=no
2354   else
2355     if test "$cross_compiling" = maybe; then
2356         cross_compiling=yes
2357     else
2358         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2359 If you meant to cross compile, use \`--host'.
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot run C compiled programs.
2362 If you meant to cross compile, use \`--host'.
2363 See \`config.log' for more details." >&2;}
2364    { (exit 1); exit 1; }; }
2365     fi
2366   fi
2367 fi
2368 { echo "$as_me:$LINENO: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6; }
2370
2371 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2372 ac_clean_files=$ac_clean_files_save
2373 # Check that the compiler produces executables we can run.  If not, either
2374 # the compiler is broken, or we cross compile.
2375 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2376 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2377 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2378 echo "${ECHO_T}$cross_compiling" >&6; }
2379
2380 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2381 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2382 if { (ac_try="$ac_link"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388   (eval "$ac_link") 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; then
2392   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2393 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2394 # work properly (i.e., refer to `conftest.exe'), while it won't with
2395 # `rm'.
2396 for ac_file in conftest.exe conftest conftest.*; do
2397   test -f "$ac_file" || continue
2398   case $ac_file in
2399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2400     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401           break;;
2402     * ) break;;
2403   esac
2404 done
2405 else
2406   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2409 See \`config.log' for more details." >&2;}
2410    { (exit 1); exit 1; }; }
2411 fi
2412
2413 rm -f conftest$ac_cv_exeext
2414 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2415 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2416
2417 rm -f conftest.$ac_ext
2418 EXEEXT=$ac_cv_exeext
2419 ac_exeext=$EXEEXT
2420 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2421 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2422 if test "${ac_cv_objext+set}" = set; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h.  */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h.  */
2431
2432 int
2433 main ()
2434 {
2435
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.o conftest.obj
2441 if { (ac_try="$ac_compile"
2442 case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447   (eval "$ac_compile") 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; then
2451   for ac_file in conftest.o conftest.obj conftest.*; do
2452   test -f "$ac_file" || continue;
2453   case $ac_file in
2454     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2455     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2456        break;;
2457   esac
2458 done
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2466 See \`config.log' for more details." >&2;}
2467    { (exit 1); exit 1; }; }
2468 fi
2469
2470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2471 fi
2472 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2473 echo "${ECHO_T}$ac_cv_objext" >&6; }
2474 OBJEXT=$ac_cv_objext
2475 ac_objext=$OBJEXT
2476 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2477 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2478 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491 #ifndef __GNUC__
2492        choke me
2493 #endif
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (ac_try="$ac_compile"
2501 case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506   (eval "$ac_compile") 2>conftest.er1
2507   ac_status=$?
2508   grep -v '^ *+' conftest.er1 >conftest.err
2509   rm -f conftest.er1
2510   cat conftest.err >&5
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2514   { (case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_try") 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; } &&
2523          { ac_try='test -s conftest.$ac_objext'
2524   { (case "(($ac_try" in
2525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526   *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529   (eval "$ac_try") 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   ac_compiler_gnu=yes
2534 else
2535   echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538         ac_compiler_gnu=no
2539 fi
2540
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2543
2544 fi
2545 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2546 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2547 GCC=`test $ac_compiler_gnu = yes && echo yes`
2548 ac_test_CFLAGS=${CFLAGS+set}
2549 ac_save_CFLAGS=$CFLAGS
2550 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   ac_save_c_werror_flag=$ac_c_werror_flag
2556    ac_c_werror_flag=yes
2557    ac_cv_prog_cc_g=no
2558    CFLAGS="-g"
2559    cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_compile") 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589   { (case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594   (eval "$ac_try") 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_cv_prog_cc_g=yes
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613         CFLAGS=""
2614       cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h.  */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h.  */
2620
2621 int
2622 main ()
2623 {
2624
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (ac_try="$ac_compile"
2631 case "(($ac_try" in
2632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633   *) ac_try_echo=$ac_try;;
2634 esac
2635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636   (eval "$ac_compile") 2>conftest.er1
2637   ac_status=$?
2638   grep -v '^ *+' conftest.er1 >conftest.err
2639   rm -f conftest.er1
2640   cat conftest.err >&5
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); } &&
2643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2644   { (case "(($ac_try" in
2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646   *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649   (eval "$ac_try") 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (case "(($ac_try" in
2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656   *) ac_try_echo=$ac_try;;
2657 esac
2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659   (eval "$ac_try") 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   :
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668         ac_c_werror_flag=$ac_save_c_werror_flag
2669          CFLAGS="-g"
2670          cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676
2677 int
2678 main ()
2679 {
2680
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692   (eval "$ac_compile") 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700   { (case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_try") 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_try") 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   ac_cv_prog_cc_g=yes
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 fi
2729
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 fi
2732
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734    ac_c_werror_flag=$ac_save_c_werror_flag
2735 fi
2736 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2737 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2738 if test "$ac_test_CFLAGS" = set; then
2739   CFLAGS=$ac_save_CFLAGS
2740 elif test $ac_cv_prog_cc_g = yes; then
2741   if test "$GCC" = yes; then
2742     CFLAGS="-g -O2"
2743   else
2744     CFLAGS="-g"
2745   fi
2746 else
2747   if test "$GCC" = yes; then
2748     CFLAGS="-O2"
2749   else
2750     CFLAGS=
2751   fi
2752 fi
2753 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2754 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_cc_c89+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_cv_prog_cc_c89=no
2759 ac_save_CC=$CC
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766 #include <stdarg.h>
2767 #include <stdio.h>
2768 #include <sys/types.h>
2769 #include <sys/stat.h>
2770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2771 struct buf { int x; };
2772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2773 static char *e (p, i)
2774      char **p;
2775      int i;
2776 {
2777   return p[i];
2778 }
2779 static char *f (char * (*g) (char **, int), char **p, ...)
2780 {
2781   char *s;
2782   va_list v;
2783   va_start (v,p);
2784   s = g (p, va_arg (v,int));
2785   va_end (v);
2786   return s;
2787 }
2788
2789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2790    function prototypes and stuff, but not '\xHH' hex character constants.
2791    These don't provoke an error unfortunately, instead are silently treated
2792    as 'x'.  The following induces an error, until -std is added to get
2793    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2794    array size at least.  It's necessary to write '\x00'==0 to get something
2795    that's true only with -std.  */
2796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2797
2798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2799    inside strings and character constants.  */
2800 #define FOO(x) 'x'
2801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2802
2803 int test (int i, double x);
2804 struct s1 {int (*f) (int a);};
2805 struct s2 {int (*f) (double a);};
2806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2807 int argc;
2808 char **argv;
2809 int
2810 main ()
2811 {
2812 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2813   ;
2814   return 0;
2815 }
2816 _ACEOF
2817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2818         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2819 do
2820   CC="$ac_save_CC $ac_arg"
2821   rm -f conftest.$ac_objext
2822 if { (ac_try="$ac_compile"
2823 case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828   (eval "$ac_compile") 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } &&
2835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2836   { (case "(($ac_try" in
2837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838   *) ac_try_echo=$ac_try;;
2839 esac
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841   (eval "$ac_try") 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; } &&
2845          { ac_try='test -s conftest.$ac_objext'
2846   { (case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_try") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855   ac_cv_prog_cc_c89=$ac_arg
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860
2861 fi
2862
2863 rm -f core conftest.err conftest.$ac_objext
2864   test "x$ac_cv_prog_cc_c89" != "xno" && break
2865 done
2866 rm -f conftest.$ac_ext
2867 CC=$ac_save_CC
2868
2869 fi
2870 # AC_CACHE_VAL
2871 case "x$ac_cv_prog_cc_c89" in
2872   x)
2873     { echo "$as_me:$LINENO: result: none needed" >&5
2874 echo "${ECHO_T}none needed" >&6; } ;;
2875   xno)
2876     { echo "$as_me:$LINENO: result: unsupported" >&5
2877 echo "${ECHO_T}unsupported" >&6; } ;;
2878   *)
2879     CC="$CC $ac_cv_prog_cc_c89"
2880     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2881 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2882 esac
2883
2884
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890
2891 CFLAGS=$savedCFLAGS
2892
2893 if test x"$GCC" != x"yes" ; then
2894    { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2895 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_cc_c99+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   ac_cv_prog_cc_c99=no
2900 ac_save_CC=$CC
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h.  */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h.  */
2907 #include <stdarg.h>
2908 #include <stdbool.h>
2909 #include <stdlib.h>
2910 #include <wchar.h>
2911 #include <stdio.h>
2912
2913 struct incomplete_array
2914 {
2915   int datasize;
2916   double data[];
2917 };
2918
2919 struct named_init {
2920   int number;
2921   const wchar_t *name;
2922   double average;
2923 };
2924
2925 typedef const char *ccp;
2926
2927 static inline int
2928 test_restrict(ccp restrict text)
2929 {
2930   // See if C++-style comments work.
2931   // Iterate through items via the restricted pointer.
2932   // Also check for declarations in for loops.
2933   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2934     continue;
2935   return 0;
2936 }
2937
2938 // Check varargs and va_copy work.
2939 static void
2940 test_varargs(const char *format, ...)
2941 {
2942   va_list args;
2943   va_start(args, format);
2944   va_list args_copy;
2945   va_copy(args_copy, args);
2946
2947   const char *str;
2948   int number;
2949   float fnumber;
2950
2951   while (*format)
2952     {
2953       switch (*format++)
2954         {
2955         case 's': // string
2956           str = va_arg(args_copy, const char *);
2957           break;
2958         case 'd': // int
2959           number = va_arg(args_copy, int);
2960           break;
2961         case 'f': // float
2962           fnumber = (float) va_arg(args_copy, double);
2963           break;
2964         default:
2965           break;
2966         }
2967     }
2968   va_end(args_copy);
2969   va_end(args);
2970 }
2971
2972 int
2973 main ()
2974 {
2975
2976   // Check bool and long long datatypes.
2977   _Bool success = false;
2978   long long int bignum = -1234567890LL;
2979   unsigned long long int ubignum = 1234567890uLL;
2980
2981   // Check restrict.
2982   if (test_restrict("String literal") != 0)
2983     success = true;
2984   char *restrict newvar = "Another string";
2985
2986   // Check varargs.
2987   test_varargs("s, d' f .", "string", 65, 34.234);
2988
2989   // Check incomplete arrays work.
2990   struct incomplete_array *ia =
2991     malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
2992   ia->datasize = 10;
2993   for (int i = 0; i < ia->datasize; ++i)
2994     ia->data[i] = (double) i * 1.234;
2995
2996   // Check named initialisers.
2997   struct named_init ni = {
2998     .number = 34,
2999     .name = L"Test wide string",
3000     .average = 543.34343,
3001   };
3002
3003   ni.number = 58;
3004
3005   int dynamic_array[ni.number];
3006   dynamic_array[43] = 543;
3007
3008   // work around unused variable warnings
3009   return  bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
3010
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3016 do
3017   CC="$ac_save_CC $ac_arg"
3018   rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_compile") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } &&
3032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3033   { (case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038   (eval "$ac_try") 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; } &&
3042          { ac_try='test -s conftest.$ac_objext'
3043   { (case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_try") 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; }; then
3052   ac_cv_prog_cc_c99=$ac_arg
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057
3058 fi
3059
3060 rm -f core conftest.err conftest.$ac_objext
3061   test "x$ac_cv_prog_cc_c99" != "xno" && break
3062 done
3063 rm -f conftest.$ac_ext
3064 CC=$ac_save_CC
3065
3066 fi
3067 # AC_CACHE_VAL
3068 case "x$ac_cv_prog_cc_c99" in
3069   x)
3070     { echo "$as_me:$LINENO: result: none needed" >&5
3071 echo "${ECHO_T}none needed" >&6; } ;;
3072   xno)
3073     { echo "$as_me:$LINENO: result: unsupported" >&5
3074 echo "${ECHO_T}unsupported" >&6; } ;;
3075   *)
3076     CC="$CC $ac_cv_prog_cc_c99"
3077     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3078 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3079 esac
3080
3081
3082
3083 fi
3084
3085 if test x"$GCC" = x"yes" ; then
3086         { echo "$as_me:$LINENO: checking for version of gcc" >&5
3087 echo $ECHO_N "checking for version of gcc... $ECHO_C" >&6; }
3088         GCC_VERSION=`$CC -dumpversion`
3089         { echo "$as_me:$LINENO: result: ${GCC_VERSION}" >&5
3090 echo "${ECHO_T}${GCC_VERSION}" >&6; }
3091 fi
3092
3093 cat >>confdefs.h <<\_ACEOF
3094 #define _GNU_SOURCE 1
3095 _ACEOF
3096
3097
3098
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3108   CPP=
3109 fi
3110 if test -z "$CPP"; then
3111   if test "${ac_cv_prog_CPP+set}" = set; then
3112   echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114       # Double quotes because CPP needs to be expanded
3115     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3116     do
3117       ac_preproc_ok=false
3118 for ac_c_preproc_warn_flag in '' yes
3119 do
3120   # Use a header file that comes with gcc, so configuring glibc
3121   # with a fresh cross-compiler works.
3122   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123   # <limits.h> exists even on freestanding compilers.
3124   # On the NeXT, cc -E runs the code through the compiler's parser,
3125   # not just through cpp. "Syntax error" is here to catch this case.
3126   cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132 #ifdef __STDC__
3133 # include <limits.h>
3134 #else
3135 # include <assert.h>
3136 #endif
3137                      Syntax error
3138 _ACEOF
3139 if { (ac_try="$ac_cpp conftest.$ac_ext"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } >/dev/null; then
3152   if test -s conftest.err; then
3153     ac_cpp_err=$ac_c_preproc_warn_flag
3154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3155   else
3156     ac_cpp_err=
3157   fi
3158 else
3159   ac_cpp_err=yes
3160 fi
3161 if test -z "$ac_cpp_err"; then
3162   :
3163 else
3164   echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167   # Broken: fails on valid input.
3168 continue
3169 fi
3170
3171 rm -f conftest.err conftest.$ac_ext
3172
3173   # OK, works on sane cases.  Now check whether nonexistent headers
3174   # can be detected and how.
3175   cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181 #include <ac_nonexistent.h>
3182 _ACEOF
3183 if { (ac_try="$ac_cpp conftest.$ac_ext"
3184 case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } >/dev/null; then
3196   if test -s conftest.err; then
3197     ac_cpp_err=$ac_c_preproc_warn_flag
3198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3199   else
3200     ac_cpp_err=
3201   fi
3202 else
3203   ac_cpp_err=yes
3204 fi
3205 if test -z "$ac_cpp_err"; then
3206   # Broken: success on invalid input.
3207 continue
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212   # Passes both tests.
3213 ac_preproc_ok=:
3214 break
3215 fi
3216
3217 rm -f conftest.err conftest.$ac_ext
3218
3219 done
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.err conftest.$ac_ext
3222 if $ac_preproc_ok; then
3223   break
3224 fi
3225
3226     done
3227     ac_cv_prog_CPP=$CPP
3228
3229 fi
3230   CPP=$ac_cv_prog_CPP
3231 else
3232   ac_cv_prog_CPP=$CPP
3233 fi
3234 { echo "$as_me:$LINENO: result: $CPP" >&5
3235 echo "${ECHO_T}$CPP" >&6; }
3236 ac_preproc_ok=false
3237 for ac_c_preproc_warn_flag in '' yes
3238 do
3239   # Use a header file that comes with gcc, so configuring glibc
3240   # with a fresh cross-compiler works.
3241   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242   # <limits.h> exists even on freestanding compilers.
3243   # On the NeXT, cc -E runs the code through the compiler's parser,
3244   # not just through cpp. "Syntax error" is here to catch this case.
3245   cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h.  */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h.  */
3251 #ifdef __STDC__
3252 # include <limits.h>
3253 #else
3254 # include <assert.h>
3255 #endif
3256                      Syntax error
3257 _ACEOF
3258 if { (ac_try="$ac_cpp conftest.$ac_ext"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3265   ac_status=$?
3266   grep -v '^ *+' conftest.er1 >conftest.err
3267   rm -f conftest.er1
3268   cat conftest.err >&5
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } >/dev/null; then
3271   if test -s conftest.err; then
3272     ac_cpp_err=$ac_c_preproc_warn_flag
3273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3274   else
3275     ac_cpp_err=
3276   fi
3277 else
3278   ac_cpp_err=yes
3279 fi
3280 if test -z "$ac_cpp_err"; then
3281   :
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286   # Broken: fails on valid input.
3287 continue
3288 fi
3289
3290 rm -f conftest.err conftest.$ac_ext
3291
3292   # OK, works on sane cases.  Now check whether nonexistent headers
3293   # can be detected and how.
3294   cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h.  */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h.  */
3300 #include <ac_nonexistent.h>
3301 _ACEOF
3302 if { (ac_try="$ac_cpp conftest.$ac_ext"
3303 case "(($ac_try" in
3304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305   *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3309   ac_status=$?
3310   grep -v '^ *+' conftest.er1 >conftest.err
3311   rm -f conftest.er1
3312   cat conftest.err >&5
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); } >/dev/null; then
3315   if test -s conftest.err; then
3316     ac_cpp_err=$ac_c_preproc_warn_flag
3317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3318   else
3319     ac_cpp_err=
3320   fi
3321 else
3322   ac_cpp_err=yes
3323 fi
3324 if test -z "$ac_cpp_err"; then
3325   # Broken: success on invalid input.
3326 continue
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331   # Passes both tests.
3332 ac_preproc_ok=:
3333 break
3334 fi
3335
3336 rm -f conftest.err conftest.$ac_ext
3337
3338 done
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.$ac_ext
3341 if $ac_preproc_ok; then
3342   :
3343 else
3344   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3347 See \`config.log' for more details." >&2;}
3348    { (exit 1); exit 1; }; }
3349 fi
3350
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
3357
3358 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3359 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3360 if test "${ac_cv_path_GREP+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   # Extract the first word of "grep ggrep" to use in msg output
3364 if test -z "$GREP"; then
3365 set dummy grep ggrep; ac_prog_name=$2
3366 if test "${ac_cv_path_GREP+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   ac_path_GREP_found=false
3370 # Loop through the user's path and test for each of PROGNAME-LIST
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3373 do
3374   IFS=$as_save_IFS
3375   test -z "$as_dir" && as_dir=.
3376   for ac_prog in grep ggrep; do
3377   for ac_exec_ext in '' $ac_executable_extensions; do
3378     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3379     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3380     # Check for GNU ac_path_GREP and select it if it is found.
3381   # Check for GNU $ac_path_GREP
3382 case `"$ac_path_GREP" --version 2>&1` in
3383 *GNU*)
3384   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3385 *)
3386   ac_count=0
3387   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3388   while :
3389   do
3390     cat "conftest.in" "conftest.in" >"conftest.tmp"
3391     mv "conftest.tmp" "conftest.in"
3392     cp "conftest.in" "conftest.nl"
3393     echo 'GREP' >> "conftest.nl"
3394     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3395     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3396     ac_count=`expr $ac_count + 1`
3397     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3398       # Best one so far, save it but keep looking for a better one
3399       ac_cv_path_GREP="$ac_path_GREP"
3400       ac_path_GREP_max=$ac_count
3401     fi
3402     # 10*(2^10) chars as input seems more than enough
3403     test $ac_count -gt 10 && break
3404   done
3405   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3406 esac
3407
3408
3409     $ac_path_GREP_found && break 3
3410   done
3411 done
3412
3413 done
3414 IFS=$as_save_IFS
3415
3416
3417 fi
3418
3419 GREP="$ac_cv_path_GREP"
3420 if test -z "$GREP"; then
3421   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3422 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3423    { (exit 1); exit 1; }; }
3424 fi
3425
3426 else
3427   ac_cv_path_GREP=$GREP
3428 fi
3429
3430
3431 fi
3432 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3433 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3434  GREP="$ac_cv_path_GREP"
3435
3436
3437 { echo "$as_me:$LINENO: checking for egrep" >&5
3438 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3439 if test "${ac_cv_path_EGREP+set}" = set; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3443    then ac_cv_path_EGREP="$GREP -E"
3444    else
3445      # Extract the first word of "egrep" to use in msg output
3446 if test -z "$EGREP"; then
3447 set dummy egrep; ac_prog_name=$2
3448 if test "${ac_cv_path_EGREP+set}" = set; then
3449   echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451   ac_path_EGREP_found=false
3452 # Loop through the user's path and test for each of PROGNAME-LIST
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3455 do
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458   for ac_prog in egrep; do
3459   for ac_exec_ext in '' $ac_executable_extensions; do
3460     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3461     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3462     # Check for GNU ac_path_EGREP and select it if it is found.
3463   # Check for GNU $ac_path_EGREP
3464 case `"$ac_path_EGREP" --version 2>&1` in
3465 *GNU*)
3466   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3467 *)
3468   ac_count=0
3469   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3470   while :
3471   do
3472     cat "conftest.in" "conftest.in" >"conftest.tmp"
3473     mv "conftest.tmp" "conftest.in"
3474     cp "conftest.in" "conftest.nl"
3475     echo 'EGREP' >> "conftest.nl"
3476     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3477     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3478     ac_count=`expr $ac_count + 1`
3479     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3480       # Best one so far, save it but keep looking for a better one
3481       ac_cv_path_EGREP="$ac_path_EGREP"
3482       ac_path_EGREP_max=$ac_count
3483     fi
3484     # 10*(2^10) chars as input seems more than enough
3485     test $ac_count -gt 10 && break
3486   done
3487   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3488 esac
3489
3490
3491     $ac_path_EGREP_found && break 3
3492   done
3493 done
3494
3495 done
3496 IFS=$as_save_IFS
3497
3498
3499 fi
3500
3501 EGREP="$ac_cv_path_EGREP"
3502 if test -z "$EGREP"; then
3503   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3504 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3505    { (exit 1); exit 1; }; }
3506 fi
3507
3508 else
3509   ac_cv_path_EGREP=$EGREP
3510 fi
3511
3512
3513    fi
3514 fi
3515 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3516 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3517  EGREP="$ac_cv_path_EGREP"
3518
3519
3520
3521 { echo "$as_me:$LINENO: checking for AIX" >&5
3522 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529 #ifdef _AIX
3530   yes
3531 #endif
3532
3533 _ACEOF
3534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535   $EGREP "yes" >/dev/null 2>&1; then
3536   { echo "$as_me:$LINENO: result: yes" >&5
3537 echo "${ECHO_T}yes" >&6; }
3538 cat >>confdefs.h <<\_ACEOF
3539 #define _ALL_SOURCE 1
3540 _ACEOF
3541
3542 else
3543   { echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6; }
3545 fi
3546 rm -f conftest*
3547
3548
3549 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3551 if test "${ac_cv_header_stdc+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560 #include <stdlib.h>
3561 #include <stdarg.h>
3562 #include <string.h>
3563 #include <float.h>
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_compile") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } &&
3587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3588   { (case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_try") 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); }; } &&
3597          { ac_try='test -s conftest.$ac_objext'
3598   { (case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603   (eval "$ac_try") 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; }; then
3607   ac_cv_header_stdc=yes
3608 else
3609   echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612         ac_cv_header_stdc=no
3613 fi
3614
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616
3617 if test $ac_cv_header_stdc = yes; then
3618   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3619   cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h.  */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h.  */
3625 #include <string.h>
3626
3627 _ACEOF
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629   $EGREP "memchr" >/dev/null 2>&1; then
3630   :
3631 else
3632   ac_cv_header_stdc=no
3633 fi
3634 rm -f conftest*
3635
3636 fi
3637
3638 if test $ac_cv_header_stdc = yes; then
3639   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3640   cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h.  */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h.  */
3646 #include <stdlib.h>
3647
3648 _ACEOF
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650   $EGREP "free" >/dev/null 2>&1; then
3651   :
3652 else
3653   ac_cv_header_stdc=no
3654 fi
3655 rm -f conftest*
3656
3657 fi
3658
3659 if test $ac_cv_header_stdc = yes; then
3660   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661   if test "$cross_compiling" = yes; then
3662   :
3663 else
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 #include <ctype.h>
3671 #include <stdlib.h>
3672 #if ((' ' & 0x0FF) == 0x020)
3673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3675 #else
3676 # define ISLOWER(c) \
3677                    (('a' <= (c) && (c) <= 'i') \
3678                      || ('j' <= (c) && (c) <= 'r') \
3679                      || ('s' <= (c) && (c) <= 'z'))
3680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3681 #endif
3682
3683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3684 int
3685 main ()
3686 {
3687   int i;
3688   for (i = 0; i < 256; i++)
3689     if (XOR (islower (i), ISLOWER (i))
3690         || toupper (i) != TOUPPER (i))
3691       return 2;
3692   return 0;
3693 }
3694 _ACEOF
3695 rm -f conftest$ac_exeext
3696 if { (ac_try="$ac_link"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_link") 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3706   { (case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_try") 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); }; }; then
3715   :
3716 else
3717   echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 ( exit $ac_status )
3722 ac_cv_header_stdc=no
3723 fi
3724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3725 fi
3726
3727
3728 fi
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3731 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3732 if test $ac_cv_header_stdc = yes; then
3733
3734 cat >>confdefs.h <<\_ACEOF
3735 #define STDC_HEADERS 1
3736 _ACEOF
3737
3738 fi
3739
3740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3751                   inttypes.h stdint.h unistd.h
3752 do
3753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h.  */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h.  */
3765 $ac_includes_default
3766
3767 #include <$ac_header>
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776   (eval "$ac_compile") 2>conftest.er1
3777   ac_status=$?
3778   grep -v '^ *+' conftest.er1 >conftest.err
3779   rm -f conftest.er1
3780   cat conftest.err >&5
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } &&
3783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3784   { (case "(($ac_try" in
3785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786   *) ac_try_echo=$ac_try;;
3787 esac
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789   (eval "$ac_try") 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; } &&
3793          { ac_try='test -s conftest.$ac_objext'
3794   { (case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799   (eval "$ac_try") 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; }; then
3803   eval "$as_ac_Header=yes"
3804 else
3805   echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808         eval "$as_ac_Header=no"
3809 fi
3810
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 fi
3813 ac_res=`eval echo '${'$as_ac_Header'}'`
3814                { echo "$as_me:$LINENO: result: $ac_res" >&5
3815 echo "${ECHO_T}$ac_res" >&6; }
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817   cat >>confdefs.h <<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819 _ACEOF
3820
3821 fi
3822
3823 done
3824
3825
3826 if test "${ac_cv_header_minix_config_h+set}" = set; then
3827   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3828 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3829 if test "${ac_cv_header_minix_config_h+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 fi
3832 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3833 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3834 else
3835   # Is the header compilable?
3836 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3837 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 $ac_includes_default
3845 #include <minix/config.h>
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (ac_try="$ac_compile"
3849 case "(($ac_try" in
3850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851   *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854   (eval "$ac_compile") 2>conftest.er1
3855   ac_status=$?
3856   grep -v '^ *+' conftest.er1 >conftest.err
3857   rm -f conftest.er1
3858   cat conftest.err >&5
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } &&
3861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3862   { (case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867   (eval "$ac_try") 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; } &&
3871          { ac_try='test -s conftest.$ac_objext'
3872   { (case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877   (eval "$ac_try") 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); }; }; then
3881   ac_header_compiler=yes
3882 else
3883   echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886         ac_header_compiler=no
3887 fi
3888
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3891 echo "${ECHO_T}$ac_header_compiler" >&6; }
3892
3893 # Is the header present?
3894 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3895 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3896 cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h.  */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h.  */
3902 #include <minix/config.h>
3903 _ACEOF
3904 if { (ac_try="$ac_cpp conftest.$ac_ext"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3911   ac_status=$?
3912   grep -v '^ *+' conftest.er1 >conftest.err
3913   rm -f conftest.er1
3914   cat conftest.err >&5
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } >/dev/null; then
3917   if test -s conftest.err; then
3918     ac_cpp_err=$ac_c_preproc_warn_flag
3919     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3920   else
3921     ac_cpp_err=
3922   fi
3923 else
3924   ac_cpp_err=yes
3925 fi
3926 if test -z "$ac_cpp_err"; then
3927   ac_header_preproc=yes
3928 else
3929   echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932   ac_header_preproc=no
3933 fi
3934
3935 rm -f conftest.err conftest.$ac_ext
3936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3937 echo "${ECHO_T}$ac_header_preproc" >&6; }
3938
3939 # So?  What about this header?
3940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3941   yes:no: )
3942     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3943 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3944     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3945 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3946     ac_header_preproc=yes
3947     ;;
3948   no:yes:* )
3949     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3950 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3951     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3952 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3953     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3954 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3955     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3956 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3957     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3958 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3959     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3960 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3961
3962     ;;
3963 esac
3964 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3965 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3966 if test "${ac_cv_header_minix_config_h+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   ac_cv_header_minix_config_h=$ac_header_preproc
3970 fi
3971 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3972 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3973
3974 fi
3975 if test $ac_cv_header_minix_config_h = yes; then
3976   MINIX=yes
3977 else
3978   MINIX=
3979 fi
3980
3981
3982 if test "$MINIX" = yes; then
3983
3984 cat >>confdefs.h <<\_ACEOF
3985 #define _POSIX_SOURCE 1
3986 _ACEOF
3987
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define _POSIX_1_SOURCE 2
3991 _ACEOF
3992
3993
3994 cat >>confdefs.h <<\_ACEOF
3995 #define _MINIX 1
3996 _ACEOF
3997
3998 fi
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4011 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4012 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 #         define __EXTENSIONS__ 1
4023           $ac_includes_default
4024 int
4025 main ()
4026 {
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (ac_try="$ac_compile"
4034 case "(($ac_try" in
4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036   *) ac_try_echo=$ac_try;;
4037 esac
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039   (eval "$ac_compile") 2>conftest.er1
4040   ac_status=$?
4041   grep -v '^ *+' conftest.er1 >conftest.err
4042   rm -f conftest.er1
4043   cat conftest.err >&5
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); } &&
4046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4047   { (case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052   (eval "$ac_try") 2>&5
4053   ac_status=$?
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); }; } &&
4056          { ac_try='test -s conftest.$ac_objext'
4057   { (case "(($ac_try" in
4058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059   *) ac_try_echo=$ac_try;;
4060 esac
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062   (eval "$ac_try") 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); }; }; then
4066   ac_cv_safe_to_define___extensions__=yes
4067 else
4068   echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071         ac_cv_safe_to_define___extensions__=no
4072 fi
4073
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 fi
4076 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4077 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4078   test $ac_cv_safe_to_define___extensions__ = yes &&
4079     cat >>confdefs.h <<\_ACEOF
4080 #define __EXTENSIONS__ 1
4081 _ACEOF
4082
4083   cat >>confdefs.h <<\_ACEOF
4084 #define _POSIX_PTHREAD_SEMANTICS 1
4085 _ACEOF
4086
4087
4088 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h.  */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h.  */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4102
4103 int
4104 main ()
4105 {
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4107  bogus endian macros
4108 #endif
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121   (eval "$ac_compile") 2>conftest.er1
4122   ac_status=$?
4123   grep -v '^ *+' conftest.er1 >conftest.err
4124   rm -f conftest.er1
4125   cat conftest.err >&5
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); } &&
4128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129   { (case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_try") 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; } &&
4138          { ac_try='test -s conftest.$ac_objext'
4139   { (case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_try") 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; }; then
4148   # It does; now see whether it defined to BIG_ENDIAN or not.
4149 cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <sys/types.h>
4156 #include <sys/param.h>
4157
4158 int
4159 main ()
4160 {
4161 #if BYTE_ORDER != BIG_ENDIAN
4162  not big endian
4163 #endif
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176   (eval "$ac_compile") 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184   { (case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_try") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; } &&
4193          { ac_try='test -s conftest.$ac_objext'
4194   { (case "(($ac_try" in
4195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196   *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199   (eval "$ac_try") 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; }; then
4203   ac_cv_c_bigendian=yes
4204 else
4205   echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208         ac_cv_c_bigendian=no
4209 fi
4210
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216         # It does not; compile a test program.
4217 if test "$cross_compiling" = yes; then
4218   # try to guess the endianness by grepping values into an object file
4219   ac_cv_c_bigendian=unknown
4220   cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4227 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4228 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4229 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4230 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4231 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4232 int
4233 main ()
4234 {
4235  _ascii (); _ebcdic ();
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (ac_try="$ac_compile"
4242 case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_compile") 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } &&
4254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255   { (case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260   (eval "$ac_try") 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; } &&
4264          { ac_try='test -s conftest.$ac_objext'
4265   { (case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_try") 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4275   ac_cv_c_bigendian=yes
4276 fi
4277 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4278   if test "$ac_cv_c_bigendian" = unknown; then
4279     ac_cv_c_bigendian=no
4280   else
4281     # finding both strings is unlikely to happen, but who knows?
4282     ac_cv_c_bigendian=unknown
4283   fi
4284 fi
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 else
4294   cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 $ac_includes_default
4301 int
4302 main ()
4303 {
4304
4305   /* Are we little or big endian?  From Harbison&Steele.  */
4306   union
4307   {
4308     long int l;
4309     char c[sizeof (long int)];
4310   } u;
4311   u.l = 1;
4312   return u.c[sizeof (long int) - 1] == 1;
4313
4314   ;
4315   return 0;
4316 }
4317 _ACEOF
4318 rm -f conftest$ac_exeext
4319 if { (ac_try="$ac_link"
4320 case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_link") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329   { (case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; }; then
4338   ac_cv_c_bigendian=no
4339 else
4340   echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ( exit $ac_status )
4345 ac_cv_c_bigendian=yes
4346 fi
4347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4348 fi
4349
4350
4351 fi
4352
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4357 case $ac_cv_c_bigendian in
4358   yes)
4359
4360 cat >>confdefs.h <<\_ACEOF
4361 #define WORDS_BIGENDIAN 1
4362 _ACEOF
4363  ;;
4364   no)
4365      ;;
4366   *)
4367     { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371    { (exit 1); exit 1; }; } ;;
4372 esac
4373
4374 { echo "$as_me:$LINENO: checking for inline" >&5
4375 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4376 if test "${ac_cv_c_inline+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   ac_cv_c_inline=no
4380 for ac_kw in inline __inline__ __inline; do
4381   cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387 #ifndef __cplusplus
4388 typedef int foo_t;
4389 static $ac_kw foo_t static_foo () {return 0; }
4390 $ac_kw foo_t foo () {return 0; }
4391 #endif
4392
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_compile") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest.$ac_objext'
4419   { (case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_cv_c_inline=$ac_kw
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433
4434 fi
4435
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437   test "$ac_cv_c_inline" != no && break
4438 done
4439
4440 fi
4441 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4442 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4443
4444
4445 case $ac_cv_c_inline in
4446   inline | yes) ;;
4447   *)
4448     case $ac_cv_c_inline in
4449       no) ac_val=;;
4450       *) ac_val=$ac_cv_c_inline;;
4451     esac
4452     cat >>confdefs.h <<_ACEOF
4453 #ifndef __cplusplus
4454 #define inline $ac_val
4455 #endif
4456 _ACEOF
4457     ;;
4458 esac
4459
4460
4461 saved_CFLAGS="$CFLAGS";
4462 c99_init=no
4463 if test x"$c99_init" = x"no"; then
4464     { echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
4465 echo $ECHO_N "checking for C99 designated initializers... $ECHO_C" >&6; }
4466     CFLAGS="$saved_CFLAGS";
4467     cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473 #include <stdio.h>
4474 int
4475 main ()
4476 {
4477  struct foo {int x;char y;};
4478        struct foo bar = { .y = 'X', .x = 1 };
4479
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.$ac_objext
4485 if { (ac_try="$ac_compile"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_compile") 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } &&
4498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4499   { (case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_try") 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; } &&
4508          { ac_try='test -s conftest.$ac_objext'
4509   { (case "(($ac_try" in
4510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511   *) ac_try_echo=$ac_try;;
4512 esac
4513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4514   (eval "$ac_try") 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   { echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4520 else
4521   echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524         { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4526 fi
4527
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 fi
4530 if test x"$c99_init" = x"no"; then
4531     { echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
4532 echo $ECHO_N "checking for C99 designated initializers with -AC99... $ECHO_C" >&6; }
4533     CFLAGS="$saved_CFLAGS -AC99";
4534     cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h.  */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h.  */
4540 #include <stdio.h>
4541 int
4542 main ()
4543 {
4544  struct foo {int x;char y;};
4545        struct foo bar = { .y = 'X', .x = 1 };
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4553 case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_compile") 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566   { (case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571   (eval "$ac_try") 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581   (eval "$ac_try") 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   { echo "$as_me:$LINENO: result: yes" >&5
4586 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4587 else
4588   echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4590
4591         { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4593 fi
4594
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 fi
4597 if test x"$c99_init" = x"no"; then
4598     { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
4599 echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=extc99... $ECHO_C" >&6; }
4600     CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
4601     cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h.  */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h.  */
4607 #include <stdio.h>
4608 int
4609 main ()
4610 {
4611  struct foo {int x;char y;};
4612        struct foo bar = { .y = 'X', .x = 1 };
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (ac_try="$ac_compile"
4620 case "(($ac_try" in
4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622   *) ac_try_echo=$ac_try;;
4623 esac
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625   (eval "$ac_compile") 2>conftest.er1
4626   ac_status=$?
4627   grep -v '^ *+' conftest.er1 >conftest.err
4628   rm -f conftest.er1
4629   cat conftest.err >&5
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } &&
4632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4633   { (case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638   (eval "$ac_try") 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; } &&
4642          { ac_try='test -s conftest.$ac_objext'
4643   { (case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648   (eval "$ac_try") 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }; }; then
4652   { echo "$as_me:$LINENO: result: yes" >&5
4653 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4654 else
4655   echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658         { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4660 fi
4661
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 if test x"$c99_init" = x"no"; then
4665     { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
4666 echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=stdc99... $ECHO_C" >&6; }
4667     CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
4668     cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h.  */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h.  */
4674 #include <stdio.h>
4675 int
4676 main ()
4677 {
4678  struct foo {int x;char y;};
4679        struct foo bar = { .y = 'X', .x = 1 };
4680
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 rm -f conftest.$ac_objext
4686 if { (ac_try="$ac_compile"
4687 case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692   (eval "$ac_compile") 2>conftest.er1
4693   ac_status=$?
4694   grep -v '^ *+' conftest.er1 >conftest.err
4695   rm -f conftest.er1
4696   cat conftest.err >&5
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } &&
4699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4700   { (case "(($ac_try" in
4701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702   *) ac_try_echo=$ac_try;;
4703 esac
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705   (eval "$ac_try") 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; } &&
4709          { ac_try='test -s conftest.$ac_objext'
4710   { (case "(($ac_try" in
4711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712   *) ac_try_echo=$ac_try;;
4713 esac
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715   (eval "$ac_try") 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; }; then
4719   { echo "$as_me:$LINENO: result: yes" >&5
4720 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4721 else
4722   echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725         { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 fi
4731 if test x"$c99_init" = x"no"; then
4732     { echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
4733 echo $ECHO_N "checking for C99 designated initializers with -c99... $ECHO_C" >&6; }
4734     CFLAGS="$saved_CFLAGS -c99"
4735     cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741 #include <stdio.h>
4742 int
4743 main ()
4744 {
4745  struct foo {int x;char y;};
4746        struct foo bar = { .y = 'X', .x = 1 };
4747
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4754 case "(($ac_try" in
4755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756   *) ac_try_echo=$ac_try;;
4757 esac
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759   (eval "$ac_compile") 2>conftest.er1
4760   ac_status=$?
4761   grep -v '^ *+' conftest.er1 >conftest.err
4762   rm -f conftest.er1
4763   cat conftest.err >&5
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } &&
4766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4767   { (case "(($ac_try" in
4768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769   *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772   (eval "$ac_try") 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; } &&
4776          { ac_try='test -s conftest.$ac_objext'
4777   { (case "(($ac_try" in
4778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779   *) ac_try_echo=$ac_try;;
4780 esac
4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782   (eval "$ac_try") 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   { echo "$as_me:$LINENO: result: yes" >&5
4787 echo "${ECHO_T}yes" >&6; }; c99_init=yes
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792         { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 fi
4798
4799 if test "`uname`" = "HP-UX"; then
4800   if test "$ac_cv_c_compiler_gnu" = no; then
4801         # special override for broken HP-UX compiler - I can't find a way to test
4802         # this properly (its a compiler bug)
4803         CFLAGS="$CFLAGS -AC99";
4804         c99_init=yes;
4805   fi
4806 fi
4807
4808 if test x"$c99_init" = x"yes"; then
4809     saved_CFLAGS=""
4810
4811 else
4812     CFLAGS="$saved_CFLAGS"
4813     saved_CFLAGS=""
4814     { echo "$as_me:$LINENO: WARNING: c99 structure initializer are not supported" >&5
4815 echo "$as_me: WARNING: c99 structure initializer are not supported" >&2;}
4816 fi
4817
4818
4819 # Find a good install program.  We prefer a C program (faster),
4820 # so one script is as good as another.  But avoid the broken or
4821 # incompatible versions:
4822 # SysV /etc/install, /usr/sbin/install
4823 # SunOS /usr/etc/install
4824 # IRIX /sbin/install
4825 # AIX /bin/install
4826 # AmigaOS /C/install, which installs bootblocks on floppy discs
4827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4830 # OS/2's system install, which has a completely different semantic
4831 # ./install, which can be erroneously created by make from ./install.sh.
4832 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4833 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4834 if test -z "$INSTALL"; then
4835 if test "${ac_cv_path_install+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843   # Account for people who put trailing slashes in PATH elements.
4844 case $as_dir/ in
4845   ./ | .// | /cC/* | \
4846   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4847   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4848   /usr/ucb/* ) ;;
4849   *)
4850     # OSF1 and SCO ODT 3.0 have their own names for install.
4851     # Don't use installbsd from OSF since it installs stuff as root
4852     # by default.
4853     for ac_prog in ginstall scoinst install; do
4854       for ac_exec_ext in '' $ac_executable_extensions; do
4855         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4856           if test $ac_prog = install &&
4857             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4858             # AIX install.  It has an incompatible calling convention.
4859             :
4860           elif test $ac_prog = install &&
4861             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4862             # program-specific install script used by HP pwplus--don't use.
4863             :
4864           else
4865             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4866             break 3
4867           fi
4868         fi
4869       done
4870     done
4871     ;;
4872 esac
4873 done
4874 IFS=$as_save_IFS
4875
4876
4877 fi
4878   if test "${ac_cv_path_install+set}" = set; then
4879     INSTALL=$ac_cv_path_install
4880   else
4881     # As a last resort, use the slow shell script.  Don't cache a
4882     # value for INSTALL within a source directory, because that will
4883     # break other packages using the cache if that directory is
4884     # removed, or if the value is a relative name.
4885     INSTALL=$ac_install_sh
4886   fi
4887 fi
4888 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4889 echo "${ECHO_T}$INSTALL" >&6; }
4890
4891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4892 # It thinks the first close brace ends the variable substitution.
4893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4894
4895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4896
4897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4898
4899
4900 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4901 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4902 if test "${ac_cv_search_strerror+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   ac_func_search_save_LIBS=$LIBS
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912
4913 /* Override any GCC internal prototype to avoid an error.
4914    Use char because int might match the return type of a GCC
4915    builtin and then its argument prototype would still apply.  */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 char strerror ();
4920 int
4921 main ()
4922 {
4923 return strerror ();
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 for ac_lib in '' cposix; do
4929   if test -z "$ac_lib"; then
4930     ac_res="none required"
4931   else
4932     ac_res=-l$ac_lib
4933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4934   fi
4935   rm -f conftest.$ac_objext conftest$ac_exeext
4936 if { (ac_try="$ac_link"
4937 case "(($ac_try" in
4938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939   *) ac_try_echo=$ac_try;;
4940 esac
4941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942   (eval "$ac_link") 2>conftest.er1
4943   ac_status=$?
4944   grep -v '^ *+' conftest.er1 >conftest.err
4945   rm -f conftest.er1
4946   cat conftest.err >&5
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } &&
4949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4950   { (case "(($ac_try" in
4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952   *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955   (eval "$ac_try") 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; } &&
4959          { ac_try='test -s conftest$ac_exeext'
4960   { (case "(($ac_try" in
4961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962   *) ac_try_echo=$ac_try;;
4963 esac
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965   (eval "$ac_try") 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; }; then
4969   ac_cv_search_strerror=$ac_res
4970 else
4971   echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974
4975 fi
4976
4977 rm -f core conftest.err conftest.$ac_objext \
4978       conftest$ac_exeext
4979   if test "${ac_cv_search_strerror+set}" = set; then
4980   break
4981 fi
4982 done
4983 if test "${ac_cv_search_strerror+set}" = set; then
4984   :
4985 else
4986   ac_cv_search_strerror=no
4987 fi
4988 rm conftest.$ac_ext
4989 LIBS=$ac_func_search_save_LIBS
4990 fi
4991 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4992 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4993 ac_res=$ac_cv_search_strerror
4994 if test "$ac_res" != no; then
4995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4996
4997 fi
4998
4999
5000   cat >>confdefs.h <<\EOF
5001 #ifndef _XOPEN_SOURCE_EXTENDED
5002 # define _XOPEN_SOURCE_EXTENDED 1
5003 #endif
5004 EOF
5005
5006
5007
5008
5009   cat >>confdefs.h <<\EOF
5010 #ifndef _OSF_SOURCE
5011 # define _OSF_SOURCE 1
5012 #endif
5013 EOF
5014
5015
5016
5017
5018 # Check whether --enable-largefile was given.
5019 if test "${enable_largefile+set}" = set; then
5020   enableval=$enable_largefile;
5021 fi
5022
5023 if test "$enable_largefile" != no; then
5024
5025   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5026 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5027 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   ac_cv_sys_largefile_CC=no
5031      if test "$GCC" != yes; then
5032        ac_save_CC=$CC
5033        while :; do
5034          # IRIX 6.2 and later do not support large files by default,
5035          # so use the C compiler's -n32 option if that helps.
5036          cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 #include <sys/types.h>
5043  /* Check that off_t can represent 2**63 - 1 correctly.
5044     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5045     since some C++ compilers masquerading as C compilers
5046     incorrectly reject 9223372036854775807.  */
5047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5048   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5049                        && LARGE_OFF_T % 2147483647 == 1)
5050                       ? 1 : -1];
5051 int
5052 main ()
5053 {
5054
5055   ;
5056   return 0;
5057 }
5058 _ACEOF
5059          rm -f conftest.$ac_objext
5060 if { (ac_try="$ac_compile"
5061 case "(($ac_try" in
5062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063   *) ac_try_echo=$ac_try;;
5064 esac
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066   (eval "$ac_compile") 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } &&
5073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5074   { (case "(($ac_try" in
5075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076   *) ac_try_echo=$ac_try;;
5077 esac
5078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079   (eval "$ac_try") 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; } &&
5083          { ac_try='test -s conftest.$ac_objext'
5084   { (case "(($ac_try" in
5085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086   *) ac_try_echo=$ac_try;;
5087 esac
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089   (eval "$ac_try") 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); }; }; then
5093   break
5094 else
5095   echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098
5099 fi
5100
5101 rm -f core conftest.err conftest.$ac_objext
5102          CC="$CC -n32"
5103          rm -f conftest.$ac_objext
5104 if { (ac_try="$ac_compile"
5105 case "(($ac_try" in
5106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107   *) ac_try_echo=$ac_try;;
5108 esac
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110   (eval "$ac_compile") 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } &&
5117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5118   { (case "(($ac_try" in
5119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120   *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123   (eval "$ac_try") 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); }; } &&
5127          { ac_try='test -s conftest.$ac_objext'
5128   { (case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_try") 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   ac_cv_sys_largefile_CC=' -n32'; break
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142
5143 fi
5144
5145 rm -f core conftest.err conftest.$ac_objext
5146          break
5147        done
5148        CC=$ac_save_CC
5149        rm -f conftest.$ac_ext
5150     fi
5151 fi
5152 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5153 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5154   if test "$ac_cv_sys_largefile_CC" != no; then
5155     CC=$CC$ac_cv_sys_largefile_CC
5156   fi
5157
5158   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5159 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5160 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   while :; do
5164   ac_cv_sys_file_offset_bits=no
5165   cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h.  */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h.  */
5171 #include <sys/types.h>
5172  /* Check that off_t can represent 2**63 - 1 correctly.
5173     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5174     since some C++ compilers masquerading as C compilers
5175     incorrectly reject 9223372036854775807.  */
5176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5177   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5178                        && LARGE_OFF_T % 2147483647 == 1)
5179                       ? 1 : -1];
5180 int
5181 main ()
5182 {
5183
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5190 case "(($ac_try" in
5191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192   *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195   (eval "$ac_compile") 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } &&
5202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5203   { (case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208   (eval "$ac_try") 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; } &&
5212          { ac_try='test -s conftest.$ac_objext'
5213   { (case "(($ac_try" in
5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215   *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218   (eval "$ac_try") 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; }; then
5222   break
5223 else
5224   echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227
5228 fi
5229
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231   cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 #define _FILE_OFFSET_BITS 64
5238 #include <sys/types.h>
5239  /* Check that off_t can represent 2**63 - 1 correctly.
5240     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5241     since some C++ compilers masquerading as C compilers
5242     incorrectly reject 9223372036854775807.  */
5243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5244   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5245                        && LARGE_OFF_T % 2147483647 == 1)
5246                       ? 1 : -1];
5247 int
5248 main ()
5249 {
5250
5251   ;
5252   return 0;
5253 }
5254 _ACEOF
5255 rm -f conftest.$ac_objext
5256 if { (ac_try="$ac_compile"
5257 case "(($ac_try" in
5258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259   *) ac_try_echo=$ac_try;;
5260 esac
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262   (eval "$ac_compile") 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5270   { (case "(($ac_try" in
5271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272   *) ac_try_echo=$ac_try;;
5273 esac
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275   (eval "$ac_try") 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }; } &&
5279          { ac_try='test -s conftest.$ac_objext'
5280   { (case "(($ac_try" in
5281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282   *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285   (eval "$ac_try") 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }; }; then
5289   ac_cv_sys_file_offset_bits=64; break
5290 else
5291   echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5293
5294
5295 fi
5296
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298   break
5299 done
5300 fi
5301 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5302 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5303 if test "$ac_cv_sys_file_offset_bits" != no; then
5304
5305 cat >>confdefs.h <<_ACEOF
5306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5307 _ACEOF
5308
5309 fi
5310 rm -f conftest*
5311   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5312 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5313 if test "${ac_cv_sys_large_files+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   while :; do
5317   ac_cv_sys_large_files=no
5318   cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324 #include <sys/types.h>
5325  /* Check that off_t can represent 2**63 - 1 correctly.
5326     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5327     since some C++ compilers masquerading as C compilers
5328     incorrectly reject 9223372036854775807.  */
5329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5330   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5331                        && LARGE_OFF_T % 2147483647 == 1)
5332                       ? 1 : -1];
5333 int
5334 main ()
5335 {
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5343 case "(($ac_try" in
5344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345   *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348   (eval "$ac_compile") 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } &&
5355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356   { (case "(($ac_try" in
5357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358   *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361   (eval "$ac_try") 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; } &&
5365          { ac_try='test -s conftest.$ac_objext'
5366   { (case "(($ac_try" in
5367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368   *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371   (eval "$ac_try") 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); }; }; then
5375   break
5376 else
5377   echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380
5381 fi
5382
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384   cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h.  */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h.  */
5390 #define _LARGE_FILES 1
5391 #include <sys/types.h>
5392  /* Check that off_t can represent 2**63 - 1 correctly.
5393     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5394     since some C++ compilers masquerading as C compilers
5395     incorrectly reject 9223372036854775807.  */
5396 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5397   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5398                        && LARGE_OFF_T % 2147483647 == 1)
5399                       ? 1 : -1];
5400 int
5401 main ()
5402 {
5403
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest.$ac_objext
5409 if { (ac_try="$ac_compile"
5410 case "(($ac_try" in
5411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412   *) ac_try_echo=$ac_try;;
5413 esac
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415   (eval "$ac_compile") 2>conftest.er1
5416   ac_status=$?
5417   grep -v '^ *+' conftest.er1 >conftest.err
5418   rm -f conftest.er1
5419   cat conftest.err >&5
5420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421   (exit $ac_status); } &&
5422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5423   { (case "(($ac_try" in
5424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425   *) ac_try_echo=$ac_try;;
5426 esac
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428   (eval "$ac_try") 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); }; } &&
5432          { ac_try='test -s conftest.$ac_objext'
5433   { (case "(($ac_try" in
5434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435   *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438   (eval "$ac_try") 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); }; }; then
5442   ac_cv_sys_large_files=1; break
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447
5448 fi
5449
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451   break
5452 done
5453 fi
5454 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5455 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5456 if test "$ac_cv_sys_large_files" != no; then
5457
5458 cat >>confdefs.h <<_ACEOF
5459 #define _LARGE_FILES $ac_cv_sys_large_files
5460 _ACEOF
5461
5462 fi
5463 rm -f conftest*
5464 fi
5465
5466
5467 case "$host_os" in
5468         *irix6*) cat >> confdefs.h <<\EOF
5469 #include <standards.h>
5470 EOF
5471
5472                 ;;
5473         *hpux*)
5474                 # mmap on HPUX is completely broken...
5475
5476 cat >>confdefs.h <<\_ACEOF
5477 #define MMAP_BLACKLIST 1
5478 _ACEOF
5479
5480                 if test "`uname -r`" = "B.11.11"; then
5481                         { echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.11 header bug workaround" >&5
5482 echo "$as_me: WARNING: Enabling HPUX 11.11 header bug workaround" >&2;}
5483                         CFLAGS="$CFLAGS -D_LARGEFILE64_SUPPORT -D__LP64__ -DO_LARGEFILE=04000"
5484                 fi
5485                 if test "`uname -r`" = "B.11.23"; then
5486                         { echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&5
5487 echo "$as_me: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&2;}
5488                         CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
5489                 fi
5490                 ;;
5491         *aix*)
5492
5493 cat >>confdefs.h <<\_ACEOF
5494 #define BROKEN_STRNDUP 1
5495 _ACEOF
5496
5497
5498 cat >>confdefs.h <<\_ACEOF
5499 #define BROKEN_STRNLEN 1
5500 _ACEOF
5501
5502                 if test "${GCC}" != "yes"; then
5503                         ## for funky AIX compiler using strncpy()
5504                         CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
5505                 fi
5506                 ;;
5507         #
5508         # VOS may need to have POSIX support and System V compatibility enabled.
5509         #
5510         *vos*)
5511                 case "$CFLAGS" in
5512                         *-D_POSIX_C_SOURCE*);;
5513                         *)
5514                                 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
5515
5516 cat >>confdefs.h <<\_ACEOF
5517 #define _POSIX_C_SOURCE 200112L
5518 _ACEOF
5519
5520                                 ;;
5521                 esac
5522                 case "$CFLAGS" in
5523                         *-D_SYSV*|*-D_SVID_SOURCE*);;
5524                         *)
5525                                 CFLAGS="$CFLAGS -D_SYSV"
5526
5527 cat >>confdefs.h <<\_ACEOF
5528 #define _SYSV 1
5529 _ACEOF
5530
5531                                 ;;
5532                 esac
5533                 ;;
5534 esac
5535
5536
5537
5538
5539 for ac_header in standards.h
5540 do
5541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5543   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 fi
5548 ac_res=`eval echo '${'$as_ac_Header'}'`
5549                { echo "$as_me:$LINENO: result: $ac_res" >&5
5550 echo "${ECHO_T}$ac_res" >&6; }
5551 else
5552   # Is the header compilable?
5553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561 $ac_includes_default
5562 #include <$ac_header>
5563 _ACEOF
5564 rm -f conftest.$ac_objext
5565 if { (ac_try="$ac_compile"
5566 case "(($ac_try" in
5567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568   *) ac_try_echo=$ac_try;;
5569 esac
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571   (eval "$ac_compile") 2>conftest.er1
5572   ac_status=$?
5573   grep -v '^ *+' conftest.er1 >conftest.err
5574   rm -f conftest.er1
5575   cat conftest.err >&5
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } &&
5578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5579   { (case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584   (eval "$ac_try") 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; } &&
5588          { ac_try='test -s conftest.$ac_objext'
5589   { (case "(($ac_try" in
5590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591   *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594   (eval "$ac_try") 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; }; then
5598   ac_header_compiler=yes
5599 else
5600   echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603         ac_header_compiler=no
5604 fi
5605
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5608 echo "${ECHO_T}$ac_header_compiler" >&6; }
5609
5610 # Is the header present?
5611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619 #include <$ac_header>
5620 _ACEOF
5621 if { (ac_try="$ac_cpp conftest.$ac_ext"
5622 case "(($ac_try" in
5623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624   *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5628   ac_status=$?
5629   grep -v '^ *+' conftest.er1 >conftest.err
5630   rm -f conftest.er1
5631   cat conftest.err >&5
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } >/dev/null; then
5634   if test -s conftest.err; then
5635     ac_cpp_err=$ac_c_preproc_warn_flag
5636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5637   else
5638     ac_cpp_err=
5639   fi
5640 else
5641   ac_cpp_err=yes
5642 fi
5643 if test -z "$ac_cpp_err"; then
5644   ac_header_preproc=yes
5645 else
5646   echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649   ac_header_preproc=no
5650 fi
5651
5652 rm -f conftest.err conftest.$ac_ext
5653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5654 echo "${ECHO_T}$ac_header_preproc" >&6; }
5655
5656 # So?  What about this header?
5657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5658   yes:no: )
5659     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5663     ac_header_preproc=yes
5664     ;;
5665   no:yes:* )
5666     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5668     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5669 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5670     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5672     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5673 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5676     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5678
5679     ;;
5680 esac
5681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   eval "$as_ac_Header=\$ac_header_preproc"
5687 fi
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689                { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5691
5692 fi
5693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5694   cat >>confdefs.h <<_ACEOF
5695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5696 _ACEOF
5697
5698 fi
5699
5700 done
5701
5702
5703 # Solaris needs HAVE_LONG_LONG defined
5704 { echo "$as_me:$LINENO: checking for long long" >&5
5705 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5706 if test "${ac_cv_type_long_long+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h.  */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h.  */
5715 $ac_includes_default
5716 typedef long long ac__type_new_;
5717 int
5718 main ()
5719 {
5720 if ((ac__type_new_ *) 0)
5721   return 0;
5722 if (sizeof (ac__type_new_))
5723   return 0;
5724   ;
5725   return 0;
5726 }
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (ac_try="$ac_compile"
5730 case "(($ac_try" in
5731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732   *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735   (eval "$ac_compile") 2>conftest.er1
5736   ac_status=$?
5737   grep -v '^ *+' conftest.er1 >conftest.err
5738   rm -f conftest.er1
5739   cat conftest.err >&5
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } &&
5742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5743   { (case "(($ac_try" in
5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745   *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748   (eval "$ac_try") 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; } &&
5752          { ac_try='test -s conftest.$ac_objext'
5753   { (case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_try") 2>&5
5759   ac_status=$?
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); }; }; then
5762   ac_cv_type_long_long=yes
5763 else
5764   echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5766
5767         ac_cv_type_long_long=no
5768 fi
5769
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 fi
5772 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5773 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5774 if test $ac_cv_type_long_long = yes; then
5775
5776 cat >>confdefs.h <<_ACEOF
5777 #define HAVE_LONG_LONG 1
5778 _ACEOF
5779
5780
5781 fi
5782
5783
5784 { echo "$as_me:$LINENO: checking for uint_t" >&5
5785 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
5786 if test "${ac_cv_type_uint_t+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 $ac_includes_default
5796 typedef uint_t ac__type_new_;
5797 int
5798 main ()
5799 {
5800 if ((ac__type_new_ *) 0)
5801   return 0;
5802 if (sizeof (ac__type_new_))
5803   return 0;
5804   ;
5805   return 0;
5806 }
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (ac_try="$ac_compile"
5810 case "(($ac_try" in
5811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812   *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815   (eval "$ac_compile") 2>conftest.er1
5816   ac_status=$?
5817   grep -v '^ *+' conftest.er1 >conftest.err
5818   rm -f conftest.er1
5819   cat conftest.err >&5
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); } &&
5822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5823   { (case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828   (eval "$ac_try") 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; } &&
5832          { ac_try='test -s conftest.$ac_objext'
5833   { (case "(($ac_try" in
5834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835   *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838   (eval "$ac_try") 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); }; }; then
5842   ac_cv_type_uint_t=yes
5843 else
5844   echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5846
5847         ac_cv_type_uint_t=no
5848 fi
5849
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 fi
5852 { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
5853 echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
5854 if test $ac_cv_type_uint_t = yes; then
5855   :
5856 else
5857
5858 cat >>confdefs.h <<_ACEOF
5859 #define uint_t unsigned int
5860 _ACEOF
5861
5862 fi
5863
5864 { echo "$as_me:$LINENO: checking for int8_t" >&5
5865 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5866 if test "${ac_cv_type_int8_t+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h.  */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h.  */
5875 $ac_includes_default
5876 typedef int8_t ac__type_new_;
5877 int
5878 main ()
5879 {
5880 if ((ac__type_new_ *) 0)
5881   return 0;
5882 if (sizeof (ac__type_new_))
5883   return 0;
5884   ;
5885   return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5890 case "(($ac_try" in
5891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892   *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895   (eval "$ac_compile") 2>conftest.er1
5896   ac_status=$?
5897   grep -v '^ *+' conftest.er1 >conftest.err
5898   rm -f conftest.er1
5899   cat conftest.err >&5
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); } &&
5902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5903   { (case "(($ac_try" in
5904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905   *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908   (eval "$ac_try") 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; } &&
5912          { ac_try='test -s conftest.$ac_objext'
5913   { (case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_try") 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; }; then
5922   ac_cv_type_int8_t=yes
5923 else
5924   echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927         ac_cv_type_int8_t=no
5928 fi
5929
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 fi
5932 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
5933 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
5934 if test $ac_cv_type_int8_t = yes; then
5935   :
5936 else
5937
5938 cat >>confdefs.h <<_ACEOF
5939 #define int8_t char
5940 _ACEOF
5941
5942 fi
5943
5944 { echo "$as_me:$LINENO: checking for uint8_t" >&5
5945 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5946 if test "${ac_cv_type_uint8_t+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h.  */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h.  */
5955 $ac_includes_default
5956 typedef uint8_t ac__type_new_;
5957 int
5958 main ()
5959 {
5960 if ((ac__type_new_ *) 0)
5961   return 0;
5962 if (sizeof (ac__type_new_))
5963   return 0;
5964   ;
5965   return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext
5969 if { (ac_try="$ac_compile"
5970 case "(($ac_try" in
5971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972   *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975   (eval "$ac_compile") 2>conftest.er1
5976   ac_status=$?
5977   grep -v '^ *+' conftest.er1 >conftest.err
5978   rm -f conftest.er1
5979   cat conftest.err >&5
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5983   { (case "(($ac_try" in
5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985   *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988   (eval "$ac_try") 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); }; } &&
5992          { ac_try='test -s conftest.$ac_objext'
5993   { (case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998   (eval "$ac_try") 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; }; then
6002   ac_cv_type_uint8_t=yes
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007         ac_cv_type_uint8_t=no
6008 fi
6009
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 fi
6012 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6013 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
6014 if test $ac_cv_type_uint8_t = yes; then
6015   :
6016 else
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define uint8_t unsigned char
6020 _ACEOF
6021
6022 fi
6023
6024 { echo "$as_me:$LINENO: checking for int16_t" >&5
6025 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
6026 if test "${ac_cv_type_int16_t+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035 $ac_includes_default
6036 typedef int16_t ac__type_new_;
6037 int
6038 main ()
6039 {
6040 if ((ac__type_new_ *) 0)
6041   return 0;
6042 if (sizeof (ac__type_new_))
6043   return 0;
6044   ;
6045   return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext
6049 if { (ac_try="$ac_compile"
6050 case "(($ac_try" in
6051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052   *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055   (eval "$ac_compile") 2>conftest.er1
6056   ac_status=$?
6057   grep -v '^ *+' conftest.er1 >conftest.err
6058   rm -f conftest.er1
6059   cat conftest.err >&5
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } &&
6062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6063   { (case "(($ac_try" in
6064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065   *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068   (eval "$ac_try") 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; } &&
6072          { ac_try='test -s conftest.$ac_objext'
6073   { (case "(($ac_try" in
6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075   *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078   (eval "$ac_try") 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; }; then
6082   ac_cv_type_int16_t=yes
6083 else
6084   echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087         ac_cv_type_int16_t=no
6088 fi
6089
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 fi
6092 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6093 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
6094 if test $ac_cv_type_int16_t = yes; then
6095   :
6096 else
6097
6098 cat >>confdefs.h <<_ACEOF
6099 #define int16_t short
6100 _ACEOF
6101
6102 fi
6103
6104 { echo "$as_me:$LINENO: checking for uint16_t" >&5
6105 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6106 if test "${ac_cv_type_uint16_t+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 $ac_includes_default
6116 typedef uint16_t ac__type_new_;
6117 int
6118 main ()
6119 {
6120 if ((ac__type_new_ *) 0)
6121   return 0;
6122 if (sizeof (ac__type_new_))
6123   return 0;
6124   ;
6125   return 0;
6126 }
6127 _ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (ac_try="$ac_compile"
6130 case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_compile") 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } &&
6142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143   { (case "(($ac_try" in
6144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145   *) ac_try_echo=$ac_try;;
6146 esac
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148   (eval "$ac_try") 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); }; } &&
6152          { ac_try='test -s conftest.$ac_objext'
6153   { (case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158   (eval "$ac_try") 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; }; then
6162   ac_cv_type_uint16_t=yes
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167         ac_cv_type_uint16_t=no
6168 fi
6169
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6173 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6174 if test $ac_cv_type_uint16_t = yes; then
6175   :
6176 else
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define uint16_t unsigned short
6180 _ACEOF
6181
6182 fi
6183
6184 { echo "$as_me:$LINENO: checking for int32_t" >&5
6185 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
6186 if test "${ac_cv_type_int32_t+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195 $ac_includes_default
6196 typedef int32_t ac__type_new_;
6197 int
6198 main ()
6199 {
6200 if ((ac__type_new_ *) 0)
6201   return 0;
6202 if (sizeof (ac__type_new_))
6203   return 0;
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (ac_try="$ac_compile"
6210 case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_compile") 2>conftest.er1
6216   ac_status=$?
6217   grep -v '^ *+' conftest.er1 >conftest.err
6218   rm -f conftest.er1
6219   cat conftest.err >&5
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223   { (case "(($ac_try" in
6224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225   *) ac_try_echo=$ac_try;;
6226 esac
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228   (eval "$ac_try") 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; } &&
6232          { ac_try='test -s conftest.$ac_objext'
6233   { (case "(($ac_try" in
6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235   *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238   (eval "$ac_try") 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   ac_cv_type_int32_t=yes
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247         ac_cv_type_int32_t=no
6248 fi
6249
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 fi
6252 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6253 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
6254 if test $ac_cv_type_int32_t = yes; then
6255   :
6256 else
6257
6258 cat >>confdefs.h <<_ACEOF
6259 #define int32_t long
6260 _ACEOF
6261
6262 fi
6263
6264 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6265 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6266 if test "${ac_cv_type_uint32_t+set}" = set; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269   cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 $ac_includes_default
6276 typedef uint32_t ac__type_new_;
6277 int
6278 main ()
6279 {
6280 if ((ac__type_new_ *) 0)
6281   return 0;
6282 if (sizeof (ac__type_new_))
6283   return 0;
6284   ;
6285   return 0;
6286 }
6287 _ACEOF
6288 rm -f conftest.$ac_objext
6289 if { (ac_try="$ac_compile"
6290 case "(($ac_try" in
6291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292   *) ac_try_echo=$ac_try;;
6293 esac
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295   (eval "$ac_compile") 2>conftest.er1
6296   ac_status=$?
6297   grep -v '^ *+' conftest.er1 >conftest.err
6298   rm -f conftest.er1
6299   cat conftest.err >&5
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); } &&
6302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6303   { (case "(($ac_try" in
6304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305   *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308   (eval "$ac_try") 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; } &&
6312          { ac_try='test -s conftest.$ac_objext'
6313   { (case "(($ac_try" in
6314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315   *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318   (eval "$ac_try") 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; }; then
6322   ac_cv_type_uint32_t=yes
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327         ac_cv_type_uint32_t=no
6328 fi
6329
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 fi
6332 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6333 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6334 if test $ac_cv_type_uint32_t = yes; then
6335   :
6336 else
6337
6338 cat >>confdefs.h <<_ACEOF
6339 #define uint32_t unsigned long
6340 _ACEOF
6341
6342 fi
6343
6344 { echo "$as_me:$LINENO: checking for int64_t" >&5
6345 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
6346 if test "${ac_cv_type_int64_t+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355 $ac_includes_default
6356 typedef int64_t ac__type_new_;
6357 int
6358 main ()
6359 {
6360 if ((ac__type_new_ *) 0)
6361   return 0;
6362 if (sizeof (ac__type_new_))
6363   return 0;
6364   ;
6365   return 0;
6366 }
6367 _ACEOF
6368 rm -f conftest.$ac_objext
6369 if { (ac_try="$ac_compile"
6370 case "(($ac_try" in
6371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372   *) ac_try_echo=$ac_try;;
6373 esac
6374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375   (eval "$ac_compile") 2>conftest.er1
6376   ac_status=$?
6377   grep -v '^ *+' conftest.er1 >conftest.err
6378   rm -f conftest.er1
6379   cat conftest.err >&5
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); } &&
6382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6383   { (case "(($ac_try" in
6384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385   *) ac_try_echo=$ac_try;;
6386 esac
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388   (eval "$ac_try") 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; } &&
6392          { ac_try='test -s conftest.$ac_objext'
6393   { (case "(($ac_try" in
6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395   *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398   (eval "$ac_try") 2>&5
6399   ac_status=$?
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); }; }; then
6402   ac_cv_type_int64_t=yes
6403 else
6404   echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407         ac_cv_type_int64_t=no
6408 fi
6409
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 fi
6412 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6413 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
6414 if test $ac_cv_type_int64_t = yes; then
6415   :
6416 else
6417
6418 cat >>confdefs.h <<_ACEOF
6419 #define int64_t long long
6420 _ACEOF
6421
6422 fi
6423
6424 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6425 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6426 if test "${ac_cv_type_uint64_t+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435 $ac_includes_default
6436 typedef uint64_t ac__type_new_;
6437 int
6438 main ()
6439 {
6440 if ((ac__type_new_ *) 0)
6441   return 0;
6442 if (sizeof (ac__type_new_))
6443   return 0;
6444   ;
6445   return 0;
6446 }
6447 _ACEOF
6448 rm -f conftest.$ac_objext
6449 if { (ac_try="$ac_compile"
6450 case "(($ac_try" in
6451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452   *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455   (eval "$ac_compile") 2>conftest.er1
6456   ac_status=$?
6457   grep -v '^ *+' conftest.er1 >conftest.err
6458   rm -f conftest.er1
6459   cat conftest.err >&5
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } &&
6462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6463   { (case "(($ac_try" in
6464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465   *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468   (eval "$ac_try") 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; } &&
6472          { ac_try='test -s conftest.$ac_objext'
6473   { (case "(($ac_try" in
6474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475   *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478   (eval "$ac_try") 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; }; then
6482   ac_cv_type_uint64_t=yes
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487         ac_cv_type_uint64_t=no
6488 fi
6489
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6493 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6494 if test $ac_cv_type_uint64_t = yes; then
6495   :
6496 else
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define uint64_t unsigned long long
6500 _ACEOF
6501
6502 fi
6503
6504
6505 { echo "$as_me:$LINENO: checking for size_t" >&5
6506 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6507 if test "${ac_cv_type_size_t+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510   cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h.  */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h.  */
6516 $ac_includes_default
6517 typedef size_t ac__type_new_;
6518 int
6519 main ()
6520 {
6521 if ((ac__type_new_ *) 0)
6522   return 0;
6523 if (sizeof (ac__type_new_))
6524   return 0;
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (ac_try="$ac_compile"
6531 case "(($ac_try" in
6532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533   *) ac_try_echo=$ac_try;;
6534 esac
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536   (eval "$ac_compile") 2>conftest.er1
6537   ac_status=$?
6538   grep -v '^ *+' conftest.er1 >conftest.err
6539   rm -f conftest.er1
6540   cat conftest.err >&5
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } &&
6543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6544   { (case "(($ac_try" in
6545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546   *) ac_try_echo=$ac_try;;
6547 esac
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549   (eval "$ac_try") 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }; } &&
6553          { ac_try='test -s conftest.$ac_objext'
6554   { (case "(($ac_try" in
6555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556   *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559   (eval "$ac_try") 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; }; then
6563   ac_cv_type_size_t=yes
6564 else
6565   echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6567
6568         ac_cv_type_size_t=no
6569 fi
6570
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 fi
6573 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6574 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6575 if test $ac_cv_type_size_t = yes; then
6576   :
6577 else
6578
6579 cat >>confdefs.h <<_ACEOF
6580 #define size_t unsigned int
6581 _ACEOF
6582
6583 fi
6584
6585 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6586 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6587 if test "${ac_cv_type_ssize_t+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h.  */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h.  */
6596 $ac_includes_default
6597 typedef ssize_t ac__type_new_;
6598 int
6599 main ()
6600 {
6601 if ((ac__type_new_ *) 0)
6602   return 0;
6603 if (sizeof (ac__type_new_))
6604   return 0;
6605   ;
6606   return 0;
6607 }
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (ac_try="$ac_compile"
6611 case "(($ac_try" in
6612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613   *) ac_try_echo=$ac_try;;
6614 esac
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616   (eval "$ac_compile") 2>conftest.er1
6617   ac_status=$?
6618   grep -v '^ *+' conftest.er1 >conftest.err
6619   rm -f conftest.er1
6620   cat conftest.err >&5
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); } &&
6623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6624   { (case "(($ac_try" in
6625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626   *) ac_try_echo=$ac_try;;
6627 esac
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629   (eval "$ac_try") 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); }; } &&
6633          { ac_try='test -s conftest.$ac_objext'
6634   { (case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639   (eval "$ac_try") 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   ac_cv_type_ssize_t=yes
6644 else
6645   echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6647
6648         ac_cv_type_ssize_t=no
6649 fi
6650
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 fi
6653 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6654 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6655 if test $ac_cv_type_ssize_t = yes; then
6656   :
6657 else
6658
6659 cat >>confdefs.h <<_ACEOF
6660 #define ssize_t int
6661 _ACEOF
6662
6663 fi
6664
6665
6666 { echo "$as_me:$LINENO: checking for int" >&5
6667 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6668 if test "${ac_cv_type_int+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h.  */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h.  */
6677 $ac_includes_default
6678 typedef int ac__type_new_;
6679 int
6680 main ()
6681 {
6682 if ((ac__type_new_ *) 0)
6683   return 0;
6684 if (sizeof (ac__type_new_))
6685   return 0;
6686   ;
6687   return 0;
6688 }
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6692 case "(($ac_try" in
6693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694   *) ac_try_echo=$ac_try;;
6695 esac
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697   (eval "$ac_compile") 2>conftest.er1
6698   ac_status=$?
6699   grep -v '^ *+' conftest.er1 >conftest.err
6700   rm -f conftest.er1
6701   cat conftest.err >&5
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } &&
6704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6705   { (case "(($ac_try" in
6706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707   *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710   (eval "$ac_try") 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }; } &&
6714          { ac_try='test -s conftest.$ac_objext'
6715   { (case "(($ac_try" in
6716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717   *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720   (eval "$ac_try") 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; }; then
6724   ac_cv_type_int=yes
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729         ac_cv_type_int=no
6730 fi
6731
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 fi
6734 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6735 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6736
6737 { echo "$as_me:$LINENO: checking size of int" >&5
6738 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6739 if test "${ac_cv_sizeof_int+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   if test "$ac_cv_type_int" = yes; then
6743   # The cast to long int works around a bug in the HP C Compiler
6744   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6745   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6746   # This bug is HP SR number 8606223364.
6747   if test "$cross_compiling" = yes; then
6748   # Depending upon the size, compute the lo and hi bounds.
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h.  */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h.  */
6755 $ac_includes_default
6756                    typedef int ac__type_sizeof_;
6757 int
6758 main ()
6759 {
6760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6761 test_array [0] = 0
6762
6763   ;
6764   return 0;
6765 }
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (ac_try="$ac_compile"
6769 case "(($ac_try" in
6770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771   *) ac_try_echo=$ac_try;;
6772 esac
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774   (eval "$ac_compile") 2>conftest.er1
6775   ac_status=$?
6776   grep -v '^ *+' conftest.er1 >conftest.err
6777   rm -f conftest.er1
6778   cat conftest.err >&5
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); } &&
6781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6782   { (case "(($ac_try" in
6783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784   *) ac_try_echo=$ac_try;;
6785 esac
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787   (eval "$ac_try") 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); }; } &&
6791          { ac_try='test -s conftest.$ac_objext'
6792   { (case "(($ac_try" in
6793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794   *) ac_try_echo=$ac_try;;
6795 esac
6796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797   (eval "$ac_try") 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; }; then
6801   ac_lo=0 ac_mid=0
6802   while :; do
6803     cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h.  */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h.  */
6809 $ac_includes_default
6810                    typedef int ac__type_sizeof_;
6811 int
6812 main ()
6813 {
6814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6815 test_array [0] = 0
6816
6817   ;
6818   return 0;
6819 }
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (ac_try="$ac_compile"
6823 case "(($ac_try" in
6824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6825   *) ac_try_echo=$ac_try;;
6826 esac
6827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6828   (eval "$ac_compile") 2>conftest.er1
6829   ac_status=$?
6830   grep -v '^ *+' conftest.er1 >conftest.err
6831   rm -f conftest.er1
6832   cat conftest.err >&5
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); } &&
6835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6836   { (case "(($ac_try" in
6837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838   *) ac_try_echo=$ac_try;;
6839 esac
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841   (eval "$ac_try") 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); }; } &&
6845          { ac_try='test -s conftest.$ac_objext'
6846   { (case "(($ac_try" in
6847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848   *) ac_try_echo=$ac_try;;
6849 esac
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851   (eval "$ac_try") 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; }; then
6855   ac_hi=$ac_mid; break
6856 else
6857   echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6859
6860         ac_lo=`expr $ac_mid + 1`
6861                         if test $ac_lo -le $ac_mid; then
6862                           ac_lo= ac_hi=
6863                           break
6864                         fi
6865                         ac_mid=`expr 2 '*' $ac_mid + 1`
6866 fi
6867
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869   done
6870 else
6871   echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6873
6874         cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h.  */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h.  */
6880 $ac_includes_default
6881                    typedef int ac__type_sizeof_;
6882 int
6883 main ()
6884 {
6885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6886 test_array [0] = 0
6887
6888   ;
6889   return 0;
6890 }
6891 _ACEOF
6892 rm -f conftest.$ac_objext
6893 if { (ac_try="$ac_compile"
6894 case "(($ac_try" in
6895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896   *) ac_try_echo=$ac_try;;
6897 esac
6898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6899   (eval "$ac_compile") 2>conftest.er1
6900   ac_status=$?
6901   grep -v '^ *+' conftest.er1 >conftest.err
6902   rm -f conftest.er1
6903   cat conftest.err >&5
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } &&
6906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6907   { (case "(($ac_try" in
6908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909   *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912   (eval "$ac_try") 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); }; } &&
6916          { ac_try='test -s conftest.$ac_objext'
6917   { (case "(($ac_try" in
6918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919   *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922   (eval "$ac_try") 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; }; then
6926   ac_hi=-1 ac_mid=-1
6927   while :; do
6928     cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h.  */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h.  */
6934 $ac_includes_default
6935                    typedef int ac__type_sizeof_;
6936 int
6937 main ()
6938 {
6939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6940 test_array [0] = 0
6941
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6948 case "(($ac_try" in
6949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950   *) ac_try_echo=$ac_try;;
6951 esac
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953   (eval "$ac_compile") 2>conftest.er1
6954   ac_status=$?
6955   grep -v '^ *+' conftest.er1 >conftest.err
6956   rm -f conftest.er1
6957   cat conftest.err >&5
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); } &&
6960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6961   { (case "(($ac_try" in
6962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963   *) ac_try_echo=$ac_try;;
6964 esac
6965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6966   (eval "$ac_try") 2>&5
6967   ac_status=$?
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); }; } &&
6970          { ac_try='test -s conftest.$ac_objext'
6971   { (case "(($ac_try" in
6972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973   *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976   (eval "$ac_try") 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; }; then
6980   ac_lo=$ac_mid; break
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985         ac_hi=`expr '(' $ac_mid ')' - 1`
6986                         if test $ac_mid -le $ac_hi; then
6987                           ac_lo= ac_hi=
6988                           break
6989                         fi
6990                         ac_mid=`expr 2 '*' $ac_mid`
6991 fi
6992
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994   done
6995 else
6996   echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999         ac_lo= ac_hi=
7000 fi
7001
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 fi
7004
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 # Binary search between lo and hi bounds.
7007 while test "x$ac_lo" != "x$ac_hi"; do
7008   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7009   cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h.  */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h.  */
7015 $ac_includes_default
7016                    typedef int ac__type_sizeof_;
7017 int
7018 main ()
7019 {
7020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7021 test_array [0] = 0
7022
7023   ;
7024   return 0;
7025 }
7026 _ACEOF
7027 rm -f conftest.$ac_objext
7028 if { (ac_try="$ac_compile"
7029 case "(($ac_try" in
7030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031   *) ac_try_echo=$ac_try;;
7032 esac
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034   (eval "$ac_compile") 2>conftest.er1
7035   ac_status=$?
7036   grep -v '^ *+' conftest.er1 >conftest.err
7037   rm -f conftest.er1
7038   cat conftest.err >&5
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } &&
7041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7042   { (case "(($ac_try" in
7043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044   *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047   (eval "$ac_try") 2>&5
7048   ac_status=$?
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); }; } &&
7051          { ac_try='test -s conftest.$ac_objext'
7052   { (case "(($ac_try" in
7053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054   *) ac_try_echo=$ac_try;;
7055 esac
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057   (eval "$ac_try") 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); }; }; then
7061   ac_hi=$ac_mid
7062 else
7063   echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7065
7066         ac_lo=`expr '(' $ac_mid ')' + 1`
7067 fi
7068
7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 done
7071 case $ac_lo in
7072 ?*) ac_cv_sizeof_int=$ac_lo;;
7073 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7074 See \`config.log' for more details." >&5
7075 echo "$as_me: error: cannot compute sizeof (int)
7076 See \`config.log' for more details." >&2;}
7077    { (exit 77); exit 77; }; } ;;
7078 esac
7079 else
7080   cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h.  */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h.  */
7086 $ac_includes_default
7087                    typedef int ac__type_sizeof_;
7088 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7089 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7090 #include <stdio.h>
7091 #include <stdlib.h>
7092 int
7093 main ()
7094 {
7095
7096   FILE *f = fopen ("conftest.val", "w");
7097   if (! f)
7098     return 1;
7099   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7100     {
7101       long int i = longval ();
7102       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7103         return 1;
7104       fprintf (f, "%ld\n", i);
7105     }
7106   else
7107     {
7108       unsigned long int i = ulongval ();
7109       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7110         return 1;
7111       fprintf (f, "%lu\n", i);
7112     }
7113   return ferror (f) || fclose (f) != 0;
7114
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest$ac_exeext
7120 if { (ac_try="$ac_link"
7121 case "(($ac_try" in
7122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123   *) ac_try_echo=$ac_try;;
7124 esac
7125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7126   (eval "$ac_link") 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7130   { (case "(($ac_try" in
7131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132   *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135   (eval "$ac_try") 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); }; }; then
7139   ac_cv_sizeof_int=`cat conftest.val`
7140 else
7141   echo "$as_me: program exited with status $ac_status" >&5
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 ( exit $ac_status )
7146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7147 See \`config.log' for more details." >&5
7148 echo "$as_me: error: cannot compute sizeof (int)
7149 See \`config.log' for more details." >&2;}
7150    { (exit 77); exit 77; }; }
7151 fi
7152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7153 fi
7154 rm -f conftest.val
7155 else
7156   ac_cv_sizeof_int=0
7157 fi
7158 fi
7159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7160 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7161 cat >>confdefs.h <<_ACEOF
7162 #define SIZEOF_INT $ac_cv_sizeof_int
7163 _ACEOF
7164
7165
7166 { echo "$as_me:$LINENO: checking for char" >&5
7167 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
7168 if test "${ac_cv_type_char+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 $ac_includes_default
7178 typedef char ac__type_new_;
7179 int
7180 main ()
7181 {
7182 if ((ac__type_new_ *) 0)
7183   return 0;
7184 if (sizeof (ac__type_new_))
7185   return 0;
7186   ;
7187   return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7192 case "(($ac_try" in
7193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194   *) ac_try_echo=$ac_try;;
7195 esac
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197   (eval "$ac_compile") 2>conftest.er1
7198   ac_status=$?
7199   grep -v '^ *+' conftest.er1 >conftest.err
7200   rm -f conftest.er1
7201   cat conftest.err >&5
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); } &&
7204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7205   { (case "(($ac_try" in
7206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207   *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210   (eval "$ac_try") 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); }; } &&
7214          { ac_try='test -s conftest.$ac_objext'
7215   { (case "(($ac_try" in
7216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217   *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220   (eval "$ac_try") 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; }; then
7224   ac_cv_type_char=yes
7225 else
7226   echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7228
7229         ac_cv_type_char=no
7230 fi
7231
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 fi
7234 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7235 echo "${ECHO_T}$ac_cv_type_char" >&6; }
7236
7237 { echo "$as_me:$LINENO: checking size of char" >&5
7238 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
7239 if test "${ac_cv_sizeof_char+set}" = set; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   if test "$ac_cv_type_char" = yes; then
7243   # The cast to long int works around a bug in the HP C Compiler
7244   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7245   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7246   # This bug is HP SR number 8606223364.
7247   if test "$cross_compiling" = yes; then
7248   # Depending upon the size, compute the lo and hi bounds.
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255 $ac_includes_default
7256                    typedef char ac__type_sizeof_;
7257 int
7258 main ()
7259 {
7260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7261 test_array [0] = 0
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (ac_try="$ac_compile"
7269 case "(($ac_try" in
7270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271   *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274   (eval "$ac_compile") 2>conftest.er1
7275   ac_status=$?
7276   grep -v '^ *+' conftest.er1 >conftest.err
7277   rm -f conftest.er1
7278   cat conftest.err >&5
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); } &&
7281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7282   { (case "(($ac_try" in
7283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284   *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287   (eval "$ac_try") 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; } &&
7291          { ac_try='test -s conftest.$ac_objext'
7292   { (case "(($ac_try" in
7293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294   *) ac_try_echo=$ac_try;;
7295 esac
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297   (eval "$ac_try") 2>&5
7298   ac_status=$?
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); }; }; then
7301   ac_lo=0 ac_mid=0
7302   while :; do
7303     cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309 $ac_includes_default
7310                    typedef char ac__type_sizeof_;
7311 int
7312 main ()
7313 {
7314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7315 test_array [0] = 0
7316
7317   ;
7318   return 0;
7319 }
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7323 case "(($ac_try" in
7324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325   *) ac_try_echo=$ac_try;;
7326 esac
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328   (eval "$ac_compile") 2>conftest.er1
7329   ac_status=$?
7330   grep -v '^ *+' conftest.er1 >conftest.err
7331   rm -f conftest.er1
7332   cat conftest.err >&5
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); } &&
7335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7336   { (case "(($ac_try" in
7337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338   *) ac_try_echo=$ac_try;;
7339 esac
7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341   (eval "$ac_try") 2>&5
7342   ac_status=$?
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); }; } &&
7345          { ac_try='test -s conftest.$ac_objext'
7346   { (case "(($ac_try" in
7347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348   *) ac_try_echo=$ac_try;;
7349 esac
7350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351   (eval "$ac_try") 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; }; then
7355   ac_hi=$ac_mid; break
7356 else
7357   echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360         ac_lo=`expr $ac_mid + 1`
7361                         if test $ac_lo -le $ac_mid; then
7362                           ac_lo= ac_hi=
7363                           break
7364                         fi
7365                         ac_mid=`expr 2 '*' $ac_mid + 1`
7366 fi
7367
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369   done
7370 else
7371   echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374         cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 $ac_includes_default
7381                    typedef char ac__type_sizeof_;
7382 int
7383 main ()
7384 {
7385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7386 test_array [0] = 0
7387
7388   ;
7389   return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7394 case "(($ac_try" in
7395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396   *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399   (eval "$ac_compile") 2>conftest.er1
7400   ac_status=$?
7401   grep -v '^ *+' conftest.er1 >conftest.err
7402   rm -f conftest.er1
7403   cat conftest.err >&5
7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } &&
7406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7407   { (case "(($ac_try" in
7408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409   *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412   (eval "$ac_try") 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; } &&
7416          { ac_try='test -s conftest.$ac_objext'
7417   { (case "(($ac_try" in
7418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419   *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422   (eval "$ac_try") 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); }; }; then
7426   ac_hi=-1 ac_mid=-1
7427   while :; do
7428     cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h.  */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h.  */
7434 $ac_includes_default
7435                    typedef char ac__type_sizeof_;
7436 int
7437 main ()
7438 {
7439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7440 test_array [0] = 0
7441
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 rm -f conftest.$ac_objext
7447 if { (ac_try="$ac_compile"
7448 case "(($ac_try" in
7449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450   *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453   (eval "$ac_compile") 2>conftest.er1
7454   ac_status=$?
7455   grep -v '^ *+' conftest.er1 >conftest.err
7456   rm -f conftest.er1
7457   cat conftest.err >&5
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } &&
7460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7461   { (case "(($ac_try" in
7462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463   *) ac_try_echo=$ac_try;;
7464 esac
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466   (eval "$ac_try") 2>&5
7467   ac_status=$?
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); }; } &&
7470          { ac_try='test -s conftest.$ac_objext'
7471   { (case "(($ac_try" in
7472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473   *) ac_try_echo=$ac_try;;
7474 esac
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476   (eval "$ac_try") 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); }; }; then
7480   ac_lo=$ac_mid; break
7481 else
7482   echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485         ac_hi=`expr '(' $ac_mid ')' - 1`
7486                         if test $ac_mid -le $ac_hi; then
7487                           ac_lo= ac_hi=
7488                           break
7489                         fi
7490                         ac_mid=`expr 2 '*' $ac_mid`
7491 fi
7492
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494   done
7495 else
7496   echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499         ac_lo= ac_hi=
7500 fi
7501
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 fi
7504
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 # Binary search between lo and hi bounds.
7507 while test "x$ac_lo" != "x$ac_hi"; do
7508   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7509   cat >conftest.$ac_ext <<_ACEOF
7510 /* confdefs.h.  */
7511 _ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h.  */
7515 $ac_includes_default
7516                    typedef char ac__type_sizeof_;
7517 int
7518 main ()
7519 {
7520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7521 test_array [0] = 0
7522
7523   ;
7524   return 0;
7525 }
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (ac_try="$ac_compile"
7529 case "(($ac_try" in
7530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531   *) ac_try_echo=$ac_try;;
7532 esac
7533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7534   (eval "$ac_compile") 2>conftest.er1
7535   ac_status=$?
7536   grep -v '^ *+' conftest.er1 >conftest.err
7537   rm -f conftest.er1
7538   cat conftest.err >&5
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); } &&
7541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7542   { (case "(($ac_try" in
7543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544   *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547   (eval "$ac_try") 2>&5
7548   ac_status=$?
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); }; } &&
7551          { ac_try='test -s conftest.$ac_objext'
7552   { (case "(($ac_try" in
7553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554   *) ac_try_echo=$ac_try;;
7555 esac
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557   (eval "$ac_try") 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; }; then
7561   ac_hi=$ac_mid
7562 else
7563   echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566         ac_lo=`expr '(' $ac_mid ')' + 1`
7567 fi
7568
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 done
7571 case $ac_lo in
7572 ?*) ac_cv_sizeof_char=$ac_lo;;
7573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7574 See \`config.log' for more details." >&5
7575 echo "$as_me: error: cannot compute sizeof (char)
7576 See \`config.log' for more details." >&2;}
7577    { (exit 77); exit 77; }; } ;;
7578 esac
7579 else
7580   cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h.  */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h.  */
7586 $ac_includes_default
7587                    typedef char ac__type_sizeof_;
7588 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7589 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7590 #include <stdio.h>
7591 #include <stdlib.h>
7592 int
7593 main ()
7594 {
7595
7596   FILE *f = fopen ("conftest.val", "w");
7597   if (! f)
7598     return 1;
7599   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7600     {
7601       long int i = longval ();
7602       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7603         return 1;
7604       fprintf (f, "%ld\n", i);
7605     }
7606   else
7607     {
7608       unsigned long int i = ulongval ();
7609       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7610         return 1;
7611       fprintf (f, "%lu\n", i);
7612     }
7613   return ferror (f) || fclose (f) != 0;
7614
7615   ;
7616   return 0;
7617 }
7618 _ACEOF
7619 rm -f conftest$ac_exeext
7620 if { (ac_try="$ac_link"
7621 case "(($ac_try" in
7622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623   *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626   (eval "$ac_link") 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7630   { (case "(($ac_try" in
7631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632   *) ac_try_echo=$ac_try;;
7633 esac
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635   (eval "$ac_try") 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; }; then
7639   ac_cv_sizeof_char=`cat conftest.val`
7640 else
7641   echo "$as_me: program exited with status $ac_status" >&5
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645 ( exit $ac_status )
7646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7647 See \`config.log' for more details." >&5
7648 echo "$as_me: error: cannot compute sizeof (char)
7649 See \`config.log' for more details." >&2;}
7650    { (exit 77); exit 77; }; }
7651 fi
7652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7653 fi
7654 rm -f conftest.val
7655 else
7656   ac_cv_sizeof_char=0
7657 fi
7658 fi
7659 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7660 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
7661 cat >>confdefs.h <<_ACEOF
7662 #define SIZEOF_CHAR $ac_cv_sizeof_char
7663 _ACEOF
7664
7665
7666 { echo "$as_me:$LINENO: checking for short" >&5
7667 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7668 if test "${ac_cv_type_short+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h.  */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h.  */
7677 $ac_includes_default
7678 typedef short ac__type_new_;
7679 int
7680 main ()
7681 {
7682 if ((ac__type_new_ *) 0)
7683   return 0;
7684 if (sizeof (ac__type_new_))
7685   return 0;
7686   ;
7687   return 0;
7688 }
7689 _ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7692 case "(($ac_try" in
7693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694   *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697   (eval "$ac_compile") 2>conftest.er1
7698   ac_status=$?
7699   grep -v '^ *+' conftest.er1 >conftest.err
7700   rm -f conftest.er1
7701   cat conftest.err >&5
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); } &&
7704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7705   { (case "(($ac_try" in
7706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707   *) ac_try_echo=$ac_try;;
7708 esac
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710   (eval "$ac_try") 2>&5
7711   ac_status=$?
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); }; } &&
7714          { ac_try='test -s conftest.$ac_objext'
7715   { (case "(($ac_try" in
7716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717   *) ac_try_echo=$ac_try;;
7718 esac
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720   (eval "$ac_try") 2>&5
7721   ac_status=$?
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); }; }; then
7724   ac_cv_type_short=yes
7725 else
7726   echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729         ac_cv_type_short=no
7730 fi
7731
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7735 echo "${ECHO_T}$ac_cv_type_short" >&6; }
7736
7737 { echo "$as_me:$LINENO: checking size of short" >&5
7738 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7739 if test "${ac_cv_sizeof_short+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   if test "$ac_cv_type_short" = yes; then
7743   # The cast to long int works around a bug in the HP C Compiler
7744   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7745   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7746   # This bug is HP SR number 8606223364.
7747   if test "$cross_compiling" = yes; then
7748   # Depending upon the size, compute the lo and hi bounds.
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h.  */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h.  */
7755 $ac_includes_default
7756                    typedef short ac__type_sizeof_;
7757 int
7758 main ()
7759 {
7760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7761 test_array [0] = 0
7762
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 rm -f conftest.$ac_objext
7768 if { (ac_try="$ac_compile"
7769 case "(($ac_try" in
7770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771   *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774   (eval "$ac_compile") 2>conftest.er1
7775   ac_status=$?
7776   grep -v '^ *+' conftest.er1 >conftest.err
7777   rm -f conftest.er1
7778   cat conftest.err >&5
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7782   { (case "(($ac_try" in
7783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784   *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787   (eval "$ac_try") 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; } &&
7791          { ac_try='test -s conftest.$ac_objext'
7792   { (case "(($ac_try" in
7793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794   *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797   (eval "$ac_try") 2>&5
7798   ac_status=$?
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); }; }; then
7801   ac_lo=0 ac_mid=0
7802   while :; do
7803     cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h.  */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h.  */
7809 $ac_includes_default
7810                    typedef short ac__type_sizeof_;
7811 int
7812 main ()
7813 {
7814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7815 test_array [0] = 0
7816
7817   ;
7818   return 0;
7819 }
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7829   ac_status=$?
7830   grep -v '^ *+' conftest.er1 >conftest.err
7831   rm -f conftest.er1
7832   cat conftest.err >&5
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } &&
7835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7836   { (case "(($ac_try" in
7837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838   *) ac_try_echo=$ac_try;;
7839 esac
7840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7841   (eval "$ac_try") 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; } &&
7845          { ac_try='test -s conftest.$ac_objext'
7846   { (case "(($ac_try" in
7847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848   *) ac_try_echo=$ac_try;;
7849 esac
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851   (eval "$ac_try") 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; }; then
7855   ac_hi=$ac_mid; break
7856 else
7857   echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860         ac_lo=`expr $ac_mid + 1`
7861                         if test $ac_lo -le $ac_mid; then
7862                           ac_lo= ac_hi=
7863                           break
7864                         fi
7865                         ac_mid=`expr 2 '*' $ac_mid + 1`
7866 fi
7867
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869   done
7870 else
7871   echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7873
7874         cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 $ac_includes_default
7881                    typedef short ac__type_sizeof_;
7882 int
7883 main ()
7884 {
7885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7886 test_array [0] = 0
7887
7888   ;
7889   return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7894 case "(($ac_try" in
7895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896   *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899   (eval "$ac_compile") 2>conftest.er1
7900   ac_status=$?
7901   grep -v '^ *+' conftest.er1 >conftest.err
7902   rm -f conftest.er1
7903   cat conftest.err >&5
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } &&
7906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7907   { (case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912   (eval "$ac_try") 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; } &&
7916          { ac_try='test -s conftest.$ac_objext'
7917   { (case "(($ac_try" in
7918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919   *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922   (eval "$ac_try") 2>&5
7923   ac_status=$?
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); }; }; then
7926   ac_hi=-1 ac_mid=-1
7927   while :; do
7928     cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 $ac_includes_default
7935                    typedef short ac__type_sizeof_;
7936 int
7937 main ()
7938 {
7939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7940 test_array [0] = 0
7941
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7948 case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_compile") 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } &&
7960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961   { (case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_try") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; } &&
7970          { ac_try='test -s conftest.$ac_objext'
7971   { (case "(($ac_try" in
7972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973   *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976   (eval "$ac_try") 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; }; then
7980   ac_lo=$ac_mid; break
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985         ac_hi=`expr '(' $ac_mid ')' - 1`
7986                         if test $ac_mid -le $ac_hi; then
7987                           ac_lo= ac_hi=
7988                           break
7989                         fi
7990                         ac_mid=`expr 2 '*' $ac_mid`
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994   done
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999         ac_lo= ac_hi=
8000 fi
8001
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 # Binary search between lo and hi bounds.
8007 while test "x$ac_lo" != "x$ac_hi"; do
8008   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8009   cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h.  */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h.  */
8015 $ac_includes_default
8016                    typedef short ac__type_sizeof_;
8017 int
8018 main ()
8019 {
8020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8021 test_array [0] = 0
8022
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (ac_try="$ac_compile"
8029 case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034   (eval "$ac_compile") 2>conftest.er1
8035   ac_status=$?
8036   grep -v '^ *+' conftest.er1 >conftest.err
8037   rm -f conftest.er1
8038   cat conftest.err >&5
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } &&
8041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8042   { (case "(($ac_try" in
8043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044   *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047   (eval "$ac_try") 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; } &&
8051          { ac_try='test -s conftest.$ac_objext'
8052   { (case "(($ac_try" in
8053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054   *) ac_try_echo=$ac_try;;
8055 esac
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057   (eval "$ac_try") 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; }; then
8061   ac_hi=$ac_mid
8062 else
8063   echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066         ac_lo=`expr '(' $ac_mid ')' + 1`
8067 fi
8068
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 done
8071 case $ac_lo in
8072 ?*) ac_cv_sizeof_short=$ac_lo;;
8073 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8074 See \`config.log' for more details." >&5
8075 echo "$as_me: error: cannot compute sizeof (short)
8076 See \`config.log' for more details." >&2;}
8077    { (exit 77); exit 77; }; } ;;
8078 esac
8079 else
8080   cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086 $ac_includes_default
8087                    typedef short ac__type_sizeof_;
8088 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8089 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8090 #include <stdio.h>
8091 #include <stdlib.h>
8092 int
8093 main ()
8094 {
8095
8096   FILE *f = fopen ("conftest.val", "w");
8097   if (! f)
8098     return 1;
8099   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8100     {
8101       long int i = longval ();
8102       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8103         return 1;
8104       fprintf (f, "%ld\n", i);
8105     }
8106   else
8107     {
8108       unsigned long int i = ulongval ();
8109       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8110         return 1;
8111       fprintf (f, "%lu\n", i);
8112     }
8113   return ferror (f) || fclose (f) != 0;
8114
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest$ac_exeext
8120 if { (ac_try="$ac_link"
8121 case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_link") 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8130   { (case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_try") 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_sizeof_short=`cat conftest.val`
8140 else
8141   echo "$as_me: program exited with status $ac_status" >&5
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ( exit $ac_status )
8146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8147 See \`config.log' for more details." >&5
8148 echo "$as_me: error: cannot compute sizeof (short)
8149 See \`config.log' for more details." >&2;}
8150    { (exit 77); exit 77; }; }
8151 fi
8152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 rm -f conftest.val
8155 else
8156   ac_cv_sizeof_short=0
8157 fi
8158 fi
8159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8160 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8161 cat >>confdefs.h <<_ACEOF
8162 #define SIZEOF_SHORT $ac_cv_sizeof_short
8163 _ACEOF
8164
8165
8166 { echo "$as_me:$LINENO: checking for long" >&5
8167 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
8168 if test "${ac_cv_type_long+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 $ac_includes_default
8178 typedef long ac__type_new_;
8179 int
8180 main ()
8181 {
8182 if ((ac__type_new_ *) 0)
8183   return 0;
8184 if (sizeof (ac__type_new_))
8185   return 0;
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_compile") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205   { (case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210   (eval "$ac_try") 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; } &&
8214          { ac_try='test -s conftest.$ac_objext'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224   ac_cv_type_long=yes
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229         ac_cv_type_long=no
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8235 echo "${ECHO_T}$ac_cv_type_long" >&6; }
8236
8237 { echo "$as_me:$LINENO: checking size of long" >&5
8238 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8239 if test "${ac_cv_sizeof_long+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   if test "$ac_cv_type_long" = yes; then
8243   # The cast to long int works around a bug in the HP C Compiler
8244   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8245   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8246   # This bug is HP SR number 8606223364.
8247   if test "$cross_compiling" = yes; then
8248   # Depending upon the size, compute the lo and hi bounds.
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255 $ac_includes_default
8256                    typedef long ac__type_sizeof_;
8257 int
8258 main ()
8259 {
8260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8261 test_array [0] = 0
8262
8263   ;
8264   return 0;
8265 }
8266 _ACEOF
8267 rm -f conftest.$ac_objext
8268 if { (ac_try="$ac_compile"
8269 case "(($ac_try" in
8270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271   *) ac_try_echo=$ac_try;;
8272 esac
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274   (eval "$ac_compile") 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } &&
8281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8282   { (case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287   (eval "$ac_try") 2>&5
8288   ac_status=$?
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); }; } &&
8291          { ac_try='test -s conftest.$ac_objext'
8292   { (case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_try") 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   ac_lo=0 ac_mid=0
8302   while :; do
8303     cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309 $ac_includes_default
8310                    typedef long ac__type_sizeof_;
8311 int
8312 main ()
8313 {
8314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8315 test_array [0] = 0
8316
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8323 case "(($ac_try" in
8324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325   *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328   (eval "$ac_compile") 2>conftest.er1
8329   ac_status=$?
8330   grep -v '^ *+' conftest.er1 >conftest.err
8331   rm -f conftest.er1
8332   cat conftest.err >&5
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } &&
8335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8345          { ac_try='test -s conftest.$ac_objext'
8346   { (case "(($ac_try" in
8347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348   *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351   (eval "$ac_try") 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; }; then
8355   ac_hi=$ac_mid; break
8356 else
8357   echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360         ac_lo=`expr $ac_mid + 1`
8361                         if test $ac_lo -le $ac_mid; then
8362                           ac_lo= ac_hi=
8363                           break
8364                         fi
8365                         ac_mid=`expr 2 '*' $ac_mid + 1`
8366 fi
8367
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369   done
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374         cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h.  */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h.  */
8380 $ac_includes_default
8381                    typedef long ac__type_sizeof_;
8382 int
8383 main ()
8384 {
8385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8386 test_array [0] = 0
8387
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8394 case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_compile") 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } &&
8406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8407   { (case "(($ac_try" in
8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409   *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412   (eval "$ac_try") 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest.$ac_objext'
8417   { (case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422   (eval "$ac_try") 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_hi=-1 ac_mid=-1
8427   while :; do
8428     cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 $ac_includes_default
8435                    typedef long ac__type_sizeof_;
8436 int
8437 main ()
8438 {
8439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8440 test_array [0] = 0
8441
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (ac_try="$ac_compile"
8448 case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_compile") 2>conftest.er1
8454   ac_status=$?
8455   grep -v '^ *+' conftest.er1 >conftest.err
8456   rm -f conftest.er1
8457   cat conftest.err >&5
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); } &&
8460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8461   { (case "(($ac_try" in
8462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463   *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466   (eval "$ac_try") 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; } &&
8470          { ac_try='test -s conftest.$ac_objext'
8471   { (case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476   (eval "$ac_try") 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; }; then
8480   ac_lo=$ac_mid; break
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485         ac_hi=`expr '(' $ac_mid ')' - 1`
8486                         if test $ac_mid -le $ac_hi; then
8487                           ac_lo= ac_hi=
8488                           break
8489                         fi
8490                         ac_mid=`expr 2 '*' $ac_mid`
8491 fi
8492
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494   done
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499         ac_lo= ac_hi=
8500 fi
8501
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 # Binary search between lo and hi bounds.
8507 while test "x$ac_lo" != "x$ac_hi"; do
8508   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8509   cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515 $ac_includes_default
8516                    typedef long ac__type_sizeof_;
8517 int
8518 main ()
8519 {
8520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8521 test_array [0] = 0
8522
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (ac_try="$ac_compile"
8529 case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534   (eval "$ac_compile") 2>conftest.er1
8535   ac_status=$?
8536   grep -v '^ *+' conftest.er1 >conftest.err
8537   rm -f conftest.er1
8538   cat conftest.err >&5
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } &&
8541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542   { (case "(($ac_try" in
8543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544   *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547   (eval "$ac_try") 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; } &&
8551          { ac_try='test -s conftest.$ac_objext'
8552   { (case "(($ac_try" in
8553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554   *) ac_try_echo=$ac_try;;
8555 esac
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557   (eval "$ac_try") 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_hi=$ac_mid
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566         ac_lo=`expr '(' $ac_mid ')' + 1`
8567 fi
8568
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 done
8571 case $ac_lo in
8572 ?*) ac_cv_sizeof_long=$ac_lo;;
8573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8574 See \`config.log' for more details." >&5
8575 echo "$as_me: error: cannot compute sizeof (long)
8576 See \`config.log' for more details." >&2;}
8577    { (exit 77); exit 77; }; } ;;
8578 esac
8579 else
8580   cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h.  */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h.  */
8586 $ac_includes_default
8587                    typedef long ac__type_sizeof_;
8588 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8589 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8590 #include <stdio.h>
8591 #include <stdlib.h>
8592 int
8593 main ()
8594 {
8595
8596   FILE *f = fopen ("conftest.val", "w");
8597   if (! f)
8598     return 1;
8599   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8600     {
8601       long int i = longval ();
8602       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8603         return 1;
8604       fprintf (f, "%ld\n", i);
8605     }
8606   else
8607     {
8608       unsigned long int i = ulongval ();
8609       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8610         return 1;
8611       fprintf (f, "%lu\n", i);
8612     }
8613   return ferror (f) || fclose (f) != 0;
8614
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_link") 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8630   { (case "(($ac_try" in
8631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632   *) ac_try_echo=$ac_try;;
8633 esac
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635   (eval "$ac_try") 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); }; }; then
8639   ac_cv_sizeof_long=`cat conftest.val`
8640 else
8641   echo "$as_me: program exited with status $ac_status" >&5
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ( exit $ac_status )
8646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8647 See \`config.log' for more details." >&5
8648 echo "$as_me: error: cannot compute sizeof (long)
8649 See \`config.log' for more details." >&2;}
8650    { (exit 77); exit 77; }; }
8651 fi
8652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 rm -f conftest.val
8655 else
8656   ac_cv_sizeof_long=0
8657 fi
8658 fi
8659 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8660 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8661 cat >>confdefs.h <<_ACEOF
8662 #define SIZEOF_LONG $ac_cv_sizeof_long
8663 _ACEOF
8664
8665
8666 { echo "$as_me:$LINENO: checking for long long" >&5
8667 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8668 if test "${ac_cv_type_long_long+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 $ac_includes_default
8678 typedef long long ac__type_new_;
8679 int
8680 main ()
8681 {
8682 if ((ac__type_new_ *) 0)
8683   return 0;
8684 if (sizeof (ac__type_new_))
8685   return 0;
8686   ;
8687   return 0;
8688 }
8689 _ACEOF
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8692 case "(($ac_try" in
8693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694   *) ac_try_echo=$ac_try;;
8695 esac
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697   (eval "$ac_compile") 2>conftest.er1
8698   ac_status=$?
8699   grep -v '^ *+' conftest.er1 >conftest.err
8700   rm -f conftest.er1
8701   cat conftest.err >&5
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); } &&
8704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8705   { (case "(($ac_try" in
8706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707   *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710   (eval "$ac_try") 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; } &&
8714          { ac_try='test -s conftest.$ac_objext'
8715   { (case "(($ac_try" in
8716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717   *) ac_try_echo=$ac_try;;
8718 esac
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720   (eval "$ac_try") 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; }; then
8724   ac_cv_type_long_long=yes
8725 else
8726   echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8728
8729         ac_cv_type_long_long=no
8730 fi
8731
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 fi
8734 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8735 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8736
8737 { echo "$as_me:$LINENO: checking size of long long" >&5
8738 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8739 if test "${ac_cv_sizeof_long_long+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   if test "$ac_cv_type_long_long" = yes; then
8743   # The cast to long int works around a bug in the HP C Compiler
8744   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8745   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8746   # This bug is HP SR number 8606223364.
8747   if test "$cross_compiling" = yes; then
8748   # Depending upon the size, compute the lo and hi bounds.
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755 $ac_includes_default
8756                    typedef long long ac__type_sizeof_;
8757 int
8758 main ()
8759 {
8760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8761 test_array [0] = 0
8762
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8769 case "(($ac_try" in
8770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771   *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774   (eval "$ac_compile") 2>conftest.er1
8775   ac_status=$?
8776   grep -v '^ *+' conftest.er1 >conftest.err
8777   rm -f conftest.er1
8778   cat conftest.err >&5
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } &&
8781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8782   { (case "(($ac_try" in
8783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784   *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787   (eval "$ac_try") 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; } &&
8791          { ac_try='test -s conftest.$ac_objext'
8792   { (case "(($ac_try" in
8793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794   *) ac_try_echo=$ac_try;;
8795 esac
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797   (eval "$ac_try") 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); }; }; then
8801   ac_lo=0 ac_mid=0
8802   while :; do
8803     cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809 $ac_includes_default
8810                    typedef long long ac__type_sizeof_;
8811 int
8812 main ()
8813 {
8814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8815 test_array [0] = 0
8816
8817   ;
8818   return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8823 case "(($ac_try" in
8824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825   *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828   (eval "$ac_compile") 2>conftest.er1
8829   ac_status=$?
8830   grep -v '^ *+' conftest.er1 >conftest.err
8831   rm -f conftest.er1
8832   cat conftest.err >&5
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); } &&
8835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8836   { (case "(($ac_try" in
8837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838   *) ac_try_echo=$ac_try;;
8839 esac
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841   (eval "$ac_try") 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; } &&
8845          { ac_try='test -s conftest.$ac_objext'
8846   { (case "(($ac_try" in
8847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848   *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851   (eval "$ac_try") 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; }; then
8855   ac_hi=$ac_mid; break
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860         ac_lo=`expr $ac_mid + 1`
8861                         if test $ac_lo -le $ac_mid; then
8862                           ac_lo= ac_hi=
8863                           break
8864                         fi
8865                         ac_mid=`expr 2 '*' $ac_mid + 1`
8866 fi
8867
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869   done
8870 else
8871   echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874         cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h.  */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h.  */
8880 $ac_includes_default
8881                    typedef long long ac__type_sizeof_;
8882 int
8883 main ()
8884 {
8885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8886 test_array [0] = 0
8887
8888   ;
8889   return 0;
8890 }
8891 _ACEOF
8892 rm -f conftest.$ac_objext
8893 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8900   ac_status=$?
8901   grep -v '^ *+' conftest.er1 >conftest.err
8902   rm -f conftest.er1
8903   cat conftest.err >&5
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); } &&
8906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8907   { (case "(($ac_try" in
8908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909   *) ac_try_echo=$ac_try;;
8910 esac
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912   (eval "$ac_try") 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; } &&
8916          { ac_try='test -s conftest.$ac_objext'
8917   { (case "(($ac_try" in
8918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919   *) ac_try_echo=$ac_try;;
8920 esac
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922   (eval "$ac_try") 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; }; then
8926   ac_hi=-1 ac_mid=-1
8927   while :; do
8928     cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934 $ac_includes_default
8935                    typedef long long ac__type_sizeof_;
8936 int
8937 main ()
8938 {
8939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8940 test_array [0] = 0
8941
8942   ;
8943   return 0;
8944 }
8945 _ACEOF
8946 rm -f conftest.$ac_objext
8947 if { (ac_try="$ac_compile"
8948 case "(($ac_try" in
8949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950   *) ac_try_echo=$ac_try;;
8951 esac
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953   (eval "$ac_compile") 2>conftest.er1
8954   ac_status=$?
8955   grep -v '^ *+' conftest.er1 >conftest.err
8956   rm -f conftest.er1
8957   cat conftest.err >&5
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } &&
8960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961   { (case "(($ac_try" in
8962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963   *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966   (eval "$ac_try") 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; } &&
8970          { ac_try='test -s conftest.$ac_objext'
8971   { (case "(($ac_try" in
8972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973   *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976   (eval "$ac_try") 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); }; }; then
8980   ac_lo=$ac_mid; break
8981 else
8982   echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8984
8985         ac_hi=`expr '(' $ac_mid ')' - 1`
8986                         if test $ac_mid -le $ac_hi; then
8987                           ac_lo= ac_hi=
8988                           break
8989                         fi
8990                         ac_mid=`expr 2 '*' $ac_mid`
8991 fi
8992
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994   done
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999         ac_lo= ac_hi=
9000 fi
9001
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 fi
9004
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 # Binary search between lo and hi bounds.
9007 while test "x$ac_lo" != "x$ac_hi"; do
9008   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9009   cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h.  */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h.  */
9015 $ac_includes_default
9016                    typedef long long ac__type_sizeof_;
9017 int
9018 main ()
9019 {
9020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9021 test_array [0] = 0
9022
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext
9028 if { (ac_try="$ac_compile"
9029 case "(($ac_try" in
9030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031   *) ac_try_echo=$ac_try;;
9032 esac
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034   (eval "$ac_compile") 2>conftest.er1
9035   ac_status=$?
9036   grep -v '^ *+' conftest.er1 >conftest.err
9037   rm -f conftest.er1
9038   cat conftest.err >&5
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } &&
9041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042   { (case "(($ac_try" in
9043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044   *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047   (eval "$ac_try") 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; } &&
9051          { ac_try='test -s conftest.$ac_objext'
9052   { (case "(($ac_try" in
9053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054   *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057   (eval "$ac_try") 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; }; then
9061   ac_hi=$ac_mid
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066         ac_lo=`expr '(' $ac_mid ')' + 1`
9067 fi
9068
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 done
9071 case $ac_lo in
9072 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9073 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9074 See \`config.log' for more details." >&5
9075 echo "$as_me: error: cannot compute sizeof (long long)
9076 See \`config.log' for more details." >&2;}
9077    { (exit 77); exit 77; }; } ;;
9078 esac
9079 else
9080   cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h.  */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h.  */
9086 $ac_includes_default
9087                    typedef long long ac__type_sizeof_;
9088 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9089 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9090 #include <stdio.h>
9091 #include <stdlib.h>
9092 int
9093 main ()
9094 {
9095
9096   FILE *f = fopen ("conftest.val", "w");
9097   if (! f)
9098     return 1;
9099   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9100     {
9101       long int i = longval ();
9102       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9103         return 1;
9104       fprintf (f, "%ld\n", i);
9105     }
9106   else
9107     {
9108       unsigned long int i = ulongval ();
9109       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9110         return 1;
9111       fprintf (f, "%lu\n", i);
9112     }
9113   return ferror (f) || fclose (f) != 0;
9114
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 rm -f conftest$ac_exeext
9120 if { (ac_try="$ac_link"
9121 case "(($ac_try" in
9122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123   *) ac_try_echo=$ac_try;;
9124 esac
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126   (eval "$ac_link") 2>&5
9127   ac_status=$?
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9130   { (case "(($ac_try" in
9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132   *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135   (eval "$ac_try") 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; }; then
9139   ac_cv_sizeof_long_long=`cat conftest.val`
9140 else
9141   echo "$as_me: program exited with status $ac_status" >&5
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 ( exit $ac_status )
9146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9147 See \`config.log' for more details." >&5
9148 echo "$as_me: error: cannot compute sizeof (long long)
9149 See \`config.log' for more details." >&2;}
9150    { (exit 77); exit 77; }; }
9151 fi
9152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 rm -f conftest.val
9155 else
9156   ac_cv_sizeof_long_long=0
9157 fi
9158 fi
9159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9160 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9161 cat >>confdefs.h <<_ACEOF
9162 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9163 _ACEOF
9164
9165
9166
9167 { echo "$as_me:$LINENO: checking for off_t" >&5
9168 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9169 if test "${ac_cv_type_off_t+set}" = set; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h.  */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h.  */
9178 $ac_includes_default
9179 typedef off_t ac__type_new_;
9180 int
9181 main ()
9182 {
9183 if ((ac__type_new_ *) 0)
9184   return 0;
9185 if (sizeof (ac__type_new_))
9186   return 0;
9187   ;
9188   return 0;
9189 }
9190 _ACEOF
9191 rm -f conftest.$ac_objext
9192 if { (ac_try="$ac_compile"
9193 case "(($ac_try" in
9194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195   *) ac_try_echo=$ac_try;;
9196 esac
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198   (eval "$ac_compile") 2>conftest.er1
9199   ac_status=$?
9200   grep -v '^ *+' conftest.er1 >conftest.err
9201   rm -f conftest.er1
9202   cat conftest.err >&5
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); } &&
9205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9206   { (case "(($ac_try" in
9207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208   *) ac_try_echo=$ac_try;;
9209 esac
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211   (eval "$ac_try") 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; } &&
9215          { ac_try='test -s conftest.$ac_objext'
9216   { (case "(($ac_try" in
9217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218   *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221   (eval "$ac_try") 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; }; then
9225   ac_cv_type_off_t=yes
9226 else
9227   echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9229
9230         ac_cv_type_off_t=no
9231 fi
9232
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 fi
9235 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9236 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9237
9238 { echo "$as_me:$LINENO: checking size of off_t" >&5
9239 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
9240 if test "${ac_cv_sizeof_off_t+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   if test "$ac_cv_type_off_t" = yes; then
9244   # The cast to long int works around a bug in the HP C Compiler
9245   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9246   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9247   # This bug is HP SR number 8606223364.
9248   if test "$cross_compiling" = yes; then
9249   # Depending upon the size, compute the lo and hi bounds.
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h.  */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h.  */
9256 $ac_includes_default
9257                    typedef off_t ac__type_sizeof_;
9258 int
9259 main ()
9260 {
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9262 test_array [0] = 0
9263
9264   ;
9265   return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9270 case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_compile") 2>conftest.er1
9276   ac_status=$?
9277   grep -v '^ *+' conftest.er1 >conftest.err
9278   rm -f conftest.er1
9279   cat conftest.err >&5
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } &&
9282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9283   { (case "(($ac_try" in
9284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285   *) ac_try_echo=$ac_try;;
9286 esac
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288   (eval "$ac_try") 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); }; } &&
9292          { ac_try='test -s conftest.$ac_objext'
9293   { (case "(($ac_try" in
9294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295   *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298   (eval "$ac_try") 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_lo=0 ac_mid=0
9303   while :; do
9304     cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h.  */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h.  */
9310 $ac_includes_default
9311                    typedef off_t ac__type_sizeof_;
9312 int
9313 main ()
9314 {
9315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9316 test_array [0] = 0
9317
9318   ;
9319   return 0;
9320 }
9321 _ACEOF
9322 rm -f conftest.$ac_objext
9323 if { (ac_try="$ac_compile"
9324 case "(($ac_try" in
9325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326   *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329   (eval "$ac_compile") 2>conftest.er1
9330   ac_status=$?
9331   grep -v '^ *+' conftest.er1 >conftest.err
9332   rm -f conftest.er1
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9337   { (case "(($ac_try" in
9338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339   *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342   (eval "$ac_try") 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; } &&
9346          { ac_try='test -s conftest.$ac_objext'
9347   { (case "(($ac_try" in
9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349   *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352   (eval "$ac_try") 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; }; then
9356   ac_hi=$ac_mid; break
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361         ac_lo=`expr $ac_mid + 1`
9362                         if test $ac_lo -le $ac_mid; then
9363                           ac_lo= ac_hi=
9364                           break
9365                         fi
9366                         ac_mid=`expr 2 '*' $ac_mid + 1`
9367 fi
9368
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370   done
9371 else
9372   echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375         cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381 $ac_includes_default
9382                    typedef off_t ac__type_sizeof_;
9383 int
9384 main ()
9385 {
9386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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=-1 ac_mid=-1
9428   while :; do
9429     cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h.  */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h.  */
9435 $ac_includes_default
9436                    typedef off_t ac__type_sizeof_;
9437 int
9438 main ()
9439 {
9440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9441 test_array [0] = 0
9442
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 rm -f conftest.$ac_objext
9448 if { (ac_try="$ac_compile"
9449 case "(($ac_try" in
9450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451   *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454   (eval "$ac_compile") 2>conftest.er1
9455   ac_status=$?
9456   grep -v '^ *+' conftest.er1 >conftest.err
9457   rm -f conftest.er1
9458   cat conftest.err >&5
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); } &&
9461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9462   { (case "(($ac_try" in
9463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464   *) ac_try_echo=$ac_try;;
9465 esac
9466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9467   (eval "$ac_try") 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }; } &&
9471          { ac_try='test -s conftest.$ac_objext'
9472   { (case "(($ac_try" in
9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474   *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477   (eval "$ac_try") 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; }; then
9481   ac_lo=$ac_mid; break
9482 else
9483   echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486         ac_hi=`expr '(' $ac_mid ')' - 1`
9487                         if test $ac_mid -le $ac_hi; then
9488                           ac_lo= ac_hi=
9489                           break
9490                         fi
9491                         ac_mid=`expr 2 '*' $ac_mid`
9492 fi
9493
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495   done
9496 else
9497   echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500         ac_lo= ac_hi=
9501 fi
9502
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 fi
9505
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 # Binary search between lo and hi bounds.
9508 while test "x$ac_lo" != "x$ac_hi"; do
9509   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9510   cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 $ac_includes_default
9517                    typedef off_t ac__type_sizeof_;
9518 int
9519 main ()
9520 {
9521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9522 test_array [0] = 0
9523
9524   ;
9525   return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext
9529 if { (ac_try="$ac_compile"
9530 case "(($ac_try" in
9531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532   *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535   (eval "$ac_compile") 2>conftest.er1
9536   ac_status=$?
9537   grep -v '^ *+' conftest.er1 >conftest.err
9538   rm -f conftest.er1
9539   cat conftest.err >&5
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); } &&
9542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543   { (case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548   (eval "$ac_try") 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; } &&
9552          { ac_try='test -s conftest.$ac_objext'
9553   { (case "(($ac_try" in
9554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555   *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558   (eval "$ac_try") 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); }; }; then
9562   ac_hi=$ac_mid
9563 else
9564   echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567         ac_lo=`expr '(' $ac_mid ')' + 1`
9568 fi
9569
9570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571 done
9572 case $ac_lo in
9573 ?*) ac_cv_sizeof_off_t=$ac_lo;;
9574 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9575 See \`config.log' for more details." >&5
9576 echo "$as_me: error: cannot compute sizeof (off_t)
9577 See \`config.log' for more details." >&2;}
9578    { (exit 77); exit 77; }; } ;;
9579 esac
9580 else
9581   cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h.  */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h.  */
9587 $ac_includes_default
9588                    typedef off_t ac__type_sizeof_;
9589 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9590 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9591 #include <stdio.h>
9592 #include <stdlib.h>
9593 int
9594 main ()
9595 {
9596
9597   FILE *f = fopen ("conftest.val", "w");
9598   if (! f)
9599     return 1;
9600   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9601     {
9602       long int i = longval ();
9603       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9604         return 1;
9605       fprintf (f, "%ld\n", i);
9606     }
9607   else
9608     {
9609       unsigned long int i = ulongval ();
9610       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9611         return 1;
9612       fprintf (f, "%lu\n", i);
9613     }
9614   return ferror (f) || fclose (f) != 0;
9615
9616   ;
9617   return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest$ac_exeext
9621 if { (ac_try="$ac_link"
9622 case "(($ac_try" in
9623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624   *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627   (eval "$ac_link") 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9631   { (case "(($ac_try" in
9632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633   *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636   (eval "$ac_try") 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; }; then
9640   ac_cv_sizeof_off_t=`cat conftest.val`
9641 else
9642   echo "$as_me: program exited with status $ac_status" >&5
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ( exit $ac_status )
9647 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9648 See \`config.log' for more details." >&5
9649 echo "$as_me: error: cannot compute sizeof (off_t)
9650 See \`config.log' for more details." >&2;}
9651    { (exit 77); exit 77; }; }
9652 fi
9653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9654 fi
9655 rm -f conftest.val
9656 else
9657   ac_cv_sizeof_off_t=0
9658 fi
9659 fi
9660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9661 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
9662 cat >>confdefs.h <<_ACEOF
9663 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9664 _ACEOF
9665
9666
9667 { echo "$as_me:$LINENO: checking for size_t" >&5
9668 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9669 if test "${ac_cv_type_size_t+set}" = set; then
9670   echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672   cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h.  */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h.  */
9678 $ac_includes_default
9679 typedef size_t ac__type_new_;
9680 int
9681 main ()
9682 {
9683 if ((ac__type_new_ *) 0)
9684   return 0;
9685 if (sizeof (ac__type_new_))
9686   return 0;
9687   ;
9688   return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext
9692 if { (ac_try="$ac_compile"
9693 case "(($ac_try" in
9694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695   *) ac_try_echo=$ac_try;;
9696 esac
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698   (eval "$ac_compile") 2>conftest.er1
9699   ac_status=$?
9700   grep -v '^ *+' conftest.er1 >conftest.err
9701   rm -f conftest.er1
9702   cat conftest.err >&5
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } &&
9705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706   { (case "(($ac_try" in
9707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708   *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711   (eval "$ac_try") 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; } &&
9715          { ac_try='test -s conftest.$ac_objext'
9716   { (case "(($ac_try" in
9717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718   *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721   (eval "$ac_try") 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; }; then
9725   ac_cv_type_size_t=yes
9726 else
9727   echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9729
9730         ac_cv_type_size_t=no
9731 fi
9732
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 fi
9735 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9736 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9737
9738 { echo "$as_me:$LINENO: checking size of size_t" >&5
9739 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9740 if test "${ac_cv_sizeof_size_t+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   if test "$ac_cv_type_size_t" = yes; then
9744   # The cast to long int works around a bug in the HP C Compiler
9745   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9746   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9747   # This bug is HP SR number 8606223364.
9748   if test "$cross_compiling" = yes; then
9749   # Depending upon the size, compute the lo and hi bounds.
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756 $ac_includes_default
9757                    typedef size_t ac__type_sizeof_;
9758 int
9759 main ()
9760 {
9761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9762 test_array [0] = 0
9763
9764   ;
9765   return 0;
9766 }
9767 _ACEOF
9768 rm -f conftest.$ac_objext
9769 if { (ac_try="$ac_compile"
9770 case "(($ac_try" in
9771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772   *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775   (eval "$ac_compile") 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783   { (case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_try") 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; } &&
9792          { ac_try='test -s conftest.$ac_objext'
9793   { (case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_try") 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; }; then
9802   ac_lo=0 ac_mid=0
9803   while :; do
9804     cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h.  */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h.  */
9810 $ac_includes_default
9811                    typedef size_t ac__type_sizeof_;
9812 int
9813 main ()
9814 {
9815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9816 test_array [0] = 0
9817
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9824 case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_compile") 2>conftest.er1
9830   ac_status=$?
9831   grep -v '^ *+' conftest.er1 >conftest.err
9832   rm -f conftest.er1
9833   cat conftest.err >&5
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } &&
9836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9837   { (case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_try") 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; } &&
9846          { ac_try='test -s conftest.$ac_objext'
9847   { (case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_try") 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_hi=$ac_mid; break
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861         ac_lo=`expr $ac_mid + 1`
9862                         if test $ac_lo -le $ac_mid; then
9863                           ac_lo= ac_hi=
9864                           break
9865                         fi
9866                         ac_mid=`expr 2 '*' $ac_mid + 1`
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870   done
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875         cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 $ac_includes_default
9882                    typedef size_t ac__type_sizeof_;
9883 int
9884 main ()
9885 {
9886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9887 test_array [0] = 0
9888
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893 rm -f conftest.$ac_objext
9894 if { (ac_try="$ac_compile"
9895 case "(($ac_try" in
9896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897   *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900   (eval "$ac_compile") 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } &&
9907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; } &&
9917          { ac_try='test -s conftest.$ac_objext'
9918   { (case "(($ac_try" in
9919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920   *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923   (eval "$ac_try") 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_hi=-1 ac_mid=-1
9928   while :; do
9929     cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 $ac_includes_default
9936                    typedef size_t ac__type_sizeof_;
9937 int
9938 main ()
9939 {
9940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9941 test_array [0] = 0
9942
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext
9948 if { (ac_try="$ac_compile"
9949 case "(($ac_try" in
9950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951   *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954   (eval "$ac_compile") 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962   { (case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_try") 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; } &&
9971          { ac_try='test -s conftest.$ac_objext'
9972   { (case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977   (eval "$ac_try") 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; }; then
9981   ac_lo=$ac_mid; break
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986         ac_hi=`expr '(' $ac_mid ')' - 1`
9987                         if test $ac_mid -le $ac_hi; then
9988                           ac_lo= ac_hi=
9989                           break
9990                         fi
9991                         ac_mid=`expr 2 '*' $ac_mid`
9992 fi
9993
9994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9995   done
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000         ac_lo= ac_hi=
10001 fi
10002
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004 fi
10005
10006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007 # Binary search between lo and hi bounds.
10008 while test "x$ac_lo" != "x$ac_hi"; do
10009   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 $ac_includes_default
10017                    typedef size_t ac__type_sizeof_;
10018 int
10019 main ()
10020 {
10021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10022 test_array [0] = 0
10023
10024   ;
10025   return 0;
10026 }
10027 _ACEOF
10028 rm -f conftest.$ac_objext
10029 if { (ac_try="$ac_compile"
10030 case "(($ac_try" in
10031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032   *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035   (eval "$ac_compile") 2>conftest.er1
10036   ac_status=$?
10037   grep -v '^ *+' conftest.er1 >conftest.err
10038   rm -f conftest.er1
10039   cat conftest.err >&5
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); } &&
10042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10043   { (case "(($ac_try" in
10044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045   *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048   (eval "$ac_try") 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; } &&
10052          { ac_try='test -s conftest.$ac_objext'
10053   { (case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_try") 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   ac_hi=$ac_mid
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067         ac_lo=`expr '(' $ac_mid ')' + 1`
10068 fi
10069
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 done
10072 case $ac_lo in
10073 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10074 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10075 See \`config.log' for more details." >&5
10076 echo "$as_me: error: cannot compute sizeof (size_t)
10077 See \`config.log' for more details." >&2;}
10078    { (exit 77); exit 77; }; } ;;
10079 esac
10080 else
10081   cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 $ac_includes_default
10088                    typedef size_t ac__type_sizeof_;
10089 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10090 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10091 #include <stdio.h>
10092 #include <stdlib.h>
10093 int
10094 main ()
10095 {
10096
10097   FILE *f = fopen ("conftest.val", "w");
10098   if (! f)
10099     return 1;
10100   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10101     {
10102       long int i = longval ();
10103       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10104         return 1;
10105       fprintf (f, "%ld\n", i);
10106     }
10107   else
10108     {
10109       unsigned long int i = ulongval ();
10110       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10111         return 1;
10112       fprintf (f, "%lu\n", i);
10113     }
10114   return ferror (f) || fclose (f) != 0;
10115
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124   *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127   (eval "$ac_link") 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10131   { (case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_try") 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; }; then
10140   ac_cv_sizeof_size_t=`cat conftest.val`
10141 else
10142   echo "$as_me: program exited with status $ac_status" >&5
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 ( exit $ac_status )
10147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10148 See \`config.log' for more details." >&5
10149 echo "$as_me: error: cannot compute sizeof (size_t)
10150 See \`config.log' for more details." >&2;}
10151    { (exit 77); exit 77; }; }
10152 fi
10153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10154 fi
10155 rm -f conftest.val
10156 else
10157   ac_cv_sizeof_size_t=0
10158 fi
10159 fi
10160 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10161 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10162 cat >>confdefs.h <<_ACEOF
10163 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10164 _ACEOF
10165
10166
10167 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10168 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10169 if test "${ac_cv_type_ssize_t+set}" = set; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
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 ssize_t ac__type_new_;
10180 int
10181 main ()
10182 {
10183 if ((ac__type_new_ *) 0)
10184   return 0;
10185 if (sizeof (ac__type_new_))
10186   return 0;
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (ac_try="$ac_compile"
10193 case "(($ac_try" in
10194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195   *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198   (eval "$ac_compile") 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } &&
10205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206   { (case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_try") 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest.$ac_objext'
10216   { (case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221   (eval "$ac_try") 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_cv_type_ssize_t=yes
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230         ac_cv_type_ssize_t=no
10231 fi
10232
10233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234 fi
10235 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10236 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10237
10238 { echo "$as_me:$LINENO: checking size of ssize_t" >&5
10239 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
10240 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243   if test "$ac_cv_type_ssize_t" = yes; then
10244   # The cast to long int works around a bug in the HP C Compiler
10245   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10246   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10247   # This bug is HP SR number 8606223364.
10248   if test "$cross_compiling" = yes; then
10249   # Depending upon the size, compute the lo and hi bounds.
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256 $ac_includes_default
10257                    typedef ssize_t ac__type_sizeof_;
10258 int
10259 main ()
10260 {
10261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10262 test_array [0] = 0
10263
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext
10269 if { (ac_try="$ac_compile"
10270 case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275   (eval "$ac_compile") 2>conftest.er1
10276   ac_status=$?
10277   grep -v '^ *+' conftest.er1 >conftest.err
10278   rm -f conftest.er1
10279   cat conftest.err >&5
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } &&
10282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; } &&
10292          { ac_try='test -s conftest.$ac_objext'
10293   { (case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298   (eval "$ac_try") 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302   ac_lo=0 ac_mid=0
10303   while :; do
10304     cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310 $ac_includes_default
10311                    typedef ssize_t ac__type_sizeof_;
10312 int
10313 main ()
10314 {
10315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10316 test_array [0] = 0
10317
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext
10323 if { (ac_try="$ac_compile"
10324 case "(($ac_try" in
10325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326   *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329   (eval "$ac_compile") 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } &&
10336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10337   { (case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342   (eval "$ac_try") 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); }; } &&
10346          { ac_try='test -s conftest.$ac_objext'
10347   { (case "(($ac_try" in
10348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349   *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352   (eval "$ac_try") 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); }; }; then
10356   ac_hi=$ac_mid; break
10357 else
10358   echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361         ac_lo=`expr $ac_mid + 1`
10362                         if test $ac_lo -le $ac_mid; then
10363                           ac_lo= ac_hi=
10364                           break
10365                         fi
10366                         ac_mid=`expr 2 '*' $ac_mid + 1`
10367 fi
10368
10369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370   done
10371 else
10372   echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375         cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381 $ac_includes_default
10382                    typedef ssize_t ac__type_sizeof_;
10383 int
10384 main ()
10385 {
10386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10387 test_array [0] = 0
10388
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397   *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400   (eval "$ac_compile") 2>conftest.er1
10401   ac_status=$?
10402   grep -v '^ *+' conftest.er1 >conftest.err
10403   rm -f conftest.er1
10404   cat conftest.err >&5
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } &&
10407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10408   { (case "(($ac_try" in
10409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410   *) ac_try_echo=$ac_try;;
10411 esac
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413   (eval "$ac_try") 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; } &&
10417          { ac_try='test -s conftest.$ac_objext'
10418   { (case "(($ac_try" in
10419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420   *) ac_try_echo=$ac_try;;
10421 esac
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423   (eval "$ac_try") 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; }; then
10427   ac_hi=-1 ac_mid=-1
10428   while :; do
10429     cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h.  */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h.  */
10435 $ac_includes_default
10436                    typedef ssize_t ac__type_sizeof_;
10437 int
10438 main ()
10439 {
10440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10441 test_array [0] = 0
10442
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (ac_try="$ac_compile"
10449 case "(($ac_try" in
10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451   *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454   (eval "$ac_compile") 2>conftest.er1
10455   ac_status=$?
10456   grep -v '^ *+' conftest.er1 >conftest.err
10457   rm -f conftest.er1
10458   cat conftest.err >&5
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } &&
10461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10462   { (case "(($ac_try" in
10463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464   *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467   (eval "$ac_try") 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; } &&
10471          { ac_try='test -s conftest.$ac_objext'
10472   { (case "(($ac_try" in
10473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474   *) ac_try_echo=$ac_try;;
10475 esac
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477   (eval "$ac_try") 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; }; then
10481   ac_lo=$ac_mid; break
10482 else
10483   echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486         ac_hi=`expr '(' $ac_mid ')' - 1`
10487                         if test $ac_mid -le $ac_hi; then
10488                           ac_lo= ac_hi=
10489                           break
10490                         fi
10491                         ac_mid=`expr 2 '*' $ac_mid`
10492 fi
10493
10494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10495   done
10496 else
10497   echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500         ac_lo= ac_hi=
10501 fi
10502
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 fi
10505
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 # Binary search between lo and hi bounds.
10508 while test "x$ac_lo" != "x$ac_hi"; do
10509   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10510   cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h.  */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h.  */
10516 $ac_includes_default
10517                    typedef ssize_t ac__type_sizeof_;
10518 int
10519 main ()
10520 {
10521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10522 test_array [0] = 0
10523
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext
10529 if { (ac_try="$ac_compile"
10530 case "(($ac_try" in
10531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532   *) ac_try_echo=$ac_try;;
10533 esac
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535   (eval "$ac_compile") 2>conftest.er1
10536   ac_status=$?
10537   grep -v '^ *+' conftest.er1 >conftest.err
10538   rm -f conftest.er1
10539   cat conftest.err >&5
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } &&
10542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10543   { (case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548   (eval "$ac_try") 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; } &&
10552          { ac_try='test -s conftest.$ac_objext'
10553   { (case "(($ac_try" in
10554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555   *) ac_try_echo=$ac_try;;
10556 esac
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558   (eval "$ac_try") 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; }; then
10562   ac_hi=$ac_mid
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567         ac_lo=`expr '(' $ac_mid ')' + 1`
10568 fi
10569
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571 done
10572 case $ac_lo in
10573 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
10574 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10575 See \`config.log' for more details." >&5
10576 echo "$as_me: error: cannot compute sizeof (ssize_t)
10577 See \`config.log' for more details." >&2;}
10578    { (exit 77); exit 77; }; } ;;
10579 esac
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587 $ac_includes_default
10588                    typedef ssize_t ac__type_sizeof_;
10589 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10590 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10591 #include <stdio.h>
10592 #include <stdlib.h>
10593 int
10594 main ()
10595 {
10596
10597   FILE *f = fopen ("conftest.val", "w");
10598   if (! f)
10599     return 1;
10600   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10601     {
10602       long int i = longval ();
10603       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10604         return 1;
10605       fprintf (f, "%ld\n", i);
10606     }
10607   else
10608     {
10609       unsigned long int i = ulongval ();
10610       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10611         return 1;
10612       fprintf (f, "%lu\n", i);
10613     }
10614   return ferror (f) || fclose (f) != 0;
10615
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest$ac_exeext
10621 if { (ac_try="$ac_link"
10622 case "(($ac_try" in
10623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624   *) ac_try_echo=$ac_try;;
10625 esac
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627   (eval "$ac_link") 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10631   { (case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_try") 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; }; then
10640   ac_cv_sizeof_ssize_t=`cat conftest.val`
10641 else
10642   echo "$as_me: program exited with status $ac_status" >&5
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646 ( exit $ac_status )
10647 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10648 See \`config.log' for more details." >&5
10649 echo "$as_me: error: cannot compute sizeof (ssize_t)
10650 See \`config.log' for more details." >&2;}
10651    { (exit 77); exit 77; }; }
10652 fi
10653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10654 fi
10655 rm -f conftest.val
10656 else
10657   ac_cv_sizeof_ssize_t=0
10658 fi
10659 fi
10660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
10661 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
10662 cat >>confdefs.h <<_ACEOF
10663 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
10664 _ACEOF
10665
10666
10667
10668 { echo "$as_me:$LINENO: checking for intptr_t" >&5
10669 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
10670 if test "${ac_cv_type_intptr_t+set}" = set; then
10671   echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673   cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h.  */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h.  */
10679 $ac_includes_default
10680 typedef intptr_t ac__type_new_;
10681 int
10682 main ()
10683 {
10684 if ((ac__type_new_ *) 0)
10685   return 0;
10686 if (sizeof (ac__type_new_))
10687   return 0;
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (ac_try="$ac_compile"
10694 case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699   (eval "$ac_compile") 2>conftest.er1
10700   ac_status=$?
10701   grep -v '^ *+' conftest.er1 >conftest.err
10702   rm -f conftest.er1
10703   cat conftest.err >&5
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); } &&
10706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10707   { (case "(($ac_try" in
10708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709   *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712   (eval "$ac_try") 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; } &&
10716          { ac_try='test -s conftest.$ac_objext'
10717   { (case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722   (eval "$ac_try") 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; }; then
10726   ac_cv_type_intptr_t=yes
10727 else
10728   echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731         ac_cv_type_intptr_t=no
10732 fi
10733
10734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 fi
10736 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
10737 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
10738 if test $ac_cv_type_intptr_t = yes; then
10739   :
10740 else
10741
10742 cat >>confdefs.h <<_ACEOF
10743 #define intptr_t unsigned long long
10744 _ACEOF
10745
10746 fi
10747
10748 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10749 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10750 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 $ac_includes_default
10760 typedef ptrdiff_t ac__type_new_;
10761 int
10762 main ()
10763 {
10764 if ((ac__type_new_ *) 0)
10765   return 0;
10766 if (sizeof (ac__type_new_))
10767   return 0;
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 rm -f conftest.$ac_objext
10773 if { (ac_try="$ac_compile"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_compile") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10787   { (case "(($ac_try" in
10788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789   *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792   (eval "$ac_try") 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; } &&
10796          { ac_try='test -s conftest.$ac_objext'
10797   { (case "(($ac_try" in
10798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799   *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802   (eval "$ac_try") 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; }; then
10806   ac_cv_type_ptrdiff_t=yes
10807 else
10808   echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811         ac_cv_type_ptrdiff_t=no
10812 fi
10813
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 fi
10816 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10817 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10818 if test $ac_cv_type_ptrdiff_t = yes; then
10819   :
10820 else
10821
10822 cat >>confdefs.h <<_ACEOF
10823 #define ptrdiff_t unsigned long long
10824 _ACEOF
10825
10826 fi
10827
10828
10829 if test x"$ac_cv_type_long_long" != x"yes";then
10830         { { echo "$as_me:$LINENO: error: LIBREPLACE needs type 'long long'" >&5
10831 echo "$as_me: error: LIBREPLACE needs type 'long long'" >&2;}
10832    { (exit 1); exit 1; }; }
10833 fi
10834 if test $ac_cv_sizeof_long_long -lt 8;then
10835         { { echo "$as_me:$LINENO: error: LIBREPLACE needs sizeof(long long) >= 8" >&5
10836 echo "$as_me: error: LIBREPLACE needs sizeof(long long) >= 8" >&2;}
10837    { (exit 1); exit 1; }; }
10838 fi
10839
10840 ############################################
10841 # check if the compiler can do immediate structures
10842
10843 { echo "$as_me:$LINENO: checking for immediate structures" >&5
10844 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6; }
10845 if test "${libreplace_cv_immediate_structures+set}" = set; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848
10849         cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855
10856                 #include <stdio.h>
10857
10858 int
10859 main ()
10860 {
10861
10862                 typedef struct {unsigned x;} FOOBAR;
10863                 #define X_FOOBAR(x) ((FOOBAR) { x })
10864                 #define FOO_ONE X_FOOBAR(1)
10865                 FOOBAR f = FOO_ONE;
10866                 static const struct {
10867                         FOOBAR y;
10868                 } f2[] = {
10869                         {FOO_ONE}
10870                 };
10871
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 rm -f conftest.$ac_objext
10877 if { (ac_try="$ac_compile"
10878 case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_compile") 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } &&
10890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891   { (case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896   (eval "$ac_try") 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); }; } &&
10900          { ac_try='test -s conftest.$ac_objext'
10901   { (case "(($ac_try" in
10902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903   *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906   (eval "$ac_try") 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); }; }; then
10910   libreplace_cv_immediate_structures=yes
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915         libreplace_cv_immediate_structures=no
10916 fi
10917
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919
10920 fi
10921 { echo "$as_me:$LINENO: result: $libreplace_cv_immediate_structures" >&5
10922 echo "${ECHO_T}$libreplace_cv_immediate_structures" >&6; }
10923 if test x"$libreplace_cv_immediate_structures" = x"yes"; then
10924
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_IMMEDIATE_STRUCTURES 1
10927 _ACEOF
10928
10929 fi
10930
10931
10932 echo "LIBREPLACE_CC_CHECKS: END"
10933
10934
10935
10936 echo "LIBREPLACE_BROKEN_CHECKS: START"
10937
10938 libreplacedir=""
10939 for d in "$srcdir" "$srcdir/lib/replace" "$srcdir/libreplace" "$srcdir/../libreplace" "$srcdir/../replace"; do
10940         if test -f "$d/replace.c"; then
10941                 libreplacedir="$d"
10942
10943                 break;
10944         fi
10945 done
10946 LIBREPLACEOBJ="replace.o"
10947
10948
10949 LIBREPLACEOBJ="${LIBREPLACEOBJ} snprintf.o"
10950
10951 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10952 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10953 if test "${ac_cv_type_signal+set}" = set; then
10954   echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956   cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 #include <sys/types.h>
10963 #include <signal.h>
10964
10965 int
10966 main ()
10967 {
10968 return *(signal (0, 0)) (0) == 1;
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_compile") 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } &&
10987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10988   { (case "(($ac_try" in
10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990   *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993   (eval "$ac_try") 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; } &&
10997          { ac_try='test -s conftest.$ac_objext'
10998   { (case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_try") 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; }; then
11007   ac_cv_type_signal=int
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012         ac_cv_type_signal=void
11013 fi
11014
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 fi
11017 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11018 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11019
11020 cat >>confdefs.h <<_ACEOF
11021 #define RETSIGTYPE $ac_cv_type_signal
11022 _ACEOF
11023
11024
11025 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11026 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11027 if test "${ac_cv_type_uid_t+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 #include <sys/types.h>
11037
11038 _ACEOF
11039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11040   $EGREP "uid_t" >/dev/null 2>&1; then
11041   ac_cv_type_uid_t=yes
11042 else
11043   ac_cv_type_uid_t=no
11044 fi
11045 rm -f conftest*
11046
11047 fi
11048 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11049 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11050 if test $ac_cv_type_uid_t = no; then
11051
11052 cat >>confdefs.h <<\_ACEOF
11053 #define uid_t int
11054 _ACEOF
11055
11056
11057 cat >>confdefs.h <<\_ACEOF
11058 #define gid_t int
11059 _ACEOF
11060
11061 fi
11062
11063 { echo "$as_me:$LINENO: checking for mode_t" >&5
11064 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11065 if test "${ac_cv_type_mode_t+set}" = set; then
11066   echo $ECHO_N "(cached) $ECHO_C" >&6
11067 else
11068   cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h.  */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h.  */
11074 $ac_includes_default
11075 typedef mode_t ac__type_new_;
11076 int
11077 main ()
11078 {
11079 if ((ac__type_new_ *) 0)
11080   return 0;
11081 if (sizeof (ac__type_new_))
11082   return 0;
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (ac_try="$ac_compile"
11089 case "(($ac_try" in
11090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091   *) ac_try_echo=$ac_try;;
11092 esac
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094   (eval "$ac_compile") 2>conftest.er1
11095   ac_status=$?
11096   grep -v '^ *+' conftest.er1 >conftest.err
11097   rm -f conftest.er1
11098   cat conftest.err >&5
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); } &&
11101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11102   { (case "(($ac_try" in
11103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104   *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107   (eval "$ac_try") 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; } &&
11111          { ac_try='test -s conftest.$ac_objext'
11112   { (case "(($ac_try" in
11113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114   *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117   (eval "$ac_try") 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; }; then
11121   ac_cv_type_mode_t=yes
11122 else
11123   echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126         ac_cv_type_mode_t=no
11127 fi
11128
11129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11130 fi
11131 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11132 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11133 if test $ac_cv_type_mode_t = yes; then
11134   :
11135 else
11136
11137 cat >>confdefs.h <<_ACEOF
11138 #define mode_t int
11139 _ACEOF
11140
11141 fi
11142
11143 { echo "$as_me:$LINENO: checking for off_t" >&5
11144 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11145 if test "${ac_cv_type_off_t+set}" = set; then
11146   echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148   cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h.  */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h.  */
11154 $ac_includes_default
11155 typedef off_t ac__type_new_;
11156 int
11157 main ()
11158 {
11159 if ((ac__type_new_ *) 0)
11160   return 0;
11161 if (sizeof (ac__type_new_))
11162   return 0;
11163   ;
11164   return 0;
11165 }
11166 _ACEOF
11167 rm -f conftest.$ac_objext
11168 if { (ac_try="$ac_compile"
11169 case "(($ac_try" in
11170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171   *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174   (eval "$ac_compile") 2>conftest.er1
11175   ac_status=$?
11176   grep -v '^ *+' conftest.er1 >conftest.err
11177   rm -f conftest.er1
11178   cat conftest.err >&5
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11182   { (case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_try") 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; } &&
11191          { ac_try='test -s conftest.$ac_objext'
11192   { (case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_try") 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; }; then
11201   ac_cv_type_off_t=yes
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206         ac_cv_type_off_t=no
11207 fi
11208
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 fi
11211 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11212 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11213 if test $ac_cv_type_off_t = yes; then
11214   :
11215 else
11216
11217 cat >>confdefs.h <<_ACEOF
11218 #define off_t long int
11219 _ACEOF
11220
11221 fi
11222
11223 { echo "$as_me:$LINENO: checking for size_t" >&5
11224 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11225 if test "${ac_cv_type_size_t+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h.  */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h.  */
11234 $ac_includes_default
11235 typedef size_t ac__type_new_;
11236 int
11237 main ()
11238 {
11239 if ((ac__type_new_ *) 0)
11240   return 0;
11241 if (sizeof (ac__type_new_))
11242   return 0;
11243   ;
11244   return 0;
11245 }
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251   *) ac_try_echo=$ac_try;;
11252 esac
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254   (eval "$ac_compile") 2>conftest.er1
11255   ac_status=$?
11256   grep -v '^ *+' conftest.er1 >conftest.err
11257   rm -f conftest.er1
11258   cat conftest.err >&5
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); } &&
11261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11262   { (case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267   (eval "$ac_try") 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; } &&
11271          { ac_try='test -s conftest.$ac_objext'
11272   { (case "(($ac_try" in
11273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274   *) ac_try_echo=$ac_try;;
11275 esac
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277   (eval "$ac_try") 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; }; then
11281   ac_cv_type_size_t=yes
11282 else
11283   echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286         ac_cv_type_size_t=no
11287 fi
11288
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290 fi
11291 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11292 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11293 if test $ac_cv_type_size_t = yes; then
11294   :
11295 else
11296
11297 cat >>confdefs.h <<_ACEOF
11298 #define size_t unsigned int
11299 _ACEOF
11300
11301 fi
11302
11303 { echo "$as_me:$LINENO: checking for pid_t" >&5
11304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11305 if test "${ac_cv_type_pid_t+set}" = set; then
11306   echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308   cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314 $ac_includes_default
11315 typedef pid_t ac__type_new_;
11316 int
11317 main ()
11318 {
11319 if ((ac__type_new_ *) 0)
11320   return 0;
11321 if (sizeof (ac__type_new_))
11322   return 0;
11323   ;
11324   return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_compile") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } &&
11341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; } &&
11351          { ac_try='test -s conftest.$ac_objext'
11352   { (case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357   (eval "$ac_try") 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; }; then
11361   ac_cv_type_pid_t=yes
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366         ac_cv_type_pid_t=no
11367 fi
11368
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 fi
11371 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11372 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11373 if test $ac_cv_type_pid_t = yes; then
11374   :
11375 else
11376
11377 cat >>confdefs.h <<_ACEOF
11378 #define pid_t int
11379 _ACEOF
11380
11381 fi
11382
11383 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11384 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
11385 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h.  */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h.  */
11394 $ac_includes_default
11395 int
11396 main ()
11397 {
11398 static struct stat ac_aggr;
11399 if (ac_aggr.st_rdev)
11400 return 0;
11401   ;
11402   return 0;
11403 }
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (ac_try="$ac_compile"
11407 case "(($ac_try" in
11408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409   *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412   (eval "$ac_compile") 2>conftest.er1
11413   ac_status=$?
11414   grep -v '^ *+' conftest.er1 >conftest.err
11415   rm -f conftest.er1
11416   cat conftest.err >&5
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); } &&
11419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11420   { (case "(($ac_try" in
11421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422   *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425   (eval "$ac_try") 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); }; } &&
11429          { ac_try='test -s conftest.$ac_objext'
11430   { (case "(($ac_try" in
11431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432   *) ac_try_echo=$ac_try;;
11433 esac
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435   (eval "$ac_try") 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; }; then
11439   ac_cv_member_struct_stat_st_rdev=yes
11440 else
11441   echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11443
11444         cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h.  */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h.  */
11450 $ac_includes_default
11451 int
11452 main ()
11453 {
11454 static struct stat ac_aggr;
11455 if (sizeof ac_aggr.st_rdev)
11456 return 0;
11457   ;
11458   return 0;
11459 }
11460 _ACEOF
11461 rm -f conftest.$ac_objext
11462 if { (ac_try="$ac_compile"
11463 case "(($ac_try" in
11464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465   *) ac_try_echo=$ac_try;;
11466 esac
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468   (eval "$ac_compile") 2>conftest.er1
11469   ac_status=$?
11470   grep -v '^ *+' conftest.er1 >conftest.err
11471   rm -f conftest.er1
11472   cat conftest.err >&5
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } &&
11475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476   { (case "(($ac_try" in
11477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478   *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481   (eval "$ac_try") 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; } &&
11485          { ac_try='test -s conftest.$ac_objext'
11486   { (case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_try") 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; }; then
11495   ac_cv_member_struct_stat_st_rdev=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500         ac_cv_member_struct_stat_st_rdev=no
11501 fi
11502
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 fi
11505
11506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11507 fi
11508 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11509 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
11510 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11511
11512 cat >>confdefs.h <<_ACEOF
11513 #define HAVE_STRUCT_STAT_ST_RDEV 1
11514 _ACEOF
11515
11516
11517 cat >>confdefs.h <<\_ACEOF
11518 #define HAVE_ST_RDEV 1
11519 _ACEOF
11520
11521 fi
11522
11523
11524 { echo "$as_me:$LINENO: checking for ino_t" >&5
11525 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
11526 if test "${ac_cv_type_ino_t+set}" = set; then
11527   echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529   cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h.  */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h.  */
11535 $ac_includes_default
11536 typedef ino_t ac__type_new_;
11537 int
11538 main ()
11539 {
11540 if ((ac__type_new_ *) 0)
11541   return 0;
11542 if (sizeof (ac__type_new_))
11543   return 0;
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext
11549 if { (ac_try="$ac_compile"
11550 case "(($ac_try" in
11551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552   *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555   (eval "$ac_compile") 2>conftest.er1
11556   ac_status=$?
11557   grep -v '^ *+' conftest.er1 >conftest.err
11558   rm -f conftest.er1
11559   cat conftest.err >&5
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11563   { (case "(($ac_try" in
11564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565   *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568   (eval "$ac_try") 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; } &&
11572          { ac_try='test -s conftest.$ac_objext'
11573   { (case "(($ac_try" in
11574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575   *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578   (eval "$ac_try") 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); }; }; then
11582   ac_cv_type_ino_t=yes
11583 else
11584   echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11586
11587         ac_cv_type_ino_t=no
11588 fi
11589
11590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591 fi
11592 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11593 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
11594 if test $ac_cv_type_ino_t = yes; then
11595   :
11596 else
11597
11598 cat >>confdefs.h <<_ACEOF
11599 #define ino_t unsigned
11600 _ACEOF
11601
11602 fi
11603
11604 { echo "$as_me:$LINENO: checking for loff_t" >&5
11605 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6; }
11606 if test "${ac_cv_type_loff_t+set}" = set; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h.  */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h.  */
11615 $ac_includes_default
11616 typedef loff_t ac__type_new_;
11617 int
11618 main ()
11619 {
11620 if ((ac__type_new_ *) 0)
11621   return 0;
11622 if (sizeof (ac__type_new_))
11623   return 0;
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext
11629 if { (ac_try="$ac_compile"
11630 case "(($ac_try" in
11631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632   *) ac_try_echo=$ac_try;;
11633 esac
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635   (eval "$ac_compile") 2>conftest.er1
11636   ac_status=$?
11637   grep -v '^ *+' conftest.er1 >conftest.err
11638   rm -f conftest.er1
11639   cat conftest.err >&5
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11643   { (case "(($ac_try" in
11644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645   *) ac_try_echo=$ac_try;;
11646 esac
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648   (eval "$ac_try") 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; } &&
11652          { ac_try='test -s conftest.$ac_objext'
11653   { (case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_try") 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   ac_cv_type_loff_t=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667         ac_cv_type_loff_t=no
11668 fi
11669
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 fi
11672 { echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
11673 echo "${ECHO_T}$ac_cv_type_loff_t" >&6; }
11674 if test $ac_cv_type_loff_t = yes; then
11675   :
11676 else
11677
11678 cat >>confdefs.h <<_ACEOF
11679 #define loff_t off_t
11680 _ACEOF
11681
11682 fi
11683
11684 { echo "$as_me:$LINENO: checking for offset_t" >&5
11685 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6; }
11686 if test "${ac_cv_type_offset_t+set}" = set; then
11687   echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689   cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h.  */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h.  */
11695 $ac_includes_default
11696 typedef offset_t ac__type_new_;
11697 int
11698 main ()
11699 {
11700 if ((ac__type_new_ *) 0)
11701   return 0;
11702 if (sizeof (ac__type_new_))
11703   return 0;
11704   ;
11705   return 0;
11706 }
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (ac_try="$ac_compile"
11710 case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_compile") 2>conftest.er1
11716   ac_status=$?
11717   grep -v '^ *+' conftest.er1 >conftest.err
11718   rm -f conftest.er1
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } &&
11722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11723   { (case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_try") 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; } &&
11732          { ac_try='test -s conftest.$ac_objext'
11733   { (case "(($ac_try" in
11734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735   *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738   (eval "$ac_try") 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; }; then
11742   ac_cv_type_offset_t=yes
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747         ac_cv_type_offset_t=no
11748 fi
11749
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11751 fi
11752 { echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
11753 echo "${ECHO_T}$ac_cv_type_offset_t" >&6; }
11754 if test $ac_cv_type_offset_t = yes; then
11755   :
11756 else
11757
11758 cat >>confdefs.h <<_ACEOF
11759 #define offset_t loff_t
11760 _ACEOF
11761
11762 fi
11763
11764
11765 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11766 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11767 if test "${ac_cv_func_memcmp_working+set}" = set; then
11768   echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770   if test "$cross_compiling" = yes; then
11771   ac_cv_func_memcmp_working=no
11772 else
11773   cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h.  */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h.  */
11779 $ac_includes_default
11780 int
11781 main ()
11782 {
11783
11784   /* Some versions of memcmp are not 8-bit clean.  */
11785   char c0 = '\100', c1 = '\200', c2 = '\201';
11786   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11787     return 1;
11788
11789   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11790      or more and with at least one buffer not starting on a 4-byte boundary.
11791      William Lewis provided this test program.   */
11792   {
11793     char foo[21];
11794     char bar[21];
11795     int i;
11796     for (i = 0; i < 4; i++)
11797       {
11798         char *a = foo + i;
11799         char *b = bar + i;
11800         strcpy (a, "--------01111111");
11801         strcpy (b, "--------10000000");
11802         if (memcmp (a, b, 16) >= 0)
11803           return 1;
11804       }
11805     return 0;
11806   }
11807
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest$ac_exeext
11813 if { (ac_try="$ac_link"
11814 case "(($ac_try" in
11815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816   *) ac_try_echo=$ac_try;;
11817 esac
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819   (eval "$ac_link") 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11823   { (case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_try") 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_cv_func_memcmp_working=yes
11833 else
11834   echo "$as_me: program exited with status $ac_status" >&5
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 ( exit $ac_status )
11839 ac_cv_func_memcmp_working=no
11840 fi
11841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11842 fi
11843
11844
11845 fi
11846 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11847 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11848 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11849   *" memcmp.$ac_objext "* ) ;;
11850   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11851  ;;
11852 esac
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866 for ac_func in pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp
11867 do
11868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11882 #define $ac_func innocuous_$ac_func
11883
11884 /* System header to define __stub macros and hopefully few prototypes,
11885     which can conflict with char $ac_func (); below.
11886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887     <limits.h> exists even on freestanding compilers.  */
11888
11889 #ifdef __STDC__
11890 # include <limits.h>
11891 #else
11892 # include <assert.h>
11893 #endif
11894
11895 #undef $ac_func
11896
11897 /* Override any GCC internal prototype to avoid an error.
11898    Use char because int might match the return type of a GCC
11899    builtin and then its argument prototype would still apply.  */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char $ac_func ();
11904 /* The GNU C library defines this for functions which it implements
11905     to always fail with ENOSYS.  Some functions are actually named
11906     something starting with __ and the normal name is an alias.  */
11907 #if defined __stub_$ac_func || defined __stub___$ac_func
11908 choke me
11909 #endif
11910
11911 int
11912 main ()
11913 {
11914 return $ac_func ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923   *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926   (eval "$ac_link") 2>conftest.er1
11927   ac_status=$?
11928   grep -v '^ *+' conftest.er1 >conftest.err
11929   rm -f conftest.er1
11930   cat conftest.err >&5
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } &&
11933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11934   { (case "(($ac_try" in
11935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936   *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939   (eval "$ac_try") 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; } &&
11943          { ac_try='test -s conftest$ac_exeext'
11944   { (case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_try") 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; }; then
11953   eval "$as_ac_var=yes"
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958         eval "$as_ac_var=no"
11959 fi
11960
11961 rm -f core conftest.err conftest.$ac_objext \
11962       conftest$ac_exeext conftest.$ac_ext
11963 fi
11964 ac_res=`eval echo '${'$as_ac_var'}'`
11965                { echo "$as_me:$LINENO: result: $ac_res" >&5
11966 echo "${ECHO_T}$ac_res" >&6; }
11967 if test `eval echo '${'$as_ac_var'}'` = yes; then
11968   cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11970 _ACEOF
11971
11972 fi
11973 done
11974
11975
11976
11977
11978 for ac_header in stdbool.h sys/select.h
11979 do
11980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11982   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 fi
11987 ac_res=`eval echo '${'$as_ac_Header'}'`
11988                { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11990 else
11991   # Is the header compilable?
11992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11994 cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h.  */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h.  */
12000 $ac_includes_default
12001 #include <$ac_header>
12002 _ACEOF
12003 rm -f conftest.$ac_objext
12004 if { (ac_try="$ac_compile"
12005 case "(($ac_try" in
12006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007   *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010   (eval "$ac_compile") 2>conftest.er1
12011   ac_status=$?
12012   grep -v '^ *+' conftest.er1 >conftest.err
12013   rm -f conftest.er1
12014   cat conftest.err >&5
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); } &&
12017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12018   { (case "(($ac_try" in
12019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020   *) ac_try_echo=$ac_try;;
12021 esac
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023   (eval "$ac_try") 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; } &&
12027          { ac_try='test -s conftest.$ac_objext'
12028   { (case "(($ac_try" in
12029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030   *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033   (eval "$ac_try") 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; }; then
12037   ac_header_compiler=yes
12038 else
12039   echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042         ac_header_compiler=no
12043 fi
12044
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12047 echo "${ECHO_T}$ac_header_compiler" >&6; }
12048
12049 # Is the header present?
12050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h.  */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h.  */
12058 #include <$ac_header>
12059 _ACEOF
12060 if { (ac_try="$ac_cpp conftest.$ac_ext"
12061 case "(($ac_try" in
12062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063   *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12067   ac_status=$?
12068   grep -v '^ *+' conftest.er1 >conftest.err
12069   rm -f conftest.er1
12070   cat conftest.err >&5
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); } >/dev/null; then
12073   if test -s conftest.err; then
12074     ac_cpp_err=$ac_c_preproc_warn_flag
12075     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12076   else
12077     ac_cpp_err=
12078   fi
12079 else
12080   ac_cpp_err=yes
12081 fi
12082 if test -z "$ac_cpp_err"; then
12083   ac_header_preproc=yes
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088   ac_header_preproc=no
12089 fi
12090
12091 rm -f conftest.err conftest.$ac_ext
12092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12093 echo "${ECHO_T}$ac_header_preproc" >&6; }
12094
12095 # So?  What about this header?
12096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12097   yes:no: )
12098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12102     ac_header_preproc=yes
12103     ;;
12104   no:yes:* )
12105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12117
12118     ;;
12119 esac
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   eval "$as_ac_Header=\$ac_header_preproc"
12126 fi
12127 ac_res=`eval echo '${'$as_ac_Header'}'`
12128                { echo "$as_me:$LINENO: result: $ac_res" >&5
12129 echo "${ECHO_T}$ac_res" >&6; }
12130
12131 fi
12132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12133   cat >>confdefs.h <<_ACEOF
12134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12135 _ACEOF
12136
12137 fi
12138
12139 done
12140
12141
12142
12143 for ac_header in sys/epoll.h
12144 do
12145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12150   echo $ECHO_N "(cached) $ECHO_C" >&6
12151 fi
12152 ac_res=`eval echo '${'$as_ac_Header'}'`
12153                { echo "$as_me:$LINENO: result: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12155 else
12156   # Is the header compilable?
12157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12159 cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165 $ac_includes_default
12166 #include <$ac_header>
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172   *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175   (eval "$ac_compile") 2>conftest.er1
12176   ac_status=$?
12177   grep -v '^ *+' conftest.er1 >conftest.err
12178   rm -f conftest.er1
12179   cat conftest.err >&5
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } &&
12182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12183   { (case "(($ac_try" in
12184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185   *) ac_try_echo=$ac_try;;
12186 esac
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188   (eval "$ac_try") 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; } &&
12192          { ac_try='test -s conftest.$ac_objext'
12193   { (case "(($ac_try" in
12194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195   *) ac_try_echo=$ac_try;;
12196 esac
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198   (eval "$ac_try") 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; }; then
12202   ac_header_compiler=yes
12203 else
12204   echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12206
12207         ac_header_compiler=no
12208 fi
12209
12210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12212 echo "${ECHO_T}$ac_header_compiler" >&6; }
12213
12214 # Is the header present?
12215 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h.  */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h.  */
12223 #include <$ac_header>
12224 _ACEOF
12225 if { (ac_try="$ac_cpp conftest.$ac_ext"
12226 case "(($ac_try" in
12227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228   *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12232   ac_status=$?
12233   grep -v '^ *+' conftest.er1 >conftest.err
12234   rm -f conftest.er1
12235   cat conftest.err >&5
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } >/dev/null; then
12238   if test -s conftest.err; then
12239     ac_cpp_err=$ac_c_preproc_warn_flag
12240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12241   else
12242     ac_cpp_err=
12243   fi
12244 else
12245   ac_cpp_err=yes
12246 fi
12247 if test -z "$ac_cpp_err"; then
12248   ac_header_preproc=yes
12249 else
12250   echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253   ac_header_preproc=no
12254 fi
12255
12256 rm -f conftest.err conftest.$ac_ext
12257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12258 echo "${ECHO_T}$ac_header_preproc" >&6; }
12259
12260 # So?  What about this header?
12261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12262   yes:no: )
12263     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12267     ac_header_preproc=yes
12268     ;;
12269   no:yes:* )
12270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12272     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12273 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12274     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12276     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12277 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12280     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12282
12283     ;;
12284 esac
12285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12288   echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290   eval "$as_ac_Header=\$ac_header_preproc"
12291 fi
12292 ac_res=`eval echo '${'$as_ac_Header'}'`
12293                { echo "$as_me:$LINENO: result: $ac_res" >&5
12294 echo "${ECHO_T}$ac_res" >&6; }
12295
12296 fi
12297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12298   cat >>confdefs.h <<_ACEOF
12299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12300 _ACEOF
12301
12302 fi
12303
12304 done
12305
12306
12307 for ac_func in epoll_create
12308 do
12309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315   cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12323 #define $ac_func innocuous_$ac_func
12324
12325 /* System header to define __stub macros and hopefully few prototypes,
12326     which can conflict with char $ac_func (); below.
12327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12328     <limits.h> exists even on freestanding compilers.  */
12329
12330 #ifdef __STDC__
12331 # include <limits.h>
12332 #else
12333 # include <assert.h>
12334 #endif
12335
12336 #undef $ac_func
12337
12338 /* Override any GCC internal prototype to avoid an error.
12339    Use char because int might match the return type of a GCC
12340    builtin and then its argument prototype would still apply.  */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 char $ac_func ();
12345 /* The GNU C library defines this for functions which it implements
12346     to always fail with ENOSYS.  Some functions are actually named
12347     something starting with __ and the normal name is an alias.  */
12348 #if defined __stub_$ac_func || defined __stub___$ac_func
12349 choke me
12350 #endif
12351
12352 int
12353 main ()
12354 {
12355 return $ac_func ();
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (ac_try="$ac_link"
12362 case "(($ac_try" in
12363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364   *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367   (eval "$ac_link") 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } &&
12374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12375   { (case "(($ac_try" in
12376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377   *) ac_try_echo=$ac_try;;
12378 esac
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380   (eval "$ac_try") 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; } &&
12384          { ac_try='test -s conftest$ac_exeext'
12385   { (case "(($ac_try" in
12386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387   *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390   (eval "$ac_try") 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; }; then
12394   eval "$as_ac_var=yes"
12395 else
12396   echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12398
12399         eval "$as_ac_var=no"
12400 fi
12401
12402 rm -f core conftest.err conftest.$ac_objext \
12403       conftest$ac_exeext conftest.$ac_ext
12404 fi
12405 ac_res=`eval echo '${'$as_ac_var'}'`
12406                { echo "$as_me:$LINENO: result: $ac_res" >&5
12407 echo "${ECHO_T}$ac_res" >&6; }
12408 if test `eval echo '${'$as_ac_var'}'` = yes; then
12409   cat >>confdefs.h <<_ACEOF
12410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12411 _ACEOF
12412
12413 fi
12414 done
12415
12416
12417 { echo "$as_me:$LINENO: checking for bool" >&5
12418 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
12419 if test "${ac_cv_type_bool+set}" = set; then
12420   echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422   cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h.  */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h.  */
12428
12429 $ac_includes_default
12430 #ifdef HAVE_STDBOOL_H
12431 #include <stdbool.h>
12432 #endif
12433
12434
12435 typedef bool ac__type_new_;
12436 int
12437 main ()
12438 {
12439 if ((ac__type_new_ *) 0)
12440   return 0;
12441 if (sizeof (ac__type_new_))
12442   return 0;
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext
12448 if { (ac_try="$ac_compile"
12449 case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454   (eval "$ac_compile") 2>conftest.er1
12455   ac_status=$?
12456   grep -v '^ *+' conftest.er1 >conftest.err
12457   rm -f conftest.er1
12458   cat conftest.err >&5
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); } &&
12461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12462   { (case "(($ac_try" in
12463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464   *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467   (eval "$ac_try") 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; } &&
12471          { ac_try='test -s conftest.$ac_objext'
12472   { (case "(($ac_try" in
12473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474   *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477   (eval "$ac_try") 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; }; then
12481   ac_cv_type_bool=yes
12482 else
12483   echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486         ac_cv_type_bool=no
12487 fi
12488
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 fi
12491 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
12492 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
12493 if test $ac_cv_type_bool = yes; then
12494
12495 cat >>confdefs.h <<\_ACEOF
12496 #define HAVE_BOOL 1
12497 _ACEOF
12498
12499 fi
12500
12501
12502 { echo "$as_me:$LINENO: checking for _Bool" >&5
12503 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12504 if test "${ac_cv_type__Bool+set}" = set; then
12505   echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507   cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513
12514 $ac_includes_default
12515 #ifdef HAVE_STDBOOL_H
12516 #include <stdbool.h>
12517 #endif
12518
12519
12520 typedef _Bool ac__type_new_;
12521 int
12522 main ()
12523 {
12524 if ((ac__type_new_ *) 0)
12525   return 0;
12526 if (sizeof (ac__type_new_))
12527   return 0;
12528   ;
12529   return 0;
12530 }
12531 _ACEOF
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536   *) ac_try_echo=$ac_try;;
12537 esac
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539   (eval "$ac_compile") 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547   { (case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552   (eval "$ac_try") 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest.$ac_objext'
12557   { (case "(($ac_try" in
12558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559   *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562   (eval "$ac_try") 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; }; then
12566   ac_cv_type__Bool=yes
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571         ac_cv_type__Bool=no
12572 fi
12573
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575 fi
12576 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12577 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12578 if test $ac_cv_type__Bool = yes; then
12579
12580 cat >>confdefs.h <<\_ACEOF
12581 #define HAVE__Bool 1
12582 _ACEOF
12583
12584 fi
12585
12586
12587 { echo "$as_me:$LINENO: checking for working mmap" >&5
12588 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12589 if test "${samba_cv_HAVE_MMAP+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592
12593 if test "$cross_compiling" = yes; then
12594   samba_cv_HAVE_MMAP=cross
12595 else
12596   cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602 #include "$libreplacedir/test/shared_mmap.c"
12603 _ACEOF
12604 rm -f conftest$ac_exeext
12605 if { (ac_try="$ac_link"
12606 case "(($ac_try" in
12607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608   *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611   (eval "$ac_link") 2>&5
12612   ac_status=$?
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12615   { (case "(($ac_try" in
12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617   *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620   (eval "$ac_try") 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); }; }; then
12624   samba_cv_HAVE_MMAP=yes
12625 else
12626   echo "$as_me: program exited with status $ac_status" >&5
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630 ( exit $ac_status )
12631 samba_cv_HAVE_MMAP=no
12632 fi
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12634 fi
12635
12636
12637 fi
12638 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
12639 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6; }
12640 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
12641
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_MMAP 1
12644 _ACEOF
12645
12646 fi
12647
12648
12649
12650
12651 for ac_header in sys/syslog.h syslog.h
12652 do
12653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12655   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12658   echo $ECHO_N "(cached) $ECHO_C" >&6
12659 fi
12660 ac_res=`eval echo '${'$as_ac_Header'}'`
12661                { echo "$as_me:$LINENO: result: $ac_res" >&5
12662 echo "${ECHO_T}$ac_res" >&6; }
12663 else
12664   # Is the header compilable?
12665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673 $ac_includes_default
12674 #include <$ac_header>
12675 _ACEOF
12676 rm -f conftest.$ac_objext
12677 if { (ac_try="$ac_compile"
12678 case "(($ac_try" in
12679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680   *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683   (eval "$ac_compile") 2>conftest.er1
12684   ac_status=$?
12685   grep -v '^ *+' conftest.er1 >conftest.err
12686   rm -f conftest.er1
12687   cat conftest.err >&5
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); } &&
12690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12691   { (case "(($ac_try" in
12692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693   *) ac_try_echo=$ac_try;;
12694 esac
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696   (eval "$ac_try") 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); }; } &&
12700          { ac_try='test -s conftest.$ac_objext'
12701   { (case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_try") 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; }; then
12710   ac_header_compiler=yes
12711 else
12712   echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715         ac_header_compiler=no
12716 fi
12717
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12720 echo "${ECHO_T}$ac_header_compiler" >&6; }
12721
12722 # Is the header present?
12723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h.  */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h.  */
12731 #include <$ac_header>
12732 _ACEOF
12733 if { (ac_try="$ac_cpp conftest.$ac_ext"
12734 case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12740   ac_status=$?
12741   grep -v '^ *+' conftest.er1 >conftest.err
12742   rm -f conftest.er1
12743   cat conftest.err >&5
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } >/dev/null; then
12746   if test -s conftest.err; then
12747     ac_cpp_err=$ac_c_preproc_warn_flag
12748     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12749   else
12750     ac_cpp_err=
12751   fi
12752 else
12753   ac_cpp_err=yes
12754 fi
12755 if test -z "$ac_cpp_err"; then
12756   ac_header_preproc=yes
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761   ac_header_preproc=no
12762 fi
12763
12764 rm -f conftest.err conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12766 echo "${ECHO_T}$ac_header_preproc" >&6; }
12767
12768 # So?  What about this header?
12769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12770   yes:no: )
12771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12775     ac_header_preproc=yes
12776     ;;
12777   no:yes:* )
12778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12780     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12781 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12782     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12784     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12785 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12788     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12790
12791     ;;
12792 esac
12793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12796   echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798   eval "$as_ac_Header=\$ac_header_preproc"
12799 fi
12800 ac_res=`eval echo '${'$as_ac_Header'}'`
12801                { echo "$as_me:$LINENO: result: $ac_res" >&5
12802 echo "${ECHO_T}$ac_res" >&6; }
12803
12804 fi
12805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12806   cat >>confdefs.h <<_ACEOF
12807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12808 _ACEOF
12809
12810 fi
12811
12812 done
12813
12814
12815
12816 for ac_header in sys/time.h time.h
12817 do
12818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12820   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12823   echo $ECHO_N "(cached) $ECHO_C" >&6
12824 fi
12825 ac_res=`eval echo '${'$as_ac_Header'}'`
12826                { echo "$as_me:$LINENO: result: $ac_res" >&5
12827 echo "${ECHO_T}$ac_res" >&6; }
12828 else
12829   # Is the header compilable?
12830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838 $ac_includes_default
12839 #include <$ac_header>
12840 _ACEOF
12841 rm -f conftest.$ac_objext
12842 if { (ac_try="$ac_compile"
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_compile") 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); } &&
12855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856   { (case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861   (eval "$ac_try") 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; } &&
12865          { ac_try='test -s conftest.$ac_objext'
12866   { (case "(($ac_try" in
12867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868   *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871   (eval "$ac_try") 2>&5
12872   ac_status=$?
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); }; }; then
12875   ac_header_compiler=yes
12876 else
12877   echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880         ac_header_compiler=no
12881 fi
12882
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12885 echo "${ECHO_T}$ac_header_compiler" >&6; }
12886
12887 # Is the header present?
12888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h.  */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h.  */
12896 #include <$ac_header>
12897 _ACEOF
12898 if { (ac_try="$ac_cpp conftest.$ac_ext"
12899 case "(($ac_try" in
12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901   *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12905   ac_status=$?
12906   grep -v '^ *+' conftest.er1 >conftest.err
12907   rm -f conftest.er1
12908   cat conftest.err >&5
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); } >/dev/null; then
12911   if test -s conftest.err; then
12912     ac_cpp_err=$ac_c_preproc_warn_flag
12913     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12914   else
12915     ac_cpp_err=
12916   fi
12917 else
12918   ac_cpp_err=yes
12919 fi
12920 if test -z "$ac_cpp_err"; then
12921   ac_header_preproc=yes
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926   ac_header_preproc=no
12927 fi
12928
12929 rm -f conftest.err conftest.$ac_ext
12930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12931 echo "${ECHO_T}$ac_header_preproc" >&6; }
12932
12933 # So?  What about this header?
12934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12935   yes:no: )
12936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12940     ac_header_preproc=yes
12941     ;;
12942   no:yes:* )
12943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12955
12956     ;;
12957 esac
12958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   eval "$as_ac_Header=\$ac_header_preproc"
12964 fi
12965 ac_res=`eval echo '${'$as_ac_Header'}'`
12966                { echo "$as_me:$LINENO: result: $ac_res" >&5
12967 echo "${ECHO_T}$ac_res" >&6; }
12968
12969 fi
12970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12971   cat >>confdefs.h <<_ACEOF
12972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12973 _ACEOF
12974
12975 fi
12976
12977 done
12978
12979
12980
12981 for ac_header in stdarg.h vararg.h
12982 do
12983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12985   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12988   echo $ECHO_N "(cached) $ECHO_C" >&6
12989 fi
12990 ac_res=`eval echo '${'$as_ac_Header'}'`
12991                { echo "$as_me:$LINENO: result: $ac_res" >&5
12992 echo "${ECHO_T}$ac_res" >&6; }
12993 else
12994   # Is the header compilable?
12995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12997 cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h.  */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h.  */
13003 $ac_includes_default
13004 #include <$ac_header>
13005 _ACEOF
13006 rm -f conftest.$ac_objext
13007 if { (ac_try="$ac_compile"
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_compile") 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); } &&
13020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13021   { (case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_try") 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); }; } &&
13030          { ac_try='test -s conftest.$ac_objext'
13031   { (case "(($ac_try" in
13032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033   *) ac_try_echo=$ac_try;;
13034 esac
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036   (eval "$ac_try") 2>&5
13037   ac_status=$?
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); }; }; then
13040   ac_header_compiler=yes
13041 else
13042   echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045         ac_header_compiler=no
13046 fi
13047
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13050 echo "${ECHO_T}$ac_header_compiler" >&6; }
13051
13052 # Is the header present?
13053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13055 cat >conftest.$ac_ext <<_ACEOF
13056 /* confdefs.h.  */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h.  */
13061 #include <$ac_header>
13062 _ACEOF
13063 if { (ac_try="$ac_cpp conftest.$ac_ext"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } >/dev/null; then
13076   if test -s conftest.err; then
13077     ac_cpp_err=$ac_c_preproc_warn_flag
13078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13079   else
13080     ac_cpp_err=
13081   fi
13082 else
13083   ac_cpp_err=yes
13084 fi
13085 if test -z "$ac_cpp_err"; then
13086   ac_header_preproc=yes
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091   ac_header_preproc=no
13092 fi
13093
13094 rm -f conftest.err conftest.$ac_ext
13095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13096 echo "${ECHO_T}$ac_header_preproc" >&6; }
13097
13098 # So?  What about this header?
13099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13100   yes:no: )
13101     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13105     ac_header_preproc=yes
13106     ;;
13107   no:yes:* )
13108     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13110     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13111 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13112     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13114     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13115 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13118     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13120
13121     ;;
13122 esac
13123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13126   echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128   eval "$as_ac_Header=\$ac_header_preproc"
13129 fi
13130 ac_res=`eval echo '${'$as_ac_Header'}'`
13131                { echo "$as_me:$LINENO: result: $ac_res" >&5
13132 echo "${ECHO_T}$ac_res" >&6; }
13133
13134 fi
13135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13136   cat >>confdefs.h <<_ACEOF
13137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13138 _ACEOF
13139
13140 fi
13141
13142 done
13143
13144
13145
13146
13147
13148 for ac_header in sys/socket.h netinet/in.h netdb.h arpa/inet.h
13149 do
13150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13152   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 fi
13157 ac_res=`eval echo '${'$as_ac_Header'}'`
13158                { echo "$as_me:$LINENO: result: $ac_res" >&5
13159 echo "${ECHO_T}$ac_res" >&6; }
13160 else
13161   # Is the header compilable?
13162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13163 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
13171 #include <$ac_header>
13172 _ACEOF
13173 rm -f conftest.$ac_objext
13174 if { (ac_try="$ac_compile"
13175 case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_compile") 2>conftest.er1
13181   ac_status=$?
13182   grep -v '^ *+' conftest.er1 >conftest.err
13183   rm -f conftest.er1
13184   cat conftest.err >&5
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); } &&
13187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13188   { (case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_try") 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); }; } &&
13197          { ac_try='test -s conftest.$ac_objext'
13198   { (case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_try") 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }; }; then
13207   ac_header_compiler=yes
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212         ac_header_compiler=no
13213 fi
13214
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13217 echo "${ECHO_T}$ac_header_compiler" >&6; }
13218
13219 # Is the header present?
13220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13222 cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h.  */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h.  */
13228 #include <$ac_header>
13229 _ACEOF
13230 if { (ac_try="$ac_cpp conftest.$ac_ext"
13231 case "(($ac_try" in
13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233   *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13237   ac_status=$?
13238   grep -v '^ *+' conftest.er1 >conftest.err
13239   rm -f conftest.er1
13240   cat conftest.err >&5
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); } >/dev/null; then
13243   if test -s conftest.err; then
13244     ac_cpp_err=$ac_c_preproc_warn_flag
13245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13246   else
13247     ac_cpp_err=
13248   fi
13249 else
13250   ac_cpp_err=yes
13251 fi
13252 if test -z "$ac_cpp_err"; then
13253   ac_header_preproc=yes
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258   ac_header_preproc=no
13259 fi
13260
13261 rm -f conftest.err conftest.$ac_ext
13262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13263 echo "${ECHO_T}$ac_header_preproc" >&6; }
13264
13265 # So?  What about this header?
13266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13267   yes:no: )
13268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13272     ac_header_preproc=yes
13273     ;;
13274   no:yes:* )
13275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13287
13288     ;;
13289 esac
13290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13293   echo $ECHO_N "(cached) $ECHO_C" >&6
13294 else
13295   eval "$as_ac_Header=\$ac_header_preproc"
13296 fi
13297 ac_res=`eval echo '${'$as_ac_Header'}'`
13298                { echo "$as_me:$LINENO: result: $ac_res" >&5
13299 echo "${ECHO_T}$ac_res" >&6; }
13300
13301 fi
13302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13303   cat >>confdefs.h <<_ACEOF
13304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13305 _ACEOF
13306
13307 fi
13308
13309 done
13310
13311
13312
13313
13314
13315 for ac_header in netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
13316 do
13317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13322   echo $ECHO_N "(cached) $ECHO_C" >&6
13323 fi
13324 ac_res=`eval echo '${'$as_ac_Header'}'`
13325                { echo "$as_me:$LINENO: result: $ac_res" >&5
13326 echo "${ECHO_T}$ac_res" >&6; }
13327 else
13328   # Is the header compilable?
13329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13330 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
13338 #include <$ac_header>
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (ac_try="$ac_compile"
13342 case "(($ac_try" in
13343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344   *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347   (eval "$ac_compile") 2>conftest.er1
13348   ac_status=$?
13349   grep -v '^ *+' conftest.er1 >conftest.err
13350   rm -f conftest.er1
13351   cat conftest.err >&5
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); } &&
13354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355   { (case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360   (eval "$ac_try") 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; } &&
13364          { ac_try='test -s conftest.$ac_objext'
13365   { (case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_try") 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; }; then
13374   ac_header_compiler=yes
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379         ac_header_compiler=no
13380 fi
13381
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13384 echo "${ECHO_T}$ac_header_compiler" >&6; }
13385
13386 # Is the header present?
13387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395 #include <$ac_header>
13396 _ACEOF
13397 if { (ac_try="$ac_cpp conftest.$ac_ext"
13398 case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13404   ac_status=$?
13405   grep -v '^ *+' conftest.er1 >conftest.err
13406   rm -f conftest.er1
13407   cat conftest.err >&5
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); } >/dev/null; then
13410   if test -s conftest.err; then
13411     ac_cpp_err=$ac_c_preproc_warn_flag
13412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13413   else
13414     ac_cpp_err=
13415   fi
13416 else
13417   ac_cpp_err=yes
13418 fi
13419 if test -z "$ac_cpp_err"; then
13420   ac_header_preproc=yes
13421 else
13422   echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425   ac_header_preproc=no
13426 fi
13427
13428 rm -f conftest.err conftest.$ac_ext
13429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 echo "${ECHO_T}$ac_header_preproc" >&6; }
13431
13432 # So?  What about this header?
13433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13434   yes:no: )
13435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13439     ac_header_preproc=yes
13440     ;;
13441   no:yes:* )
13442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13454
13455     ;;
13456 esac
13457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13460   echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462   eval "$as_ac_Header=\$ac_header_preproc"
13463 fi
13464 ac_res=`eval echo '${'$as_ac_Header'}'`
13465                { echo "$as_me:$LINENO: result: $ac_res" >&5
13466 echo "${ECHO_T}$ac_res" >&6; }
13467
13468 fi
13469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13470   cat >>confdefs.h <<_ACEOF
13471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13472 _ACEOF
13473
13474 fi
13475
13476 done
13477
13478
13479
13480 for ac_header in sys/sockio.h sys/un.h
13481 do
13482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13484   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 fi
13489 ac_res=`eval echo '${'$as_ac_Header'}'`
13490                { echo "$as_me:$LINENO: result: $ac_res" >&5
13491 echo "${ECHO_T}$ac_res" >&6; }
13492 else
13493   # Is the header compilable?
13494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 $ac_includes_default
13503 #include <$ac_header>
13504 _ACEOF
13505 rm -f conftest.$ac_objext
13506 if { (ac_try="$ac_compile"
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_compile") 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); } &&
13519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13520   { (case "(($ac_try" in
13521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522   *) ac_try_echo=$ac_try;;
13523 esac
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525   (eval "$ac_try") 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; } &&
13529          { ac_try='test -s conftest.$ac_objext'
13530   { (case "(($ac_try" in
13531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532   *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535   (eval "$ac_try") 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; }; then
13539   ac_header_compiler=yes
13540 else
13541   echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13543
13544         ac_header_compiler=no
13545 fi
13546
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13549 echo "${ECHO_T}$ac_header_compiler" >&6; }
13550
13551 # Is the header present?
13552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560 #include <$ac_header>
13561 _ACEOF
13562 if { (ac_try="$ac_cpp conftest.$ac_ext"
13563 case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } >/dev/null; then
13575   if test -s conftest.err; then
13576     ac_cpp_err=$ac_c_preproc_warn_flag
13577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13578   else
13579     ac_cpp_err=
13580   fi
13581 else
13582   ac_cpp_err=yes
13583 fi
13584 if test -z "$ac_cpp_err"; then
13585   ac_header_preproc=yes
13586 else
13587   echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13589
13590   ac_header_preproc=no
13591 fi
13592
13593 rm -f conftest.err conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6; }
13596
13597 # So?  What about this header?
13598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13599   yes:no: )
13600     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13604     ac_header_preproc=yes
13605     ;;
13606   no:yes:* )
13607     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13610 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13611     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13613     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13614 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13617     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13619
13620     ;;
13621 esac
13622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13625   echo $ECHO_N "(cached) $ECHO_C" >&6
13626 else
13627   eval "$as_ac_Header=\$ac_header_preproc"
13628 fi
13629 ac_res=`eval echo '${'$as_ac_Header'}'`
13630                { echo "$as_me:$LINENO: result: $ac_res" >&5
13631 echo "${ECHO_T}$ac_res" >&6; }
13632
13633 fi
13634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13635   cat >>confdefs.h <<_ACEOF
13636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13637 _ACEOF
13638
13639 fi
13640
13641 done
13642
13643
13644
13645 { echo "$as_me:$LINENO: checking for usable net/if.h" >&5
13646 echo $ECHO_N "checking for usable net/if.h... $ECHO_C" >&6; }
13647 if test "${libreplace_cv_USABLE_NET_IF_H+set}" = set; then
13648   echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650
13651         cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h.  */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h.  */
13657
13658                 $ac_includes_default
13659                 #if HAVE_SYS_SOCKET_H
13660                 # include <sys/socket.h>
13661                 #endif
13662                 #include <net/if.h>
13663                 int main(void) {return 0;}
13664 _ACEOF
13665 rm -f conftest.$ac_objext
13666 if { (ac_try="$ac_compile"
13667 case "(($ac_try" in
13668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669   *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672   (eval "$ac_compile") 2>conftest.er1
13673   ac_status=$?
13674   grep -v '^ *+' conftest.er1 >conftest.err
13675   rm -f conftest.er1
13676   cat conftest.err >&5
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); } &&
13679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13680   { (case "(($ac_try" in
13681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682   *) ac_try_echo=$ac_try;;
13683 esac
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685   (eval "$ac_try") 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; } &&
13689          { ac_try='test -s conftest.$ac_objext'
13690   { (case "(($ac_try" in
13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692   *) ac_try_echo=$ac_try;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695   (eval "$ac_try") 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); }; }; then
13699   libreplace_cv_USABLE_NET_IF_H=yes
13700 else
13701   echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704         libreplace_cv_USABLE_NET_IF_H=no
13705
13706 fi
13707
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709
13710 fi
13711 { echo "$as_me:$LINENO: result: $libreplace_cv_USABLE_NET_IF_H" >&5
13712 echo "${ECHO_T}$libreplace_cv_USABLE_NET_IF_H" >&6; }
13713 if test x"$libreplace_cv_USABLE_NET_IF_H" = x"yes";then
13714
13715 cat >>confdefs.h <<\_ACEOF
13716 #define HAVE_NET_IF_H 1
13717 _ACEOF
13718
13719 fi
13720
13721 { echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
13722 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6; }
13723 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726
13727 if test "$cross_compiling" = yes; then
13728   samba_cv_REPLACE_INET_NTOA=cross
13729 else
13730   cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736
13737 #include <stdio.h>
13738 #include <unistd.h>
13739 #include <sys/types.h>
13740 #include <netinet/in.h>
13741 #ifdef HAVE_ARPA_INET_H
13742 #include <arpa/inet.h>
13743 #endif
13744 main() { struct in_addr ip; ip.s_addr = 0x12345678;
13745 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
13746     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
13747 exit(1);}
13748 _ACEOF
13749 rm -f conftest$ac_exeext
13750 if { (ac_try="$ac_link"
13751 case "(($ac_try" in
13752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753   *) ac_try_echo=$ac_try;;
13754 esac
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756   (eval "$ac_link") 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   samba_cv_REPLACE_INET_NTOA=yes
13770 else
13771   echo "$as_me: program exited with status $ac_status" >&5
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 ( exit $ac_status )
13776 samba_cv_REPLACE_INET_NTOA=no
13777 fi
13778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13779 fi
13780
13781
13782 fi
13783 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
13784 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6; }
13785 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
13786
13787 cat >>confdefs.h <<\_ACEOF
13788 #define REPLACE_INET_NTOA 1
13789 _ACEOF
13790
13791 fi
13792
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h.  */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h.  */
13799
13800 #include <sys/types.h>
13801 #if STDC_HEADERS
13802 #include <stdlib.h>
13803 #include <stddef.h>
13804 #endif
13805 #include <sys/socket.h>
13806 int
13807 main ()
13808 {
13809 socklen_t foo;
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818   *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821   (eval "$ac_compile") 2>conftest.er1
13822   ac_status=$?
13823   grep -v '^ *+' conftest.er1 >conftest.err
13824   rm -f conftest.er1
13825   cat conftest.err >&5
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); } &&
13828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13829   { (case "(($ac_try" in
13830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831   *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834   (eval "$ac_try") 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; } &&
13838          { ac_try='test -s conftest.$ac_objext'
13839   { (case "(($ac_try" in
13840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841   *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844   (eval "$ac_try") 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; }; then
13848   :
13849 else
13850   echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13852
13853
13854 cat >>confdefs.h <<\_ACEOF
13855 #define socklen_t int
13856 _ACEOF
13857
13858 fi
13859
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861
13862
13863
13864
13865
13866
13867
13868
13869 for ac_func in seteuid setresuid setegid setresgid chroot bzero strerror
13870 do
13871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13885 #define $ac_func innocuous_$ac_func
13886
13887 /* System header to define __stub macros and hopefully few prototypes,
13888     which can conflict with char $ac_func (); below.
13889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13890     <limits.h> exists even on freestanding compilers.  */
13891
13892 #ifdef __STDC__
13893 # include <limits.h>
13894 #else
13895 # include <assert.h>
13896 #endif
13897
13898 #undef $ac_func
13899
13900 /* Override any GCC internal prototype to avoid an error.
13901    Use char because int might match the return type of a GCC
13902    builtin and then its argument prototype would still apply.  */
13903 #ifdef __cplusplus
13904 extern "C"
13905 #endif
13906 char $ac_func ();
13907 /* The GNU C library defines this for functions which it implements
13908     to always fail with ENOSYS.  Some functions are actually named
13909     something starting with __ and the normal name is an alias.  */
13910 #if defined __stub_$ac_func || defined __stub___$ac_func
13911 choke me
13912 #endif
13913
13914 int
13915 main ()
13916 {
13917 return $ac_func ();
13918   ;
13919   return 0;
13920 }
13921 _ACEOF
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926   *) ac_try_echo=$ac_try;;
13927 esac
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929   (eval "$ac_link") 2>conftest.er1
13930   ac_status=$?
13931   grep -v '^ *+' conftest.er1 >conftest.err
13932   rm -f conftest.er1
13933   cat conftest.err >&5
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937   { (case "(($ac_try" in
13938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939   *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942   (eval "$ac_try") 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; } &&
13946          { ac_try='test -s conftest$ac_exeext'
13947   { (case "(($ac_try" in
13948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949   *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952   (eval "$ac_try") 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; }; then
13956   eval "$as_ac_var=yes"
13957 else
13958   echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961         eval "$as_ac_var=no"
13962 fi
13963
13964 rm -f core conftest.err conftest.$ac_objext \
13965       conftest$ac_exeext conftest.$ac_ext
13966 fi
13967 ac_res=`eval echo '${'$as_ac_var'}'`
13968                { echo "$as_me:$LINENO: result: $ac_res" >&5
13969 echo "${ECHO_T}$ac_res" >&6; }
13970 if test `eval echo '${'$as_ac_var'}'` = yes; then
13971   cat >>confdefs.h <<_ACEOF
13972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13973 _ACEOF
13974
13975 fi
13976 done
13977
13978
13979
13980
13981
13982
13983
13984 for ac_func in vsyslog setlinebuf mktime ftruncate chsize rename
13985 do
13986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h.  */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h.  */
13998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14000 #define $ac_func innocuous_$ac_func
14001
14002 /* System header to define __stub macros and hopefully few prototypes,
14003     which can conflict with char $ac_func (); below.
14004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14005     <limits.h> exists even on freestanding compilers.  */
14006
14007 #ifdef __STDC__
14008 # include <limits.h>
14009 #else
14010 # include <assert.h>
14011 #endif
14012
14013 #undef $ac_func
14014
14015 /* Override any GCC internal prototype to avoid an error.
14016    Use char because int might match the return type of a GCC
14017    builtin and then its argument prototype would still apply.  */
14018 #ifdef __cplusplus
14019 extern "C"
14020 #endif
14021 char $ac_func ();
14022 /* The GNU C library defines this for functions which it implements
14023     to always fail with ENOSYS.  Some functions are actually named
14024     something starting with __ and the normal name is an alias.  */
14025 #if defined __stub_$ac_func || defined __stub___$ac_func
14026 choke me
14027 #endif
14028
14029 int
14030 main ()
14031 {
14032 return $ac_func ();
14033   ;
14034   return 0;
14035 }
14036 _ACEOF
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (ac_try="$ac_link"
14039 case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044   (eval "$ac_link") 2>conftest.er1
14045   ac_status=$?
14046   grep -v '^ *+' conftest.er1 >conftest.err
14047   rm -f conftest.er1
14048   cat conftest.err >&5
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052   { (case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_try") 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); }; } &&
14061          { ac_try='test -s conftest$ac_exeext'
14062   { (case "(($ac_try" in
14063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064   *) ac_try_echo=$ac_try;;
14065 esac
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067   (eval "$ac_try") 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071   eval "$as_ac_var=yes"
14072 else
14073   echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076         eval "$as_ac_var=no"
14077 fi
14078
14079 rm -f core conftest.err conftest.$ac_objext \
14080       conftest$ac_exeext conftest.$ac_ext
14081 fi
14082 ac_res=`eval echo '${'$as_ac_var'}'`
14083                { echo "$as_me:$LINENO: result: $ac_res" >&5
14084 echo "${ECHO_T}$ac_res" >&6; }
14085 if test `eval echo '${'$as_ac_var'}'` = yes; then
14086   cat >>confdefs.h <<_ACEOF
14087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14088 _ACEOF
14089
14090 fi
14091 done
14092
14093
14094
14095
14096
14097
14098
14099
14100 for ac_func in waitpid strlcpy strlcat innetgr initgroups memmove strdup
14101 do
14102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14116 #define $ac_func innocuous_$ac_func
14117
14118 /* System header to define __stub macros and hopefully few prototypes,
14119     which can conflict with char $ac_func (); below.
14120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14121     <limits.h> exists even on freestanding compilers.  */
14122
14123 #ifdef __STDC__
14124 # include <limits.h>
14125 #else
14126 # include <assert.h>
14127 #endif
14128
14129 #undef $ac_func
14130
14131 /* Override any GCC internal prototype to avoid an error.
14132    Use char because int might match the return type of a GCC
14133    builtin and then its argument prototype would still apply.  */
14134 #ifdef __cplusplus
14135 extern "C"
14136 #endif
14137 char $ac_func ();
14138 /* The GNU C library defines this for functions which it implements
14139     to always fail with ENOSYS.  Some functions are actually named
14140     something starting with __ and the normal name is an alias.  */
14141 #if defined __stub_$ac_func || defined __stub___$ac_func
14142 choke me
14143 #endif
14144
14145 int
14146 main ()
14147 {
14148 return $ac_func ();
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157   *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160   (eval "$ac_link") 2>conftest.er1
14161   ac_status=$?
14162   grep -v '^ *+' conftest.er1 >conftest.err
14163   rm -f conftest.er1
14164   cat conftest.err >&5
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } &&
14167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168   { (case "(($ac_try" in
14169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170   *) ac_try_echo=$ac_try;;
14171 esac
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173   (eval "$ac_try") 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest$ac_exeext'
14178   { (case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_try") 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; }; then
14187   eval "$as_ac_var=yes"
14188 else
14189   echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192         eval "$as_ac_var=no"
14193 fi
14194
14195 rm -f core conftest.err conftest.$ac_objext \
14196       conftest$ac_exeext conftest.$ac_ext
14197 fi
14198 ac_res=`eval echo '${'$as_ac_var'}'`
14199                { echo "$as_me:$LINENO: result: $ac_res" >&5
14200 echo "${ECHO_T}$ac_res" >&6; }
14201 if test `eval echo '${'$as_ac_var'}'` = yes; then
14202   cat >>confdefs.h <<_ACEOF
14203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14204 _ACEOF
14205
14206 fi
14207 done
14208
14209
14210
14211
14212
14213
14214
14215
14216 for ac_func in pread pwrite strndup strcasestr strtok_r mkdtemp socketpair
14217 do
14218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h.  */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h.  */
14230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14232 #define $ac_func innocuous_$ac_func
14233
14234 /* System header to define __stub macros and hopefully few prototypes,
14235     which can conflict with char $ac_func (); below.
14236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14237     <limits.h> exists even on freestanding compilers.  */
14238
14239 #ifdef __STDC__
14240 # include <limits.h>
14241 #else
14242 # include <assert.h>
14243 #endif
14244
14245 #undef $ac_func
14246
14247 /* Override any GCC internal prototype to avoid an error.
14248    Use char because int might match the return type of a GCC
14249    builtin and then its argument prototype would still apply.  */
14250 #ifdef __cplusplus
14251 extern "C"
14252 #endif
14253 char $ac_func ();
14254 /* The GNU C library defines this for functions which it implements
14255     to always fail with ENOSYS.  Some functions are actually named
14256     something starting with __ and the normal name is an alias.  */
14257 #if defined __stub_$ac_func || defined __stub___$ac_func
14258 choke me
14259 #endif
14260
14261 int
14262 main ()
14263 {
14264 return $ac_func ();
14265   ;
14266   return 0;
14267 }
14268 _ACEOF
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276   (eval "$ac_link") 2>conftest.er1
14277   ac_status=$?
14278   grep -v '^ *+' conftest.er1 >conftest.err
14279   rm -f conftest.er1
14280   cat conftest.err >&5
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); } &&
14283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14284   { (case "(($ac_try" in
14285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286   *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289   (eval "$ac_try") 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; } &&
14293          { ac_try='test -s conftest$ac_exeext'
14294   { (case "(($ac_try" in
14295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296   *) ac_try_echo=$ac_try;;
14297 esac
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299   (eval "$ac_try") 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; }; then
14303   eval "$as_ac_var=yes"
14304 else
14305   echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14307
14308         eval "$as_ac_var=no"
14309 fi
14310
14311 rm -f core conftest.err conftest.$ac_objext \
14312       conftest$ac_exeext conftest.$ac_ext
14313 fi
14314 ac_res=`eval echo '${'$as_ac_var'}'`
14315                { echo "$as_me:$LINENO: result: $ac_res" >&5
14316 echo "${ECHO_T}$ac_res" >&6; }
14317 if test `eval echo '${'$as_ac_var'}'` = yes; then
14318   cat >>confdefs.h <<_ACEOF
14319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14320 _ACEOF
14321
14322 fi
14323 done
14324
14325
14326  { echo "$as_me:$LINENO: checking for setresuid declaration" >&5
14327 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6; }
14328 if test "${ac_cv_have_setresuid_decl+set}" = set; then
14329   echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331
14332     cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338 #include <unistd.h>
14339 int
14340 main ()
14341 {
14342 int i = (int)setresuid
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest.$ac_objext
14348 if { (ac_try="$ac_compile"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_compile") 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } &&
14361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14362   { (case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_try") 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; } &&
14371          { ac_try='test -s conftest.$ac_objext'
14372   { (case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377   (eval "$ac_try") 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; }; then
14381   ac_cv_have_setresuid_decl=yes
14382 else
14383   echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386         ac_cv_have_setresuid_decl=no
14387 fi
14388
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 fi
14391 { echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
14392 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6; }
14393  if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
14394
14395 cat >>confdefs.h <<\_ACEOF
14396 #define HAVE_SETRESUID_DECL 1
14397 _ACEOF
14398
14399  fi
14400
14401
14402  { echo "$as_me:$LINENO: checking for setresgid declaration" >&5
14403 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6; }
14404 if test "${ac_cv_have_setresgid_decl+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407
14408     cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h.  */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h.  */
14414 #include <unistd.h>
14415 int
14416 main ()
14417 {
14418 int i = (int)setresgid
14419   ;
14420   return 0;
14421 }
14422 _ACEOF
14423 rm -f conftest.$ac_objext
14424 if { (ac_try="$ac_compile"
14425 case "(($ac_try" in
14426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427   *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430   (eval "$ac_compile") 2>conftest.er1
14431   ac_status=$?
14432   grep -v '^ *+' conftest.er1 >conftest.err
14433   rm -f conftest.er1
14434   cat conftest.err >&5
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14438   { (case "(($ac_try" in
14439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440   *) ac_try_echo=$ac_try;;
14441 esac
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443   (eval "$ac_try") 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; } &&
14447          { ac_try='test -s conftest.$ac_objext'
14448   { (case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453   (eval "$ac_try") 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; }; then
14457   ac_cv_have_setresgid_decl=yes
14458 else
14459   echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462         ac_cv_have_setresgid_decl=no
14463 fi
14464
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 fi
14467 { echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
14468 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6; }
14469  if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
14470
14471 cat >>confdefs.h <<\_ACEOF
14472 #define HAVE_SETRESGID_DECL 1
14473 _ACEOF
14474
14475  fi
14476
14477
14478  { echo "$as_me:$LINENO: checking for errno declaration" >&5
14479 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6; }
14480 if test "${ac_cv_have_errno_decl+set}" = set; then
14481   echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483
14484     cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h.  */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h.  */
14490 #include <errno.h>
14491 int
14492 main ()
14493 {
14494 int i = (int)errno
14495   ;
14496   return 0;
14497 }
14498 _ACEOF
14499 rm -f conftest.$ac_objext
14500 if { (ac_try="$ac_compile"
14501 case "(($ac_try" in
14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503   *) ac_try_echo=$ac_try;;
14504 esac
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506   (eval "$ac_compile") 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514   { (case "(($ac_try" in
14515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516   *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519   (eval "$ac_try") 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; } &&
14523          { ac_try='test -s conftest.$ac_objext'
14524   { (case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_try") 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533   ac_cv_have_errno_decl=yes
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538         ac_cv_have_errno_decl=no
14539 fi
14540
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 fi
14543 { echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
14544 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6; }
14545  if test x"$ac_cv_have_errno_decl" = x"yes"; then
14546
14547 cat >>confdefs.h <<\_ACEOF
14548 #define HAVE_ERRNO_DECL 1
14549 _ACEOF
14550
14551  fi
14552
14553
14554 { echo "$as_me:$LINENO: checking for secure mkstemp" >&5
14555 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6; }
14556 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
14557   echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559
14560 if test "$cross_compiling" = yes; then
14561   samba_cv_HAVE_SECURE_MKSTEMP=cross
14562 else
14563   cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569 #include <stdlib.h>
14570 #include <sys/types.h>
14571 #include <sys/stat.h>
14572 #include <unistd.h>
14573 main() {
14574   struct stat st;
14575   char tpl[20]="/tmp/test.XXXXXX";
14576   int fd = mkstemp(tpl);
14577   if (fd == -1) exit(1);
14578   unlink(tpl);
14579   if (fstat(fd, &st) != 0) exit(1);
14580   if ((st.st_mode & 0777) != 0600) exit(1);
14581   exit(0);
14582 }
14583 _ACEOF
14584 rm -f conftest$ac_exeext
14585 if { (ac_try="$ac_link"
14586 case "(($ac_try" in
14587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588   *) ac_try_echo=$ac_try;;
14589 esac
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591   (eval "$ac_link") 2>&5
14592   ac_status=$?
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14595   { (case "(($ac_try" in
14596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597   *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600   (eval "$ac_try") 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); }; }; then
14604   samba_cv_HAVE_SECURE_MKSTEMP=yes
14605 else
14606   echo "$as_me: program exited with status $ac_status" >&5
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610 ( exit $ac_status )
14611 samba_cv_HAVE_SECURE_MKSTEMP=no
14612 fi
14613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14614 fi
14615
14616
14617 fi
14618 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
14619 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6; }
14620 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
14621
14622 cat >>confdefs.h <<\_ACEOF
14623 #define HAVE_SECURE_MKSTEMP 1
14624 _ACEOF
14625
14626 fi
14627
14628
14629
14630 for ac_header in stdio.h strings.h
14631 do
14632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14637   echo $ECHO_N "(cached) $ECHO_C" >&6
14638 fi
14639 ac_res=`eval echo '${'$as_ac_Header'}'`
14640                { echo "$as_me:$LINENO: result: $ac_res" >&5
14641 echo "${ECHO_T}$ac_res" >&6; }
14642 else
14643   # Is the header compilable?
14644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 $ac_includes_default
14653 #include <$ac_header>
14654 _ACEOF
14655 rm -f conftest.$ac_objext
14656 if { (ac_try="$ac_compile"
14657 case "(($ac_try" in
14658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659   *) ac_try_echo=$ac_try;;
14660 esac
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662   (eval "$ac_compile") 2>conftest.er1
14663   ac_status=$?
14664   grep -v '^ *+' conftest.er1 >conftest.err
14665   rm -f conftest.er1
14666   cat conftest.err >&5
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14670   { (case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_try") 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; } &&
14679          { ac_try='test -s conftest.$ac_objext'
14680   { (case "(($ac_try" in
14681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682   *) ac_try_echo=$ac_try;;
14683 esac
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685   (eval "$ac_try") 2>&5
14686   ac_status=$?
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); }; }; then
14689   ac_header_compiler=yes
14690 else
14691   echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14693
14694         ac_header_compiler=no
14695 fi
14696
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14699 echo "${ECHO_T}$ac_header_compiler" >&6; }
14700
14701 # Is the header present?
14702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14704 cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 #include <$ac_header>
14711 _ACEOF
14712 if { (ac_try="$ac_cpp conftest.$ac_ext"
14713 case "(($ac_try" in
14714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715   *) ac_try_echo=$ac_try;;
14716 esac
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } >/dev/null; then
14725   if test -s conftest.err; then
14726     ac_cpp_err=$ac_c_preproc_warn_flag
14727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14728   else
14729     ac_cpp_err=
14730   fi
14731 else
14732   ac_cpp_err=yes
14733 fi
14734 if test -z "$ac_cpp_err"; then
14735   ac_header_preproc=yes
14736 else
14737   echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740   ac_header_preproc=no
14741 fi
14742
14743 rm -f conftest.err conftest.$ac_ext
14744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14745 echo "${ECHO_T}$ac_header_preproc" >&6; }
14746
14747 # So?  What about this header?
14748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14749   yes:no: )
14750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14754     ac_header_preproc=yes
14755     ;;
14756   no:yes:* )
14757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14769
14770     ;;
14771 esac
14772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14775   echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777   eval "$as_ac_Header=\$ac_header_preproc"
14778 fi
14779 ac_res=`eval echo '${'$as_ac_Header'}'`
14780                { echo "$as_me:$LINENO: result: $ac_res" >&5
14781 echo "${ECHO_T}$ac_res" >&6; }
14782
14783 fi
14784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14785   cat >>confdefs.h <<_ACEOF
14786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14787 _ACEOF
14788
14789 fi
14790
14791 done
14792
14793 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14794 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
14795 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798   cat >conftest.$ac_ext <<_ACEOF
14799 /* confdefs.h.  */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h.  */
14804 $ac_includes_default
14805 int
14806 main ()
14807 {
14808 #ifndef snprintf
14809   char *p = (char *) snprintf;
14810   return !p;
14811 #endif
14812
14813   ;
14814   return 0;
14815 }
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (ac_try="$ac_compile"
14819 case "(($ac_try" in
14820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821   *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824   (eval "$ac_compile") 2>conftest.er1
14825   ac_status=$?
14826   grep -v '^ *+' conftest.er1 >conftest.err
14827   rm -f conftest.er1
14828   cat conftest.err >&5
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); } &&
14831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14832   { (case "(($ac_try" in
14833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834   *) ac_try_echo=$ac_try;;
14835 esac
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837   (eval "$ac_try") 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); }; } &&
14841          { ac_try='test -s conftest.$ac_objext'
14842   { (case "(($ac_try" in
14843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844   *) ac_try_echo=$ac_try;;
14845 esac
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847   (eval "$ac_try") 2>&5
14848   ac_status=$?
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); }; }; then
14851   ac_cv_have_decl_snprintf=yes
14852 else
14853   echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856         ac_cv_have_decl_snprintf=no
14857 fi
14858
14859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 fi
14861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14862 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
14863 if test $ac_cv_have_decl_snprintf = yes; then
14864
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_DECL_SNPRINTF 1
14867 _ACEOF
14868
14869
14870 else
14871   cat >>confdefs.h <<_ACEOF
14872 #define HAVE_DECL_SNPRINTF 0
14873 _ACEOF
14874
14875
14876 fi
14877 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14878 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
14879 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 $ac_includes_default
14889 int
14890 main ()
14891 {
14892 #ifndef vsnprintf
14893   char *p = (char *) vsnprintf;
14894   return !p;
14895 #endif
14896
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 rm -f conftest.$ac_objext
14902 if { (ac_try="$ac_compile"
14903 case "(($ac_try" in
14904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905   *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908   (eval "$ac_compile") 2>conftest.er1
14909   ac_status=$?
14910   grep -v '^ *+' conftest.er1 >conftest.err
14911   rm -f conftest.er1
14912   cat conftest.err >&5
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } &&
14915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14916   { (case "(($ac_try" in
14917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918   *) ac_try_echo=$ac_try;;
14919 esac
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921   (eval "$ac_try") 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); }; } &&
14925          { ac_try='test -s conftest.$ac_objext'
14926   { (case "(($ac_try" in
14927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928   *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931   (eval "$ac_try") 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   ac_cv_have_decl_vsnprintf=yes
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940         ac_cv_have_decl_vsnprintf=no
14941 fi
14942
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 fi
14945 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14946 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
14947 if test $ac_cv_have_decl_vsnprintf = yes; then
14948
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_DECL_VSNPRINTF 1
14951 _ACEOF
14952
14953
14954 else
14955   cat >>confdefs.h <<_ACEOF
14956 #define HAVE_DECL_VSNPRINTF 0
14957 _ACEOF
14958
14959
14960 fi
14961 { echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
14962 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6; }
14963 if test "${ac_cv_have_decl_asprintf+set}" = set; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966   cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h.  */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h.  */
14972 $ac_includes_default
14973 int
14974 main ()
14975 {
14976 #ifndef asprintf
14977   char *p = (char *) asprintf;
14978   return !p;
14979 #endif
14980
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_compile") 2>conftest.er1
14993   ac_status=$?
14994   grep -v '^ *+' conftest.er1 >conftest.err
14995   rm -f conftest.er1
14996   cat conftest.err >&5
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } &&
14999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000   { (case "(($ac_try" in
15001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002   *) ac_try_echo=$ac_try;;
15003 esac
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005   (eval "$ac_try") 2>&5
15006   ac_status=$?
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); }; } &&
15009          { ac_try='test -s conftest.$ac_objext'
15010   { (case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_try") 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }; }; then
15019   ac_cv_have_decl_asprintf=yes
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024         ac_cv_have_decl_asprintf=no
15025 fi
15026
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 fi
15029 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
15030 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6; }
15031 if test $ac_cv_have_decl_asprintf = yes; then
15032
15033 cat >>confdefs.h <<_ACEOF
15034 #define HAVE_DECL_ASPRINTF 1
15035 _ACEOF
15036
15037
15038 else
15039   cat >>confdefs.h <<_ACEOF
15040 #define HAVE_DECL_ASPRINTF 0
15041 _ACEOF
15042
15043
15044 fi
15045 { echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
15046 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6; }
15047 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050   cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h.  */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h.  */
15056 $ac_includes_default
15057 int
15058 main ()
15059 {
15060 #ifndef vasprintf
15061   char *p = (char *) vasprintf;
15062   return !p;
15063 #endif
15064
15065   ;
15066   return 0;
15067 }
15068 _ACEOF
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073   *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076   (eval "$ac_compile") 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } &&
15083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15084   { (case "(($ac_try" in
15085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086   *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089   (eval "$ac_try") 2>&5
15090   ac_status=$?
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); }; } &&
15093          { ac_try='test -s conftest.$ac_objext'
15094   { (case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_try") 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; }; then
15103   ac_cv_have_decl_vasprintf=yes
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108         ac_cv_have_decl_vasprintf=no
15109 fi
15110
15111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 fi
15113 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
15114 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6; }
15115 if test $ac_cv_have_decl_vasprintf = yes; then
15116
15117 cat >>confdefs.h <<_ACEOF
15118 #define HAVE_DECL_VASPRINTF 1
15119 _ACEOF
15120
15121
15122 else
15123   cat >>confdefs.h <<_ACEOF
15124 #define HAVE_DECL_VASPRINTF 0
15125 _ACEOF
15126
15127
15128 fi
15129
15130
15131
15132
15133
15134
15135 for ac_func in snprintf vsnprintf asprintf vasprintf
15136 do
15137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15141   echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143   cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15151 #define $ac_func innocuous_$ac_func
15152
15153 /* System header to define __stub macros and hopefully few prototypes,
15154     which can conflict with char $ac_func (); below.
15155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15156     <limits.h> exists even on freestanding compilers.  */
15157
15158 #ifdef __STDC__
15159 # include <limits.h>
15160 #else
15161 # include <assert.h>
15162 #endif
15163
15164 #undef $ac_func
15165
15166 /* Override any GCC internal prototype to avoid an error.
15167    Use char because int might match the return type of a GCC
15168    builtin and then its argument prototype would still apply.  */
15169 #ifdef __cplusplus
15170 extern "C"
15171 #endif
15172 char $ac_func ();
15173 /* The GNU C library defines this for functions which it implements
15174     to always fail with ENOSYS.  Some functions are actually named
15175     something starting with __ and the normal name is an alias.  */
15176 #if defined __stub_$ac_func || defined __stub___$ac_func
15177 choke me
15178 #endif
15179
15180 int
15181 main ()
15182 {
15183 return $ac_func ();
15184   ;
15185   return 0;
15186 }
15187 _ACEOF
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (ac_try="$ac_link"
15190 case "(($ac_try" in
15191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192   *) ac_try_echo=$ac_try;;
15193 esac
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195   (eval "$ac_link") 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } &&
15202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15212          { ac_try='test -s conftest$ac_exeext'
15213   { (case "(($ac_try" in
15214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215   *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218   (eval "$ac_try") 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }; }; then
15222   eval "$as_ac_var=yes"
15223 else
15224   echo "$as_me: failed program was:" >&5
15225 sed 's/^/| /' conftest.$ac_ext >&5
15226
15227         eval "$as_ac_var=no"
15228 fi
15229
15230 rm -f core conftest.err conftest.$ac_objext \
15231       conftest$ac_exeext conftest.$ac_ext
15232 fi
15233 ac_res=`eval echo '${'$as_ac_var'}'`
15234                { echo "$as_me:$LINENO: result: $ac_res" >&5
15235 echo "${ECHO_T}$ac_res" >&6; }
15236 if test `eval echo '${'$as_ac_var'}'` = yes; then
15237   cat >>confdefs.h <<_ACEOF
15238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15239 _ACEOF
15240
15241 fi
15242 done
15243
15244
15245 { echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
15246 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
15247 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250
15251 if test "$cross_compiling" = yes; then
15252   samba_cv_HAVE_C99_VSNPRINTF=cross
15253 else
15254   cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h.  */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h.  */
15260
15261 #include <sys/types.h>
15262 #include <stdio.h>
15263 #include <stdarg.h>
15264 #include <stdlib.h>
15265 void foo(const char *format, ...) {
15266        va_list ap;
15267        int len;
15268        char buf[20];
15269        long long l = 1234567890;
15270        l *= 100;
15271
15272        va_start(ap, format);
15273        len = vsnprintf(buf, 0, format, ap);
15274        va_end(ap);
15275        if (len != 5) exit(1);
15276
15277        va_start(ap, format);
15278        len = vsnprintf(0, 0, format, ap);
15279        va_end(ap);
15280        if (len != 5) exit(2);
15281
15282        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
15283
15284        if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
15285        if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
15286        if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
15287        if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
15288
15289        exit(0);
15290 }
15291 main() { foo("hello"); }
15292
15293 _ACEOF
15294 rm -f conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298   *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301   (eval "$ac_link") 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15305   { (case "(($ac_try" in
15306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307   *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310   (eval "$ac_try") 2>&5
15311   ac_status=$?
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); }; }; then
15314   samba_cv_HAVE_C99_VSNPRINTF=yes
15315 else
15316   echo "$as_me: program exited with status $ac_status" >&5
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15319
15320 ( exit $ac_status )
15321 samba_cv_HAVE_C99_VSNPRINTF=no
15322 fi
15323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15324 fi
15325
15326
15327 fi
15328 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
15329 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6; }
15330 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
15331
15332 cat >>confdefs.h <<\_ACEOF
15333 #define HAVE_C99_VSNPRINTF 1
15334 _ACEOF
15335
15336 fi
15337
15338
15339 { echo "$as_me:$LINENO: checking for va_copy" >&5
15340 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
15341 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
15342   echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344
15345 cat >conftest.$ac_ext <<_ACEOF
15346 /* confdefs.h.  */
15347 _ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h.  */
15351 #include <stdarg.h>
15352 va_list ap1,ap2;
15353 int
15354 main ()
15355 {
15356 va_copy(ap1,ap2);
15357   ;
15358   return 0;
15359 }
15360 _ACEOF
15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (ac_try="$ac_link"
15363 case "(($ac_try" in
15364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365   *) ac_try_echo=$ac_try;;
15366 esac
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368   (eval "$ac_link") 2>conftest.er1
15369   ac_status=$?
15370   grep -v '^ *+' conftest.er1 >conftest.err
15371   rm -f conftest.er1
15372   cat conftest.err >&5
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); } &&
15375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15376   { (case "(($ac_try" in
15377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378   *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381   (eval "$ac_try") 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; } &&
15385          { ac_try='test -s conftest$ac_exeext'
15386   { (case "(($ac_try" in
15387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388   *) ac_try_echo=$ac_try;;
15389 esac
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391   (eval "$ac_try") 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; }; then
15395   samba_cv_HAVE_VA_COPY=yes
15396 else
15397   echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400         samba_cv_HAVE_VA_COPY=no
15401 fi
15402
15403 rm -f core conftest.err conftest.$ac_objext \
15404       conftest$ac_exeext conftest.$ac_ext
15405 fi
15406 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
15407 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6; }
15408 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
15409
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_VA_COPY 1
15412 _ACEOF
15413
15414 fi
15415
15416 if test x"$samba_cv_HAVE_VA_COPY" != x"yes"; then
15417 { echo "$as_me:$LINENO: checking for __va_copy" >&5
15418 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
15419 if test "${samba_cv_HAVE___VA_COPY+set}" = set; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422
15423 cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h.  */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h.  */
15429 #include <stdarg.h>
15430 va_list ap1,ap2;
15431 int
15432 main ()
15433 {
15434 __va_copy(ap1,ap2);
15435   ;
15436   return 0;
15437 }
15438 _ACEOF
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443   *) ac_try_echo=$ac_try;;
15444 esac
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446   (eval "$ac_link") 2>conftest.er1
15447   ac_status=$?
15448   grep -v '^ *+' conftest.er1 >conftest.err
15449   rm -f conftest.er1
15450   cat conftest.err >&5
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); } &&
15453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15454   { (case "(($ac_try" in
15455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456   *) ac_try_echo=$ac_try;;
15457 esac
15458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459   (eval "$ac_try") 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; } &&
15463          { ac_try='test -s conftest$ac_exeext'
15464   { (case "(($ac_try" in
15465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466   *) ac_try_echo=$ac_try;;
15467 esac
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469   (eval "$ac_try") 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); }; }; then
15473   samba_cv_HAVE___VA_COPY=yes
15474 else
15475   echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478         samba_cv_HAVE___VA_COPY=no
15479 fi
15480
15481 rm -f core conftest.err conftest.$ac_objext \
15482       conftest$ac_exeext conftest.$ac_ext
15483 fi
15484 { echo "$as_me:$LINENO: result: $samba_cv_HAVE___VA_COPY" >&5
15485 echo "${ECHO_T}$samba_cv_HAVE___VA_COPY" >&6; }
15486 if test x"$samba_cv_HAVE___VA_COPY" = x"yes"; then
15487
15488 cat >>confdefs.h <<\_ACEOF
15489 #define HAVE___VA_COPY 1
15490 _ACEOF
15491
15492 fi
15493 fi
15494
15495 { echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
15496 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6; }
15497 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507 #include <stdio.h>
15508 int
15509 main ()
15510 {
15511 printf("%s\n", __FUNCTION__);
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520   *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523   (eval "$ac_compile") 2>conftest.er1
15524   ac_status=$?
15525   grep -v '^ *+' conftest.er1 >conftest.err
15526   rm -f conftest.er1
15527   cat conftest.err >&5
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); } &&
15530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531   { (case "(($ac_try" in
15532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533   *) ac_try_echo=$ac_try;;
15534 esac
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536   (eval "$ac_try") 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; } &&
15540          { ac_try='test -s conftest.$ac_objext'
15541   { (case "(($ac_try" in
15542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543   *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546   (eval "$ac_try") 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); }; }; then
15550   samba_cv_HAVE_FUNCTION_MACRO=yes
15551 else
15552   echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15554
15555         samba_cv_HAVE_FUNCTION_MACRO=no
15556 fi
15557
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 fi
15560 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
15561 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6; }
15562 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
15563
15564 cat >>confdefs.h <<\_ACEOF
15565 #define HAVE_FUNCTION_MACRO 1
15566 _ACEOF
15567
15568 else
15569         { echo "$as_me:$LINENO: checking for __func__ macro" >&5
15570 echo $ECHO_N "checking for __func__ macro... $ECHO_C" >&6; }
15571 if test "${samba_cv_HAVE_func_MACRO+set}" = set; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574
15575     cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581 #include <stdio.h>
15582 int
15583 main ()
15584 {
15585 printf("%s\n", __func__);
15586   ;
15587   return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext
15591 if { (ac_try="$ac_compile"
15592 case "(($ac_try" in
15593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594   *) ac_try_echo=$ac_try;;
15595 esac
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597   (eval "$ac_compile") 2>conftest.er1
15598   ac_status=$?
15599   grep -v '^ *+' conftest.er1 >conftest.err
15600   rm -f conftest.er1
15601   cat conftest.err >&5
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); } &&
15604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15605   { (case "(($ac_try" in
15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607   *) ac_try_echo=$ac_try;;
15608 esac
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610   (eval "$ac_try") 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); }; } &&
15614          { ac_try='test -s conftest.$ac_objext'
15615   { (case "(($ac_try" in
15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617   *) ac_try_echo=$ac_try;;
15618 esac
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620   (eval "$ac_try") 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; }; then
15624   samba_cv_HAVE_func_MACRO=yes
15625 else
15626   echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15628
15629         samba_cv_HAVE_func_MACRO=no
15630 fi
15631
15632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15633 fi
15634 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_func_MACRO" >&5
15635 echo "${ECHO_T}$samba_cv_HAVE_func_MACRO" >&6; }
15636     if test x"$samba_cv_HAVE_func_MACRO" = x"yes"; then
15637
15638 cat >>confdefs.h <<\_ACEOF
15639 #define HAVE_func_MACRO 1
15640 _ACEOF
15641
15642     fi
15643 fi
15644
15645
15646
15647 for ac_header in sys/param.h limits.h
15648 do
15649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15654   echo $ECHO_N "(cached) $ECHO_C" >&6
15655 fi
15656 ac_res=`eval echo '${'$as_ac_Header'}'`
15657                { echo "$as_me:$LINENO: result: $ac_res" >&5
15658 echo "${ECHO_T}$ac_res" >&6; }
15659 else
15660   # Is the header compilable?
15661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669 $ac_includes_default
15670 #include <$ac_header>
15671 _ACEOF
15672 rm -f conftest.$ac_objext
15673 if { (ac_try="$ac_compile"
15674 case "(($ac_try" in
15675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676   *) ac_try_echo=$ac_try;;
15677 esac
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679   (eval "$ac_compile") 2>conftest.er1
15680   ac_status=$?
15681   grep -v '^ *+' conftest.er1 >conftest.err
15682   rm -f conftest.er1
15683   cat conftest.err >&5
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } &&
15686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15687   { (case "(($ac_try" in
15688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689   *) ac_try_echo=$ac_try;;
15690 esac
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692   (eval "$ac_try") 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; } &&
15696          { ac_try='test -s conftest.$ac_objext'
15697   { (case "(($ac_try" in
15698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699   *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702   (eval "$ac_try") 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); }; }; then
15706   ac_header_compiler=yes
15707 else
15708   echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15710
15711         ac_header_compiler=no
15712 fi
15713
15714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15716 echo "${ECHO_T}$ac_header_compiler" >&6; }
15717
15718 # Is the header present?
15719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h.  */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h.  */
15727 #include <$ac_header>
15728 _ACEOF
15729 if { (ac_try="$ac_cpp conftest.$ac_ext"
15730 case "(($ac_try" in
15731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732   *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15736   ac_status=$?
15737   grep -v '^ *+' conftest.er1 >conftest.err
15738   rm -f conftest.er1
15739   cat conftest.err >&5
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } >/dev/null; then
15742   if test -s conftest.err; then
15743     ac_cpp_err=$ac_c_preproc_warn_flag
15744     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15745   else
15746     ac_cpp_err=
15747   fi
15748 else
15749   ac_cpp_err=yes
15750 fi
15751 if test -z "$ac_cpp_err"; then
15752   ac_header_preproc=yes
15753 else
15754   echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757   ac_header_preproc=no
15758 fi
15759
15760 rm -f conftest.err conftest.$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15762 echo "${ECHO_T}$ac_header_preproc" >&6; }
15763
15764 # So?  What about this header?
15765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15766   yes:no: )
15767     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15771     ac_header_preproc=yes
15772     ;;
15773   no:yes:* )
15774     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15776     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15777 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15778     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15780     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15781 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15784     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15786
15787     ;;
15788 esac
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   eval "$as_ac_Header=\$ac_header_preproc"
15795 fi
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797                { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15799
15800 fi
15801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15802   cat >>confdefs.h <<_ACEOF
15803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15804 _ACEOF
15805
15806 fi
15807
15808 done
15809
15810
15811 { echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
15812 echo $ECHO_N "checking for comparison_fn_t... $ECHO_C" >&6; }
15813 if test "${ac_cv_type_comparison_fn_t+set}" = set; then
15814   echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
15816   cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h.  */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h.  */
15822 $ac_includes_default
15823 typedef comparison_fn_t ac__type_new_;
15824 int
15825 main ()
15826 {
15827 if ((ac__type_new_ *) 0)
15828   return 0;
15829 if (sizeof (ac__type_new_))
15830   return 0;
15831   ;
15832   return 0;
15833 }
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839   *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842   (eval "$ac_compile") 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850   { (case "(($ac_try" in
15851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852   *) ac_try_echo=$ac_try;;
15853 esac
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855   (eval "$ac_try") 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); }; } &&
15859          { ac_try='test -s conftest.$ac_objext'
15860   { (case "(($ac_try" in
15861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862   *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865   (eval "$ac_try") 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }; then
15869   ac_cv_type_comparison_fn_t=yes
15870 else
15871   echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15873
15874         ac_cv_type_comparison_fn_t=no
15875 fi
15876
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 fi
15879 { echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
15880 echo "${ECHO_T}$ac_cv_type_comparison_fn_t" >&6; }
15881 if test $ac_cv_type_comparison_fn_t = yes; then
15882
15883 cat >>confdefs.h <<\_ACEOF
15884 #define HAVE_COMPARISON_FN_T 1
15885 _ACEOF
15886
15887 fi
15888
15889
15890
15891
15892 for ac_func in strnlen setenv
15893 do
15894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900   cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h.  */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h.  */
15906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15908 #define $ac_func innocuous_$ac_func
15909
15910 /* System header to define __stub macros and hopefully few prototypes,
15911     which can conflict with char $ac_func (); below.
15912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15913     <limits.h> exists even on freestanding compilers.  */
15914
15915 #ifdef __STDC__
15916 # include <limits.h>
15917 #else
15918 # include <assert.h>
15919 #endif
15920
15921 #undef $ac_func
15922
15923 /* Override any GCC internal prototype to avoid an error.
15924    Use char because int might match the return type of a GCC
15925    builtin and then its argument prototype would still apply.  */
15926 #ifdef __cplusplus
15927 extern "C"
15928 #endif
15929 char $ac_func ();
15930 /* The GNU C library defines this for functions which it implements
15931     to always fail with ENOSYS.  Some functions are actually named
15932     something starting with __ and the normal name is an alias.  */
15933 #if defined __stub_$ac_func || defined __stub___$ac_func
15934 choke me
15935 #endif
15936
15937 int
15938 main ()
15939 {
15940 return $ac_func ();
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (ac_try="$ac_link"
15947 case "(($ac_try" in
15948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949   *) ac_try_echo=$ac_try;;
15950 esac
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952   (eval "$ac_link") 2>conftest.er1
15953   ac_status=$?
15954   grep -v '^ *+' conftest.er1 >conftest.err
15955   rm -f conftest.er1
15956   cat conftest.err >&5
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); } &&
15959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15960   { (case "(($ac_try" in
15961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962   *) ac_try_echo=$ac_try;;
15963 esac
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965   (eval "$ac_try") 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; } &&
15969          { ac_try='test -s conftest$ac_exeext'
15970   { (case "(($ac_try" in
15971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972   *) ac_try_echo=$ac_try;;
15973 esac
15974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15975   (eval "$ac_try") 2>&5
15976   ac_status=$?
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); }; }; then
15979   eval "$as_ac_var=yes"
15980 else
15981   echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15983
15984         eval "$as_ac_var=no"
15985 fi
15986
15987 rm -f core conftest.err conftest.$ac_objext \
15988       conftest$ac_exeext conftest.$ac_ext
15989 fi
15990 ac_res=`eval echo '${'$as_ac_var'}'`
15991                { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15993 if test `eval echo '${'$as_ac_var'}'` = yes; then
15994   cat >>confdefs.h <<_ACEOF
15995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15996 _ACEOF
15997
15998 fi
15999 done
16000
16001
16002
16003
16004
16005
16006
16007 for ac_func in strtoull __strtoull strtouq strtoll __strtoll strtoq
16008 do
16009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16013   echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015   cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h.  */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h.  */
16021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16023 #define $ac_func innocuous_$ac_func
16024
16025 /* System header to define __stub macros and hopefully few prototypes,
16026     which can conflict with char $ac_func (); below.
16027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16028     <limits.h> exists even on freestanding compilers.  */
16029
16030 #ifdef __STDC__
16031 # include <limits.h>
16032 #else
16033 # include <assert.h>
16034 #endif
16035
16036 #undef $ac_func
16037
16038 /* Override any GCC internal prototype to avoid an error.
16039    Use char because int might match the return type of a GCC
16040    builtin and then its argument prototype would still apply.  */
16041 #ifdef __cplusplus
16042 extern "C"
16043 #endif
16044 char $ac_func ();
16045 /* The GNU C library defines this for functions which it implements
16046     to always fail with ENOSYS.  Some functions are actually named
16047     something starting with __ and the normal name is an alias.  */
16048 #if defined __stub_$ac_func || defined __stub___$ac_func
16049 choke me
16050 #endif
16051
16052 int
16053 main ()
16054 {
16055 return $ac_func ();
16056   ;
16057   return 0;
16058 }
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_link") 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } &&
16074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16075   { (case "(($ac_try" in
16076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077   *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080   (eval "$ac_try") 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); }; } &&
16084          { ac_try='test -s conftest$ac_exeext'
16085   { (case "(($ac_try" in
16086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087   *) ac_try_echo=$ac_try;;
16088 esac
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090   (eval "$ac_try") 2>&5
16091   ac_status=$?
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); }; }; then
16094   eval "$as_ac_var=yes"
16095 else
16096   echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16098
16099         eval "$as_ac_var=no"
16100 fi
16101
16102 rm -f core conftest.err conftest.$ac_objext \
16103       conftest$ac_exeext conftest.$ac_ext
16104 fi
16105 ac_res=`eval echo '${'$as_ac_var'}'`
16106                { echo "$as_me:$LINENO: result: $ac_res" >&5
16107 echo "${ECHO_T}$ac_res" >&6; }
16108 if test `eval echo '${'$as_ac_var'}'` = yes; then
16109   cat >>confdefs.h <<_ACEOF
16110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16111 _ACEOF
16112
16113 fi
16114 done
16115
16116
16117 # this test disabled as we don't actually need __VA_ARGS__ yet
16118 cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h.  */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h.  */
16124
16125 #define eprintf(...) fprintf(stderr, __VA_ARGS__)
16126 eprintf("bla", "bar");
16127
16128 _ACEOF
16129 if { (ac_try="$ac_cpp conftest.$ac_ext"
16130 case "(($ac_try" in
16131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132   *) ac_try_echo=$ac_try;;
16133 esac
16134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16136   ac_status=$?
16137   grep -v '^ *+' conftest.er1 >conftest.err
16138   rm -f conftest.er1
16139   cat conftest.err >&5
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); } >/dev/null; then
16142   if test -s conftest.err; then
16143     ac_cpp_err=$ac_c_preproc_warn_flag
16144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16145   else
16146     ac_cpp_err=
16147   fi
16148 else
16149   ac_cpp_err=yes
16150 fi
16151 if test -z "$ac_cpp_err"; then
16152
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE__VA_ARGS__MACRO 1
16155 _ACEOF
16156
16157 else
16158   echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161
16162 fi
16163
16164 rm -f conftest.err conftest.$ac_ext
16165
16166 # Check prerequisites
16167
16168
16169
16170 for ac_func in memset printf syslog
16171 do
16172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16176   echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178   cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h.  */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h.  */
16184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16186 #define $ac_func innocuous_$ac_func
16187
16188 /* System header to define __stub macros and hopefully few prototypes,
16189     which can conflict with char $ac_func (); below.
16190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16191     <limits.h> exists even on freestanding compilers.  */
16192
16193 #ifdef __STDC__
16194 # include <limits.h>
16195 #else
16196 # include <assert.h>
16197 #endif
16198
16199 #undef $ac_func
16200
16201 /* Override any GCC internal prototype to avoid an error.
16202    Use char because int might match the return type of a GCC
16203    builtin and then its argument prototype would still apply.  */
16204 #ifdef __cplusplus
16205 extern "C"
16206 #endif
16207 char $ac_func ();
16208 /* The GNU C library defines this for functions which it implements
16209     to always fail with ENOSYS.  Some functions are actually named
16210     something starting with __ and the normal name is an alias.  */
16211 #if defined __stub_$ac_func || defined __stub___$ac_func
16212 choke me
16213 #endif
16214
16215 int
16216 main ()
16217 {
16218 return $ac_func ();
16219   ;
16220   return 0;
16221 }
16222 _ACEOF
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (ac_try="$ac_link"
16225 case "(($ac_try" in
16226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227   *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230   (eval "$ac_link") 2>conftest.er1
16231   ac_status=$?
16232   grep -v '^ *+' conftest.er1 >conftest.err
16233   rm -f conftest.er1
16234   cat conftest.err >&5
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); } &&
16237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16238   { (case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_try") 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; } &&
16247          { ac_try='test -s conftest$ac_exeext'
16248   { (case "(($ac_try" in
16249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250   *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253   (eval "$ac_try") 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; }; then
16257   eval "$as_ac_var=yes"
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262         eval "$as_ac_var=no"
16263 fi
16264
16265 rm -f core conftest.err conftest.$ac_objext \
16266       conftest$ac_exeext conftest.$ac_ext
16267 fi
16268 ac_res=`eval echo '${'$as_ac_var'}'`
16269                { echo "$as_me:$LINENO: result: $ac_res" >&5
16270 echo "${ECHO_T}$ac_res" >&6; }
16271 if test `eval echo '${'$as_ac_var'}'` = yes; then
16272   cat >>confdefs.h <<_ACEOF
16273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16274 _ACEOF
16275
16276 else
16277    { { echo "$as_me:$LINENO: error: Required function not found" >&5
16278 echo "$as_me: error: Required function not found" >&2;}
16279    { (exit 1); exit 1; }; }
16280 fi
16281 done
16282
16283
16284 { echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
16285 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6; }
16286 if test "${samba_cv_sig_atomic_t+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289
16290     cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296
16297 #include <sys/types.h>
16298 #if STDC_HEADERS
16299 #include <stdlib.h>
16300 #include <stddef.h>
16301 #endif
16302 #include <signal.h>
16303 int
16304 main ()
16305 {
16306 sig_atomic_t i = 0
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext
16312 if { (ac_try="$ac_compile"
16313 case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318   (eval "$ac_compile") 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } &&
16325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326   { (case "(($ac_try" in
16327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328   *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331   (eval "$ac_try") 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; } &&
16335          { ac_try='test -s conftest.$ac_objext'
16336   { (case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_try") 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; }; then
16345   samba_cv_sig_atomic_t=yes
16346 else
16347   echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16349
16350         samba_cv_sig_atomic_t=no
16351 fi
16352
16353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354 fi
16355 { echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
16356 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6; }
16357 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
16358
16359 cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_SIG_ATOMIC_T_TYPE 1
16361 _ACEOF
16362
16363 fi
16364
16365
16366 { echo "$as_me:$LINENO: checking for O_DIRECT flag to open(2)" >&5
16367 echo $ECHO_N "checking for O_DIRECT flag to open(2)... $ECHO_C" >&6; }
16368 if test "${samba_cv_HAVE_OPEN_O_DIRECT+set}" = set; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371
16372 cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378
16379 #include <unistd.h>
16380 #ifdef HAVE_FCNTL_H
16381 #include <fcntl.h>
16382 #endif
16383 int
16384 main ()
16385 {
16386 int fd = open("/dev/null", O_DIRECT);
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_compile") 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } &&
16405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406   { (case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_try") 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; } &&
16415          { ac_try='test -s conftest.$ac_objext'
16416   { (case "(($ac_try" in
16417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418   *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421   (eval "$ac_try") 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425   samba_cv_HAVE_OPEN_O_DIRECT=yes
16426 else
16427   echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430         samba_cv_HAVE_OPEN_O_DIRECT=no
16431 fi
16432
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 fi
16435 { echo "$as_me:$LINENO: result: $samba_cv_HAVE_OPEN_O_DIRECT" >&5
16436 echo "${ECHO_T}$samba_cv_HAVE_OPEN_O_DIRECT" >&6; }
16437 if test x"$samba_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
16438
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_OPEN_O_DIRECT 1
16441 _ACEOF
16442
16443 fi
16444
16445
16446 { echo "$as_me:$LINENO: checking that the C compiler can precompile header files" >&5
16447 echo $ECHO_N "checking that the C compiler can precompile header files... $ECHO_C" >&6; }
16448 if test "${samba_cv_precompiled_headers+set}" = set; then
16449   echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451
16452                 touch conftest.h
16453         if ${CC-cc} conftest.h 2> /dev/null && test -f conftest.h.gch; then
16454                 precompiled_headers=yes
16455         else
16456                 precompiled_headers=no
16457         fi
16458 fi
16459 { echo "$as_me:$LINENO: result: $samba_cv_precompiled_headers" >&5
16460 echo "${ECHO_T}$samba_cv_precompiled_headers" >&6; }
16461
16462
16463
16464 { echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
16465 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6; }
16466 if test "${samba_cv_volatile+set}" = set; then
16467   echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469
16470         cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h.  */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h.  */
16476 #include <sys/types.h>
16477 int
16478 main ()
16479 {
16480 volatile int i = 0
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489   *) ac_try_echo=$ac_try;;
16490 esac
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492   (eval "$ac_compile") 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } &&
16499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16500   { (case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505   (eval "$ac_try") 2>&5
16506   ac_status=$?
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); }; } &&
16509          { ac_try='test -s conftest.$ac_objext'
16510   { (case "(($ac_try" in
16511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512   *) ac_try_echo=$ac_try;;
16513 esac
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515   (eval "$ac_try") 2>&5
16516   ac_status=$?
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); }; }; then
16519   samba_cv_volatile=yes
16520 else
16521   echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524         samba_cv_volatile=no
16525 fi
16526
16527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16528 fi
16529 { echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
16530 echo "${ECHO_T}$samba_cv_volatile" >&6; }
16531 if test x"$samba_cv_volatile" = x"yes"; then
16532
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_VOLATILE 1
16535 _ACEOF
16536
16537 fi
16538
16539 # filesys
16540
16541
16542
16543
16544
16545 ac_header_dirent=no
16546 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16547   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16548 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16549 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559 #include <sys/types.h>
16560 #include <$ac_hdr>
16561
16562 int
16563 main ()
16564 {
16565 if ((DIR *) 0)
16566 return 0;
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578   (eval "$ac_compile") 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } &&
16585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586   { (case "(($ac_try" in
16587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588   *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591   (eval "$ac_try") 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; } &&
16595          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; }; then
16605   eval "$as_ac_Header=yes"
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610         eval "$as_ac_Header=no"
16611 fi
16612
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 fi
16615 ac_res=`eval echo '${'$as_ac_Header'}'`
16616                { echo "$as_me:$LINENO: result: $ac_res" >&5
16617 echo "${ECHO_T}$ac_res" >&6; }
16618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16619   cat >>confdefs.h <<_ACEOF
16620 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16621 _ACEOF
16622
16623 ac_header_dirent=$ac_hdr; break
16624 fi
16625
16626 done
16627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16628 if test $ac_header_dirent = dirent.h; then
16629   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16630 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16631 if test "${ac_cv_search_opendir+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   ac_func_search_save_LIBS=$LIBS
16635 cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h.  */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h.  */
16641
16642 /* Override any GCC internal prototype to avoid an error.
16643    Use char because int might match the return type of a GCC
16644    builtin and then its argument prototype would still apply.  */
16645 #ifdef __cplusplus
16646 extern "C"
16647 #endif
16648 char opendir ();
16649 int
16650 main ()
16651 {
16652 return opendir ();
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 for ac_lib in '' dir; do
16658   if test -z "$ac_lib"; then
16659     ac_res="none required"
16660   else
16661     ac_res=-l$ac_lib
16662     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16663   fi
16664   rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (ac_try="$ac_link"
16666 case "(($ac_try" in
16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668   *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671   (eval "$ac_link") 2>conftest.er1
16672   ac_status=$?
16673   grep -v '^ *+' conftest.er1 >conftest.err
16674   rm -f conftest.er1
16675   cat conftest.err >&5
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); } &&
16678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16679   { (case "(($ac_try" in
16680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681   *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684   (eval "$ac_try") 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); }; } &&
16688          { ac_try='test -s conftest$ac_exeext'
16689   { (case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_try") 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }; }; then
16698   ac_cv_search_opendir=$ac_res
16699 else
16700   echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703
16704 fi
16705
16706 rm -f core conftest.err conftest.$ac_objext \
16707       conftest$ac_exeext
16708   if test "${ac_cv_search_opendir+set}" = set; then
16709   break
16710 fi
16711 done
16712 if test "${ac_cv_search_opendir+set}" = set; then
16713   :
16714 else
16715   ac_cv_search_opendir=no
16716 fi
16717 rm conftest.$ac_ext
16718 LIBS=$ac_func_search_save_LIBS
16719 fi
16720 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16721 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16722 ac_res=$ac_cv_search_opendir
16723 if test "$ac_res" != no; then
16724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16725
16726 fi
16727
16728 else
16729   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16731 if test "${ac_cv_search_opendir+set}" = set; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   ac_func_search_save_LIBS=$LIBS
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741
16742 /* Override any GCC internal prototype to avoid an error.
16743    Use char because int might match the return type of a GCC
16744    builtin and then its argument prototype would still apply.  */
16745 #ifdef __cplusplus
16746 extern "C"
16747 #endif
16748 char opendir ();
16749 int
16750 main ()
16751 {
16752 return opendir ();
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 for ac_lib in '' x; do
16758   if test -z "$ac_lib"; then
16759     ac_res="none required"
16760   else
16761     ac_res=-l$ac_lib
16762     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16763   fi
16764   rm -f conftest.$ac_objext conftest$ac_exeext
16765 if { (ac_try="$ac_link"
16766 case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_link") 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } &&
16778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16779   { (case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_try") 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; } &&
16788          { ac_try='test -s conftest$ac_exeext'
16789   { (case "(($ac_try" in
16790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791   *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794   (eval "$ac_try") 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; }; then
16798   ac_cv_search_opendir=$ac_res
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803
16804 fi
16805
16806 rm -f core conftest.err conftest.$ac_objext \
16807       conftest$ac_exeext
16808   if test "${ac_cv_search_opendir+set}" = set; then
16809   break
16810 fi
16811 done
16812 if test "${ac_cv_search_opendir+set}" = set; then
16813   :
16814 else
16815   ac_cv_search_opendir=no
16816 fi
16817 rm conftest.$ac_ext
16818 LIBS=$ac_func_search_save_LIBS
16819 fi
16820 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16821 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16822 ac_res=$ac_cv_search_opendir
16823 if test "$ac_res" != no; then
16824   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16825
16826 fi
16827
16828 fi
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839 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
16840 do
16841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16843   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 fi
16848 ac_res=`eval echo '${'$as_ac_Header'}'`
16849                { echo "$as_me:$LINENO: result: $ac_res" >&5
16850 echo "${ECHO_T}$ac_res" >&6; }
16851 else
16852   # Is the header compilable?
16853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h.  */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h.  */
16861 $ac_includes_default
16862 #include <$ac_header>
16863 _ACEOF
16864 rm -f conftest.$ac_objext
16865 if { (ac_try="$ac_compile"
16866 case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_compile") 2>conftest.er1
16872   ac_status=$?
16873   grep -v '^ *+' conftest.er1 >conftest.err
16874   rm -f conftest.er1
16875   cat conftest.err >&5
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); } &&
16878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16879   { (case "(($ac_try" in
16880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881   *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884   (eval "$ac_try") 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; } &&
16888          { ac_try='test -s conftest.$ac_objext'
16889   { (case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894   (eval "$ac_try") 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); }; }; then
16898   ac_header_compiler=yes
16899 else
16900   echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903         ac_header_compiler=no
16904 fi
16905
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16908 echo "${ECHO_T}$ac_header_compiler" >&6; }
16909
16910 # Is the header present?
16911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919 #include <$ac_header>
16920 _ACEOF
16921 if { (ac_try="$ac_cpp conftest.$ac_ext"
16922 case "(($ac_try" in
16923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924   *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16928   ac_status=$?
16929   grep -v '^ *+' conftest.er1 >conftest.err
16930   rm -f conftest.er1
16931   cat conftest.err >&5
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); } >/dev/null; then
16934   if test -s conftest.err; then
16935     ac_cpp_err=$ac_c_preproc_warn_flag
16936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16937   else
16938     ac_cpp_err=
16939   fi
16940 else
16941   ac_cpp_err=yes
16942 fi
16943 if test -z "$ac_cpp_err"; then
16944   ac_header_preproc=yes
16945 else
16946   echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16948
16949   ac_header_preproc=no
16950 fi
16951
16952 rm -f conftest.err conftest.$ac_ext
16953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16954 echo "${ECHO_T}$ac_header_preproc" >&6; }
16955
16956 # So?  What about this header?
16957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16958   yes:no: )
16959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16963     ac_header_preproc=yes
16964     ;;
16965   no:yes:* )
16966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16968     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16969 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16970     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16972     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16973 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16976     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16978
16979     ;;
16980 esac
16981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   eval "$as_ac_Header=\$ac_header_preproc"
16987 fi
16988 ac_res=`eval echo '${'$as_ac_Header'}'`
16989                { echo "$as_me:$LINENO: result: $ac_res" >&5
16990 echo "${ECHO_T}$ac_res" >&6; }
16991
16992 fi
16993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16994   cat >>confdefs.h <<_ACEOF
16995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16996 _ACEOF
16997
16998 fi
16999
17000 done
17001
17002
17003 # select
17004
17005 for ac_header in sys/select.h
17006 do
17007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17009   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17012   echo $ECHO_N "(cached) $ECHO_C" >&6
17013 fi
17014 ac_res=`eval echo '${'$as_ac_Header'}'`
17015                { echo "$as_me:$LINENO: result: $ac_res" >&5
17016 echo "${ECHO_T}$ac_res" >&6; }
17017 else
17018   # Is the header compilable?
17019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17021 cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 $ac_includes_default
17028 #include <$ac_header>
17029 _ACEOF
17030 rm -f conftest.$ac_objext
17031 if { (ac_try="$ac_compile"
17032 case "(($ac_try" in
17033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034   *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037   (eval "$ac_compile") 2>conftest.er1
17038   ac_status=$?
17039   grep -v '^ *+' conftest.er1 >conftest.err
17040   rm -f conftest.er1
17041   cat conftest.err >&5
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); } &&
17044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045   { (case "(($ac_try" in
17046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047   *) ac_try_echo=$ac_try;;
17048 esac
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050   (eval "$ac_try") 2>&5
17051   ac_status=$?
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); }; } &&
17054          { ac_try='test -s conftest.$ac_objext'
17055   { (case "(($ac_try" in
17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057   *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060   (eval "$ac_try") 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; }; then
17064   ac_header_compiler=yes
17065 else
17066   echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069         ac_header_compiler=no
17070 fi
17071
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17074 echo "${ECHO_T}$ac_header_compiler" >&6; }
17075
17076 # Is the header present?
17077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17079 cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h.  */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h.  */
17085 #include <$ac_header>
17086 _ACEOF
17087 if { (ac_try="$ac_cpp conftest.$ac_ext"
17088 case "(($ac_try" in
17089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090   *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17094   ac_status=$?
17095   grep -v '^ *+' conftest.er1 >conftest.err
17096   rm -f conftest.er1
17097   cat conftest.err >&5
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); } >/dev/null; then
17100   if test -s conftest.err; then
17101     ac_cpp_err=$ac_c_preproc_warn_flag
17102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17103   else
17104     ac_cpp_err=
17105   fi
17106 else
17107   ac_cpp_err=yes
17108 fi
17109 if test -z "$ac_cpp_err"; then
17110   ac_header_preproc=yes
17111 else
17112   echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115   ac_header_preproc=no
17116 fi
17117
17118 rm -f conftest.err conftest.$ac_ext
17119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17120 echo "${ECHO_T}$ac_header_preproc" >&6; }
17121
17122 # So?  What about this header?
17123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17124   yes:no: )
17125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17129     ac_header_preproc=yes
17130     ;;
17131   no:yes:* )
17132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17144
17145     ;;
17146 esac
17147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17150   echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152   eval "$as_ac_Header=\$ac_header_preproc"
17153 fi
17154 ac_res=`eval echo '${'$as_ac_Header'}'`
17155                { echo "$as_me:$LINENO: result: $ac_res" >&5
17156 echo "${ECHO_T}$ac_res" >&6; }
17157
17158 fi
17159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17160   cat >>confdefs.h <<_ACEOF
17161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17162 _ACEOF
17163
17164 fi
17165
17166 done
17167
17168
17169 # time
17170
17171
17172 for ac_header in sys/time.h utime.h
17173 do
17174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 fi
17181 ac_res=`eval echo '${'$as_ac_Header'}'`
17182                { echo "$as_me:$LINENO: result: $ac_res" >&5
17183 echo "${ECHO_T}$ac_res" >&6; }
17184 else
17185   # Is the header compilable?
17186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17187 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
17195 #include <$ac_header>
17196 _ACEOF
17197 rm -f conftest.$ac_objext
17198 if { (ac_try="$ac_compile"
17199 case "(($ac_try" in
17200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201   *) ac_try_echo=$ac_try;;
17202 esac
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204   (eval "$ac_compile") 2>conftest.er1
17205   ac_status=$?
17206   grep -v '^ *+' conftest.er1 >conftest.err
17207   rm -f conftest.er1
17208   cat conftest.err >&5
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } &&
17211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17212   { (case "(($ac_try" in
17213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214   *) ac_try_echo=$ac_try;;
17215 esac
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217   (eval "$ac_try") 2>&5
17218   ac_status=$?
17219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220   (exit $ac_status); }; } &&
17221          { ac_try='test -s conftest.$ac_objext'
17222   { (case "(($ac_try" in
17223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224   *) ac_try_echo=$ac_try;;
17225 esac
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227   (eval "$ac_try") 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); }; }; then
17231   ac_header_compiler=yes
17232 else
17233   echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17235
17236         ac_header_compiler=no
17237 fi
17238
17239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17241 echo "${ECHO_T}$ac_header_compiler" >&6; }
17242
17243 # Is the header present?
17244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17246 cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252 #include <$ac_header>
17253 _ACEOF
17254 if { (ac_try="$ac_cpp conftest.$ac_ext"
17255 case "(($ac_try" in
17256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257   *) ac_try_echo=$ac_try;;
17258 esac
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17261   ac_status=$?
17262   grep -v '^ *+' conftest.er1 >conftest.err
17263   rm -f conftest.er1
17264   cat conftest.err >&5
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); } >/dev/null; then
17267   if test -s conftest.err; then
17268     ac_cpp_err=$ac_c_preproc_warn_flag
17269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17270   else
17271     ac_cpp_err=
17272   fi
17273 else
17274   ac_cpp_err=yes
17275 fi
17276 if test -z "$ac_cpp_err"; then
17277   ac_header_preproc=yes
17278 else
17279   echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282   ac_header_preproc=no
17283 fi
17284
17285 rm -f conftest.err conftest.$ac_ext
17286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17287 echo "${ECHO_T}$ac_header_preproc" >&6; }
17288
17289 # So?  What about this header?
17290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17291   yes:no: )
17292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17296     ac_header_preproc=yes
17297     ;;
17298   no:yes:* )
17299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17311
17312     ;;
17313 esac
17314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319   eval "$as_ac_Header=\$ac_header_preproc"
17320 fi
17321 ac_res=`eval echo '${'$as_ac_Header'}'`
17322                { echo "$as_me:$LINENO: result: $ac_res" >&5
17323 echo "${ECHO_T}$ac_res" >&6; }
17324
17325 fi
17326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17327   cat >>confdefs.h <<_ACEOF
17328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17329 _ACEOF
17330
17331 fi
17332
17333 done
17334
17335 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17336 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17337 if test "${ac_cv_header_time+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 #include <sys/types.h>
17347 #include <sys/time.h>
17348 #include <time.h>
17349
17350 int
17351 main ()
17352 {
17353 if ((struct tm *) 0)
17354 return 0;
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext
17360 if { (ac_try="$ac_compile"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_compile") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } &&
17373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17374   { (case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_try") 2>&5
17380   ac_status=$?
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); }; } &&
17383          { ac_try='test -s conftest.$ac_objext'
17384   { (case "(($ac_try" in
17385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386   *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389   (eval "$ac_try") 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); }; }; then
17393   ac_cv_header_time=yes
17394 else
17395   echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17397
17398         ac_cv_header_time=no
17399 fi
17400
17401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17402 fi
17403 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17404 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17405 if test $ac_cv_header_time = yes; then
17406
17407 cat >>confdefs.h <<\_ACEOF
17408 #define TIME_WITH_SYS_TIME 1
17409 _ACEOF
17410
17411 fi
17412
17413
17414 # wait
17415 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
17416 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
17417 if test "${ac_cv_header_sys_wait_h+set}" = set; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426 #include <sys/types.h>
17427 #include <sys/wait.h>
17428 #ifndef WEXITSTATUS
17429 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17430 #endif
17431 #ifndef WIFEXITED
17432 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17433 #endif
17434
17435 int
17436 main ()
17437 {
17438   int s;
17439   wait (&s);
17440   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17441   ;
17442   return 0;
17443 }
17444 _ACEOF
17445 rm -f conftest.$ac_objext
17446 if { (ac_try="$ac_compile"
17447 case "(($ac_try" in
17448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449   *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452   (eval "$ac_compile") 2>conftest.er1
17453   ac_status=$?
17454   grep -v '^ *+' conftest.er1 >conftest.err
17455   rm -f conftest.er1
17456   cat conftest.err >&5
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); } &&
17459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17460   { (case "(($ac_try" in
17461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462   *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465   (eval "$ac_try") 2>&5
17466   ac_status=$?
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); }; } &&
17469          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; }; then
17479   ac_cv_header_sys_wait_h=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484         ac_cv_header_sys_wait_h=no
17485 fi
17486
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 fi
17489 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
17490 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
17491 if test $ac_cv_header_sys_wait_h = yes; then
17492
17493 cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_SYS_WAIT_H 1
17495 _ACEOF
17496
17497 fi
17498
17499
17500 # capability
17501
17502 for ac_header in sys/capability.h
17503 do
17504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17509   echo $ECHO_N "(cached) $ECHO_C" >&6
17510 fi
17511 ac_res=`eval echo '${'$as_ac_Header'}'`
17512                { echo "$as_me:$LINENO: result: $ac_res" >&5
17513 echo "${ECHO_T}$ac_res" >&6; }
17514 else
17515   # Is the header compilable?
17516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17518 cat >conftest.$ac_ext <<_ACEOF
17519 /* confdefs.h.  */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h.  */
17524 $ac_includes_default
17525 #include <$ac_header>
17526 _ACEOF
17527 rm -f conftest.$ac_objext
17528 if { (ac_try="$ac_compile"
17529 case "(($ac_try" in
17530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531   *) ac_try_echo=$ac_try;;
17532 esac
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534   (eval "$ac_compile") 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } &&
17541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542   { (case "(($ac_try" in
17543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544   *) ac_try_echo=$ac_try;;
17545 esac
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547   (eval "$ac_try") 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; } &&
17551          { ac_try='test -s conftest.$ac_objext'
17552   { (case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_try") 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; }; then
17561   ac_header_compiler=yes
17562 else
17563   echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17565
17566         ac_header_compiler=no
17567 fi
17568
17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17571 echo "${ECHO_T}$ac_header_compiler" >&6; }
17572
17573 # Is the header present?
17574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h.  */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h.  */
17582 #include <$ac_header>
17583 _ACEOF
17584 if { (ac_try="$ac_cpp conftest.$ac_ext"
17585 case "(($ac_try" in
17586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587   *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17591   ac_status=$?
17592   grep -v '^ *+' conftest.er1 >conftest.err
17593   rm -f conftest.er1
17594   cat conftest.err >&5
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); } >/dev/null; then
17597   if test -s conftest.err; then
17598     ac_cpp_err=$ac_c_preproc_warn_flag
17599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17600   else
17601     ac_cpp_err=
17602   fi
17603 else
17604   ac_cpp_err=yes
17605 fi
17606 if test -z "$ac_cpp_err"; then
17607   ac_header_preproc=yes
17608 else
17609   echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17611
17612   ac_header_preproc=no
17613 fi
17614
17615 rm -f conftest.err conftest.$ac_ext
17616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17617 echo "${ECHO_T}$ac_header_preproc" >&6; }
17618
17619 # So?  What about this header?
17620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17621   yes:no: )
17622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17626     ac_header_preproc=yes
17627     ;;
17628   no:yes:* )
17629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17641
17642     ;;
17643 esac
17644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17647   echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649   eval "$as_ac_Header=\$ac_header_preproc"
17650 fi
17651 ac_res=`eval echo '${'$as_ac_Header'}'`
17652                { echo "$as_me:$LINENO: result: $ac_res" >&5
17653 echo "${ECHO_T}$ac_res" >&6; }
17654
17655 fi
17656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17657   cat >>confdefs.h <<_ACEOF
17658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17659 _ACEOF
17660
17661 fi
17662
17663 done
17664
17665
17666 # passwd
17667
17668
17669
17670
17671
17672
17673
17674 for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
17675 do
17676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17678   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 fi
17683 ac_res=`eval echo '${'$as_ac_Header'}'`
17684                { echo "$as_me:$LINENO: result: $ac_res" >&5
17685 echo "${ECHO_T}$ac_res" >&6; }
17686 else
17687   # Is the header compilable?
17688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696 $ac_includes_default
17697 #include <$ac_header>
17698 _ACEOF
17699 rm -f conftest.$ac_objext
17700 if { (ac_try="$ac_compile"
17701 case "(($ac_try" in
17702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703   *) ac_try_echo=$ac_try;;
17704 esac
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706   (eval "$ac_compile") 2>conftest.er1
17707   ac_status=$?
17708   grep -v '^ *+' conftest.er1 >conftest.err
17709   rm -f conftest.er1
17710   cat conftest.err >&5
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); } &&
17713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17714   { (case "(($ac_try" in
17715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716   *) ac_try_echo=$ac_try;;
17717 esac
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719   (eval "$ac_try") 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; } &&
17723          { ac_try='test -s conftest.$ac_objext'
17724   { (case "(($ac_try" in
17725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726   *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729   (eval "$ac_try") 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733   ac_header_compiler=yes
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738         ac_header_compiler=no
17739 fi
17740
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17743 echo "${ECHO_T}$ac_header_compiler" >&6; }
17744
17745 # Is the header present?
17746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17748 cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h.  */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h.  */
17754 #include <$ac_header>
17755 _ACEOF
17756 if { (ac_try="$ac_cpp conftest.$ac_ext"
17757 case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17763   ac_status=$?
17764   grep -v '^ *+' conftest.er1 >conftest.err
17765   rm -f conftest.er1
17766   cat conftest.err >&5
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); } >/dev/null; then
17769   if test -s conftest.err; then
17770     ac_cpp_err=$ac_c_preproc_warn_flag
17771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17772   else
17773     ac_cpp_err=
17774   fi
17775 else
17776   ac_cpp_err=yes
17777 fi
17778 if test -z "$ac_cpp_err"; then
17779   ac_header_preproc=yes
17780 else
17781   echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17783
17784   ac_header_preproc=no
17785 fi
17786
17787 rm -f conftest.err conftest.$ac_ext
17788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17789 echo "${ECHO_T}$ac_header_preproc" >&6; }
17790
17791 # So?  What about this header?
17792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17793   yes:no: )
17794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17798     ac_header_preproc=yes
17799     ;;
17800   no:yes:* )
17801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17813
17814     ;;
17815 esac
17816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17819   echo $ECHO_N "(cached) $ECHO_C" >&6
17820 else
17821   eval "$as_ac_Header=\$ac_header_preproc"
17822 fi
17823 ac_res=`eval echo '${'$as_ac_Header'}'`
17824                { echo "$as_me:$LINENO: result: $ac_res" >&5
17825 echo "${ECHO_T}$ac_res" >&6; }
17826
17827 fi
17828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17829   cat >>confdefs.h <<_ACEOF
17830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17831 _ACEOF
17832
17833 fi
17834
17835 done
17836
17837
17838 # locale
17839
17840
17841 for ac_header in ctype.h locale.h
17842 do
17843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17848   echo $ECHO_N "(cached) $ECHO_C" >&6
17849 fi
17850 ac_res=`eval echo '${'$as_ac_Header'}'`
17851                { echo "$as_me:$LINENO: result: $ac_res" >&5
17852 echo "${ECHO_T}$ac_res" >&6; }
17853 else
17854   # Is the header compilable?
17855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17856 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
17864 #include <$ac_header>
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870   *) ac_try_echo=$ac_try;;
17871 esac
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873   (eval "$ac_compile") 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } &&
17880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17881   { (case "(($ac_try" in
17882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883   *) ac_try_echo=$ac_try;;
17884 esac
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886   (eval "$ac_try") 2>&5
17887   ac_status=$?
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); }; } &&
17890          { ac_try='test -s conftest.$ac_objext'
17891   { (case "(($ac_try" in
17892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893   *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896   (eval "$ac_try") 2>&5
17897   ac_status=$?
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); }; }; then
17900   ac_header_compiler=yes
17901 else
17902   echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17904
17905         ac_header_compiler=no
17906 fi
17907
17908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17910 echo "${ECHO_T}$ac_header_compiler" >&6; }
17911
17912 # Is the header present?
17913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17915 cat >conftest.$ac_ext <<_ACEOF
17916 /* confdefs.h.  */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h.  */
17921 #include <$ac_header>
17922 _ACEOF
17923 if { (ac_try="$ac_cpp conftest.$ac_ext"
17924 case "(($ac_try" in
17925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926   *) ac_try_echo=$ac_try;;
17927 esac
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17930   ac_status=$?
17931   grep -v '^ *+' conftest.er1 >conftest.err
17932   rm -f conftest.er1
17933   cat conftest.err >&5
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } >/dev/null; then
17936   if test -s conftest.err; then
17937     ac_cpp_err=$ac_c_preproc_warn_flag
17938     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17939   else
17940     ac_cpp_err=
17941   fi
17942 else
17943   ac_cpp_err=yes
17944 fi
17945 if test -z "$ac_cpp_err"; then
17946   ac_header_preproc=yes
17947 else
17948   echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17950
17951   ac_header_preproc=no
17952 fi
17953
17954 rm -f conftest.err conftest.$ac_ext
17955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17956 echo "${ECHO_T}$ac_header_preproc" >&6; }
17957
17958 # So?  What about this header?
17959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17960   yes:no: )
17961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17965     ac_header_preproc=yes
17966     ;;
17967   no:yes:* )
17968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17970     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17971 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17972     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17974     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17975 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17978     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17980
17981     ;;
17982 esac
17983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17986   echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988   eval "$as_ac_Header=\$ac_header_preproc"
17989 fi
17990 ac_res=`eval echo '${'$as_ac_Header'}'`
17991                { echo "$as_me:$LINENO: result: $ac_res" >&5
17992 echo "${ECHO_T}$ac_res" >&6; }
17993
17994 fi
17995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17996   cat >>confdefs.h <<_ACEOF
17997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17998 _ACEOF
17999
18000 fi
18001
18002 done
18003
18004
18005 # glob
18006
18007 for ac_header in fnmatch.h
18008 do
18009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18011   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18014   echo $ECHO_N "(cached) $ECHO_C" >&6
18015 fi
18016 ac_res=`eval echo '${'$as_ac_Header'}'`
18017                { echo "$as_me:$LINENO: result: $ac_res" >&5
18018 echo "${ECHO_T}$ac_res" >&6; }
18019 else
18020   # Is the header compilable?
18021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18023 cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h.  */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h.  */
18029 $ac_includes_default
18030 #include <$ac_header>
18031 _ACEOF
18032 rm -f conftest.$ac_objext
18033 if { (ac_try="$ac_compile"
18034 case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039   (eval "$ac_compile") 2>conftest.er1
18040   ac_status=$?
18041   grep -v '^ *+' conftest.er1 >conftest.err
18042   rm -f conftest.er1
18043   cat conftest.err >&5
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); } &&
18046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18047   { (case "(($ac_try" in
18048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049   *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052   (eval "$ac_try") 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); }; } &&
18056          { ac_try='test -s conftest.$ac_objext'
18057   { (case "(($ac_try" in
18058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059   *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062   (eval "$ac_try") 2>&5
18063   ac_status=$?
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); }; }; then
18066   ac_header_compiler=yes
18067 else
18068   echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18070
18071         ac_header_compiler=no
18072 fi
18073
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18076 echo "${ECHO_T}$ac_header_compiler" >&6; }
18077
18078 # Is the header present?
18079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18081 cat >conftest.$ac_ext <<_ACEOF
18082 /* confdefs.h.  */
18083 _ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h.  */
18087 #include <$ac_header>
18088 _ACEOF
18089 if { (ac_try="$ac_cpp conftest.$ac_ext"
18090 case "(($ac_try" in
18091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092   *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } >/dev/null; then
18102   if test -s conftest.err; then
18103     ac_cpp_err=$ac_c_preproc_warn_flag
18104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18105   else
18106     ac_cpp_err=
18107   fi
18108 else
18109   ac_cpp_err=yes
18110 fi
18111 if test -z "$ac_cpp_err"; then
18112   ac_header_preproc=yes
18113 else
18114   echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18116
18117   ac_header_preproc=no
18118 fi
18119
18120 rm -f conftest.err conftest.$ac_ext
18121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18122 echo "${ECHO_T}$ac_header_preproc" >&6; }
18123
18124 # So?  What about this header?
18125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18126   yes:no: )
18127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18131     ac_header_preproc=yes
18132     ;;
18133   no:yes:* )
18134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18146
18147     ;;
18148 esac
18149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154   eval "$as_ac_Header=\$ac_header_preproc"
18155 fi
18156 ac_res=`eval echo '${'$as_ac_Header'}'`
18157                { echo "$as_me:$LINENO: result: $ac_res" >&5
18158 echo "${ECHO_T}$ac_res" >&6; }
18159
18160 fi
18161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18162   cat >>confdefs.h <<_ACEOF
18163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18164 _ACEOF
18165
18166 fi
18167
18168 done
18169
18170
18171 # shmem
18172
18173
18174
18175 for ac_header in sys/ipc.h sys/mman.h sys/shm.h
18176 do
18177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 fi
18184 ac_res=`eval echo '${'$as_ac_Header'}'`
18185                { echo "$as_me:$LINENO: result: $ac_res" >&5
18186 echo "${ECHO_T}$ac_res" >&6; }
18187 else
18188   # Is the header compilable?
18189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18191 cat >conftest.$ac_ext <<_ACEOF
18192 /* confdefs.h.  */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h.  */
18197 $ac_includes_default
18198 #include <$ac_header>
18199 _ACEOF
18200 rm -f conftest.$ac_objext
18201 if { (ac_try="$ac_compile"
18202 case "(($ac_try" in
18203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204   *) ac_try_echo=$ac_try;;
18205 esac
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207   (eval "$ac_compile") 2>conftest.er1
18208   ac_status=$?
18209   grep -v '^ *+' conftest.er1 >conftest.err
18210   rm -f conftest.er1
18211   cat conftest.err >&5
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); } &&
18214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18215   { (case "(($ac_try" in
18216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217   *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220   (eval "$ac_try") 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; } &&
18224          { ac_try='test -s conftest.$ac_objext'
18225   { (case "(($ac_try" in
18226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227   *) ac_try_echo=$ac_try;;
18228 esac
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230   (eval "$ac_try") 2>&5
18231   ac_status=$?
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); }; }; then
18234   ac_header_compiler=yes
18235 else
18236   echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18238
18239         ac_header_compiler=no
18240 fi
18241
18242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18244 echo "${ECHO_T}$ac_header_compiler" >&6; }
18245
18246 # Is the header present?
18247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h.  */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h.  */
18255 #include <$ac_header>
18256 _ACEOF
18257 if { (ac_try="$ac_cpp conftest.$ac_ext"
18258 case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18264   ac_status=$?
18265   grep -v '^ *+' conftest.er1 >conftest.err
18266   rm -f conftest.er1
18267   cat conftest.err >&5
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); } >/dev/null; then
18270   if test -s conftest.err; then
18271     ac_cpp_err=$ac_c_preproc_warn_flag
18272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18273   else
18274     ac_cpp_err=
18275   fi
18276 else
18277   ac_cpp_err=yes
18278 fi
18279 if test -z "$ac_cpp_err"; then
18280   ac_header_preproc=yes
18281 else
18282   echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18284
18285   ac_header_preproc=no
18286 fi
18287
18288 rm -f conftest.err conftest.$ac_ext
18289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18290 echo "${ECHO_T}$ac_header_preproc" >&6; }
18291
18292 # So?  What about this header?
18293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18294   yes:no: )
18295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18299     ac_header_preproc=yes
18300     ;;
18301   no:yes:* )
18302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18314
18315     ;;
18316 esac
18317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18320   echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322   eval "$as_ac_Header=\$ac_header_preproc"
18323 fi
18324 ac_res=`eval echo '${'$as_ac_Header'}'`
18325                { echo "$as_me:$LINENO: result: $ac_res" >&5
18326 echo "${ECHO_T}$ac_res" >&6; }
18327
18328 fi
18329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18330   cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18332 _ACEOF
18333
18334 fi
18335
18336 done
18337
18338
18339 # terminal
18340
18341
18342
18343 for ac_header in termios.h termio.h sys/termio.h
18344 do
18345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18347   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18350   echo $ECHO_N "(cached) $ECHO_C" >&6
18351 fi
18352 ac_res=`eval echo '${'$as_ac_Header'}'`
18353                { echo "$as_me:$LINENO: result: $ac_res" >&5
18354 echo "${ECHO_T}$ac_res" >&6; }
18355 else
18356   # Is the header compilable?
18357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18359 cat >conftest.$ac_ext <<_ACEOF
18360 /* confdefs.h.  */
18361 _ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h.  */
18365 $ac_includes_default
18366 #include <$ac_header>
18367 _ACEOF
18368 rm -f conftest.$ac_objext
18369 if { (ac_try="$ac_compile"
18370 case "(($ac_try" in
18371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372   *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375   (eval "$ac_compile") 2>conftest.er1
18376   ac_status=$?
18377   grep -v '^ *+' conftest.er1 >conftest.err
18378   rm -f conftest.er1
18379   cat conftest.err >&5
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); } &&
18382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18383   { (case "(($ac_try" in
18384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385   *) ac_try_echo=$ac_try;;
18386 esac
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388   (eval "$ac_try") 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); }; } &&
18392          { ac_try='test -s conftest.$ac_objext'
18393   { (case "(($ac_try" in
18394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395   *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398   (eval "$ac_try") 2>&5
18399   ac_status=$?
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); }; }; then
18402   ac_header_compiler=yes
18403 else
18404   echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18406
18407         ac_header_compiler=no
18408 fi
18409
18410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18412 echo "${ECHO_T}$ac_header_compiler" >&6; }
18413
18414 # Is the header present?
18415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423 #include <$ac_header>
18424 _ACEOF
18425 if { (ac_try="$ac_cpp conftest.$ac_ext"
18426 case "(($ac_try" in
18427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428   *) ac_try_echo=$ac_try;;
18429 esac
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18432   ac_status=$?
18433   grep -v '^ *+' conftest.er1 >conftest.err
18434   rm -f conftest.er1
18435   cat conftest.err >&5
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } >/dev/null; then
18438   if test -s conftest.err; then
18439     ac_cpp_err=$ac_c_preproc_warn_flag
18440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18441   else
18442     ac_cpp_err=
18443   fi
18444 else
18445   ac_cpp_err=yes
18446 fi
18447 if test -z "$ac_cpp_err"; then
18448   ac_header_preproc=yes
18449 else
18450   echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453   ac_header_preproc=no
18454 fi
18455
18456 rm -f conftest.err conftest.$ac_ext
18457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18458 echo "${ECHO_T}$ac_header_preproc" >&6; }
18459
18460 # So?  What about this header?
18461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18462   yes:no: )
18463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18467     ac_header_preproc=yes
18468     ;;
18469   no:yes:* )
18470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18482
18483     ;;
18484 esac
18485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18488   echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490   eval "$as_ac_Header=\$ac_header_preproc"
18491 fi
18492 ac_res=`eval echo '${'$as_ac_Header'}'`
18493                { echo "$as_me:$LINENO: result: $ac_res" >&5
18494 echo "${ECHO_T}$ac_res" >&6; }
18495
18496 fi
18497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18498   cat >>confdefs.h <<_ACEOF
18499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18500 _ACEOF
18501
18502 fi
18503
18504 done
18505
18506
18507
18508 save_LIBS="$LIBS"
18509 LIBS=""
18510
18511 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18512 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18513 if test "${ac_cv_search_dlopen+set}" = set; then
18514   echo $ECHO_N "(cached) $ECHO_C" >&6
18515 else
18516   ac_func_search_save_LIBS=$LIBS
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523
18524 /* Override any GCC internal prototype to avoid an error.
18525    Use char because int might match the return type of a GCC
18526    builtin and then its argument prototype would still apply.  */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 char dlopen ();
18531 int
18532 main ()
18533 {
18534 return dlopen ();
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 for ac_lib in '' dl; do
18540   if test -z "$ac_lib"; then
18541     ac_res="none required"
18542   else
18543     ac_res=-l$ac_lib
18544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18545   fi
18546   rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_link") 2>conftest.er1
18554   ac_status=$?
18555   grep -v '^ *+' conftest.er1 >conftest.err
18556   rm -f conftest.er1
18557   cat conftest.err >&5
18558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559   (exit $ac_status); } &&
18560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18561   { (case "(($ac_try" in
18562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563   *) ac_try_echo=$ac_try;;
18564 esac
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566   (eval "$ac_try") 2>&5
18567   ac_status=$?
18568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569   (exit $ac_status); }; } &&
18570          { ac_try='test -s conftest$ac_exeext'
18571   { (case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_try") 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; }; then
18580   ac_cv_search_dlopen=$ac_res
18581 else
18582   echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18584
18585
18586 fi
18587
18588 rm -f core conftest.err conftest.$ac_objext \
18589       conftest$ac_exeext
18590   if test "${ac_cv_search_dlopen+set}" = set; then
18591   break
18592 fi
18593 done
18594 if test "${ac_cv_search_dlopen+set}" = set; then
18595   :
18596 else
18597   ac_cv_search_dlopen=no
18598 fi
18599 rm conftest.$ac_ext
18600 LIBS=$ac_func_search_save_LIBS
18601 fi
18602 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18603 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18604 ac_res=$ac_cv_search_dlopen
18605 if test "$ac_res" != no; then
18606   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18607
18608 fi
18609
18610
18611
18612 for ac_header in dlfcn.h
18613 do
18614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18616   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18619   echo $ECHO_N "(cached) $ECHO_C" >&6
18620 fi
18621 ac_res=`eval echo '${'$as_ac_Header'}'`
18622                { echo "$as_me:$LINENO: result: $ac_res" >&5
18623 echo "${ECHO_T}$ac_res" >&6; }
18624 else
18625   # Is the header compilable?
18626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h.  */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h.  */
18634 $ac_includes_default
18635 #include <$ac_header>
18636 _ACEOF
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644   (eval "$ac_compile") 2>conftest.er1
18645   ac_status=$?
18646   grep -v '^ *+' conftest.er1 >conftest.err
18647   rm -f conftest.er1
18648   cat conftest.err >&5
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); } &&
18651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18652   { (case "(($ac_try" in
18653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654   *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657   (eval "$ac_try") 2>&5
18658   ac_status=$?
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); }; } &&
18661          { ac_try='test -s conftest.$ac_objext'
18662   { (case "(($ac_try" in
18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664   *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667   (eval "$ac_try") 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; }; then
18671   ac_header_compiler=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676         ac_header_compiler=no
18677 fi
18678
18679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18681 echo "${ECHO_T}$ac_header_compiler" >&6; }
18682
18683 # Is the header present?
18684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h.  */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h.  */
18692 #include <$ac_header>
18693 _ACEOF
18694 if { (ac_try="$ac_cpp conftest.$ac_ext"
18695 case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } >/dev/null; then
18707   if test -s conftest.err; then
18708     ac_cpp_err=$ac_c_preproc_warn_flag
18709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18710   else
18711     ac_cpp_err=
18712   fi
18713 else
18714   ac_cpp_err=yes
18715 fi
18716 if test -z "$ac_cpp_err"; then
18717   ac_header_preproc=yes
18718 else
18719   echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722   ac_header_preproc=no
18723 fi
18724
18725 rm -f conftest.err conftest.$ac_ext
18726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18727 echo "${ECHO_T}$ac_header_preproc" >&6; }
18728
18729 # So?  What about this header?
18730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18731   yes:no: )
18732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18736     ac_header_preproc=yes
18737     ;;
18738   no:yes:* )
18739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18741     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18742 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18743     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18745     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18746 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18749     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18751
18752     ;;
18753 esac
18754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18757   echo $ECHO_N "(cached) $ECHO_C" >&6
18758 else
18759   eval "$as_ac_Header=\$ac_header_preproc"
18760 fi
18761 ac_res=`eval echo '${'$as_ac_Header'}'`
18762                { echo "$as_me:$LINENO: result: $ac_res" >&5
18763 echo "${ECHO_T}$ac_res" >&6; }
18764
18765 fi
18766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18767   cat >>confdefs.h <<_ACEOF
18768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18769 _ACEOF
18770
18771 fi
18772
18773 done
18774
18775
18776 libreplace_cv_dlfcn=no
18777
18778
18779
18780
18781 for ac_func in dlopen dlsym dlerror dlclose
18782 do
18783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18787   echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789   cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h.  */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h.  */
18795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18797 #define $ac_func innocuous_$ac_func
18798
18799 /* System header to define __stub macros and hopefully few prototypes,
18800     which can conflict with char $ac_func (); below.
18801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802     <limits.h> exists even on freestanding compilers.  */
18803
18804 #ifdef __STDC__
18805 # include <limits.h>
18806 #else
18807 # include <assert.h>
18808 #endif
18809
18810 #undef $ac_func
18811
18812 /* Override any GCC internal prototype to avoid an error.
18813    Use char because int might match the return type of a GCC
18814    builtin and then its argument prototype would still apply.  */
18815 #ifdef __cplusplus
18816 extern "C"
18817 #endif
18818 char $ac_func ();
18819 /* The GNU C library defines this for functions which it implements
18820     to always fail with ENOSYS.  Some functions are actually named
18821     something starting with __ and the normal name is an alias.  */
18822 #if defined __stub_$ac_func || defined __stub___$ac_func
18823 choke me
18824 #endif
18825
18826 int
18827 main ()
18828 {
18829 return $ac_func ();
18830   ;
18831   return 0;
18832 }
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838   *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841   (eval "$ac_link") 2>conftest.er1
18842   ac_status=$?
18843   grep -v '^ *+' conftest.er1 >conftest.err
18844   rm -f conftest.er1
18845   cat conftest.err >&5
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); } &&
18848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849   { (case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_try") 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; } &&
18858          { ac_try='test -s conftest$ac_exeext'
18859   { (case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_try") 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; }; then
18868   eval "$as_ac_var=yes"
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873         eval "$as_ac_var=no"
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext \
18877       conftest$ac_exeext conftest.$ac_ext
18878 fi
18879 ac_res=`eval echo '${'$as_ac_var'}'`
18880                { echo "$as_me:$LINENO: result: $ac_res" >&5
18881 echo "${ECHO_T}$ac_res" >&6; }
18882 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883   cat >>confdefs.h <<_ACEOF
18884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18885 _ACEOF
18886
18887 else
18888   libreplace_cv_dlfcn=yes
18889 fi
18890 done
18891
18892
18893 if test x"${libreplace_cv_dlfcn}" = x"yes";then
18894         LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
18895 fi
18896
18897 LIBDL="$LIBS"
18898
18899 LIBS="$save_LIBS"
18900
18901 { echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
18902 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6; }
18903 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
18904   echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906
18907 SAVE_CPPFLAGS="$CPPFLAGS"
18908 CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h.  */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h.  */
18915
18916 #include "confdefs.h"
18917 #define _LIBREPLACE_REPLACE_H
18918 #define REPLACE_GETPASS 1
18919 #define main dont_declare_main
18920 #include "$libreplacedir/getpass.c"
18921 #undef main
18922
18923 int
18924 main ()
18925 {
18926
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext
18932 if { (ac_try="$ac_compile"
18933 case "(($ac_try" in
18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935   *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938   (eval "$ac_compile") 2>conftest.er1
18939   ac_status=$?
18940   grep -v '^ *+' conftest.er1 >conftest.err
18941   rm -f conftest.er1
18942   cat conftest.err >&5
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); } &&
18945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18946   { (case "(($ac_try" in
18947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948   *) ac_try_echo=$ac_try;;
18949 esac
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951   (eval "$ac_try") 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; } &&
18955          { ac_try='test -s conftest.$ac_objext'
18956   { (case "(($ac_try" in
18957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958   *) ac_try_echo=$ac_try;;
18959 esac
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961   (eval "$ac_try") 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965   samba_cv_REPLACE_GETPASS=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         samba_cv_REPLACE_GETPASS=no
18971 fi
18972
18973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18974 CPPFLAGS="$SAVE_CPPFLAGS"
18975
18976 fi
18977 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
18978 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6; }
18979 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
18980
18981 cat >>confdefs.h <<\_ACEOF
18982 #define REPLACE_GETPASS 1
18983 _ACEOF
18984
18985         LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
18986 fi
18987
18988
18989
18990
18991
18992 for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
18993 do
18994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18996   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 fi
19001 ac_res=`eval echo '${'$as_ac_Header'}'`
19002                { echo "$as_me:$LINENO: result: $ac_res" >&5
19003 echo "${ECHO_T}$ac_res" >&6; }
19004 else
19005   # Is the header compilable?
19006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014 $ac_includes_default
19015 #include <$ac_header>
19016 _ACEOF
19017 rm -f conftest.$ac_objext
19018 if { (ac_try="$ac_compile"
19019 case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_compile") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } &&
19031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19032   { (case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037   (eval "$ac_try") 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; } &&
19041          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; }; then
19051   ac_header_compiler=yes
19052 else
19053   echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056         ac_header_compiler=no
19057 fi
19058
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19061 echo "${ECHO_T}$ac_header_compiler" >&6; }
19062
19063 # Is the header present?
19064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19066 cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h.  */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h.  */
19072 #include <$ac_header>
19073 _ACEOF
19074 if { (ac_try="$ac_cpp conftest.$ac_ext"
19075 case "(($ac_try" in
19076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077   *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19081   ac_status=$?
19082   grep -v '^ *+' conftest.er1 >conftest.err
19083   rm -f conftest.er1
19084   cat conftest.err >&5
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); } >/dev/null; then
19087   if test -s conftest.err; then
19088     ac_cpp_err=$ac_c_preproc_warn_flag
19089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19090   else
19091     ac_cpp_err=
19092   fi
19093 else
19094   ac_cpp_err=yes
19095 fi
19096 if test -z "$ac_cpp_err"; then
19097   ac_header_preproc=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102   ac_header_preproc=no
19103 fi
19104
19105 rm -f conftest.err conftest.$ac_ext
19106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19107 echo "${ECHO_T}$ac_header_preproc" >&6; }
19108
19109 # So?  What about this header?
19110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19111   yes:no: )
19112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19116     ac_header_preproc=yes
19117     ;;
19118   no:yes:* )
19119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19121     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19122 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19123     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19125     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19126 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19131
19132     ;;
19133 esac
19134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   eval "$as_ac_Header=\$ac_header_preproc"
19140 fi
19141 ac_res=`eval echo '${'$as_ac_Header'}'`
19142                { echo "$as_me:$LINENO: result: $ac_res" >&5
19143 echo "${ECHO_T}$ac_res" >&6; }
19144
19145 fi
19146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19147   cat >>confdefs.h <<_ACEOF
19148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19149 _ACEOF
19150
19151 fi
19152
19153 done
19154
19155
19156 #######################################
19157 # Check for mkdir mode
19158 { echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
19159 echo $ECHO_N "checking whether mkdir supports mode... $ECHO_C" >&6; }
19160 if test "${ac_mkdir_has_mode+set}" = set; then
19161   echo $ECHO_N "(cached) $ECHO_C" >&6
19162 else
19163   cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h.  */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h.  */
19169
19170                 #include <stdio.h>
19171                 #ifdef HAVE_DIRECT_H
19172                 #include <direct.h>
19173                 #endif
19174 int
19175 main ()
19176 {
19177
19178                         mkdir("foo",0777);
19179                         return 0;
19180
19181   ;
19182   return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext
19186 if { (ac_try="$ac_compile"
19187 case "(($ac_try" in
19188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189   *) ac_try_echo=$ac_try;;
19190 esac
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192   (eval "$ac_compile") 2>conftest.er1
19193   ac_status=$?
19194   grep -v '^ *+' conftest.er1 >conftest.err
19195   rm -f conftest.er1
19196   cat conftest.err >&5
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } &&
19199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19200   { (case "(($ac_try" in
19201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202   *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205   (eval "$ac_try") 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); }; } &&
19209          { ac_try='test -s conftest.$ac_objext'
19210   { (case "(($ac_try" in
19211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212   *) ac_try_echo=$ac_try;;
19213 esac
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215   (eval "$ac_try") 2>&5
19216   ac_status=$?
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); }; }; then
19219   ac_mkdir_has_mode="yes"
19220 else
19221   echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19223
19224         ac_mkdir_has_mode="no"
19225 fi
19226
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228 fi
19229 { echo "$as_me:$LINENO: result: $ac_mkdir_has_mode" >&5
19230 echo "${ECHO_T}$ac_mkdir_has_mode" >&6; }
19231
19232 if test "$ac_mkdir_has_mode" = "yes"
19233 then
19234
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_MKDIR_MODE 1
19237 _ACEOF
19238
19239 fi
19240
19241
19242 for ac_func in timegm
19243 do
19244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19248   echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250   cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19258 #define $ac_func innocuous_$ac_func
19259
19260 /* System header to define __stub macros and hopefully few prototypes,
19261     which can conflict with char $ac_func (); below.
19262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263     <limits.h> exists even on freestanding compilers.  */
19264
19265 #ifdef __STDC__
19266 # include <limits.h>
19267 #else
19268 # include <assert.h>
19269 #endif
19270
19271 #undef $ac_func
19272
19273 /* Override any GCC internal prototype to avoid an error.
19274    Use char because int might match the return type of a GCC
19275    builtin and then its argument prototype would still apply.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 char $ac_func ();
19280 /* The GNU C library defines this for functions which it implements
19281     to always fail with ENOSYS.  Some functions are actually named
19282     something starting with __ and the normal name is an alias.  */
19283 #if defined __stub_$ac_func || defined __stub___$ac_func
19284 choke me
19285 #endif
19286
19287 int
19288 main ()
19289 {
19290 return $ac_func ();
19291   ;
19292   return 0;
19293 }
19294 _ACEOF
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299   *) ac_try_echo=$ac_try;;
19300 esac
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302   (eval "$ac_link") 2>conftest.er1
19303   ac_status=$?
19304   grep -v '^ *+' conftest.er1 >conftest.err
19305   rm -f conftest.er1
19306   cat conftest.err >&5
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); } &&
19309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19310   { (case "(($ac_try" in
19311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312   *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315   (eval "$ac_try") 2>&5
19316   ac_status=$?
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); }; } &&
19319          { ac_try='test -s conftest$ac_exeext'
19320   { (case "(($ac_try" in
19321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322   *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325   (eval "$ac_try") 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   eval "$as_ac_var=yes"
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334         eval "$as_ac_var=no"
19335 fi
19336
19337 rm -f core conftest.err conftest.$ac_objext \
19338       conftest$ac_exeext conftest.$ac_ext
19339 fi
19340 ac_res=`eval echo '${'$as_ac_var'}'`
19341                { echo "$as_me:$LINENO: result: $ac_res" >&5
19342 echo "${ECHO_T}$ac_res" >&6; }
19343 if test `eval echo '${'$as_ac_var'}'` = yes; then
19344   cat >>confdefs.h <<_ACEOF
19345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19346 _ACEOF
19347
19348 else
19349   LIBREPLACEOBJ="${LIBREPLACEOBJ} timegm.o"
19350 fi
19351 done
19352
19353
19354 { echo "$as_me:$LINENO: checking for broken readdir" >&5
19355 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
19356 if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
19357   echo $ECHO_N "(cached) $ECHO_C" >&6
19358 else
19359
19360         if test "$cross_compiling" = yes; then
19361   libreplace_cv_READDIR_NEEDED="assuming not"
19362 else
19363   cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369
19370 #define test_readdir_os2_delete main
19371 #include "$libreplacedir/test/os2_delete.c"
19372 _ACEOF
19373 rm -f conftest$ac_exeext
19374 if { (ac_try="$ac_link"
19375 case "(($ac_try" in
19376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377   *) ac_try_echo=$ac_try;;
19378 esac
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380   (eval "$ac_link") 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19384   { (case "(($ac_try" in
19385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386   *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389   (eval "$ac_try") 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393   libreplace_cv_READDIR_NEEDED=no
19394 else
19395   echo "$as_me: program exited with status $ac_status" >&5
19396 echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19398
19399 ( exit $ac_status )
19400 libreplace_cv_READDIR_NEEDED=yes
19401 fi
19402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19403 fi
19404
19405
19406
19407 fi
19408 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
19409 echo "${ECHO_T}$libreplace_cv_READDIR_NEEDED" >&6; }
19410
19411 #
19412 # try to replace with getdirentries() if needed
19413 #
19414 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19415
19416 for ac_func in getdirentries
19417 do
19418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   cat >conftest.$ac_ext <<_ACEOF
19425 /* confdefs.h.  */
19426 _ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h.  */
19430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19432 #define $ac_func innocuous_$ac_func
19433
19434 /* System header to define __stub macros and hopefully few prototypes,
19435     which can conflict with char $ac_func (); below.
19436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19437     <limits.h> exists even on freestanding compilers.  */
19438
19439 #ifdef __STDC__
19440 # include <limits.h>
19441 #else
19442 # include <assert.h>
19443 #endif
19444
19445 #undef $ac_func
19446
19447 /* Override any GCC internal prototype to avoid an error.
19448    Use char because int might match the return type of a GCC
19449    builtin and then its argument prototype would still apply.  */
19450 #ifdef __cplusplus
19451 extern "C"
19452 #endif
19453 char $ac_func ();
19454 /* The GNU C library defines this for functions which it implements
19455     to always fail with ENOSYS.  Some functions are actually named
19456     something starting with __ and the normal name is an alias.  */
19457 #if defined __stub_$ac_func || defined __stub___$ac_func
19458 choke me
19459 #endif
19460
19461 int
19462 main ()
19463 {
19464 return $ac_func ();
19465   ;
19466   return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473   *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476   (eval "$ac_link") 2>conftest.er1
19477   ac_status=$?
19478   grep -v '^ *+' conftest.er1 >conftest.err
19479   rm -f conftest.er1
19480   cat conftest.err >&5
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } &&
19483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; } &&
19493          { ac_try='test -s conftest$ac_exeext'
19494   { (case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_try") 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; }; then
19503   eval "$as_ac_var=yes"
19504 else
19505   echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508         eval "$as_ac_var=no"
19509 fi
19510
19511 rm -f core conftest.err conftest.$ac_objext \
19512       conftest$ac_exeext conftest.$ac_ext
19513 fi
19514 ac_res=`eval echo '${'$as_ac_var'}'`
19515                { echo "$as_me:$LINENO: result: $ac_res" >&5
19516 echo "${ECHO_T}$ac_res" >&6; }
19517 if test `eval echo '${'$as_ac_var'}'` = yes; then
19518   cat >>confdefs.h <<_ACEOF
19519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19520 _ACEOF
19521
19522 fi
19523 done
19524
19525 { echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
19526 echo $ECHO_N "checking for prototype long telldir(const DIR *dir)... $ECHO_C" >&6; }
19527 if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
19528   echo $ECHO_N "(cached) $ECHO_C" >&6
19529 else
19530   cat >conftest.$ac_ext <<_ACEOF
19531
19532                 $ac_includes_default
19533
19534         #include <dirent.h>
19535
19536                 long telldir(const DIR *dir)
19537                 {
19538
19539         return 0;
19540
19541                 }
19542
19543 _ACEOF
19544 rm -f conftest.$ac_objext
19545 if { (ac_try="$ac_compile"
19546 case "(($ac_try" in
19547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548   *) ac_try_echo=$ac_try;;
19549 esac
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551   (eval "$ac_compile") 2>conftest.er1
19552   ac_status=$?
19553   grep -v '^ *+' conftest.er1 >conftest.err
19554   rm -f conftest.er1
19555   cat conftest.err >&5
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); } &&
19558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559   { (case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_try") 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; } &&
19568          { ac_try='test -s conftest.$ac_objext'
19569   { (case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_try") 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; }; then
19578
19579                 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
19580
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585
19586                 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
19587
19588 fi
19589
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19591
19592 fi
19593 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
19594 echo "${ECHO_T}$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
19595 if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
19596
19597
19598 cat >>confdefs.h <<\_ACEOF
19599 #define TELLDIR_TAKES_CONST_DIR 1
19600 _ACEOF
19601
19602
19603 fi
19604
19605
19606
19607 { echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
19608 echo $ECHO_N "checking for prototype int seekdir(DIR *dir, long ofs)... $ECHO_C" >&6; }
19609 if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
19610   echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612   cat >conftest.$ac_ext <<_ACEOF
19613
19614                 $ac_includes_default
19615
19616         #include <dirent.h>
19617
19618                 int seekdir(DIR *dir, long ofs)
19619                 {
19620
19621         return 0;
19622
19623                 }
19624
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_compile") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } &&
19640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641   { (case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_try") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; } &&
19650          { ac_try='test -s conftest.$ac_objext'
19651   { (case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_try") 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }; }; then
19660
19661                 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
19662
19663 else
19664   echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19666
19667
19668                 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
19669
19670 fi
19671
19672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673
19674 fi
19675 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
19676 echo "${ECHO_T}$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
19677 if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
19678
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define SEEKDIR_RETURNS_INT 1
19682 _ACEOF
19683
19684
19685 fi
19686
19687
19688 { echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
19689 echo $ECHO_N "checking for replacing readdir using getdirentries()... $ECHO_C" >&6; }
19690 if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
19691   echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693
19694         if test "$cross_compiling" = yes; then
19695   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19696 See \`config.log' for more details." >&5
19697 echo "$as_me: error: cannot run test program while cross compiling
19698 See \`config.log' for more details." >&2;}
19699    { (exit 1); exit 1; }; }
19700 else
19701   cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h.  */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h.  */
19707
19708 #define _LIBREPLACE_REPLACE_H
19709 #include "$libreplacedir/repdir_getdirentries.c"
19710 #define test_readdir_os2_delete main
19711 #include "$libreplacedir/test/os2_delete.c"
19712 _ACEOF
19713 rm -f conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717   *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720   (eval "$ac_link") 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19724   { (case "(($ac_try" in
19725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726   *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729   (eval "$ac_try") 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); }; }; then
19733   libreplace_cv_READDIR_GETDIRENTRIES=yes
19734 else
19735   echo "$as_me: program exited with status $ac_status" >&5
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739 ( exit $ac_status )
19740 libreplace_cv_READDIR_GETDIRENTRIES=no
19741 fi
19742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19743 fi
19744
19745
19746
19747 fi
19748 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
19749 echo "${ECHO_T}$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
19750 fi
19751 if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
19752
19753 cat >>confdefs.h <<\_ACEOF
19754 #define REPLACE_READDIR 1
19755 _ACEOF
19756
19757
19758 cat >>confdefs.h <<\_ACEOF
19759 #define REPLACE_READDIR_GETDIRENTRIES 1
19760 _ACEOF
19761
19762         LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdirentries.o"
19763         libreplace_cv_READDIR_NEEDED=no
19764 fi
19765
19766 #
19767 # try to replace with getdents() if needed
19768 #
19769 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19770
19771 for ac_func in getdents
19772 do
19773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19787 #define $ac_func innocuous_$ac_func
19788
19789 /* System header to define __stub macros and hopefully few prototypes,
19790     which can conflict with char $ac_func (); below.
19791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19792     <limits.h> exists even on freestanding compilers.  */
19793
19794 #ifdef __STDC__
19795 # include <limits.h>
19796 #else
19797 # include <assert.h>
19798 #endif
19799
19800 #undef $ac_func
19801
19802 /* Override any GCC internal prototype to avoid an error.
19803    Use char because int might match the return type of a GCC
19804    builtin and then its argument prototype would still apply.  */
19805 #ifdef __cplusplus
19806 extern "C"
19807 #endif
19808 char $ac_func ();
19809 /* The GNU C library defines this for functions which it implements
19810     to always fail with ENOSYS.  Some functions are actually named
19811     something starting with __ and the normal name is an alias.  */
19812 #if defined __stub_$ac_func || defined __stub___$ac_func
19813 choke me
19814 #endif
19815
19816 int
19817 main ()
19818 {
19819 return $ac_func ();
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 rm -f conftest.$ac_objext conftest$ac_exeext
19825 if { (ac_try="$ac_link"
19826 case "(($ac_try" in
19827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828   *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831   (eval "$ac_link") 2>conftest.er1
19832   ac_status=$?
19833   grep -v '^ *+' conftest.er1 >conftest.err
19834   rm -f conftest.er1
19835   cat conftest.err >&5
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); } &&
19838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19839   { (case "(($ac_try" in
19840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841   *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844   (eval "$ac_try") 2>&5
19845   ac_status=$?
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); }; } &&
19848          { ac_try='test -s conftest$ac_exeext'
19849   { (case "(($ac_try" in
19850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851   *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854   (eval "$ac_try") 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); }; }; then
19858   eval "$as_ac_var=yes"
19859 else
19860   echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863         eval "$as_ac_var=no"
19864 fi
19865
19866 rm -f core conftest.err conftest.$ac_objext \
19867       conftest$ac_exeext conftest.$ac_ext
19868 fi
19869 ac_res=`eval echo '${'$as_ac_var'}'`
19870                { echo "$as_me:$LINENO: result: $ac_res" >&5
19871 echo "${ECHO_T}$ac_res" >&6; }
19872 if test `eval echo '${'$as_ac_var'}'` = yes; then
19873   cat >>confdefs.h <<_ACEOF
19874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19875 _ACEOF
19876
19877 fi
19878 done
19879
19880 { echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
19881 echo $ECHO_N "checking for replacing readdir using getdents()... $ECHO_C" >&6; }
19882 if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
19883   echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885
19886         if test "$cross_compiling" = yes; then
19887   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19888 See \`config.log' for more details." >&5
19889 echo "$as_me: error: cannot run test program while cross compiling
19890 See \`config.log' for more details." >&2;}
19891    { (exit 1); exit 1; }; }
19892 else
19893   cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h.  */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h.  */
19899
19900 #define _LIBREPLACE_REPLACE_H
19901 #error _donot_use_getdents_replacement_anymore
19902 #include "$libreplacedir/repdir_getdents.c"
19903 #define test_readdir_os2_delete main
19904 #include "$libreplacedir/test/os2_delete.c"
19905 _ACEOF
19906 rm -f conftest$ac_exeext
19907 if { (ac_try="$ac_link"
19908 case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913   (eval "$ac_link") 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19917   { (case "(($ac_try" in
19918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919   *) ac_try_echo=$ac_try;;
19920 esac
19921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922   (eval "$ac_try") 2>&5
19923   ac_status=$?
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); }; }; then
19926   libreplace_cv_READDIR_GETDENTS=yes
19927 else
19928   echo "$as_me: program exited with status $ac_status" >&5
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932 ( exit $ac_status )
19933 libreplace_cv_READDIR_GETDENTS=no
19934 fi
19935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19936 fi
19937
19938
19939
19940 fi
19941 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
19942 echo "${ECHO_T}$libreplace_cv_READDIR_GETDENTS" >&6; }
19943 fi
19944 if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
19945
19946 cat >>confdefs.h <<\_ACEOF
19947 #define REPLACE_READDIR 1
19948 _ACEOF
19949
19950
19951 cat >>confdefs.h <<\_ACEOF
19952 #define REPLACE_READDIR_GETDENTS 1
19953 _ACEOF
19954
19955         LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdents.o"
19956         libreplace_cv_READDIR_NEEDED=no
19957 fi
19958
19959 { echo "$as_me:$LINENO: checking a usable readdir()" >&5
19960 echo $ECHO_N "checking a usable readdir()... $ECHO_C" >&6; }
19961 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19962         { echo "$as_me:$LINENO: result: no" >&5
19963 echo "${ECHO_T}no" >&6; }
19964         { echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
19965 echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
19966 else
19967         { echo "$as_me:$LINENO: result: yes" >&5
19968 echo "${ECHO_T}yes" >&6; }
19969 fi
19970
19971
19972
19973
19974
19975
19976
19977
19978 for ac_func in syslog memset setnetgrent getnetgrent endnetgrent memcpy
19979 do
19980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19984   echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986   cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19994 #define $ac_func innocuous_$ac_func
19995
19996 /* System header to define __stub macros and hopefully few prototypes,
19997     which can conflict with char $ac_func (); below.
19998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19999     <limits.h> exists even on freestanding compilers.  */
20000
20001 #ifdef __STDC__
20002 # include <limits.h>
20003 #else
20004 # include <assert.h>
20005 #endif
20006
20007 #undef $ac_func
20008
20009 /* Override any GCC internal prototype to avoid an error.
20010    Use char because int might match the return type of a GCC
20011    builtin and then its argument prototype would still apply.  */
20012 #ifdef __cplusplus
20013 extern "C"
20014 #endif
20015 char $ac_func ();
20016 /* The GNU C library defines this for functions which it implements
20017     to always fail with ENOSYS.  Some functions are actually named
20018     something starting with __ and the normal name is an alias.  */
20019 #if defined __stub_$ac_func || defined __stub___$ac_func
20020 choke me
20021 #endif
20022
20023 int
20024 main ()
20025 {
20026 return $ac_func ();
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035   *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038   (eval "$ac_link") 2>conftest.er1
20039   ac_status=$?
20040   grep -v '^ *+' conftest.er1 >conftest.err
20041   rm -f conftest.er1
20042   cat conftest.err >&5
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } &&
20045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046   { (case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_try") 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest$ac_exeext'
20056   { (case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_try") 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; }; then
20065   eval "$as_ac_var=yes"
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070         eval "$as_ac_var=no"
20071 fi
20072
20073 rm -f core conftest.err conftest.$ac_objext \
20074       conftest$ac_exeext conftest.$ac_ext
20075 fi
20076 ac_res=`eval echo '${'$as_ac_var'}'`
20077                { echo "$as_me:$LINENO: result: $ac_res" >&5
20078 echo "${ECHO_T}$ac_res" >&6; }
20079 if test `eval echo '${'$as_ac_var'}'` = yes; then
20080   cat >>confdefs.h <<_ACEOF
20081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20082 _ACEOF
20083
20084 else
20085   { { echo "$as_me:$LINENO: error: Required function not found" >&5
20086 echo "$as_me: error: Required function not found" >&2;}
20087    { (exit 1); exit 1; }; }
20088 fi
20089 done
20090
20091
20092 echo "LIBREPLACE_BROKEN_CHECKS: END"
20093
20094
20095 #LIBREPLACE_ALL_CHECKS: END"
20096
20097
20098
20099 if test "$ac_cv_c_compiler_gnu" = yes; then
20100    CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings"
20101 fi
20102
20103 ac_config_headers="$ac_config_headers config.h"
20104
20105
20106 EXTRA_OBJ=""
20107
20108 tallocdir=""
20109 tallocpaths="$srcdir $srcdir/lib/talloc $srcdir/talloc $srcdir/../talloc"
20110 for d in $tallocpaths; do
20111         if test -f "$d/talloc.c"; then
20112                 tallocdir="$d"
20113
20114                 break;
20115         fi
20116 done
20117 if test x"$tallocdir" = "x"; then
20118    { { echo "$as_me:$LINENO: error: cannot find talloc source in $tallocpaths" >&5
20119 echo "$as_me: error: cannot find talloc source in $tallocpaths" >&2;}
20120    { (exit 1); exit 1; }; }
20121 fi
20122 TALLOCOBJ="talloc.o"
20123
20124
20125 { echo "$as_me:$LINENO: checking for size_t" >&5
20126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20127 if test "${ac_cv_type_size_t+set}" = set; then
20128   echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130   cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 $ac_includes_default
20137 typedef size_t ac__type_new_;
20138 int
20139 main ()
20140 {
20141 if ((ac__type_new_ *) 0)
20142   return 0;
20143 if (sizeof (ac__type_new_))
20144   return 0;
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_compile") 2>conftest.er1
20157   ac_status=$?
20158   grep -v '^ *+' conftest.er1 >conftest.err
20159   rm -f conftest.er1
20160   cat conftest.err >&5
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } &&
20163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20164   { (case "(($ac_try" in
20165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166   *) ac_try_echo=$ac_try;;
20167 esac
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169   (eval "$ac_try") 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); }; } &&
20173          { ac_try='test -s conftest.$ac_objext'
20174   { (case "(($ac_try" in
20175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176   *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179   (eval "$ac_try") 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; }; then
20183   ac_cv_type_size_t=yes
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188         ac_cv_type_size_t=no
20189 fi
20190
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 fi
20193 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20194 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20195
20196 { echo "$as_me:$LINENO: checking size of size_t" >&5
20197 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20198 if test "${ac_cv_sizeof_size_t+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   if test "$ac_cv_type_size_t" = yes; then
20202   # The cast to long int works around a bug in the HP C Compiler
20203   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20204   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20205   # This bug is HP SR number 8606223364.
20206   if test "$cross_compiling" = yes; then
20207   # Depending upon the size, compute the lo and hi bounds.
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214 $ac_includes_default
20215                    typedef size_t ac__type_sizeof_;
20216 int
20217 main ()
20218 {
20219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20220 test_array [0] = 0
20221
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 rm -f conftest.$ac_objext
20227 if { (ac_try="$ac_compile"
20228 case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233   (eval "$ac_compile") 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } &&
20240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20241   { (case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_try") 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; } &&
20250          { ac_try='test -s conftest.$ac_objext'
20251   { (case "(($ac_try" in
20252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253   *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256   (eval "$ac_try") 2>&5
20257   ac_status=$?
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); }; }; then
20260   ac_lo=0 ac_mid=0
20261   while :; do
20262     cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h.  */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h.  */
20268 $ac_includes_default
20269                    typedef size_t ac__type_sizeof_;
20270 int
20271 main ()
20272 {
20273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20274 test_array [0] = 0
20275
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287   (eval "$ac_compile") 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } &&
20294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20295   { (case "(($ac_try" in
20296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297   *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300   (eval "$ac_try") 2>&5
20301   ac_status=$?
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); }; } &&
20304          { ac_try='test -s conftest.$ac_objext'
20305   { (case "(($ac_try" in
20306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307   *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310   (eval "$ac_try") 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; }; then
20314   ac_hi=$ac_mid; break
20315 else
20316   echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20318
20319         ac_lo=`expr $ac_mid + 1`
20320                         if test $ac_lo -le $ac_mid; then
20321                           ac_lo= ac_hi=
20322                           break
20323                         fi
20324                         ac_mid=`expr 2 '*' $ac_mid + 1`
20325 fi
20326
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328   done
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333         cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 $ac_includes_default
20340                    typedef size_t ac__type_sizeof_;
20341 int
20342 main ()
20343 {
20344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20345 test_array [0] = 0
20346
20347   ;
20348   return 0;
20349 }
20350 _ACEOF
20351 rm -f conftest.$ac_objext
20352 if { (ac_try="$ac_compile"
20353 case "(($ac_try" in
20354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355   *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358   (eval "$ac_compile") 2>conftest.er1
20359   ac_status=$?
20360   grep -v '^ *+' conftest.er1 >conftest.err
20361   rm -f conftest.er1
20362   cat conftest.err >&5
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); } &&
20365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20366   { (case "(($ac_try" in
20367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368   *) ac_try_echo=$ac_try;;
20369 esac
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371   (eval "$ac_try") 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); }; } &&
20375          { ac_try='test -s conftest.$ac_objext'
20376   { (case "(($ac_try" in
20377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378   *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381   (eval "$ac_try") 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; }; then
20385   ac_hi=-1 ac_mid=-1
20386   while :; do
20387     cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h.  */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h.  */
20393 $ac_includes_default
20394                    typedef size_t ac__type_sizeof_;
20395 int
20396 main ()
20397 {
20398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20399 test_array [0] = 0
20400
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_compile") 2>conftest.er1
20413   ac_status=$?
20414   grep -v '^ *+' conftest.er1 >conftest.err
20415   rm -f conftest.er1
20416   cat conftest.err >&5
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } &&
20419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20420   { (case "(($ac_try" in
20421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422   *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425   (eval "$ac_try") 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; } &&
20429          { ac_try='test -s conftest.$ac_objext'
20430   { (case "(($ac_try" in
20431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432   *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435   (eval "$ac_try") 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); }; }; then
20439   ac_lo=$ac_mid; break
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444         ac_hi=`expr '(' $ac_mid ')' - 1`
20445                         if test $ac_mid -le $ac_hi; then
20446                           ac_lo= ac_hi=
20447                           break
20448                         fi
20449                         ac_mid=`expr 2 '*' $ac_mid`
20450 fi
20451
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453   done
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458         ac_lo= ac_hi=
20459 fi
20460
20461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 fi
20463
20464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465 # Binary search between lo and hi bounds.
20466 while test "x$ac_lo" != "x$ac_hi"; do
20467   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20468   cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 $ac_includes_default
20475                    typedef size_t ac__type_sizeof_;
20476 int
20477 main ()
20478 {
20479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20480 test_array [0] = 0
20481
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490   *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493   (eval "$ac_compile") 2>conftest.er1
20494   ac_status=$?
20495   grep -v '^ *+' conftest.er1 >conftest.err
20496   rm -f conftest.er1
20497   cat conftest.err >&5
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } &&
20500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20501   { (case "(($ac_try" in
20502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503   *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506   (eval "$ac_try") 2>&5
20507   ac_status=$?
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); }; } &&
20510          { ac_try='test -s conftest.$ac_objext'
20511   { (case "(($ac_try" in
20512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513   *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516   (eval "$ac_try") 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; }; then
20520   ac_hi=$ac_mid
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525         ac_lo=`expr '(' $ac_mid ')' + 1`
20526 fi
20527
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529 done
20530 case $ac_lo in
20531 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20533 See \`config.log' for more details." >&5
20534 echo "$as_me: error: cannot compute sizeof (size_t)
20535 See \`config.log' for more details." >&2;}
20536    { (exit 77); exit 77; }; } ;;
20537 esac
20538 else
20539   cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h.  */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h.  */
20545 $ac_includes_default
20546                    typedef size_t ac__type_sizeof_;
20547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20549 #include <stdio.h>
20550 #include <stdlib.h>
20551 int
20552 main ()
20553 {
20554
20555   FILE *f = fopen ("conftest.val", "w");
20556   if (! f)
20557     return 1;
20558   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20559     {
20560       long int i = longval ();
20561       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20562         return 1;
20563       fprintf (f, "%ld\n", i);
20564     }
20565   else
20566     {
20567       unsigned long int i = ulongval ();
20568       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20569         return 1;
20570       fprintf (f, "%lu\n", i);
20571     }
20572   return ferror (f) || fclose (f) != 0;
20573
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_link") 2>&5
20586   ac_status=$?
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20589   { (case "(($ac_try" in
20590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591   *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594   (eval "$ac_try") 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; }; then
20598   ac_cv_sizeof_size_t=`cat conftest.val`
20599 else
20600   echo "$as_me: program exited with status $ac_status" >&5
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604 ( exit $ac_status )
20605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20606 See \`config.log' for more details." >&5
20607 echo "$as_me: error: cannot compute sizeof (size_t)
20608 See \`config.log' for more details." >&2;}
20609    { (exit 77); exit 77; }; }
20610 fi
20611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20612 fi
20613 rm -f conftest.val
20614 else
20615   ac_cv_sizeof_size_t=0
20616 fi
20617 fi
20618 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20619 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20620 cat >>confdefs.h <<_ACEOF
20621 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20622 _ACEOF
20623
20624
20625 { echo "$as_me:$LINENO: checking for void *" >&5
20626 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20627 if test "${ac_cv_type_void_p+set}" = set; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630   cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636 $ac_includes_default
20637 typedef void * ac__type_new_;
20638 int
20639 main ()
20640 {
20641 if ((ac__type_new_ *) 0)
20642   return 0;
20643 if (sizeof (ac__type_new_))
20644   return 0;
20645   ;
20646   return 0;
20647 }
20648 _ACEOF
20649 rm -f conftest.$ac_objext
20650 if { (ac_try="$ac_compile"
20651 case "(($ac_try" in
20652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653   *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656   (eval "$ac_compile") 2>conftest.er1
20657   ac_status=$?
20658   grep -v '^ *+' conftest.er1 >conftest.err
20659   rm -f conftest.er1
20660   cat conftest.err >&5
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } &&
20663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20664   { (case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669   (eval "$ac_try") 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; } &&
20673          { ac_try='test -s conftest.$ac_objext'
20674   { (case "(($ac_try" in
20675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676   *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679   (eval "$ac_try") 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; }; then
20683   ac_cv_type_void_p=yes
20684 else
20685   echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688         ac_cv_type_void_p=no
20689 fi
20690
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 fi
20693 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20694 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20695
20696 { echo "$as_me:$LINENO: checking size of void *" >&5
20697 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20698 if test "${ac_cv_sizeof_void_p+set}" = set; then
20699   echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701   if test "$ac_cv_type_void_p" = yes; then
20702   # The cast to long int works around a bug in the HP C Compiler
20703   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20704   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20705   # This bug is HP SR number 8606223364.
20706   if test "$cross_compiling" = yes; then
20707   # Depending upon the size, compute the lo and hi bounds.
20708 cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714 $ac_includes_default
20715                    typedef void * ac__type_sizeof_;
20716 int
20717 main ()
20718 {
20719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20720 test_array [0] = 0
20721
20722   ;
20723   return 0;
20724 }
20725 _ACEOF
20726 rm -f conftest.$ac_objext
20727 if { (ac_try="$ac_compile"
20728 case "(($ac_try" in
20729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730   *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733   (eval "$ac_compile") 2>conftest.er1
20734   ac_status=$?
20735   grep -v '^ *+' conftest.er1 >conftest.err
20736   rm -f conftest.er1
20737   cat conftest.err >&5
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); } &&
20740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20741   { (case "(($ac_try" in
20742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743   *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746   (eval "$ac_try") 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); }; } &&
20750          { ac_try='test -s conftest.$ac_objext'
20751   { (case "(($ac_try" in
20752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753   *) ac_try_echo=$ac_try;;
20754 esac
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756   (eval "$ac_try") 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }; }; then
20760   ac_lo=0 ac_mid=0
20761   while :; do
20762     cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h.  */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h.  */
20768 $ac_includes_default
20769                    typedef void * ac__type_sizeof_;
20770 int
20771 main ()
20772 {
20773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20774 test_array [0] = 0
20775
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784   *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787   (eval "$ac_compile") 2>conftest.er1
20788   ac_status=$?
20789   grep -v '^ *+' conftest.er1 >conftest.err
20790   rm -f conftest.er1
20791   cat conftest.err >&5
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } &&
20794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20795   { (case "(($ac_try" in
20796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797   *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800   (eval "$ac_try") 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; } &&
20804          { ac_try='test -s conftest.$ac_objext'
20805   { (case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810   (eval "$ac_try") 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; }; then
20814   ac_hi=$ac_mid; break
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819         ac_lo=`expr $ac_mid + 1`
20820                         if test $ac_lo -le $ac_mid; then
20821                           ac_lo= ac_hi=
20822                           break
20823                         fi
20824                         ac_mid=`expr 2 '*' $ac_mid + 1`
20825 fi
20826
20827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828   done
20829 else
20830   echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833         cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839 $ac_includes_default
20840                    typedef void * ac__type_sizeof_;
20841 int
20842 main ()
20843 {
20844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20845 test_array [0] = 0
20846
20847   ;
20848   return 0;
20849 }
20850 _ACEOF
20851 rm -f conftest.$ac_objext
20852 if { (ac_try="$ac_compile"
20853 case "(($ac_try" in
20854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855   *) ac_try_echo=$ac_try;;
20856 esac
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858   (eval "$ac_compile") 2>conftest.er1
20859   ac_status=$?
20860   grep -v '^ *+' conftest.er1 >conftest.err
20861   rm -f conftest.er1
20862   cat conftest.err >&5
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20866   { (case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_try") 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); }; } &&
20875          { ac_try='test -s conftest.$ac_objext'
20876   { (case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_try") 2>&5
20882   ac_status=$?
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); }; }; then
20885   ac_hi=-1 ac_mid=-1
20886   while :; do
20887     cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h.  */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h.  */
20893 $ac_includes_default
20894                    typedef void * ac__type_sizeof_;
20895 int
20896 main ()
20897 {
20898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20899 test_array [0] = 0
20900
20901   ;
20902   return 0;
20903 }
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_compile") 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } &&
20919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20920   { (case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_try") 2>&5
20926   ac_status=$?
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); }; } &&
20929          { ac_try='test -s conftest.$ac_objext'
20930   { (case "(($ac_try" in
20931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932   *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935   (eval "$ac_try") 2>&5
20936   ac_status=$?
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); }; }; then
20939   ac_lo=$ac_mid; break
20940 else
20941   echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944         ac_hi=`expr '(' $ac_mid ')' - 1`
20945                         if test $ac_mid -le $ac_hi; then
20946                           ac_lo= ac_hi=
20947                           break
20948                         fi
20949                         ac_mid=`expr 2 '*' $ac_mid`
20950 fi
20951
20952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953   done
20954 else
20955   echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958         ac_lo= ac_hi=
20959 fi
20960
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 fi
20963
20964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 # Binary search between lo and hi bounds.
20966 while test "x$ac_lo" != "x$ac_hi"; do
20967   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20968   cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 $ac_includes_default
20975                    typedef void * ac__type_sizeof_;
20976 int
20977 main ()
20978 {
20979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20980 test_array [0] = 0
20981
20982   ;
20983   return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest.$ac_objext
20987 if { (ac_try="$ac_compile"
20988 case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_compile") 2>conftest.er1
20994   ac_status=$?
20995   grep -v '^ *+' conftest.er1 >conftest.err
20996   rm -f conftest.er1
20997   cat conftest.err >&5
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } &&
21000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21001   { (case "(($ac_try" in
21002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003   *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006   (eval "$ac_try") 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); }; } &&
21010          { ac_try='test -s conftest.$ac_objext'
21011   { (case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016   (eval "$ac_try") 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; }; then
21020   ac_hi=$ac_mid
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025         ac_lo=`expr '(' $ac_mid ')' + 1`
21026 fi
21027
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 done
21030 case $ac_lo in
21031 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21032 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21033 See \`config.log' for more details." >&5
21034 echo "$as_me: error: cannot compute sizeof (void *)
21035 See \`config.log' for more details." >&2;}
21036    { (exit 77); exit 77; }; } ;;
21037 esac
21038 else
21039   cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h.  */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h.  */
21045 $ac_includes_default
21046                    typedef void * ac__type_sizeof_;
21047 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21048 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21049 #include <stdio.h>
21050 #include <stdlib.h>
21051 int
21052 main ()
21053 {
21054
21055   FILE *f = fopen ("conftest.val", "w");
21056   if (! f)
21057     return 1;
21058   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21059     {
21060       long int i = longval ();
21061       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21062         return 1;
21063       fprintf (f, "%ld\n", i);
21064     }
21065   else
21066     {
21067       unsigned long int i = ulongval ();
21068       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21069         return 1;
21070       fprintf (f, "%lu\n", i);
21071     }
21072   return ferror (f) || fclose (f) != 0;
21073
21074   ;
21075   return 0;
21076 }
21077 _ACEOF
21078 rm -f conftest$ac_exeext
21079 if { (ac_try="$ac_link"
21080 case "(($ac_try" in
21081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082   *) ac_try_echo=$ac_try;;
21083 esac
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085   (eval "$ac_link") 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21089   { (case "(($ac_try" in
21090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091   *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094   (eval "$ac_try") 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; }; then
21098   ac_cv_sizeof_void_p=`cat conftest.val`
21099 else
21100   echo "$as_me: program exited with status $ac_status" >&5
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 ( exit $ac_status )
21105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21106 See \`config.log' for more details." >&5
21107 echo "$as_me: error: cannot compute sizeof (void *)
21108 See \`config.log' for more details." >&2;}
21109    { (exit 77); exit 77; }; }
21110 fi
21111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21112 fi
21113 rm -f conftest.val
21114 else
21115   ac_cv_sizeof_void_p=0
21116 fi
21117 fi
21118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21119 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21120 cat >>confdefs.h <<_ACEOF
21121 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21122 _ACEOF
21123
21124
21125
21126 if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
21127         { echo "$as_me:$LINENO: WARNING: size_t cannot represent the amount of used memory of a process" >&5
21128 echo "$as_me: WARNING: size_t cannot represent the amount of used memory of a process" >&2;}
21129         { echo "$as_me:$LINENO: WARNING: please report this to <samba-technical@samba.org>" >&5
21130 echo "$as_me: WARNING: please report this to <samba-technical@samba.org>" >&2;}
21131         { echo "$as_me:$LINENO: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&5
21132 echo "$as_me: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&2;}
21133         { echo "$as_me:$LINENO: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&5
21134 echo "$as_me: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&2;}
21135         { { echo "$as_me:$LINENO: error: sizeof(size_t) < sizeof(void *)" >&5
21136 echo "$as_me: error: sizeof(size_t) < sizeof(void *)" >&2;}
21137    { (exit 1); exit 1; }; }
21138 fi
21139
21140 tdbdir=""
21141 tdbpaths="$srcdir $srcdir/lib/tdb $srcdir/tdb $srcdir/../tdb"
21142 for d in $tdbpaths; do
21143         if test -f "$d/common/tdb.c"; then
21144                 tdbdir="$d"
21145
21146                 break;
21147         fi
21148 done
21149 if test x"$tdbdir" = "x"; then
21150    { { echo "$as_me:$LINENO: error: cannot find tdb source in $tdbpaths" >&5
21151 echo "$as_me: error: cannot find tdb source in $tdbpaths" >&2;}
21152    { (exit 1); exit 1; }; }
21153 fi
21154 TDBOBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o"
21155 TDBOBJ="$TDBOBJ common/freelist.o common/io.o common/lock.o common/open.o"
21156
21157
21158
21159
21160
21161
21162
21163 for ac_func in mmap pread pwrite getpagesize utime
21164 do
21165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21169   echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21171   cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h.  */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h.  */
21177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21179 #define $ac_func innocuous_$ac_func
21180
21181 /* System header to define __stub macros and hopefully few prototypes,
21182     which can conflict with char $ac_func (); below.
21183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21184     <limits.h> exists even on freestanding compilers.  */
21185
21186 #ifdef __STDC__
21187 # include <limits.h>
21188 #else
21189 # include <assert.h>
21190 #endif
21191
21192 #undef $ac_func
21193
21194 /* Override any GCC internal prototype to avoid an error.
21195    Use char because int might match the return type of a GCC
21196    builtin and then its argument prototype would still apply.  */
21197 #ifdef __cplusplus
21198 extern "C"
21199 #endif
21200 char $ac_func ();
21201 /* The GNU C library defines this for functions which it implements
21202     to always fail with ENOSYS.  Some functions are actually named
21203     something starting with __ and the normal name is an alias.  */
21204 #if defined __stub_$ac_func || defined __stub___$ac_func
21205 choke me
21206 #endif
21207
21208 int
21209 main ()
21210 {
21211 return $ac_func ();
21212   ;
21213   return 0;
21214 }
21215 _ACEOF
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (ac_try="$ac_link"
21218 case "(($ac_try" in
21219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220   *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223   (eval "$ac_link") 2>conftest.er1
21224   ac_status=$?
21225   grep -v '^ *+' conftest.er1 >conftest.err
21226   rm -f conftest.er1
21227   cat conftest.err >&5
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); } &&
21230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21231   { (case "(($ac_try" in
21232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233   *) ac_try_echo=$ac_try;;
21234 esac
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236   (eval "$ac_try") 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; } &&
21240          { ac_try='test -s conftest$ac_exeext'
21241   { (case "(($ac_try" in
21242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243   *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246   (eval "$ac_try") 2>&5
21247   ac_status=$?
21248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249   (exit $ac_status); }; }; then
21250   eval "$as_ac_var=yes"
21251 else
21252   echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21254
21255         eval "$as_ac_var=no"
21256 fi
21257
21258 rm -f core conftest.err conftest.$ac_objext \
21259       conftest$ac_exeext conftest.$ac_ext
21260 fi
21261 ac_res=`eval echo '${'$as_ac_var'}'`
21262                { echo "$as_me:$LINENO: result: $ac_res" >&5
21263 echo "${ECHO_T}$ac_res" >&6; }
21264 if test `eval echo '${'$as_ac_var'}'` = yes; then
21265   cat >>confdefs.h <<_ACEOF
21266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21267 _ACEOF
21268
21269 fi
21270 done
21271
21272
21273
21274
21275 for ac_header in getopt.h sys/select.h sys/time.h
21276 do
21277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21279   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21282   echo $ECHO_N "(cached) $ECHO_C" >&6
21283 fi
21284 ac_res=`eval echo '${'$as_ac_Header'}'`
21285                { echo "$as_me:$LINENO: result: $ac_res" >&5
21286 echo "${ECHO_T}$ac_res" >&6; }
21287 else
21288   # Is the header compilable?
21289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21291 cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h.  */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h.  */
21297 $ac_includes_default
21298 #include <$ac_header>
21299 _ACEOF
21300 rm -f conftest.$ac_objext
21301 if { (ac_try="$ac_compile"
21302 case "(($ac_try" in
21303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304   *) ac_try_echo=$ac_try;;
21305 esac
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307   (eval "$ac_compile") 2>conftest.er1
21308   ac_status=$?
21309   grep -v '^ *+' conftest.er1 >conftest.err
21310   rm -f conftest.er1
21311   cat conftest.err >&5
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); } &&
21314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21315   { (case "(($ac_try" in
21316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317   *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320   (eval "$ac_try") 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); }; } &&
21324          { ac_try='test -s conftest.$ac_objext'
21325   { (case "(($ac_try" in
21326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327   *) ac_try_echo=$ac_try;;
21328 esac
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330   (eval "$ac_try") 2>&5
21331   ac_status=$?
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); }; }; then
21334   ac_header_compiler=yes
21335 else
21336   echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339         ac_header_compiler=no
21340 fi
21341
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21344 echo "${ECHO_T}$ac_header_compiler" >&6; }
21345
21346 # Is the header present?
21347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h.  */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h.  */
21355 #include <$ac_header>
21356 _ACEOF
21357 if { (ac_try="$ac_cpp conftest.$ac_ext"
21358 case "(($ac_try" in
21359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360   *) ac_try_echo=$ac_try;;
21361 esac
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21364   ac_status=$?
21365   grep -v '^ *+' conftest.er1 >conftest.err
21366   rm -f conftest.er1
21367   cat conftest.err >&5
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); } >/dev/null; then
21370   if test -s conftest.err; then
21371     ac_cpp_err=$ac_c_preproc_warn_flag
21372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21373   else
21374     ac_cpp_err=
21375   fi
21376 else
21377   ac_cpp_err=yes
21378 fi
21379 if test -z "$ac_cpp_err"; then
21380   ac_header_preproc=yes
21381 else
21382   echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21384
21385   ac_header_preproc=no
21386 fi
21387
21388 rm -f conftest.err conftest.$ac_ext
21389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21390 echo "${ECHO_T}$ac_header_preproc" >&6; }
21391
21392 # So?  What about this header?
21393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21394   yes:no: )
21395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21399     ac_header_preproc=yes
21400     ;;
21401   no:yes:* )
21402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21404     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21405 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21406     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21408     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21409 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21412     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21414
21415     ;;
21416 esac
21417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420   echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422   eval "$as_ac_Header=\$ac_header_preproc"
21423 fi
21424 ac_res=`eval echo '${'$as_ac_Header'}'`
21425                { echo "$as_me:$LINENO: result: $ac_res" >&5
21426 echo "${ECHO_T}$ac_res" >&6; }
21427
21428 fi
21429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21430   cat >>confdefs.h <<_ACEOF
21431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21432 _ACEOF
21433
21434 fi
21435
21436 done
21437
21438
21439
21440  { echo "$as_me:$LINENO: checking for pread declaration" >&5
21441 echo $ECHO_N "checking for pread declaration... $ECHO_C" >&6; }
21442 if test "${ac_cv_have_pread_decl+set}" = set; then
21443   echo $ECHO_N "(cached) $ECHO_C" >&6
21444 else
21445
21446     cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452 #include <unistd.h>
21453 int
21454 main ()
21455 {
21456 int i = (int)pread
21457   ;
21458   return 0;
21459 }
21460 _ACEOF
21461 rm -f conftest.$ac_objext
21462 if { (ac_try="$ac_compile"
21463 case "(($ac_try" in
21464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465   *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468   (eval "$ac_compile") 2>conftest.er1
21469   ac_status=$?
21470   grep -v '^ *+' conftest.er1 >conftest.err
21471   rm -f conftest.er1
21472   cat conftest.err >&5
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); } &&
21475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21476   { (case "(($ac_try" in
21477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478   *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481   (eval "$ac_try") 2>&5
21482   ac_status=$?
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); }; } &&
21485          { ac_try='test -s conftest.$ac_objext'
21486   { (case "(($ac_try" in
21487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488   *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491   (eval "$ac_try") 2>&5
21492   ac_status=$?
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); }; }; then
21495   ac_cv_have_pread_decl=yes
21496 else
21497   echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500         ac_cv_have_pread_decl=no
21501 fi
21502
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 fi
21505 { echo "$as_me:$LINENO: result: $ac_cv_have_pread_decl" >&5
21506 echo "${ECHO_T}$ac_cv_have_pread_decl" >&6; }
21507  if test x"$ac_cv_have_pread_decl" = x"yes"; then
21508
21509 cat >>confdefs.h <<\_ACEOF
21510 #define HAVE_PREAD_DECL 1
21511 _ACEOF
21512
21513  fi
21514
21515
21516  { echo "$as_me:$LINENO: checking for pwrite declaration" >&5
21517 echo $ECHO_N "checking for pwrite declaration... $ECHO_C" >&6; }
21518 if test "${ac_cv_have_pwrite_decl+set}" = set; then
21519   echo $ECHO_N "(cached) $ECHO_C" >&6
21520 else
21521
21522     cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h.  */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h.  */
21528 #include <unistd.h>
21529 int
21530 main ()
21531 {
21532 int i = (int)pwrite
21533   ;
21534   return 0;
21535 }
21536 _ACEOF
21537 rm -f conftest.$ac_objext
21538 if { (ac_try="$ac_compile"
21539 case "(($ac_try" in
21540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541   *) ac_try_echo=$ac_try;;
21542 esac
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544   (eval "$ac_compile") 2>conftest.er1
21545   ac_status=$?
21546   grep -v '^ *+' conftest.er1 >conftest.err
21547   rm -f conftest.er1
21548   cat conftest.err >&5
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); } &&
21551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21552   { (case "(($ac_try" in
21553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554   *) ac_try_echo=$ac_try;;
21555 esac
21556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557   (eval "$ac_try") 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; } &&
21561          { ac_try='test -s conftest.$ac_objext'
21562   { (case "(($ac_try" in
21563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564   *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567   (eval "$ac_try") 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   ac_cv_have_pwrite_decl=yes
21572 else
21573   echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576         ac_cv_have_pwrite_decl=no
21577 fi
21578
21579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21580 fi
21581 { echo "$as_me:$LINENO: result: $ac_cv_have_pwrite_decl" >&5
21582 echo "${ECHO_T}$ac_cv_have_pwrite_decl" >&6; }
21583  if test x"$ac_cv_have_pwrite_decl" = x"yes"; then
21584
21585 cat >>confdefs.h <<\_ACEOF
21586 #define HAVE_PWRITE_DECL 1
21587 _ACEOF
21588
21589  fi
21590
21591
21592 { echo "$as_me:$LINENO: checking for Python" >&5
21593 echo $ECHO_N "checking for Python... $ECHO_C" >&6; }
21594
21595 PYTHON=
21596
21597
21598 # Check whether --with-python was given.
21599 if test "${with_python+set}" = set; then
21600   withval=$with_python;  case "${withval-python}" in
21601   yes)
21602         PYTHON=python
21603         ;;
21604   no)
21605         PYTHON=
21606         ;;
21607   *)
21608         PYTHON=${withval-python}
21609         ;;
21610   esac
21611 fi
21612
21613
21614 if test x"$PYTHON" != "x"; then
21615         incdir=`python -c 'import sys; print "%s/include/python%d.%d" % (sys.prefix, sys.version_info[0], sys.version_info[1])'`
21616         CPPFLAGS="$CPPFLAGS -I $incdir"
21617 fi
21618
21619 if test x"$PYTHON" != "x"; then
21620         { echo "$as_me:$LINENO: result: ${withval-python}" >&5
21621 echo "${ECHO_T}${withval-python}" >&6; }
21622 else
21623         echo -n ""
21624         { echo "$as_me:$LINENO: result: no" >&5
21625 echo "${ECHO_T}no" >&6; }
21626 fi
21627
21628
21629
21630
21631
21632
21633 ac_config_files="$ac_config_files Makefile"
21634
21635 cat >confcache <<\_ACEOF
21636 # This file is a shell script that caches the results of configure
21637 # tests run on this system so they can be shared between configure
21638 # scripts and configure runs, see configure's option --config-cache.
21639 # It is not useful on other systems.  If it contains results you don't
21640 # want to keep, you may remove or edit it.
21641 #
21642 # config.status only pays attention to the cache file if you give it
21643 # the --recheck option to rerun configure.
21644 #
21645 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21646 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21647 # following values.
21648
21649 _ACEOF
21650
21651 # The following way of writing the cache mishandles newlines in values,
21652 # but we know of no workaround that is simple, portable, and efficient.
21653 # So, we kill variables containing newlines.
21654 # Ultrix sh set writes to stderr and can't be redirected directly,
21655 # and sets the high bit in the cache file unless we assign to the vars.
21656 (
21657   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21658     eval ac_val=\$$ac_var
21659     case $ac_val in #(
21660     *${as_nl}*)
21661       case $ac_var in #(
21662       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21663 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21664       esac
21665       case $ac_var in #(
21666       _ | IFS | as_nl) ;; #(
21667       *) $as_unset $ac_var ;;
21668       esac ;;
21669     esac
21670   done
21671
21672   (set) 2>&1 |
21673     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21674     *${as_nl}ac_space=\ *)
21675       # `set' does not quote correctly, so add quotes (double-quote
21676       # substitution turns \\\\ into \\, and sed turns \\ into \).
21677       sed -n \
21678         "s/'/'\\\\''/g;
21679           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21680       ;; #(
21681     *)
21682       # `set' quotes correctly as required by POSIX, so do not add quotes.
21683       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21684       ;;
21685     esac |
21686     sort
21687 ) |
21688   sed '
21689      /^ac_cv_env_/b end
21690      t clear
21691      :clear
21692      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21693      t end
21694      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21695      :end' >>confcache
21696 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21697   if test -w "$cache_file"; then
21698     test "x$cache_file" != "x/dev/null" &&
21699       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21700 echo "$as_me: updating cache $cache_file" >&6;}
21701     cat confcache >$cache_file
21702   else
21703     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21704 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21705   fi
21706 fi
21707 rm -f confcache
21708
21709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21710 # Let make expand exec_prefix.
21711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21712
21713 DEFS=-DHAVE_CONFIG_H
21714
21715 ac_libobjs=
21716 ac_ltlibobjs=
21717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21718   # 1. Remove the extension, and $U if already installed.
21719   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21720   ac_i=`echo "$ac_i" | sed "$ac_script"`
21721   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21722   #    will be set to the directory where LIBOBJS objects are built.
21723   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21724   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21725 done
21726 LIBOBJS=$ac_libobjs
21727
21728 LTLIBOBJS=$ac_ltlibobjs
21729
21730
21731
21732 : ${CONFIG_STATUS=./config.status}
21733 ac_clean_files_save=$ac_clean_files
21734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21735 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21736 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21737 cat >$CONFIG_STATUS <<_ACEOF
21738 #! $SHELL
21739 # Generated by $as_me.
21740 # Run this file to recreate the current configuration.
21741 # Compiler output produced by configure, useful for debugging
21742 # configure, is in config.log if it exists.
21743
21744 debug=false
21745 ac_cs_recheck=false
21746 ac_cs_silent=false
21747 SHELL=\${CONFIG_SHELL-$SHELL}
21748 _ACEOF
21749
21750 cat >>$CONFIG_STATUS <<\_ACEOF
21751 ## --------------------- ##
21752 ## M4sh Initialization.  ##
21753 ## --------------------- ##
21754
21755 # Be Bourne compatible
21756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21757   emulate sh
21758   NULLCMD=:
21759   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21760   # is contrary to our usage.  Disable this feature.
21761   alias -g '${1+"$@"}'='"$@"'
21762   setopt NO_GLOB_SUBST
21763 else
21764   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21765 fi
21766 BIN_SH=xpg4; export BIN_SH # for Tru64
21767 DUALCASE=1; export DUALCASE # for MKS sh
21768
21769
21770 # PATH needs CR
21771 # Avoid depending upon Character Ranges.
21772 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21773 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21774 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21775 as_cr_digits='0123456789'
21776 as_cr_alnum=$as_cr_Letters$as_cr_digits
21777
21778 # The user is always right.
21779 if test "${PATH_SEPARATOR+set}" != set; then
21780   echo "#! /bin/sh" >conf$$.sh
21781   echo  "exit 0"   >>conf$$.sh
21782   chmod +x conf$$.sh
21783   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21784     PATH_SEPARATOR=';'
21785   else
21786     PATH_SEPARATOR=:
21787   fi
21788   rm -f conf$$.sh
21789 fi
21790
21791 # Support unset when possible.
21792 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21793   as_unset=unset
21794 else
21795   as_unset=false
21796 fi
21797
21798
21799 # IFS
21800 # We need space, tab and new line, in precisely that order.  Quoting is
21801 # there to prevent editors from complaining about space-tab.
21802 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21803 # splitting by setting IFS to empty value.)
21804 as_nl='
21805 '
21806 IFS=" ""        $as_nl"
21807
21808 # Find who we are.  Look in the path if we contain no directory separator.
21809 case $0 in
21810   *[\\/]* ) as_myself=$0 ;;
21811   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21812 for as_dir in $PATH
21813 do
21814   IFS=$as_save_IFS
21815   test -z "$as_dir" && as_dir=.
21816   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21817 done
21818 IFS=$as_save_IFS
21819
21820      ;;
21821 esac
21822 # We did not find ourselves, most probably we were run as `sh COMMAND'
21823 # in which case we are not to be found in the path.
21824 if test "x$as_myself" = x; then
21825   as_myself=$0
21826 fi
21827 if test ! -f "$as_myself"; then
21828   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21829   { (exit 1); exit 1; }
21830 fi
21831
21832 # Work around bugs in pre-3.0 UWIN ksh.
21833 for as_var in ENV MAIL MAILPATH
21834 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21835 done
21836 PS1='$ '
21837 PS2='> '
21838 PS4='+ '
21839
21840 # NLS nuisances.
21841 for as_var in \
21842   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21843   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21844   LC_TELEPHONE LC_TIME
21845 do
21846   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21847     eval $as_var=C; export $as_var
21848   else
21849     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21850   fi
21851 done
21852
21853 # Required to use basename.
21854 if expr a : '\(a\)' >/dev/null 2>&1 &&
21855    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21856   as_expr=expr
21857 else
21858   as_expr=false
21859 fi
21860
21861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21862   as_basename=basename
21863 else
21864   as_basename=false
21865 fi
21866
21867
21868 # Name of the executable.
21869 as_me=`$as_basename -- "$0" ||
21870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21871          X"$0" : 'X\(//\)$' \| \
21872          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21873 echo X/"$0" |
21874     sed '/^.*\/\([^/][^/]*\)\/*$/{
21875             s//\1/
21876             q
21877           }
21878           /^X\/\(\/\/\)$/{
21879             s//\1/
21880             q
21881           }
21882           /^X\/\(\/\).*/{
21883             s//\1/
21884             q
21885           }
21886           s/.*/./; q'`
21887
21888 # CDPATH.
21889 $as_unset CDPATH
21890
21891
21892
21893   as_lineno_1=$LINENO
21894   as_lineno_2=$LINENO
21895   test "x$as_lineno_1" != "x$as_lineno_2" &&
21896   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21897
21898   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21899   # uniformly replaced by the line number.  The first 'sed' inserts a
21900   # line-number line after each line using $LINENO; the second 'sed'
21901   # does the real work.  The second script uses 'N' to pair each
21902   # line-number line with the line containing $LINENO, and appends
21903   # trailing '-' during substitution so that $LINENO is not a special
21904   # case at line end.
21905   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21906   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21907   # E. McMahon (1931-1989) for sed's syntax.  :-)
21908   sed -n '
21909     p
21910     /[$]LINENO/=
21911   ' <$as_myself |
21912     sed '
21913       s/[$]LINENO.*/&-/
21914       t lineno
21915       b
21916       :lineno
21917       N
21918       :loop
21919       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21920       t loop
21921       s/-\n.*//
21922     ' >$as_me.lineno &&
21923   chmod +x "$as_me.lineno" ||
21924     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21925    { (exit 1); exit 1; }; }
21926
21927   # Don't try to exec as it changes $[0], causing all sort of problems
21928   # (the dirname of $[0] is not the place where we might find the
21929   # original and so on.  Autoconf is especially sensitive to this).
21930   . "./$as_me.lineno"
21931   # Exit status is that of the last command.
21932   exit
21933 }
21934
21935
21936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21937   as_dirname=dirname
21938 else
21939   as_dirname=false
21940 fi
21941
21942 ECHO_C= ECHO_N= ECHO_T=
21943 case `echo -n x` in
21944 -n*)
21945   case `echo 'x\c'` in
21946   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21947   *)   ECHO_C='\c';;
21948   esac;;
21949 *)
21950   ECHO_N='-n';;
21951 esac
21952
21953 if expr a : '\(a\)' >/dev/null 2>&1 &&
21954    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21955   as_expr=expr
21956 else
21957   as_expr=false
21958 fi
21959
21960 rm -f conf$$ conf$$.exe conf$$.file
21961 if test -d conf$$.dir; then
21962   rm -f conf$$.dir/conf$$.file
21963 else
21964   rm -f conf$$.dir
21965   mkdir conf$$.dir
21966 fi
21967 echo >conf$$.file
21968 if ln -s conf$$.file conf$$ 2>/dev/null; then
21969   as_ln_s='ln -s'
21970   # ... but there are two gotchas:
21971   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21972   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21973   # In both cases, we have to default to `cp -p'.
21974   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21975     as_ln_s='cp -p'
21976 elif ln conf$$.file conf$$ 2>/dev/null; then
21977   as_ln_s=ln
21978 else
21979   as_ln_s='cp -p'
21980 fi
21981 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21982 rmdir conf$$.dir 2>/dev/null
21983
21984 if mkdir -p . 2>/dev/null; then
21985   as_mkdir_p=:
21986 else
21987   test -d ./-p && rmdir ./-p
21988   as_mkdir_p=false
21989 fi
21990
21991 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21992 # systems may use methods other than mode bits to determine executability.
21993 cat >conf$$.file <<_ASEOF
21994 #! /bin/sh
21995 exit 0
21996 _ASEOF
21997 chmod +x conf$$.file
21998 if test -x conf$$.file >/dev/null 2>&1; then
21999   as_executable_p="test -x"
22000 else
22001   as_executable_p=:
22002 fi
22003 rm -f conf$$.file
22004
22005 # Sed expression to map a string onto a valid CPP name.
22006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22007
22008 # Sed expression to map a string onto a valid variable name.
22009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22010
22011
22012 exec 6>&1
22013
22014 # Save the log message, to keep $[0] and so on meaningful, and to
22015 # report actual input values of CONFIG_FILES etc. instead of their
22016 # values after options handling.
22017 ac_log="
22018 This file was extended by $as_me, which was
22019 generated by GNU Autoconf 2.60.  Invocation command line was
22020
22021   CONFIG_FILES    = $CONFIG_FILES
22022   CONFIG_HEADERS  = $CONFIG_HEADERS
22023   CONFIG_LINKS    = $CONFIG_LINKS
22024   CONFIG_COMMANDS = $CONFIG_COMMANDS
22025   $ $0 $@
22026
22027 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22028 "
22029
22030 _ACEOF
22031
22032 cat >>$CONFIG_STATUS <<_ACEOF
22033 # Files that config.status was made for.
22034 config_files="$ac_config_files"
22035 config_headers="$ac_config_headers"
22036
22037 _ACEOF
22038
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 ac_cs_usage="\
22041 \`$as_me' instantiates files from templates according to the
22042 current configuration.
22043
22044 Usage: $0 [OPTIONS] [FILE]...
22045
22046   -h, --help       print this help, then exit
22047   -V, --version    print version number, then exit
22048   -q, --quiet      do not print progress messages
22049   -d, --debug      don't remove temporary files
22050       --recheck    update $as_me by reconfiguring in the same conditions
22051   --file=FILE[:TEMPLATE]
22052                    instantiate the configuration file FILE
22053   --header=FILE[:TEMPLATE]
22054                    instantiate the configuration header FILE
22055
22056 Configuration files:
22057 $config_files
22058
22059 Configuration headers:
22060 $config_headers
22061
22062 Report bugs to <bug-autoconf@gnu.org>."
22063
22064 _ACEOF
22065 cat >>$CONFIG_STATUS <<_ACEOF
22066 ac_cs_version="\\
22067 config.status
22068 configured by $0, generated by GNU Autoconf 2.60,
22069   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22070
22071 Copyright (C) 2006 Free Software Foundation, Inc.
22072 This config.status script is free software; the Free Software Foundation
22073 gives unlimited permission to copy, distribute and modify it."
22074
22075 ac_pwd='$ac_pwd'
22076 srcdir='$srcdir'
22077 INSTALL='$INSTALL'
22078 _ACEOF
22079
22080 cat >>$CONFIG_STATUS <<\_ACEOF
22081 # If no file are specified by the user, then we need to provide default
22082 # value.  By we need to know if files were specified by the user.
22083 ac_need_defaults=:
22084 while test $# != 0
22085 do
22086   case $1 in
22087   --*=*)
22088     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22089     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22090     ac_shift=:
22091     ;;
22092   *)
22093     ac_option=$1
22094     ac_optarg=$2
22095     ac_shift=shift
22096     ;;
22097   esac
22098
22099   case $ac_option in
22100   # Handling of the options.
22101   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22102     ac_cs_recheck=: ;;
22103   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22104     echo "$ac_cs_version"; exit ;;
22105   --debug | --debu | --deb | --de | --d | -d )
22106     debug=: ;;
22107   --file | --fil | --fi | --f )
22108     $ac_shift
22109     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22110     ac_need_defaults=false;;
22111   --header | --heade | --head | --hea )
22112     $ac_shift
22113     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22114     ac_need_defaults=false;;
22115   --he | --h)
22116     # Conflict between --help and --header
22117     { echo "$as_me: error: ambiguous option: $1
22118 Try \`$0 --help' for more information." >&2
22119    { (exit 1); exit 1; }; };;
22120   --help | --hel | -h )
22121     echo "$ac_cs_usage"; exit ;;
22122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22123   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22124     ac_cs_silent=: ;;
22125
22126   # This is an error.
22127   -*) { echo "$as_me: error: unrecognized option: $1
22128 Try \`$0 --help' for more information." >&2
22129    { (exit 1); exit 1; }; } ;;
22130
22131   *) ac_config_targets="$ac_config_targets $1"
22132      ac_need_defaults=false ;;
22133
22134   esac
22135   shift
22136 done
22137
22138 ac_configure_extra_args=
22139
22140 if $ac_cs_silent; then
22141   exec 6>/dev/null
22142   ac_configure_extra_args="$ac_configure_extra_args --silent"
22143 fi
22144
22145 _ACEOF
22146 cat >>$CONFIG_STATUS <<_ACEOF
22147 if \$ac_cs_recheck; then
22148   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22149   CONFIG_SHELL=$SHELL
22150   export CONFIG_SHELL
22151   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22152 fi
22153
22154 _ACEOF
22155 cat >>$CONFIG_STATUS <<\_ACEOF
22156 exec 5>>config.log
22157 {
22158   echo
22159   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22160 ## Running $as_me. ##
22161 _ASBOX
22162   echo "$ac_log"
22163 } >&5
22164
22165 _ACEOF
22166 cat >>$CONFIG_STATUS <<_ACEOF
22167 _ACEOF
22168
22169 cat >>$CONFIG_STATUS <<\_ACEOF
22170
22171 # Handling of arguments.
22172 for ac_config_target in $ac_config_targets
22173 do
22174   case $ac_config_target in
22175     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22176     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22177
22178   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22179 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22180    { (exit 1); exit 1; }; };;
22181   esac
22182 done
22183
22184
22185 # If the user did not use the arguments to specify the items to instantiate,
22186 # then the envvar interface is used.  Set only those that are not.
22187 # We use the long form for the default assignment because of an extremely
22188 # bizarre bug on SunOS 4.1.3.
22189 if $ac_need_defaults; then
22190   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22191   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22192 fi
22193
22194 # Have a temporary directory for convenience.  Make it in the build tree
22195 # simply because there is no reason against having it here, and in addition,
22196 # creating and moving files from /tmp can sometimes cause problems.
22197 # Hook for its removal unless debugging.
22198 # Note that there is a small window in which the directory will not be cleaned:
22199 # after its creation but before its name has been assigned to `$tmp'.
22200 $debug ||
22201 {
22202   tmp=
22203   trap 'exit_status=$?
22204   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22205 ' 0
22206   trap '{ (exit 1); exit 1; }' 1 2 13 15
22207 }
22208 # Create a (secure) tmp directory for tmp files.
22209
22210 {
22211   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22212   test -n "$tmp" && test -d "$tmp"
22213 }  ||
22214 {
22215   tmp=./conf$$-$RANDOM
22216   (umask 077 && mkdir "$tmp")
22217 } ||
22218 {
22219    echo "$me: cannot create a temporary directory in ." >&2
22220    { (exit 1); exit 1; }
22221 }
22222
22223 #
22224 # Set up the sed scripts for CONFIG_FILES section.
22225 #
22226
22227 # No need to generate the scripts if there are no CONFIG_FILES.
22228 # This happens for instance when ./config.status config.h
22229 if test -n "$CONFIG_FILES"; then
22230
22231 _ACEOF
22232
22233
22234
22235 ac_delim='%!_!# '
22236 for ac_last_try in false false false false false :; do
22237   cat >conf$$subs.sed <<_ACEOF
22238 SHELL!$SHELL$ac_delim
22239 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22240 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22241 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22242 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22243 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22244 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22245 exec_prefix!$exec_prefix$ac_delim
22246 prefix!$prefix$ac_delim
22247 program_transform_name!$program_transform_name$ac_delim
22248 bindir!$bindir$ac_delim
22249 sbindir!$sbindir$ac_delim
22250 libexecdir!$libexecdir$ac_delim
22251 datarootdir!$datarootdir$ac_delim
22252 datadir!$datadir$ac_delim
22253 sysconfdir!$sysconfdir$ac_delim
22254 sharedstatedir!$sharedstatedir$ac_delim
22255 localstatedir!$localstatedir$ac_delim
22256 includedir!$includedir$ac_delim
22257 oldincludedir!$oldincludedir$ac_delim
22258 docdir!$docdir$ac_delim
22259 infodir!$infodir$ac_delim
22260 htmldir!$htmldir$ac_delim
22261 dvidir!$dvidir$ac_delim
22262 pdfdir!$pdfdir$ac_delim
22263 psdir!$psdir$ac_delim
22264 libdir!$libdir$ac_delim
22265 localedir!$localedir$ac_delim
22266 mandir!$mandir$ac_delim
22267 DEFS!$DEFS$ac_delim
22268 ECHO_C!$ECHO_C$ac_delim
22269 ECHO_N!$ECHO_N$ac_delim
22270 ECHO_T!$ECHO_T$ac_delim
22271 LIBS!$LIBS$ac_delim
22272 build_alias!$build_alias$ac_delim
22273 host_alias!$host_alias$ac_delim
22274 target_alias!$target_alias$ac_delim
22275 libreplacedir!$libreplacedir$ac_delim
22276 LIBREPLACEOBJ!$LIBREPLACEOBJ$ac_delim
22277 build!$build$ac_delim
22278 build_cpu!$build_cpu$ac_delim
22279 build_vendor!$build_vendor$ac_delim
22280 build_os!$build_os$ac_delim
22281 host!$host$ac_delim
22282 host_cpu!$host_cpu$ac_delim
22283 host_vendor!$host_vendor$ac_delim
22284 host_os!$host_os$ac_delim
22285 target!$target$ac_delim
22286 target_cpu!$target_cpu$ac_delim
22287 target_vendor!$target_vendor$ac_delim
22288 target_os!$target_os$ac_delim
22289 CC!$CC$ac_delim
22290 CFLAGS!$CFLAGS$ac_delim
22291 LDFLAGS!$LDFLAGS$ac_delim
22292 CPPFLAGS!$CPPFLAGS$ac_delim
22293 ac_ct_CC!$ac_ct_CC$ac_delim
22294 EXEEXT!$EXEEXT$ac_delim
22295 OBJEXT!$OBJEXT$ac_delim
22296 CPP!$CPP$ac_delim
22297 GREP!$GREP$ac_delim
22298 EGREP!$EGREP$ac_delim
22299 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22300 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22301 INSTALL_DATA!$INSTALL_DATA$ac_delim
22302 libreplace_cv_immediate_structures!$libreplace_cv_immediate_structures$ac_delim
22303 LIBOBJS!$LIBOBJS$ac_delim
22304 precompiled_headers!$precompiled_headers$ac_delim
22305 LIBDL!$LIBDL$ac_delim
22306 tallocdir!$tallocdir$ac_delim
22307 TALLOCOBJ!$TALLOCOBJ$ac_delim
22308 tdbdir!$tdbdir$ac_delim
22309 TDBOBJ!$TDBOBJ$ac_delim
22310 PYTHON!$PYTHON$ac_delim
22311 EXTRA_OBJ!$EXTRA_OBJ$ac_delim
22312 LTLIBOBJS!$LTLIBOBJS$ac_delim
22313 _ACEOF
22314
22315   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
22316     break
22317   elif $ac_last_try; then
22318     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22319 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22320    { (exit 1); exit 1; }; }
22321   else
22322     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22323   fi
22324 done
22325
22326 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22327 if test -n "$ac_eof"; then
22328   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22329   ac_eof=`expr $ac_eof + 1`
22330 fi
22331
22332 cat >>$CONFIG_STATUS <<_ACEOF
22333 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22335 _ACEOF
22336 sed '
22337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22338 s/^/s,@/; s/!/@,|#_!!_#|/
22339 :n
22340 t n
22341 s/'"$ac_delim"'$/,g/; t
22342 s/$/\\/; p
22343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22344 ' >>$CONFIG_STATUS <conf$$subs.sed
22345 rm -f conf$$subs.sed
22346 cat >>$CONFIG_STATUS <<_ACEOF
22347 :end
22348 s/|#_!!_#|//g
22349 CEOF$ac_eof
22350 _ACEOF
22351
22352
22353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22355 # trailing colons and then remove the whole line if VPATH becomes empty
22356 # (actually we leave an empty line to preserve line numbers).
22357 if test "x$srcdir" = x.; then
22358   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22359 s/:*\$(srcdir):*/:/
22360 s/:*\${srcdir}:*/:/
22361 s/:*@srcdir@:*/:/
22362 s/^\([^=]*=[     ]*\):*/\1/
22363 s/:*$//
22364 s/^[^=]*=[       ]*$//
22365 }'
22366 fi
22367
22368 cat >>$CONFIG_STATUS <<\_ACEOF
22369 fi # test -n "$CONFIG_FILES"
22370
22371
22372 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
22373 do
22374   case $ac_tag in
22375   :[FHLC]) ac_mode=$ac_tag; continue;;
22376   esac
22377   case $ac_mode$ac_tag in
22378   :[FHL]*:*);;
22379   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22380 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22381    { (exit 1); exit 1; }; };;
22382   :[FH]-) ac_tag=-:-;;
22383   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22384   esac
22385   ac_save_IFS=$IFS
22386   IFS=:
22387   set x $ac_tag
22388   IFS=$ac_save_IFS
22389   shift
22390   ac_file=$1
22391   shift
22392
22393   case $ac_mode in
22394   :L) ac_source=$1;;
22395   :[FH])
22396     ac_file_inputs=
22397     for ac_f
22398     do
22399       case $ac_f in
22400       -) ac_f="$tmp/stdin";;
22401       *) # Look for the file first in the build tree, then in the source tree
22402          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22403          # because $ac_f cannot contain `:'.
22404          test -f "$ac_f" ||
22405            case $ac_f in
22406            [\\/$]*) false;;
22407            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22408            esac ||
22409            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22410 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22411    { (exit 1); exit 1; }; };;
22412       esac
22413       ac_file_inputs="$ac_file_inputs $ac_f"
22414     done
22415
22416     # Let's still pretend it is `configure' which instantiates (i.e., don't
22417     # use $as_me), people would be surprised to read:
22418     #    /* config.h.  Generated by config.status.  */
22419     configure_input="Generated from "`IFS=:
22420           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22421     if test x"$ac_file" != x-; then
22422       configure_input="$ac_file.  $configure_input"
22423       { echo "$as_me:$LINENO: creating $ac_file" >&5
22424 echo "$as_me: creating $ac_file" >&6;}
22425     fi
22426
22427     case $ac_tag in
22428     *:-:* | *:-) cat >"$tmp/stdin";;
22429     esac
22430     ;;
22431   esac
22432
22433   ac_dir=`$as_dirname -- "$ac_file" ||
22434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22435          X"$ac_file" : 'X\(//\)[^/]' \| \
22436          X"$ac_file" : 'X\(//\)$' \| \
22437          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22438 echo X"$ac_file" |
22439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22440             s//\1/
22441             q
22442           }
22443           /^X\(\/\/\)[^/].*/{
22444             s//\1/
22445             q
22446           }
22447           /^X\(\/\/\)$/{
22448             s//\1/
22449             q
22450           }
22451           /^X\(\/\).*/{
22452             s//\1/
22453             q
22454           }
22455           s/.*/./; q'`
22456   { as_dir="$ac_dir"
22457   case $as_dir in #(
22458   -*) as_dir=./$as_dir;;
22459   esac
22460   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22461     as_dirs=
22462     while :; do
22463       case $as_dir in #(
22464       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22465       *) as_qdir=$as_dir;;
22466       esac
22467       as_dirs="'$as_qdir' $as_dirs"
22468       as_dir=`$as_dirname -- "$as_dir" ||
22469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22470          X"$as_dir" : 'X\(//\)[^/]' \| \
22471          X"$as_dir" : 'X\(//\)$' \| \
22472          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22473 echo X"$as_dir" |
22474     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22475             s//\1/
22476             q
22477           }
22478           /^X\(\/\/\)[^/].*/{
22479             s//\1/
22480             q
22481           }
22482           /^X\(\/\/\)$/{
22483             s//\1/
22484             q
22485           }
22486           /^X\(\/\).*/{
22487             s//\1/
22488             q
22489           }
22490           s/.*/./; q'`
22491       test -d "$as_dir" && break
22492     done
22493     test -z "$as_dirs" || eval "mkdir $as_dirs"
22494   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22495 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22496    { (exit 1); exit 1; }; }; }
22497   ac_builddir=.
22498
22499 case "$ac_dir" in
22500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22501 *)
22502   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22503   # A ".." for each directory in $ac_dir_suffix.
22504   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22505   case $ac_top_builddir_sub in
22506   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22507   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22508   esac ;;
22509 esac
22510 ac_abs_top_builddir=$ac_pwd
22511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22512 # for backward compatibility:
22513 ac_top_builddir=$ac_top_build_prefix
22514
22515 case $srcdir in
22516   .)  # We are building in place.
22517     ac_srcdir=.
22518     ac_top_srcdir=$ac_top_builddir_sub
22519     ac_abs_top_srcdir=$ac_pwd ;;
22520   [\\/]* | ?:[\\/]* )  # Absolute name.
22521     ac_srcdir=$srcdir$ac_dir_suffix;
22522     ac_top_srcdir=$srcdir
22523     ac_abs_top_srcdir=$srcdir ;;
22524   *) # Relative name.
22525     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22526     ac_top_srcdir=$ac_top_build_prefix$srcdir
22527     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22528 esac
22529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22530
22531
22532   case $ac_mode in
22533   :F)
22534   #
22535   # CONFIG_FILE
22536   #
22537
22538   case $INSTALL in
22539   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22540   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22541   esac
22542 _ACEOF
22543
22544 cat >>$CONFIG_STATUS <<\_ACEOF
22545 # If the template does not know about datarootdir, expand it.
22546 # FIXME: This hack should be removed a few years after 2.60.
22547 ac_datarootdir_hack=; ac_datarootdir_seen=
22548
22549 case `sed -n '/datarootdir/ {
22550   p
22551   q
22552 }
22553 /@datadir@/p
22554 /@docdir@/p
22555 /@infodir@/p
22556 /@localedir@/p
22557 /@mandir@/p
22558 ' $ac_file_inputs` in
22559 *datarootdir*) ac_datarootdir_seen=yes;;
22560 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22561   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22562 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22563 _ACEOF
22564 cat >>$CONFIG_STATUS <<_ACEOF
22565   ac_datarootdir_hack='
22566   s&@datadir@&$datadir&g
22567   s&@docdir@&$docdir&g
22568   s&@infodir@&$infodir&g
22569   s&@localedir@&$localedir&g
22570   s&@mandir@&$mandir&g
22571     s&\\\${datarootdir}&$datarootdir&g' ;;
22572 esac
22573 _ACEOF
22574
22575 # Neutralize VPATH when `$srcdir' = `.'.
22576 # Shell code in configure.ac might set extrasub.
22577 # FIXME: do we really want to maintain this feature?
22578 cat >>$CONFIG_STATUS <<_ACEOF
22579   sed "$ac_vpsub
22580 $extrasub
22581 _ACEOF
22582 cat >>$CONFIG_STATUS <<\_ACEOF
22583 :t
22584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22585 s&@configure_input@&$configure_input&;t t
22586 s&@top_builddir@&$ac_top_builddir_sub&;t t
22587 s&@srcdir@&$ac_srcdir&;t t
22588 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22589 s&@top_srcdir@&$ac_top_srcdir&;t t
22590 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22591 s&@builddir@&$ac_builddir&;t t
22592 s&@abs_builddir@&$ac_abs_builddir&;t t
22593 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22594 s&@INSTALL@&$ac_INSTALL&;t t
22595 $ac_datarootdir_hack
22596 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
22597
22598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22599   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22600   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22601   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22602 which seems to be undefined.  Please make sure it is defined." >&5
22603 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22604 which seems to be undefined.  Please make sure it is defined." >&2;}
22605
22606   rm -f "$tmp/stdin"
22607   case $ac_file in
22608   -) cat "$tmp/out"; rm -f "$tmp/out";;
22609   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22610   esac
22611  ;;
22612   :H)
22613   #
22614   # CONFIG_HEADER
22615   #
22616 _ACEOF
22617
22618 # Transform confdefs.h into a sed script `conftest.defines', that
22619 # substitutes the proper values into config.h.in to produce config.h.
22620 rm -f conftest.defines conftest.tail
22621 # First, append a space to every undef/define line, to ease matching.
22622 echo 's/$/ /' >conftest.defines
22623 # Then, protect against being on the right side of a sed subst, or in
22624 # an unquoted here document, in config.status.  If some macros were
22625 # called several times there might be several #defines for the same
22626 # symbol, which is useless.  But do not sort them, since the last
22627 # AC_DEFINE must be honored.
22628 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22629 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22630 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22631 # PARAMS is the parameter list in the macro definition--in most cases, it's
22632 # just an empty string.
22633 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22634 ac_dB='\\)[      (].*,\\1define\\2'
22635 ac_dC=' '
22636 ac_dD=' ,'
22637
22638 uniq confdefs.h |
22639   sed -n '
22640         t rset
22641         :rset
22642         s/^[     ]*#[    ]*define[       ][      ]*//
22643         t ok
22644         d
22645         :ok
22646         s/[\\&,]/\\&/g
22647         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22648         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22649   ' >>conftest.defines
22650
22651 # Remove the space that was appended to ease matching.
22652 # Then replace #undef with comments.  This is necessary, for
22653 # example, in the case of _POSIX_SOURCE, which is predefined and required
22654 # on some systems where configure will not decide to define it.
22655 # (The regexp can be short, since the line contains either #define or #undef.)
22656 echo 's/ $//
22657 s,^[     #]*u.*,/* & */,' >>conftest.defines
22658
22659 # Break up conftest.defines:
22660 ac_max_sed_lines=50
22661
22662 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22663 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22664 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22665 # et cetera.
22666 ac_in='$ac_file_inputs'
22667 ac_out='"$tmp/out1"'
22668 ac_nxt='"$tmp/out2"'
22669
22670 while :
22671 do
22672   # Write a here document:
22673     cat >>$CONFIG_STATUS <<_ACEOF
22674     # First, check the format of the line:
22675     cat >"\$tmp/defines.sed" <<\\CEOF
22676 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22677 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22678 b
22679 :def
22680 _ACEOF
22681   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22682   echo 'CEOF
22683     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22684   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22685   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22686   grep . conftest.tail >/dev/null || break
22687   rm -f conftest.defines
22688   mv conftest.tail conftest.defines
22689 done
22690 rm -f conftest.defines conftest.tail
22691
22692 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22693 cat >>$CONFIG_STATUS <<\_ACEOF
22694   if test x"$ac_file" != x-; then
22695     echo "/* $configure_input  */" >"$tmp/config.h"
22696     cat "$ac_result" >>"$tmp/config.h"
22697     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22698       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22699 echo "$as_me: $ac_file is unchanged" >&6;}
22700     else
22701       rm -f $ac_file
22702       mv "$tmp/config.h" $ac_file
22703     fi
22704   else
22705     echo "/* $configure_input  */"
22706     cat "$ac_result"
22707   fi
22708   rm -f "$tmp/out12"
22709  ;;
22710
22711
22712   esac
22713
22714 done # for ac_tag
22715
22716
22717 { (exit 0); exit 0; }
22718 _ACEOF
22719 chmod +x $CONFIG_STATUS
22720 ac_clean_files=$ac_clean_files_save
22721
22722
22723 # configure is writing to config.log, and then calls config.status.
22724 # config.status does its own redirection, appending to config.log.
22725 # Unfortunately, on DOS this fails, as config.log is still kept open
22726 # by configure, so config.status won't be able to write to it; its
22727 # output is simply discarded.  So we exec the FD to /dev/null,
22728 # effectively closing config.log, so it can be properly (re)opened and
22729 # appended to by config.status.  When coming back to configure, we
22730 # need to make the FD available again.
22731 if test "$no_create" != yes; then
22732   ac_cs_success=:
22733   ac_config_status_args=
22734   test "$silent" = yes &&
22735     ac_config_status_args="$ac_config_status_args --quiet"
22736   exec 5>/dev/null
22737   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22738   exec 5>>config.log
22739   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22740   # would make configure fail if this is the last instruction.
22741   $ac_cs_success || { (exit 1); exit 1; }
22742 fi
22743