Pullup ticket #2736 - requested by joerg
[pkgsrc.git] / pkgtools / libnbcompat / files / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libnbcompat 20080519.
4 #
5 # Report bugs to <grant@NetBSD.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='libnbcompat'
598 PACKAGE_TARNAME='libnbcompat'
599 PACKAGE_VERSION='20080519'
600 PACKAGE_STRING='libnbcompat 20080519'
601 PACKAGE_BUGREPORT='grant@NetBSD.org'
602
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 #  include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #  include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_subst_vars='LTLIBOBJS
640 WITH_DB
641 LIBOBJS
642 EGREP
643 GREP
644 CPP
645 AUTOHEADER
646 AUTOCONF
647 AR
648 AWK
649 RANLIB
650 LN_S
651 INSTALL_DATA
652 INSTALL_SCRIPT
653 INSTALL_PROGRAM
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 SET_MAKE
662 INCLUDES
663 CANONICAL_HOST
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 target_alias
673 host_alias
674 build_alias
675 LIBS
676 ECHO_T
677 ECHO_N
678 ECHO_C
679 DEFS
680 mandir
681 localedir
682 libdir
683 psdir
684 pdfdir
685 dvidir
686 htmldir
687 infodir
688 docdir
689 oldincludedir
690 includedir
691 localstatedir
692 sharedstatedir
693 sysconfdir
694 datadir
695 datarootdir
696 libexecdir
697 sbindir
698 bindir
699 program_transform_name
700 prefix
701 exec_prefix
702 PACKAGE_BUGREPORT
703 PACKAGE_STRING
704 PACKAGE_VERSION
705 PACKAGE_TARNAME
706 PACKAGE_NAME
707 PATH_SEPARATOR
708 SHELL'
709 ac_subst_files=''
710 ac_user_opts='
711 enable_option_checking
712 enable_db
713 enable_bsd_getopt
714 '
715       ac_precious_vars='build_alias
716 host_alias
717 target_alias
718 CC
719 CFLAGS
720 LDFLAGS
721 LIBS
722 CPPFLAGS
723 CPP'
724
725
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 ac_unrecognized_opts=
730 ac_unrecognized_sep=
731 # The variables have the same names as the options, with
732 # dashes changed to underlines.
733 cache_file=/dev/null
734 exec_prefix=NONE
735 no_create=
736 no_recursion=
737 prefix=NONE
738 program_prefix=NONE
739 program_suffix=NONE
740 program_transform_name=s,x,x,
741 silent=
742 site=
743 srcdir=
744 verbose=
745 x_includes=NONE
746 x_libraries=NONE
747
748 # Installation directory options.
749 # These are left unexpanded so users can "make install exec_prefix=/foo"
750 # and all the variables that are supposed to be based on exec_prefix
751 # by default will actually change.
752 # Use braces instead of parens because sh, perl, etc. also accept them.
753 # (The list follows the same order as the GNU Coding Standards.)
754 bindir='${exec_prefix}/bin'
755 sbindir='${exec_prefix}/sbin'
756 libexecdir='${exec_prefix}/libexec'
757 datarootdir='${prefix}/share'
758 datadir='${datarootdir}'
759 sysconfdir='${prefix}/etc'
760 sharedstatedir='${prefix}/com'
761 localstatedir='${prefix}/var'
762 includedir='${prefix}/include'
763 oldincludedir='/usr/include'
764 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
765 infodir='${datarootdir}/info'
766 htmldir='${docdir}'
767 dvidir='${docdir}'
768 pdfdir='${docdir}'
769 psdir='${docdir}'
770 libdir='${exec_prefix}/lib'
771 localedir='${datarootdir}/locale'
772 mandir='${datarootdir}/man'
773
774 ac_prev=
775 ac_dashdash=
776 for ac_option
777 do
778   # If the previous option needs an argument, assign it.
779   if test -n "$ac_prev"; then
780     eval $ac_prev=\$ac_option
781     ac_prev=
782     continue
783   fi
784
785   case $ac_option in
786   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787   *)    ac_optarg=yes ;;
788   esac
789
790   # Accept the important Cygnus configure options, so we can diagnose typos.
791
792   case $ac_dashdash$ac_option in
793   --)
794     ac_dashdash=yes ;;
795
796   -bindir | --bindir | --bindi | --bind | --bin | --bi)
797     ac_prev=bindir ;;
798   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799     bindir=$ac_optarg ;;
800
801   -build | --build | --buil | --bui | --bu)
802     ac_prev=build_alias ;;
803   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804     build_alias=$ac_optarg ;;
805
806   -cache-file | --cache-file | --cache-fil | --cache-fi \
807   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808     ac_prev=cache_file ;;
809   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811     cache_file=$ac_optarg ;;
812
813   --config-cache | -C)
814     cache_file=config.cache ;;
815
816   -datadir | --datadir | --datadi | --datad)
817     ac_prev=datadir ;;
818   -datadir=* | --datadir=* | --datadi=* | --datad=*)
819     datadir=$ac_optarg ;;
820
821   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822   | --dataroo | --dataro | --datar)
823     ac_prev=datarootdir ;;
824   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826     datarootdir=$ac_optarg ;;
827
828   -disable-* | --disable-*)
829     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830     # Reject names that are not valid shell variable names.
831     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
833    { (exit 1); exit 1; }; }
834     ac_useropt_orig=$ac_useropt
835     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836     case $ac_user_opts in
837       *"
838 "enable_$ac_useropt"
839 "*) ;;
840       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841          ac_unrecognized_sep=', ';;
842     esac
843     eval enable_$ac_useropt=no ;;
844
845   -docdir | --docdir | --docdi | --doc | --do)
846     ac_prev=docdir ;;
847   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848     docdir=$ac_optarg ;;
849
850   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851     ac_prev=dvidir ;;
852   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853     dvidir=$ac_optarg ;;
854
855   -enable-* | --enable-*)
856     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857     # Reject names that are not valid shell variable names.
858     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860    { (exit 1); exit 1; }; }
861     ac_useropt_orig=$ac_useropt
862     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863     case $ac_user_opts in
864       *"
865 "enable_$ac_useropt"
866 "*) ;;
867       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
868          ac_unrecognized_sep=', ';;
869     esac
870     eval enable_$ac_useropt=\$ac_optarg ;;
871
872   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874   | --exec | --exe | --ex)
875     ac_prev=exec_prefix ;;
876   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878   | --exec=* | --exe=* | --ex=*)
879     exec_prefix=$ac_optarg ;;
880
881   -gas | --gas | --ga | --g)
882     # Obsolete; use --with-gas.
883     with_gas=yes ;;
884
885   -help | --help | --hel | --he | -h)
886     ac_init_help=long ;;
887   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888     ac_init_help=recursive ;;
889   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890     ac_init_help=short ;;
891
892   -host | --host | --hos | --ho)
893     ac_prev=host_alias ;;
894   -host=* | --host=* | --hos=* | --ho=*)
895     host_alias=$ac_optarg ;;
896
897   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898     ac_prev=htmldir ;;
899   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900   | --ht=*)
901     htmldir=$ac_optarg ;;
902
903   -includedir | --includedir | --includedi | --included | --include \
904   | --includ | --inclu | --incl | --inc)
905     ac_prev=includedir ;;
906   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907   | --includ=* | --inclu=* | --incl=* | --inc=*)
908     includedir=$ac_optarg ;;
909
910   -infodir | --infodir | --infodi | --infod | --info | --inf)
911     ac_prev=infodir ;;
912   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913     infodir=$ac_optarg ;;
914
915   -libdir | --libdir | --libdi | --libd)
916     ac_prev=libdir ;;
917   -libdir=* | --libdir=* | --libdi=* | --libd=*)
918     libdir=$ac_optarg ;;
919
920   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921   | --libexe | --libex | --libe)
922     ac_prev=libexecdir ;;
923   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924   | --libexe=* | --libex=* | --libe=*)
925     libexecdir=$ac_optarg ;;
926
927   -localedir | --localedir | --localedi | --localed | --locale)
928     ac_prev=localedir ;;
929   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930     localedir=$ac_optarg ;;
931
932   -localstatedir | --localstatedir | --localstatedi | --localstated \
933   | --localstate | --localstat | --localsta | --localst | --locals)
934     ac_prev=localstatedir ;;
935   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937     localstatedir=$ac_optarg ;;
938
939   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940     ac_prev=mandir ;;
941   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942     mandir=$ac_optarg ;;
943
944   -nfp | --nfp | --nf)
945     # Obsolete; use --without-fp.
946     with_fp=no ;;
947
948   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949   | --no-cr | --no-c | -n)
950     no_create=yes ;;
951
952   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954     no_recursion=yes ;;
955
956   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958   | --oldin | --oldi | --old | --ol | --o)
959     ac_prev=oldincludedir ;;
960   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963     oldincludedir=$ac_optarg ;;
964
965   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966     ac_prev=prefix ;;
967   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968     prefix=$ac_optarg ;;
969
970   -program-prefix | --program-prefix | --program-prefi | --program-pref \
971   | --program-pre | --program-pr | --program-p)
972     ac_prev=program_prefix ;;
973   -program-prefix=* | --program-prefix=* | --program-prefi=* \
974   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975     program_prefix=$ac_optarg ;;
976
977   -program-suffix | --program-suffix | --program-suffi | --program-suff \
978   | --program-suf | --program-su | --program-s)
979     ac_prev=program_suffix ;;
980   -program-suffix=* | --program-suffix=* | --program-suffi=* \
981   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982     program_suffix=$ac_optarg ;;
983
984   -program-transform-name | --program-transform-name \
985   | --program-transform-nam | --program-transform-na \
986   | --program-transform-n | --program-transform- \
987   | --program-transform | --program-transfor \
988   | --program-transfo | --program-transf \
989   | --program-trans | --program-tran \
990   | --progr-tra | --program-tr | --program-t)
991     ac_prev=program_transform_name ;;
992   -program-transform-name=* | --program-transform-name=* \
993   | --program-transform-nam=* | --program-transform-na=* \
994   | --program-transform-n=* | --program-transform-=* \
995   | --program-transform=* | --program-transfor=* \
996   | --program-transfo=* | --program-transf=* \
997   | --program-trans=* | --program-tran=* \
998   | --progr-tra=* | --program-tr=* | --program-t=*)
999     program_transform_name=$ac_optarg ;;
1000
1001   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002     ac_prev=pdfdir ;;
1003   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004     pdfdir=$ac_optarg ;;
1005
1006   -psdir | --psdir | --psdi | --psd | --ps)
1007     ac_prev=psdir ;;
1008   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009     psdir=$ac_optarg ;;
1010
1011   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012   | -silent | --silent | --silen | --sile | --sil)
1013     silent=yes ;;
1014
1015   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016     ac_prev=sbindir ;;
1017   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018   | --sbi=* | --sb=*)
1019     sbindir=$ac_optarg ;;
1020
1021   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023   | --sharedst | --shareds | --shared | --share | --shar \
1024   | --sha | --sh)
1025     ac_prev=sharedstatedir ;;
1026   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029   | --sha=* | --sh=*)
1030     sharedstatedir=$ac_optarg ;;
1031
1032   -site | --site | --sit)
1033     ac_prev=site ;;
1034   -site=* | --site=* | --sit=*)
1035     site=$ac_optarg ;;
1036
1037   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038     ac_prev=srcdir ;;
1039   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040     srcdir=$ac_optarg ;;
1041
1042   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043   | --syscon | --sysco | --sysc | --sys | --sy)
1044     ac_prev=sysconfdir ;;
1045   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047     sysconfdir=$ac_optarg ;;
1048
1049   -target | --target | --targe | --targ | --tar | --ta | --t)
1050     ac_prev=target_alias ;;
1051   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052     target_alias=$ac_optarg ;;
1053
1054   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055     verbose=yes ;;
1056
1057   -version | --version | --versio | --versi | --vers | -V)
1058     ac_init_version=: ;;
1059
1060   -with-* | --with-*)
1061     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062     # Reject names that are not valid shell variable names.
1063     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1065    { (exit 1); exit 1; }; }
1066     ac_useropt_orig=$ac_useropt
1067     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068     case $ac_user_opts in
1069       *"
1070 "with_$ac_useropt"
1071 "*) ;;
1072       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073          ac_unrecognized_sep=', ';;
1074     esac
1075     eval with_$ac_useropt=\$ac_optarg ;;
1076
1077   -without-* | --without-*)
1078     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1082    { (exit 1); exit 1; }; }
1083     ac_useropt_orig=$ac_useropt
1084     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085     case $ac_user_opts in
1086       *"
1087 "with_$ac_useropt"
1088 "*) ;;
1089       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090          ac_unrecognized_sep=', ';;
1091     esac
1092     eval with_$ac_useropt=no ;;
1093
1094   --x)
1095     # Obsolete; use --with-x.
1096     with_x=yes ;;
1097
1098   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099   | --x-incl | --x-inc | --x-in | --x-i)
1100     ac_prev=x_includes ;;
1101   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103     x_includes=$ac_optarg ;;
1104
1105   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107     ac_prev=x_libraries ;;
1108   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110     x_libraries=$ac_optarg ;;
1111
1112   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1113 Try \`$0 --help' for more information." >&2
1114    { (exit 1); exit 1; }; }
1115     ;;
1116
1117   *=*)
1118     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1121       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1122    { (exit 1); exit 1; }; }
1123     eval $ac_envvar=\$ac_optarg
1124     export $ac_envvar ;;
1125
1126   *)
1127     # FIXME: should be removed in autoconf 3.0.
1128     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132     ;;
1133
1134   esac
1135 done
1136
1137 if test -n "$ac_prev"; then
1138   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1140    { (exit 1); exit 1; }; }
1141 fi
1142
1143 if test -n "$ac_unrecognized_opts"; then
1144   case $enable_option_checking in
1145     no) ;;
1146     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1147    { (exit 1); exit 1; }; } ;;
1148     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1149   esac
1150 fi
1151
1152 # Check all directory arguments for consistency.
1153 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154                 datadir sysconfdir sharedstatedir localstatedir includedir \
1155                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156                 libdir localedir mandir
1157 do
1158   eval ac_val=\$$ac_var
1159   # Remove trailing slashes.
1160   case $ac_val in
1161     */ )
1162       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1163       eval $ac_var=\$ac_val;;
1164   esac
1165   # Be sure to have absolute directory names.
1166   case $ac_val in
1167     [\\/$]* | ?:[\\/]* )  continue;;
1168     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1169   esac
1170   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1171    { (exit 1); exit 1; }; }
1172 done
1173
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1177 build=$build_alias
1178 host=$host_alias
1179 target=$target_alias
1180
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183   if test "x$build_alias" = x; then
1184     cross_compiling=maybe
1185     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1186     If a cross compiler is detected then cross compile mode will be used." >&2
1187   elif test "x$build_alias" != "x$host_alias"; then
1188     cross_compiling=yes
1189   fi
1190 fi
1191
1192 ac_tool_prefix=
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194
1195 test "$silent" = yes && exec 6>/dev/null
1196
1197
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1202    { (exit 1); exit 1; }; }
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1205    { (exit 1); exit 1; }; }
1206
1207
1208 # Find the source files, if location was not specified.
1209 if test -z "$srcdir"; then
1210   ac_srcdir_defaulted=yes
1211   # Try the directory containing this script, then the parent directory.
1212   ac_confdir=`$as_dirname -- "$as_myself" ||
1213 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1214          X"$as_myself" : 'X\(//\)[^/]' \| \
1215          X"$as_myself" : 'X\(//\)$' \| \
1216          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1217 $as_echo X"$as_myself" |
1218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219             s//\1/
1220             q
1221           }
1222           /^X\(\/\/\)[^/].*/{
1223             s//\1/
1224             q
1225           }
1226           /^X\(\/\/\)$/{
1227             s//\1/
1228             q
1229           }
1230           /^X\(\/\).*/{
1231             s//\1/
1232             q
1233           }
1234           s/.*/./; q'`
1235   srcdir=$ac_confdir
1236   if test ! -r "$srcdir/$ac_unique_file"; then
1237     srcdir=..
1238   fi
1239 else
1240   ac_srcdir_defaulted=no
1241 fi
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1244   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1245    { (exit 1); exit 1; }; }
1246 fi
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 ac_abs_confdir=`(
1249         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1250    { (exit 1); exit 1; }; }
1251         pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254   srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264   eval ac_env_${ac_var}_value=\$${ac_var}
1265   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1268
1269 #
1270 # Report the --help message.
1271 #
1272 if test "$ac_init_help" = "long"; then
1273   # Omit some internal or obsolete options to make the list less imposing.
1274   # This message is too long to be a string in the A/UX 3.1 sh.
1275   cat <<_ACEOF
1276 \`configure' configures libnbcompat 20080519 to adapt to many kinds of systems.
1277
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE.  See below for descriptions of some of the useful variables.
1282
1283 Defaults for the options are specified in brackets.
1284
1285 Configuration:
1286   -h, --help              display this help and exit
1287       --help=short        display options specific to this package
1288       --help=recursive    display the short help of all the included packages
1289   -V, --version           display version information and exit
1290   -q, --quiet, --silent   do not print \`checking...' messages
1291       --cache-file=FILE   cache test results in FILE [disabled]
1292   -C, --config-cache      alias for \`--cache-file=config.cache'
1293   -n, --no-create         do not create output files
1294       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1295
1296 Installation directories:
1297   --prefix=PREFIX         install architecture-independent files in PREFIX
1298                           [$ac_default_prefix]
1299   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1300                           [PREFIX]
1301
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1306
1307 For better control, use the options below.
1308
1309 Fine tuning of the installation directories:
1310   --bindir=DIR            user executables [EPREFIX/bin]
1311   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1312   --libexecdir=DIR        program executables [EPREFIX/libexec]
1313   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1314   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1315   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1316   --libdir=DIR            object code libraries [EPREFIX/lib]
1317   --includedir=DIR        C header files [PREFIX/include]
1318   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1319   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1320   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1321   --infodir=DIR           info documentation [DATAROOTDIR/info]
1322   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1323   --mandir=DIR            man documentation [DATAROOTDIR/man]
1324   --docdir=DIR            documentation root [DATAROOTDIR/doc/libnbcompat]
1325   --htmldir=DIR           html documentation [DOCDIR]
1326   --dvidir=DIR            dvi documentation [DOCDIR]
1327   --pdfdir=DIR            pdf documentation [DOCDIR]
1328   --psdir=DIR             ps documentation [DOCDIR]
1329 _ACEOF
1330
1331   cat <<\_ACEOF
1332
1333 Program names:
1334   --program-prefix=PREFIX            prepend PREFIX to installed program names
1335   --program-suffix=SUFFIX            append SUFFIX to installed program names
1336   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1337
1338 System types:
1339   --build=BUILD     configure for building on BUILD [guessed]
1340   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1341 _ACEOF
1342 fi
1343
1344 if test -n "$ac_init_help"; then
1345   case $ac_init_help in
1346      short | recursive ) echo "Configuration of libnbcompat 20080519:";;
1347    esac
1348   cat <<\_ACEOF
1349
1350 Optional Features:
1351   --disable-option-checking  ignore unrecognized --enable/--with options
1352   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1353   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1354   --enable-db             include DB implementation
1355   --enable-bsd-getopt     force use of BSDish getopt implementation
1356
1357 Some influential environment variables:
1358   CC          C compiler command
1359   CFLAGS      C compiler flags
1360   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1361               nonstandard directory <lib dir>
1362   LIBS        libraries to pass to the linker, e.g. -l<library>
1363   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364               you have headers in a nonstandard directory <include dir>
1365   CPP         C preprocessor
1366
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1369
1370 Report bugs to <grant@NetBSD.org>.
1371 _ACEOF
1372 ac_status=$?
1373 fi
1374
1375 if test "$ac_init_help" = "recursive"; then
1376   # If there are subdirs, report their specific --help.
1377   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378     test -d "$ac_dir" ||
1379       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1380       continue
1381     ac_builddir=.
1382
1383 case "$ac_dir" in
1384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *)
1386   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1387   # A ".." for each directory in $ac_dir_suffix.
1388   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1389   case $ac_top_builddir_sub in
1390   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392   esac ;;
1393 esac
1394 ac_abs_top_builddir=$ac_pwd
1395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir=$ac_top_build_prefix
1398
1399 case $srcdir in
1400   .)  # We are building in place.
1401     ac_srcdir=.
1402     ac_top_srcdir=$ac_top_builddir_sub
1403     ac_abs_top_srcdir=$ac_pwd ;;
1404   [\\/]* | ?:[\\/]* )  # Absolute name.
1405     ac_srcdir=$srcdir$ac_dir_suffix;
1406     ac_top_srcdir=$srcdir
1407     ac_abs_top_srcdir=$srcdir ;;
1408   *) # Relative name.
1409     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410     ac_top_srcdir=$ac_top_build_prefix$srcdir
1411     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 esac
1413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414
1415     cd "$ac_dir" || { ac_status=$?; continue; }
1416     # Check for guested configure.
1417     if test -f "$ac_srcdir/configure.gnu"; then
1418       echo &&
1419       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420     elif test -f "$ac_srcdir/configure"; then
1421       echo &&
1422       $SHELL "$ac_srcdir/configure" --help=recursive
1423     else
1424       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425     fi || ac_status=$?
1426     cd "$ac_pwd" || { ac_status=$?; break; }
1427   done
1428 fi
1429
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1432   cat <<\_ACEOF
1433 libnbcompat configure 20080519
1434 generated by GNU Autoconf 2.63
1435
1436 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1437 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1440 _ACEOF
1441   exit
1442 fi
1443 cat >config.log <<_ACEOF
1444 This file contains any messages produced by compilers while
1445 running configure, to aid debugging if configure makes a mistake.
1446
1447 It was created by libnbcompat $as_me 20080519, which was
1448 generated by GNU Autoconf 2.63.  Invocation command line was
1449
1450   $ $0 $@
1451
1452 _ACEOF
1453 exec 5>>config.log
1454 {
1455 cat <<_ASUNAME
1456 ## --------- ##
1457 ## Platform. ##
1458 ## --------- ##
1459
1460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1465
1466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1467 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1468
1469 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1470 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1472 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1473 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1474 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1475 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1476
1477 _ASUNAME
1478
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482   IFS=$as_save_IFS
1483   test -z "$as_dir" && as_dir=.
1484   $as_echo "PATH: $as_dir"
1485 done
1486 IFS=$as_save_IFS
1487
1488 } >&5
1489
1490 cat >&5 <<_ACEOF
1491
1492
1493 ## ----------- ##
1494 ## Core tests. ##
1495 ## ----------- ##
1496
1497 _ACEOF
1498
1499
1500 # Keep a trace of the command line.
1501 # Strip out --no-create and --no-recursion so they do not pile up.
1502 # Strip out --silent because we don't want to record it for future runs.
1503 # Also quote any args containing shell meta-characters.
1504 # Make two passes to allow for proper duplicate-argument suppression.
1505 ac_configure_args=
1506 ac_configure_args0=
1507 ac_configure_args1=
1508 ac_must_keep_next=false
1509 for ac_pass in 1 2
1510 do
1511   for ac_arg
1512   do
1513     case $ac_arg in
1514     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1515     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1516     | -silent | --silent | --silen | --sile | --sil)
1517       continue ;;
1518     *\'*)
1519       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520     esac
1521     case $ac_pass in
1522     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1523     2)
1524       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1525       if test $ac_must_keep_next = true; then
1526         ac_must_keep_next=false # Got value, back to normal.
1527       else
1528         case $ac_arg in
1529           *=* | --config-cache | -C | -disable-* | --disable-* \
1530           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1531           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1532           | -with-* | --with-* | -without-* | --without-* | --x)
1533             case "$ac_configure_args0 " in
1534               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535             esac
1536             ;;
1537           -* ) ac_must_keep_next=true ;;
1538         esac
1539       fi
1540       ac_configure_args="$ac_configure_args '$ac_arg'"
1541       ;;
1542     esac
1543   done
1544 done
1545 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1546 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1547
1548 # When interrupted or exit'd, cleanup temporary files, and complete
1549 # config.log.  We remove comments because anyway the quotes in there
1550 # would cause problems or look ugly.
1551 # WARNING: Use '\'' to represent an apostrophe within the trap.
1552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1553 trap 'exit_status=$?
1554   # Save into config.log some information that might help in debugging.
1555   {
1556     echo
1557
1558     cat <<\_ASBOX
1559 ## ---------------- ##
1560 ## Cache variables. ##
1561 ## ---------------- ##
1562 _ASBOX
1563     echo
1564     # The following way of writing the cache mishandles newlines in values,
1565 (
1566   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1567     eval ac_val=\$$ac_var
1568     case $ac_val in #(
1569     *${as_nl}*)
1570       case $ac_var in #(
1571       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1572 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1573       esac
1574       case $ac_var in #(
1575       _ | IFS | as_nl) ;; #(
1576       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1577       *) $as_unset $ac_var ;;
1578       esac ;;
1579     esac
1580   done
1581   (set) 2>&1 |
1582     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1583     *${as_nl}ac_space=\ *)
1584       sed -n \
1585         "s/'\''/'\''\\\\'\'''\''/g;
1586           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1587       ;; #(
1588     *)
1589       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1590       ;;
1591     esac |
1592     sort
1593 )
1594     echo
1595
1596     cat <<\_ASBOX
1597 ## ----------------- ##
1598 ## Output variables. ##
1599 ## ----------------- ##
1600 _ASBOX
1601     echo
1602     for ac_var in $ac_subst_vars
1603     do
1604       eval ac_val=\$$ac_var
1605       case $ac_val in
1606       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1607       esac
1608       $as_echo "$ac_var='\''$ac_val'\''"
1609     done | sort
1610     echo
1611
1612     if test -n "$ac_subst_files"; then
1613       cat <<\_ASBOX
1614 ## ------------------- ##
1615 ## File substitutions. ##
1616 ## ------------------- ##
1617 _ASBOX
1618       echo
1619       for ac_var in $ac_subst_files
1620       do
1621         eval ac_val=\$$ac_var
1622         case $ac_val in
1623         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624         esac
1625         $as_echo "$ac_var='\''$ac_val'\''"
1626       done | sort
1627       echo
1628     fi
1629
1630     if test -s confdefs.h; then
1631       cat <<\_ASBOX
1632 ## ----------- ##
1633 ## confdefs.h. ##
1634 ## ----------- ##
1635 _ASBOX
1636       echo
1637       cat confdefs.h
1638       echo
1639     fi
1640     test "$ac_signal" != 0 &&
1641       $as_echo "$as_me: caught signal $ac_signal"
1642     $as_echo "$as_me: exit $exit_status"
1643   } >&5
1644   rm -f core *.core core.conftest.* &&
1645     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1646     exit $exit_status
1647 ' 0
1648 for ac_signal in 1 2 13 15; do
1649   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1650 done
1651 ac_signal=0
1652
1653 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1654 rm -f -r conftest* confdefs.h
1655
1656 # Predefined preprocessor variables.
1657
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_NAME "$PACKAGE_NAME"
1660 _ACEOF
1661
1662
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1665 _ACEOF
1666
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1670 _ACEOF
1671
1672
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_STRING "$PACKAGE_STRING"
1675 _ACEOF
1676
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1680 _ACEOF
1681
1682
1683 # Let the site file select an alternate cache file if it wants to.
1684 # Prefer an explicitly selected file to automatically selected ones.
1685 ac_site_file1=NONE
1686 ac_site_file2=NONE
1687 if test -n "$CONFIG_SITE"; then
1688   ac_site_file1=$CONFIG_SITE
1689 elif test "x$prefix" != xNONE; then
1690   ac_site_file1=$prefix/share/config.site
1691   ac_site_file2=$prefix/etc/config.site
1692 else
1693   ac_site_file1=$ac_default_prefix/share/config.site
1694   ac_site_file2=$ac_default_prefix/etc/config.site
1695 fi
1696 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1697 do
1698   test "x$ac_site_file" = xNONE && continue
1699   if test -r "$ac_site_file"; then
1700     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1701 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1702     sed 's/^/| /' "$ac_site_file" >&5
1703     . "$ac_site_file"
1704   fi
1705 done
1706
1707 if test -r "$cache_file"; then
1708   # Some versions of bash will fail to source /dev/null (special
1709   # files actually), so we avoid doing that.
1710   if test -f "$cache_file"; then
1711     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1712 $as_echo "$as_me: loading cache $cache_file" >&6;}
1713     case $cache_file in
1714       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1715       *)                      . "./$cache_file";;
1716     esac
1717   fi
1718 else
1719   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1720 $as_echo "$as_me: creating cache $cache_file" >&6;}
1721   >$cache_file
1722 fi
1723
1724 # Check that the precious variables saved in the cache have kept the same
1725 # value.
1726 ac_cache_corrupted=false
1727 for ac_var in $ac_precious_vars; do
1728   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1729   eval ac_new_set=\$ac_env_${ac_var}_set
1730   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1731   eval ac_new_val=\$ac_env_${ac_var}_value
1732   case $ac_old_set,$ac_new_set in
1733     set,)
1734       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1735 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1736       ac_cache_corrupted=: ;;
1737     ,set)
1738       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1739 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1740       ac_cache_corrupted=: ;;
1741     ,);;
1742     *)
1743       if test "x$ac_old_val" != "x$ac_new_val"; then
1744         # differences in whitespace do not lead to failure.
1745         ac_old_val_w=`echo x $ac_old_val`
1746         ac_new_val_w=`echo x $ac_new_val`
1747         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1748           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750           ac_cache_corrupted=:
1751         else
1752           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1753 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1754           eval $ac_var=\$ac_old_val
1755         fi
1756         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1757 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1758         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1759 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1760       fi;;
1761   esac
1762   # Pass precious variables to config.status.
1763   if test "$ac_new_set" = set; then
1764     case $ac_new_val in
1765     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1766     *) ac_arg=$ac_var=$ac_new_val ;;
1767     esac
1768     case " $ac_configure_args " in
1769       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1770       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1771     esac
1772   fi
1773 done
1774 if $ac_cache_corrupted; then
1775   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1777   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1778 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1779   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1780 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1781    { (exit 1); exit 1; }; }
1782 fi
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808 ac_ext=c
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813
1814
1815 ac_config_headers="$ac_config_headers nbcompat/config.h"
1816
1817 test "$program_prefix" != NONE &&
1818   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1822 # Double any \ or $.
1823 # By default was `s,x,x', remove it if useless.
1824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1826
1827
1828 ac_aux_dir=
1829 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1830   if test -f "$ac_dir/install-sh"; then
1831     ac_aux_dir=$ac_dir
1832     ac_install_sh="$ac_aux_dir/install-sh -c"
1833     break
1834   elif test -f "$ac_dir/install.sh"; then
1835     ac_aux_dir=$ac_dir
1836     ac_install_sh="$ac_aux_dir/install.sh -c"
1837     break
1838   elif test -f "$ac_dir/shtool"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/shtool install -c"
1841     break
1842   fi
1843 done
1844 if test -z "$ac_aux_dir"; then
1845   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1846 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850 # These three variables are undocumented and unsupported,
1851 # and are intended to be withdrawn in a future Autoconf release.
1852 # They can cause serious problems if a builder's source tree is in a directory
1853 # whose full name contains unusual characters.
1854 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1855 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1856 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1857
1858
1859 # Make sure we can run config.sub.
1860 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1861   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1862 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1863    { (exit 1); exit 1; }; }
1864
1865 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1866 $as_echo_n "checking build system type... " >&6; }
1867 if test "${ac_cv_build+set}" = set; then
1868   $as_echo_n "(cached) " >&6
1869 else
1870   ac_build_alias=$build_alias
1871 test "x$ac_build_alias" = x &&
1872   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1873 test "x$ac_build_alias" = x &&
1874   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1875 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1876    { (exit 1); exit 1; }; }
1877 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1878   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1879 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1880    { (exit 1); exit 1; }; }
1881
1882 fi
1883 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1884 $as_echo "$ac_cv_build" >&6; }
1885 case $ac_cv_build in
1886 *-*-*) ;;
1887 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1888 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1889    { (exit 1); exit 1; }; };;
1890 esac
1891 build=$ac_cv_build
1892 ac_save_IFS=$IFS; IFS='-'
1893 set x $ac_cv_build
1894 shift
1895 build_cpu=$1
1896 build_vendor=$2
1897 shift; shift
1898 # Remember, the first character of IFS is used to create $*,
1899 # except with old shells:
1900 build_os=$*
1901 IFS=$ac_save_IFS
1902 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1903
1904
1905 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1906 $as_echo_n "checking host system type... " >&6; }
1907 if test "${ac_cv_host+set}" = set; then
1908   $as_echo_n "(cached) " >&6
1909 else
1910   if test "x$host_alias" = x; then
1911   ac_cv_host=$ac_cv_build
1912 else
1913   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1914     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1915 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1916    { (exit 1); exit 1; }; }
1917 fi
1918
1919 fi
1920 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1921 $as_echo "$ac_cv_host" >&6; }
1922 case $ac_cv_host in
1923 *-*-*) ;;
1924 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1925 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1926    { (exit 1); exit 1; }; };;
1927 esac
1928 host=$ac_cv_host
1929 ac_save_IFS=$IFS; IFS='-'
1930 set x $ac_cv_host
1931 shift
1932 host_cpu=$1
1933 host_vendor=$2
1934 shift; shift
1935 # Remember, the first character of IFS is used to create $*,
1936 # except with old shells:
1937 host_os=$*
1938 IFS=$ac_save_IFS
1939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1940
1941
1942 CANONICAL_HOST=$host
1943
1944
1945
1946 # Checks for programs.
1947 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1949 set x ${MAKE-make}
1950 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1951 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1952   $as_echo_n "(cached) " >&6
1953 else
1954   cat >conftest.make <<\_ACEOF
1955 SHELL = /bin/sh
1956 all:
1957         @echo '@@@%%%=$(MAKE)=@@@%%%'
1958 _ACEOF
1959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1961   *@@@%%%=?*=@@@%%%*)
1962     eval ac_cv_prog_make_${ac_make}_set=yes;;
1963   *)
1964     eval ac_cv_prog_make_${ac_make}_set=no;;
1965 esac
1966 rm -f conftest.make
1967 fi
1968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1969   { $as_echo "$as_me:$LINENO: result: yes" >&5
1970 $as_echo "yes" >&6; }
1971   SET_MAKE=
1972 else
1973   { $as_echo "$as_me:$LINENO: result: no" >&5
1974 $as_echo "no" >&6; }
1975   SET_MAKE="MAKE=${MAKE-make}"
1976 fi
1977
1978 ac_ext=c
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 if test -n "$ac_tool_prefix"; then
1984   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 $as_echo_n "checking for $ac_word... " >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989   $as_echo_n "(cached) " >&6
1990 else
1991   if test -n "$CC"; then
1992   ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999   for ac_exec_ext in '' $ac_executable_extensions; do
2000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2001     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2002     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003     break 2
2004   fi
2005 done
2006 done
2007 IFS=$as_save_IFS
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2014 $as_echo "$CC" >&6; }
2015 else
2016   { $as_echo "$as_me:$LINENO: result: no" >&5
2017 $as_echo "no" >&6; }
2018 fi
2019
2020
2021 fi
2022 if test -z "$ac_cv_prog_CC"; then
2023   ac_ct_CC=$CC
2024   # Extract the first word of "gcc", so it can be a program name with args.
2025 set dummy gcc; ac_word=$2
2026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 $as_echo_n "checking for $ac_word... " >&6; }
2028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2029   $as_echo_n "(cached) " >&6
2030 else
2031   if test -n "$ac_ct_CC"; then
2032   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039   for ac_exec_ext in '' $ac_executable_extensions; do
2040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2041     ac_cv_prog_ac_ct_CC="gcc"
2042     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043     break 2
2044   fi
2045 done
2046 done
2047 IFS=$as_save_IFS
2048
2049 fi
2050 fi
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 $as_echo "$ac_ct_CC" >&6; }
2055 else
2056   { $as_echo "$as_me:$LINENO: result: no" >&5
2057 $as_echo "no" >&6; }
2058 fi
2059
2060   if test "x$ac_ct_CC" = x; then
2061     CC=""
2062   else
2063     case $cross_compiling:$ac_tool_warned in
2064 yes:)
2065 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2067 ac_tool_warned=yes ;;
2068 esac
2069     CC=$ac_ct_CC
2070   fi
2071 else
2072   CC="$ac_cv_prog_CC"
2073 fi
2074
2075 if test -z "$CC"; then
2076           if test -n "$ac_tool_prefix"; then
2077     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}cc; ac_word=$2
2079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 $as_echo_n "checking for $ac_word... " >&6; }
2081 if test "${ac_cv_prog_CC+set}" = set; then
2082   $as_echo_n "(cached) " >&6
2083 else
2084   if test -n "$CC"; then
2085   ac_cv_prog_CC="$CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090   IFS=$as_save_IFS
2091   test -z "$as_dir" && as_dir=.
2092   for ac_exec_ext in '' $ac_executable_extensions; do
2093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2094     ac_cv_prog_CC="${ac_tool_prefix}cc"
2095     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096     break 2
2097   fi
2098 done
2099 done
2100 IFS=$as_save_IFS
2101
2102 fi
2103 fi
2104 CC=$ac_cv_prog_CC
2105 if test -n "$CC"; then
2106   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2107 $as_echo "$CC" >&6; }
2108 else
2109   { $as_echo "$as_me:$LINENO: result: no" >&5
2110 $as_echo "no" >&6; }
2111 fi
2112
2113
2114   fi
2115 fi
2116 if test -z "$CC"; then
2117   # Extract the first word of "cc", so it can be a program name with args.
2118 set dummy cc; ac_word=$2
2119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 $as_echo_n "checking for $ac_word... " >&6; }
2121 if test "${ac_cv_prog_CC+set}" = set; then
2122   $as_echo_n "(cached) " >&6
2123 else
2124   if test -n "$CC"; then
2125   ac_cv_prog_CC="$CC" # Let the user override the test.
2126 else
2127   ac_prog_rejected=no
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131   IFS=$as_save_IFS
2132   test -z "$as_dir" && as_dir=.
2133   for ac_exec_ext in '' $ac_executable_extensions; do
2134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2136        ac_prog_rejected=yes
2137        continue
2138      fi
2139     ac_cv_prog_CC="cc"
2140     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141     break 2
2142   fi
2143 done
2144 done
2145 IFS=$as_save_IFS
2146
2147 if test $ac_prog_rejected = yes; then
2148   # We found a bogon in the path, so make sure we never use it.
2149   set dummy $ac_cv_prog_CC
2150   shift
2151   if test $# != 0; then
2152     # We chose a different compiler from the bogus one.
2153     # However, it has the same basename, so the bogon will be chosen
2154     # first if we set CC to just the basename; use the full file name.
2155     shift
2156     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2157   fi
2158 fi
2159 fi
2160 fi
2161 CC=$ac_cv_prog_CC
2162 if test -n "$CC"; then
2163   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2164 $as_echo "$CC" >&6; }
2165 else
2166   { $as_echo "$as_me:$LINENO: result: no" >&5
2167 $as_echo "no" >&6; }
2168 fi
2169
2170
2171 fi
2172 if test -z "$CC"; then
2173   if test -n "$ac_tool_prefix"; then
2174   for ac_prog in cl.exe
2175   do
2176     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181   $as_echo_n "(cached) " >&6
2182 else
2183   if test -n "$CC"; then
2184   ac_cv_prog_CC="$CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2194     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199 IFS=$as_save_IFS
2200
2201 fi
2202 fi
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2207 else
2208   { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2210 fi
2211
2212
2213     test -n "$CC" && break
2214   done
2215 fi
2216 if test -z "$CC"; then
2217   ac_ct_CC=$CC
2218   for ac_prog in cl.exe
2219 do
2220   # Extract the first word of "$ac_prog", so it can be a program name with args.
2221 set dummy $ac_prog; ac_word=$2
2222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 $as_echo_n "checking for $ac_word... " >&6; }
2224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2225   $as_echo_n "(cached) " >&6
2226 else
2227   if test -n "$ac_ct_CC"; then
2228   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233   IFS=$as_save_IFS
2234   test -z "$as_dir" && as_dir=.
2235   for ac_exec_ext in '' $ac_executable_extensions; do
2236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237     ac_cv_prog_ac_ct_CC="$ac_prog"
2238     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239     break 2
2240   fi
2241 done
2242 done
2243 IFS=$as_save_IFS
2244
2245 fi
2246 fi
2247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248 if test -n "$ac_ct_CC"; then
2249   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2250 $as_echo "$ac_ct_CC" >&6; }
2251 else
2252   { $as_echo "$as_me:$LINENO: result: no" >&5
2253 $as_echo "no" >&6; }
2254 fi
2255
2256
2257   test -n "$ac_ct_CC" && break
2258 done
2259
2260   if test "x$ac_ct_CC" = x; then
2261     CC=""
2262   else
2263     case $cross_compiling:$ac_tool_warned in
2264 yes:)
2265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2267 ac_tool_warned=yes ;;
2268 esac
2269     CC=$ac_ct_CC
2270   fi
2271 fi
2272
2273 fi
2274
2275
2276 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2279 See \`config.log' for more details." >&5
2280 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2281 See \`config.log' for more details." >&2;}
2282    { (exit 1); exit 1; }; }; }
2283
2284 # Provide some information about the compiler.
2285 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2286 set X $ac_compile
2287 ac_compiler=$2
2288 { (ac_try="$ac_compiler --version >&5"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2294 $as_echo "$ac_try_echo") >&5
2295   (eval "$ac_compiler --version >&5") 2>&5
2296   ac_status=$?
2297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }
2299 { (ac_try="$ac_compiler -v >&5"
2300 case "(($ac_try" in
2301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302   *) ac_try_echo=$ac_try;;
2303 esac
2304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2305 $as_echo "$ac_try_echo") >&5
2306   (eval "$ac_compiler -v >&5") 2>&5
2307   ac_status=$?
2308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }
2310 { (ac_try="$ac_compiler -V >&5"
2311 case "(($ac_try" in
2312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313   *) ac_try_echo=$ac_try;;
2314 esac
2315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2316 $as_echo "$ac_try_echo") >&5
2317   (eval "$ac_compiler -V >&5") 2>&5
2318   ac_status=$?
2319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }
2321
2322 cat >conftest.$ac_ext <<_ACEOF
2323 /* confdefs.h.  */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h.  */
2328
2329 int
2330 main ()
2331 {
2332
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 ac_clean_files_save=$ac_clean_files
2338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2339 # Try to create an executable without -o first, disregard a.out.
2340 # It will help us diagnose broken compilers, and finding out an intuition
2341 # of exeext.
2342 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2343 $as_echo_n "checking for C compiler default output file name... " >&6; }
2344 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2345
2346 # The possible output files:
2347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2348
2349 ac_rmfiles=
2350 for ac_file in $ac_files
2351 do
2352   case $ac_file in
2353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2354     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2355   esac
2356 done
2357 rm -f $ac_rmfiles
2358
2359 if { (ac_try="$ac_link_default"
2360 case "(($ac_try" in
2361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362   *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2365 $as_echo "$ac_try_echo") >&5
2366   (eval "$ac_link_default") 2>&5
2367   ac_status=$?
2368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; then
2370   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2372 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2373 # so that the user can short-circuit this test for compilers unknown to
2374 # Autoconf.
2375 for ac_file in $ac_files ''
2376 do
2377   test -f "$ac_file" || continue
2378   case $ac_file in
2379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2380         ;;
2381     [ab].out )
2382         # We found the default executable, but exeext='' is most
2383         # certainly right.
2384         break;;
2385     *.* )
2386         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2387         then :; else
2388            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389         fi
2390         # We set ac_cv_exeext here because the later test for it is not
2391         # safe: cross compilers may not add the suffix if given an `-o'
2392         # argument, so we may need to know it at that point already.
2393         # Even if this section looks crufty: it has the advantage of
2394         # actually working.
2395         break;;
2396     * )
2397         break;;
2398   esac
2399 done
2400 test "$ac_cv_exeext" = no && ac_cv_exeext=
2401
2402 else
2403   ac_file=''
2404 fi
2405
2406 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2407 $as_echo "$ac_file" >&6; }
2408 if test -z "$ac_file"; then
2409   $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2415 See \`config.log' for more details." >&5
2416 $as_echo "$as_me: error: C compiler cannot create executables
2417 See \`config.log' for more details." >&2;}
2418    { (exit 77); exit 77; }; }; }
2419 fi
2420
2421 ac_exeext=$ac_cv_exeext
2422
2423 # Check that the compiler produces executables we can run.  If not, either
2424 # the compiler is broken, or we cross compile.
2425 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2426 $as_echo_n "checking whether the C compiler works... " >&6; }
2427 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2428 # If not cross compiling, check that we can run a simple program.
2429 if test "$cross_compiling" != yes; then
2430   if { ac_try='./$ac_file'
2431   { (case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2436 $as_echo "$ac_try_echo") >&5
2437   (eval "$ac_try") 2>&5
2438   ac_status=$?
2439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441     cross_compiling=no
2442   else
2443     if test "$cross_compiling" = maybe; then
2444         cross_compiling=yes
2445     else
2446         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2449 If you meant to cross compile, use \`--host'.
2450 See \`config.log' for more details." >&5
2451 $as_echo "$as_me: error: cannot run C compiled programs.
2452 If you meant to cross compile, use \`--host'.
2453 See \`config.log' for more details." >&2;}
2454    { (exit 1); exit 1; }; }; }
2455     fi
2456   fi
2457 fi
2458 { $as_echo "$as_me:$LINENO: result: yes" >&5
2459 $as_echo "yes" >&6; }
2460
2461 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2462 ac_clean_files=$ac_clean_files_save
2463 # Check that the compiler produces executables we can run.  If not, either
2464 # the compiler is broken, or we cross compile.
2465 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2466 $as_echo_n "checking whether we are cross compiling... " >&6; }
2467 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2468 $as_echo "$cross_compiling" >&6; }
2469
2470 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2471 $as_echo_n "checking for suffix of executables... " >&6; }
2472 if { (ac_try="$ac_link"
2473 case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2478 $as_echo "$ac_try_echo") >&5
2479   (eval "$ac_link") 2>&5
2480   ac_status=$?
2481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; then
2483   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2484 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2485 # work properly (i.e., refer to `conftest.exe'), while it won't with
2486 # `rm'.
2487 for ac_file in conftest.exe conftest conftest.*; do
2488   test -f "$ac_file" || continue
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2491     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492           break;;
2493     * ) break;;
2494   esac
2495 done
2496 else
2497   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2500 See \`config.log' for more details." >&5
2501 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2502 See \`config.log' for more details." >&2;}
2503    { (exit 1); exit 1; }; }; }
2504 fi
2505
2506 rm -f conftest$ac_cv_exeext
2507 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2508 $as_echo "$ac_cv_exeext" >&6; }
2509
2510 rm -f conftest.$ac_ext
2511 EXEEXT=$ac_cv_exeext
2512 ac_exeext=$EXEEXT
2513 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2514 $as_echo_n "checking for suffix of object files... " >&6; }
2515 if test "${ac_cv_objext+set}" = set; then
2516   $as_echo_n "(cached) " >&6
2517 else
2518   cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h.  */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h.  */
2524
2525 int
2526 main ()
2527 {
2528
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.o conftest.obj
2534 if { (ac_try="$ac_compile"
2535 case "(($ac_try" in
2536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537   *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2540 $as_echo "$ac_try_echo") >&5
2541   (eval "$ac_compile") 2>&5
2542   ac_status=$?
2543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; then
2545   for ac_file in conftest.o conftest.obj conftest.*; do
2546   test -f "$ac_file" || continue;
2547   case $ac_file in
2548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2549     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550        break;;
2551   esac
2552 done
2553 else
2554   $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&5
2561 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2562 See \`config.log' for more details." >&2;}
2563    { (exit 1); exit 1; }; }; }
2564 fi
2565
2566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2567 fi
2568 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2569 $as_echo "$ac_cv_objext" >&6; }
2570 OBJEXT=$ac_cv_objext
2571 ac_objext=$OBJEXT
2572 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2573 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2574 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2575   $as_echo_n "(cached) " >&6
2576 else
2577   cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583
2584 int
2585 main ()
2586 {
2587 #ifndef __GNUC__
2588        choke me
2589 #endif
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2602 $as_echo "$ac_try_echo") >&5
2603   (eval "$ac_compile") 2>conftest.er1
2604   ac_status=$?
2605   grep -v '^ *+' conftest.er1 >conftest.err
2606   rm -f conftest.er1
2607   cat conftest.err >&5
2608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } && {
2610          test -z "$ac_c_werror_flag" ||
2611          test ! -s conftest.err
2612        } && test -s conftest.$ac_objext; then
2613   ac_compiler_gnu=yes
2614 else
2615   $as_echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618         ac_compiler_gnu=no
2619 fi
2620
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2623
2624 fi
2625 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2626 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2627 if test $ac_compiler_gnu = yes; then
2628   GCC=yes
2629 else
2630   GCC=
2631 fi
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2636 if test "${ac_cv_prog_cc_g+set}" = set; then
2637   $as_echo_n "(cached) " >&6
2638 else
2639   ac_save_c_werror_flag=$ac_c_werror_flag
2640    ac_c_werror_flag=yes
2641    ac_cv_prog_cc_g=no
2642    CFLAGS="-g"
2643    cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649
2650 int
2651 main ()
2652 {
2653
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 rm -f conftest.$ac_objext
2659 if { (ac_try="$ac_compile"
2660 case "(($ac_try" in
2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662   *) ac_try_echo=$ac_try;;
2663 esac
2664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2665 $as_echo "$ac_try_echo") >&5
2666   (eval "$ac_compile") 2>conftest.er1
2667   ac_status=$?
2668   grep -v '^ *+' conftest.er1 >conftest.err
2669   rm -f conftest.er1
2670   cat conftest.err >&5
2671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } && {
2673          test -z "$ac_c_werror_flag" ||
2674          test ! -s conftest.err
2675        } && test -s conftest.$ac_objext; then
2676   ac_cv_prog_cc_g=yes
2677 else
2678   $as_echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681         CFLAGS=""
2682       cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704 $as_echo "$ac_try_echo") >&5
2705   (eval "$ac_compile") 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } && {
2712          test -z "$ac_c_werror_flag" ||
2713          test ! -s conftest.err
2714        } && test -s conftest.$ac_objext; then
2715   :
2716 else
2717   $as_echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720         ac_c_werror_flag=$ac_save_c_werror_flag
2721          CFLAGS="-g"
2722          cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728
2729 int
2730 main ()
2731 {
2732
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2744 $as_echo "$ac_try_echo") >&5
2745   (eval "$ac_compile") 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
2749   cat conftest.err >&5
2750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } && {
2752          test -z "$ac_c_werror_flag" ||
2753          test ! -s conftest.err
2754        } && test -s conftest.$ac_objext; then
2755   ac_cv_prog_cc_g=yes
2756 else
2757   $as_echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760
2761 fi
2762
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 fi
2765
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770    ac_c_werror_flag=$ac_save_c_werror_flag
2771 fi
2772 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2773 $as_echo "$ac_cv_prog_cc_g" >&6; }
2774 if test "$ac_test_CFLAGS" = set; then
2775   CFLAGS=$ac_save_CFLAGS
2776 elif test $ac_cv_prog_cc_g = yes; then
2777   if test "$GCC" = yes; then
2778     CFLAGS="-g -O2"
2779   else
2780     CFLAGS="-g"
2781   fi
2782 else
2783   if test "$GCC" = yes; then
2784     CFLAGS="-O2"
2785   else
2786     CFLAGS=
2787   fi
2788 fi
2789 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2790 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2791 if test "${ac_cv_prog_cc_c89+set}" = set; then
2792   $as_echo_n "(cached) " >&6
2793 else
2794   ac_cv_prog_cc_c89=no
2795 ac_save_CC=$CC
2796 cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h.  */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h.  */
2802 #include <stdarg.h>
2803 #include <stdio.h>
2804 #include <sys/types.h>
2805 #include <sys/stat.h>
2806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2807 struct buf { int x; };
2808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2809 static char *e (p, i)
2810      char **p;
2811      int i;
2812 {
2813   return p[i];
2814 }
2815 static char *f (char * (*g) (char **, int), char **p, ...)
2816 {
2817   char *s;
2818   va_list v;
2819   va_start (v,p);
2820   s = g (p, va_arg (v,int));
2821   va_end (v);
2822   return s;
2823 }
2824
2825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2826    function prototypes and stuff, but not '\xHH' hex character constants.
2827    These don't provoke an error unfortunately, instead are silently treated
2828    as 'x'.  The following induces an error, until -std is added to get
2829    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2830    array size at least.  It's necessary to write '\x00'==0 to get something
2831    that's true only with -std.  */
2832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2833
2834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2835    inside strings and character constants.  */
2836 #define FOO(x) 'x'
2837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2838
2839 int test (int i, double x);
2840 struct s1 {int (*f) (int a);};
2841 struct s2 {int (*f) (double a);};
2842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2843 int argc;
2844 char **argv;
2845 int
2846 main ()
2847 {
2848 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2854         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2855 do
2856   CC="$ac_save_CC $ac_arg"
2857   rm -f conftest.$ac_objext
2858 if { (ac_try="$ac_compile"
2859 case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2864 $as_echo "$ac_try_echo") >&5
2865   (eval "$ac_compile") 2>conftest.er1
2866   ac_status=$?
2867   grep -v '^ *+' conftest.er1 >conftest.err
2868   rm -f conftest.er1
2869   cat conftest.err >&5
2870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } && {
2872          test -z "$ac_c_werror_flag" ||
2873          test ! -s conftest.err
2874        } && test -s conftest.$ac_objext; then
2875   ac_cv_prog_cc_c89=$ac_arg
2876 else
2877   $as_echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880
2881 fi
2882
2883 rm -f core conftest.err conftest.$ac_objext
2884   test "x$ac_cv_prog_cc_c89" != "xno" && break
2885 done
2886 rm -f conftest.$ac_ext
2887 CC=$ac_save_CC
2888
2889 fi
2890 # AC_CACHE_VAL
2891 case "x$ac_cv_prog_cc_c89" in
2892   x)
2893     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2894 $as_echo "none needed" >&6; } ;;
2895   xno)
2896     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2897 $as_echo "unsupported" >&6; } ;;
2898   *)
2899     CC="$CC $ac_cv_prog_cc_c89"
2900     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2902 esac
2903
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911 # Find a good install program.  We prefer a C program (faster),
2912 # so one script is as good as another.  But avoid the broken or
2913 # incompatible versions:
2914 # SysV /etc/install, /usr/sbin/install
2915 # SunOS /usr/etc/install
2916 # IRIX /sbin/install
2917 # AIX /bin/install
2918 # AmigaOS /C/install, which installs bootblocks on floppy discs
2919 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2922 # OS/2's system install, which has a completely different semantic
2923 # ./install, which can be erroneously created by make from ./install.sh.
2924 # Reject install programs that cannot install multiple files.
2925 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2926 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2927 if test -z "$INSTALL"; then
2928 if test "${ac_cv_path_install+set}" = set; then
2929   $as_echo_n "(cached) " >&6
2930 else
2931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936   # Account for people who put trailing slashes in PATH elements.
2937 case $as_dir/ in
2938   ./ | .// | /cC/* | \
2939   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2940   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2941   /usr/ucb/* ) ;;
2942   *)
2943     # OSF1 and SCO ODT 3.0 have their own names for install.
2944     # Don't use installbsd from OSF since it installs stuff as root
2945     # by default.
2946     for ac_prog in ginstall scoinst install; do
2947       for ac_exec_ext in '' $ac_executable_extensions; do
2948         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2949           if test $ac_prog = install &&
2950             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2951             # AIX install.  It has an incompatible calling convention.
2952             :
2953           elif test $ac_prog = install &&
2954             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2955             # program-specific install script used by HP pwplus--don't use.
2956             :
2957           else
2958             rm -rf conftest.one conftest.two conftest.dir
2959             echo one > conftest.one
2960             echo two > conftest.two
2961             mkdir conftest.dir
2962             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2963               test -s conftest.one && test -s conftest.two &&
2964               test -s conftest.dir/conftest.one &&
2965               test -s conftest.dir/conftest.two
2966             then
2967               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2968               break 3
2969             fi
2970           fi
2971         fi
2972       done
2973     done
2974     ;;
2975 esac
2976
2977 done
2978 IFS=$as_save_IFS
2979
2980 rm -rf conftest.one conftest.two conftest.dir
2981
2982 fi
2983   if test "${ac_cv_path_install+set}" = set; then
2984     INSTALL=$ac_cv_path_install
2985   else
2986     # As a last resort, use the slow shell script.  Don't cache a
2987     # value for INSTALL within a source directory, because that will
2988     # break other packages using the cache if that directory is
2989     # removed, or if the value is a relative name.
2990     INSTALL=$ac_install_sh
2991   fi
2992 fi
2993 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2994 $as_echo "$INSTALL" >&6; }
2995
2996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2997 # It thinks the first close brace ends the variable substitution.
2998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999
3000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001
3002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003
3004 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3005 $as_echo_n "checking whether ln -s works... " >&6; }
3006 LN_S=$as_ln_s
3007 if test "$LN_S" = "ln -s"; then
3008   { $as_echo "$as_me:$LINENO: result: yes" >&5
3009 $as_echo "yes" >&6; }
3010 else
3011   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3012 $as_echo "no, using $LN_S" >&6; }
3013 fi
3014
3015 if test -n "$ac_tool_prefix"; then
3016   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_RANLIB+set}" = set; then
3021   $as_echo_n "(cached) " >&6
3022 else
3023   if test -n "$RANLIB"; then
3024   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031   for ac_exec_ext in '' $ac_executable_extensions; do
3032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3034     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 RANLIB=$ac_cv_prog_RANLIB
3044 if test -n "$RANLIB"; then
3045   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3046 $as_echo "$RANLIB" >&6; }
3047 else
3048   { $as_echo "$as_me:$LINENO: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053 fi
3054 if test -z "$ac_cv_prog_RANLIB"; then
3055   ac_ct_RANLIB=$RANLIB
3056   # Extract the first word of "ranlib", so it can be a program name with args.
3057 set dummy ranlib; ac_word=$2
3058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3061   $as_echo_n "(cached) " >&6
3062 else
3063   if test -n "$ac_ct_RANLIB"; then
3064   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071   for ac_exec_ext in '' $ac_executable_extensions; do
3072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073     ac_cv_prog_ac_ct_RANLIB="ranlib"
3074     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075     break 2
3076   fi
3077 done
3078 done
3079 IFS=$as_save_IFS
3080
3081 fi
3082 fi
3083 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3084 if test -n "$ac_ct_RANLIB"; then
3085   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3086 $as_echo "$ac_ct_RANLIB" >&6; }
3087 else
3088   { $as_echo "$as_me:$LINENO: result: no" >&5
3089 $as_echo "no" >&6; }
3090 fi
3091
3092   if test "x$ac_ct_RANLIB" = x; then
3093     RANLIB=":"
3094   else
3095     case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101     RANLIB=$ac_ct_RANLIB
3102   fi
3103 else
3104   RANLIB="$ac_cv_prog_RANLIB"
3105 fi
3106
3107 for ac_prog in gawk mawk nawk awk
3108 do
3109   # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_AWK+set}" = set; then
3114   $as_echo_n "(cached) " >&6
3115 else
3116   if test -n "$AWK"; then
3117   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   for ac_exec_ext in '' $ac_executable_extensions; do
3125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126     ac_cv_prog_AWK="$ac_prog"
3127     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128     break 2
3129   fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 AWK=$ac_cv_prog_AWK
3137 if test -n "$AWK"; then
3138   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3139 $as_echo "$AWK" >&6; }
3140 else
3141   { $as_echo "$as_me:$LINENO: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146   test -n "$AWK" && break
3147 done
3148
3149 # Extract the first word of "ar", so it can be a program name with args.
3150 set dummy ar; ac_word=$2
3151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_AR+set}" = set; then
3154   $as_echo_n "(cached) " >&6
3155 else
3156   if test -n "$AR"; then
3157   ac_cv_prog_AR="$AR" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164   for ac_exec_ext in '' $ac_executable_extensions; do
3165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166     ac_cv_prog_AR="ar"
3167     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 AR=$ac_cv_prog_AR
3177 if test -n "$AR"; then
3178   { $as_echo "$as_me:$LINENO: result: $AR" >&5
3179 $as_echo "$AR" >&6; }
3180 else
3181   { $as_echo "$as_me:$LINENO: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186
3187 AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
3188
3189 AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
3190
3191
3192
3193
3194 { $as_echo "$as_me:$LINENO: checking for fparseln in -lutil" >&5
3195 $as_echo_n "checking for fparseln in -lutil... " >&6; }
3196 if test "${ac_cv_lib_util_fparseln+set}" = set; then
3197   $as_echo_n "(cached) " >&6
3198 else
3199   ac_check_lib_save_LIBS=$LIBS
3200 LIBS="-lutil  $LIBS"
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207
3208 /* Override any GCC internal prototype to avoid an error.
3209    Use char because int might match the return type of a GCC
3210    builtin and then its argument prototype would still apply.  */
3211 #ifdef __cplusplus
3212 extern "C"
3213 #endif
3214 char fparseln ();
3215 int
3216 main ()
3217 {
3218 return fparseln ();
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (ac_try="$ac_link"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230 $as_echo "$ac_try_echo") >&5
3231   (eval "$ac_link") 2>conftest.er1
3232   ac_status=$?
3233   grep -v '^ *+' conftest.er1 >conftest.err
3234   rm -f conftest.er1
3235   cat conftest.err >&5
3236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } && {
3238          test -z "$ac_c_werror_flag" ||
3239          test ! -s conftest.err
3240        } && test -s conftest$ac_exeext && {
3241          test "$cross_compiling" = yes ||
3242          $as_test_x conftest$ac_exeext
3243        }; then
3244   ac_cv_lib_util_fparseln=yes
3245 else
3246   $as_echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249         ac_cv_lib_util_fparseln=no
3250 fi
3251
3252 rm -rf conftest.dSYM
3253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3254       conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3256 fi
3257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_fparseln" >&5
3258 $as_echo "$ac_cv_lib_util_fparseln" >&6; }
3259 if test "x$ac_cv_lib_util_fparseln" = x""yes; then
3260   cat >>confdefs.h <<_ACEOF
3261 #define HAVE_LIBUTIL 1
3262 _ACEOF
3263
3264   LIBS="-lutil $LIBS"
3265
3266 fi
3267
3268
3269 ac_ext=c
3270 ac_cpp='$CPP $CPPFLAGS'
3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3275 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3276 # On Suns, sometimes $CPP names a directory.
3277 if test -n "$CPP" && test -d "$CPP"; then
3278   CPP=
3279 fi
3280 if test -z "$CPP"; then
3281   if test "${ac_cv_prog_CPP+set}" = set; then
3282   $as_echo_n "(cached) " >&6
3283 else
3284       # Double quotes because CPP needs to be expanded
3285     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3286     do
3287       ac_preproc_ok=false
3288 for ac_c_preproc_warn_flag in '' yes
3289 do
3290   # Use a header file that comes with gcc, so configuring glibc
3291   # with a fresh cross-compiler works.
3292   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293   # <limits.h> exists even on freestanding compilers.
3294   # On the NeXT, cc -E runs the code through the compiler's parser,
3295   # not just through cpp. "Syntax error" is here to catch this case.
3296   cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302 #ifdef __STDC__
3303 # include <limits.h>
3304 #else
3305 # include <assert.h>
3306 #endif
3307                      Syntax error
3308 _ACEOF
3309 if { (ac_try="$ac_cpp conftest.$ac_ext"
3310 case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3315 $as_echo "$ac_try_echo") >&5
3316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } >/dev/null && {
3323          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3324          test ! -s conftest.err
3325        }; then
3326   :
3327 else
3328   $as_echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331   # Broken: fails on valid input.
3332 continue
3333 fi
3334
3335 rm -f conftest.err conftest.$ac_ext
3336
3337   # OK, works on sane cases.  Now check whether nonexistent headers
3338   # can be detected and how.
3339   cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345 #include <ac_nonexistent.h>
3346 _ACEOF
3347 if { (ac_try="$ac_cpp conftest.$ac_ext"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3355   ac_status=$?
3356   grep -v '^ *+' conftest.er1 >conftest.err
3357   rm -f conftest.er1
3358   cat conftest.err >&5
3359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); } >/dev/null && {
3361          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3362          test ! -s conftest.err
3363        }; then
3364   # Broken: success on invalid input.
3365 continue
3366 else
3367   $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370   # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3373 fi
3374
3375 rm -f conftest.err conftest.$ac_ext
3376
3377 done
3378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3379 rm -f conftest.err conftest.$ac_ext
3380 if $ac_preproc_ok; then
3381   break
3382 fi
3383
3384     done
3385     ac_cv_prog_CPP=$CPP
3386
3387 fi
3388   CPP=$ac_cv_prog_CPP
3389 else
3390   ac_cv_prog_CPP=$CPP
3391 fi
3392 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3393 $as_echo "$CPP" >&6; }
3394 ac_preproc_ok=false
3395 for ac_c_preproc_warn_flag in '' yes
3396 do
3397   # Use a header file that comes with gcc, so configuring glibc
3398   # with a fresh cross-compiler works.
3399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3400   # <limits.h> exists even on freestanding compilers.
3401   # On the NeXT, cc -E runs the code through the compiler's parser,
3402   # not just through cpp. "Syntax error" is here to catch this case.
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 #ifdef __STDC__
3410 # include <limits.h>
3411 #else
3412 # include <assert.h>
3413 #endif
3414                      Syntax error
3415 _ACEOF
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3424   ac_status=$?
3425   grep -v '^ *+' conftest.er1 >conftest.err
3426   rm -f conftest.er1
3427   cat conftest.err >&5
3428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); } >/dev/null && {
3430          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3431          test ! -s conftest.err
3432        }; then
3433   :
3434 else
3435   $as_echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Broken: fails on valid input.
3439 continue
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444   # OK, works on sane cases.  Now check whether nonexistent headers
3445   # can be detected and how.
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3460 $as_echo "$ac_try_echo") >&5
3461   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462   ac_status=$?
3463   grep -v '^ *+' conftest.er1 >conftest.err
3464   rm -f conftest.er1
3465   cat conftest.err >&5
3466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); } >/dev/null && {
3468          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3469          test ! -s conftest.err
3470        }; then
3471   # Broken: success on invalid input.
3472 continue
3473 else
3474   $as_echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477   # Passes both tests.
3478 ac_preproc_ok=:
3479 break
3480 fi
3481
3482 rm -f conftest.err conftest.$ac_ext
3483
3484 done
3485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486 rm -f conftest.err conftest.$ac_ext
3487 if $ac_preproc_ok; then
3488   :
3489 else
3490   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3493 See \`config.log' for more details." >&5
3494 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3495 See \`config.log' for more details." >&2;}
3496    { (exit 1); exit 1; }; }; }
3497 fi
3498
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504
3505
3506 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3507 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3508 if test "${ac_cv_path_GREP+set}" = set; then
3509   $as_echo_n "(cached) " >&6
3510 else
3511   if test -z "$GREP"; then
3512   ac_path_GREP_found=false
3513   # Loop through the user's path and test for each of PROGNAME-LIST
3514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3516 do
3517   IFS=$as_save_IFS
3518   test -z "$as_dir" && as_dir=.
3519   for ac_prog in grep ggrep; do
3520     for ac_exec_ext in '' $ac_executable_extensions; do
3521       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3522       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3523 # Check for GNU ac_path_GREP and select it if it is found.
3524   # Check for GNU $ac_path_GREP
3525 case `"$ac_path_GREP" --version 2>&1` in
3526 *GNU*)
3527   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3528 *)
3529   ac_count=0
3530   $as_echo_n 0123456789 >"conftest.in"
3531   while :
3532   do
3533     cat "conftest.in" "conftest.in" >"conftest.tmp"
3534     mv "conftest.tmp" "conftest.in"
3535     cp "conftest.in" "conftest.nl"
3536     $as_echo 'GREP' >> "conftest.nl"
3537     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3538     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3539     ac_count=`expr $ac_count + 1`
3540     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3541       # Best one so far, save it but keep looking for a better one
3542       ac_cv_path_GREP="$ac_path_GREP"
3543       ac_path_GREP_max=$ac_count
3544     fi
3545     # 10*(2^10) chars as input seems more than enough
3546     test $ac_count -gt 10 && break
3547   done
3548   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3549 esac
3550
3551       $ac_path_GREP_found && break 3
3552     done
3553   done
3554 done
3555 IFS=$as_save_IFS
3556   if test -z "$ac_cv_path_GREP"; then
3557     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3558 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3559    { (exit 1); exit 1; }; }
3560   fi
3561 else
3562   ac_cv_path_GREP=$GREP
3563 fi
3564
3565 fi
3566 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3567 $as_echo "$ac_cv_path_GREP" >&6; }
3568  GREP="$ac_cv_path_GREP"
3569
3570
3571 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3572 $as_echo_n "checking for egrep... " >&6; }
3573 if test "${ac_cv_path_EGREP+set}" = set; then
3574   $as_echo_n "(cached) " >&6
3575 else
3576   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3577    then ac_cv_path_EGREP="$GREP -E"
3578    else
3579      if test -z "$EGREP"; then
3580   ac_path_EGREP_found=false
3581   # Loop through the user's path and test for each of PROGNAME-LIST
3582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3584 do
3585   IFS=$as_save_IFS
3586   test -z "$as_dir" && as_dir=.
3587   for ac_prog in egrep; do
3588     for ac_exec_ext in '' $ac_executable_extensions; do
3589       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3590       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3591 # Check for GNU ac_path_EGREP and select it if it is found.
3592   # Check for GNU $ac_path_EGREP
3593 case `"$ac_path_EGREP" --version 2>&1` in
3594 *GNU*)
3595   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3596 *)
3597   ac_count=0
3598   $as_echo_n 0123456789 >"conftest.in"
3599   while :
3600   do
3601     cat "conftest.in" "conftest.in" >"conftest.tmp"
3602     mv "conftest.tmp" "conftest.in"
3603     cp "conftest.in" "conftest.nl"
3604     $as_echo 'EGREP' >> "conftest.nl"
3605     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3606     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3607     ac_count=`expr $ac_count + 1`
3608     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3609       # Best one so far, save it but keep looking for a better one
3610       ac_cv_path_EGREP="$ac_path_EGREP"
3611       ac_path_EGREP_max=$ac_count
3612     fi
3613     # 10*(2^10) chars as input seems more than enough
3614     test $ac_count -gt 10 && break
3615   done
3616   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3617 esac
3618
3619       $ac_path_EGREP_found && break 3
3620     done
3621   done
3622 done
3623 IFS=$as_save_IFS
3624   if test -z "$ac_cv_path_EGREP"; then
3625     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3626 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3627    { (exit 1); exit 1; }; }
3628   fi
3629 else
3630   ac_cv_path_EGREP=$EGREP
3631 fi
3632
3633    fi
3634 fi
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3636 $as_echo "$ac_cv_path_EGREP" >&6; }
3637  EGREP="$ac_cv_path_EGREP"
3638
3639
3640 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3641 $as_echo_n "checking for ANSI C header files... " >&6; }
3642 if test "${ac_cv_header_stdc+set}" = set; then
3643   $as_echo_n "(cached) " >&6
3644 else
3645   cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651 #include <stdlib.h>
3652 #include <stdarg.h>
3653 #include <string.h>
3654 #include <float.h>
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3671 $as_echo "$ac_try_echo") >&5
3672   (eval "$ac_compile") 2>conftest.er1
3673   ac_status=$?
3674   grep -v '^ *+' conftest.er1 >conftest.err
3675   rm -f conftest.er1
3676   cat conftest.err >&5
3677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } && {
3679          test -z "$ac_c_werror_flag" ||
3680          test ! -s conftest.err
3681        } && test -s conftest.$ac_objext; then
3682   ac_cv_header_stdc=yes
3683 else
3684   $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687         ac_cv_header_stdc=no
3688 fi
3689
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691
3692 if test $ac_cv_header_stdc = yes; then
3693   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3694   cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h.  */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h.  */
3700 #include <string.h>
3701
3702 _ACEOF
3703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3704   $EGREP "memchr" >/dev/null 2>&1; then
3705   :
3706 else
3707   ac_cv_header_stdc=no
3708 fi
3709 rm -f conftest*
3710
3711 fi
3712
3713 if test $ac_cv_header_stdc = yes; then
3714   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3715   cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h.  */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h.  */
3721 #include <stdlib.h>
3722
3723 _ACEOF
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725   $EGREP "free" >/dev/null 2>&1; then
3726   :
3727 else
3728   ac_cv_header_stdc=no
3729 fi
3730 rm -f conftest*
3731
3732 fi
3733
3734 if test $ac_cv_header_stdc = yes; then
3735   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3736   if test "$cross_compiling" = yes; then
3737   :
3738 else
3739   cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h.  */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h.  */
3745 #include <ctype.h>
3746 #include <stdlib.h>
3747 #if ((' ' & 0x0FF) == 0x020)
3748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3750 #else
3751 # define ISLOWER(c) \
3752                    (('a' <= (c) && (c) <= 'i') \
3753                      || ('j' <= (c) && (c) <= 'r') \
3754                      || ('s' <= (c) && (c) <= 'z'))
3755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3756 #endif
3757
3758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3759 int
3760 main ()
3761 {
3762   int i;
3763   for (i = 0; i < 256; i++)
3764     if (XOR (islower (i), ISLOWER (i))
3765         || toupper (i) != TOUPPER (i))
3766       return 2;
3767   return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest$ac_exeext
3771 if { (ac_try="$ac_link"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3777 $as_echo "$ac_try_echo") >&5
3778   (eval "$ac_link") 2>&5
3779   ac_status=$?
3780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3782   { (case "(($ac_try" in
3783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784   *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788   (eval "$ac_try") 2>&5
3789   ac_status=$?
3790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }; }; then
3792   :
3793 else
3794   $as_echo "$as_me: program exited with status $ac_status" >&5
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 ( exit $ac_status )
3799 ac_cv_header_stdc=no
3800 fi
3801 rm -rf conftest.dSYM
3802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3803 fi
3804
3805
3806 fi
3807 fi
3808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3809 $as_echo "$ac_cv_header_stdc" >&6; }
3810 if test $ac_cv_header_stdc = yes; then
3811
3812 cat >>confdefs.h <<\_ACEOF
3813 #define STDC_HEADERS 1
3814 _ACEOF
3815
3816 fi
3817
3818 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3819 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
3820 if test "${ac_cv_header_time+set}" = set; then
3821   $as_echo_n "(cached) " >&6
3822 else
3823   cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829 #include <sys/types.h>
3830 #include <sys/time.h>
3831 #include <time.h>
3832
3833 int
3834 main ()
3835 {
3836 if ((struct tm *) 0)
3837 return 0;
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 $as_echo "$ac_try_echo") >&5
3850   (eval "$ac_compile") 2>conftest.er1
3851   ac_status=$?
3852   grep -v '^ *+' conftest.er1 >conftest.err
3853   rm -f conftest.er1
3854   cat conftest.err >&5
3855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } && {
3857          test -z "$ac_c_werror_flag" ||
3858          test ! -s conftest.err
3859        } && test -s conftest.$ac_objext; then
3860   ac_cv_header_time=yes
3861 else
3862   $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865         ac_cv_header_time=no
3866 fi
3867
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 fi
3870 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3871 $as_echo "$ac_cv_header_time" >&6; }
3872 if test $ac_cv_header_time = yes; then
3873
3874 cat >>confdefs.h <<\_ACEOF
3875 #define TIME_WITH_SYS_TIME 1
3876 _ACEOF
3877
3878 fi
3879
3880
3881 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3892                   inttypes.h stdint.h unistd.h
3893 do
3894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3896 $as_echo_n "checking for $ac_header... " >&6; }
3897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3898   $as_echo_n "(cached) " >&6
3899 else
3900   cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 $ac_includes_default
3907
3908 #include <$ac_header>
3909 _ACEOF
3910 rm -f conftest.$ac_objext
3911 if { (ac_try="$ac_compile"
3912 case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3917 $as_echo "$ac_try_echo") >&5
3918   (eval "$ac_compile") 2>conftest.er1
3919   ac_status=$?
3920   grep -v '^ *+' conftest.er1 >conftest.err
3921   rm -f conftest.er1
3922   cat conftest.err >&5
3923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); } && {
3925          test -z "$ac_c_werror_flag" ||
3926          test ! -s conftest.err
3927        } && test -s conftest.$ac_objext; then
3928   eval "$as_ac_Header=yes"
3929 else
3930   $as_echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933         eval "$as_ac_Header=no"
3934 fi
3935
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 fi
3938 ac_res=`eval 'as_val=${'$as_ac_Header'}
3939                  $as_echo "$as_val"'`
3940                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3941 $as_echo "$ac_res" >&6; }
3942 as_val=`eval 'as_val=${'$as_ac_Header'}
3943                  $as_echo "$as_val"'`
3944    if test "x$as_val" = x""yes; then
3945   cat >>confdefs.h <<_ACEOF
3946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3947 _ACEOF
3948
3949 fi
3950
3951 done
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003 for ac_header in alloca.h assert.h ctype.h dirent.h err.h errno.h fcntl.h \
4004         fnmatch.h fts.h grp.h inttypes.h libutil.h limits.h \
4005         machine/endian.h ndir.h netdb.h paths.h pwd.h signal.h \
4006         stdarg.h stddef.h stdint.h stdio.h \
4007         stdlib.h string.h sys/byteorder.h sys/cdefs.h sys/dir.h sys/endian.h \
4008         sys/file.h sys/mkdev.h sys/ndir.h sys/param.h sys/socket.h sys/stat.h \
4009         sys/statfs.h sys/statvfs.h sys/time.h sys/ttycom.h sys/types.h \
4010         sys/uio.h sys/vfs.h sysexits.h termcap.h time.h tzfile.h unistd.h \
4011         util.h utime.h
4012
4013 do
4014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 $as_echo_n "checking for $ac_header... " >&6; }
4018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019   $as_echo_n "(cached) " >&6
4020 fi
4021 ac_res=`eval 'as_val=${'$as_ac_Header'}
4022                  $as_echo "$as_val"'`
4023                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4024 $as_echo "$ac_res" >&6; }
4025 else
4026   # Is the header compilable?
4027 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4028 $as_echo_n "checking $ac_header usability... " >&6; }
4029 cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035 $ac_includes_default
4036 #include <$ac_header>
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4040 case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4045 $as_echo "$ac_try_echo") >&5
4046   (eval "$ac_compile") 2>conftest.er1
4047   ac_status=$?
4048   grep -v '^ *+' conftest.er1 >conftest.err
4049   rm -f conftest.er1
4050   cat conftest.err >&5
4051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); } && {
4053          test -z "$ac_c_werror_flag" ||
4054          test ! -s conftest.err
4055        } && test -s conftest.$ac_objext; then
4056   ac_header_compiler=yes
4057 else
4058   $as_echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4060
4061         ac_header_compiler=no
4062 fi
4063
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4066 $as_echo "$ac_header_compiler" >&6; }
4067
4068 # Is the header present?
4069 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4070 $as_echo_n "checking $ac_header presence... " >&6; }
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077 #include <$ac_header>
4078 _ACEOF
4079 if { (ac_try="$ac_cpp conftest.$ac_ext"
4080 case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } >/dev/null && {
4093          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4094          test ! -s conftest.err
4095        }; then
4096   ac_header_preproc=yes
4097 else
4098   $as_echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101   ac_header_preproc=no
4102 fi
4103
4104 rm -f conftest.err conftest.$ac_ext
4105 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4106 $as_echo "$ac_header_preproc" >&6; }
4107
4108 # So?  What about this header?
4109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4110   yes:no: )
4111     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4112 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4113     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4114 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4115     ac_header_preproc=yes
4116     ;;
4117   no:yes:* )
4118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4119 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4121 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4123 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4125 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4128     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4129 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4130     ( cat <<\_ASBOX
4131 ## ------------------------------- ##
4132 ## Report this to grant@NetBSD.org ##
4133 ## ------------------------------- ##
4134 _ASBOX
4135      ) | sed "s/^/$as_me: WARNING:     /" >&2
4136     ;;
4137 esac
4138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 $as_echo_n "checking for $ac_header... " >&6; }
4140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141   $as_echo_n "(cached) " >&6
4142 else
4143   eval "$as_ac_Header=\$ac_header_preproc"
4144 fi
4145 ac_res=`eval 'as_val=${'$as_ac_Header'}
4146                  $as_echo "$as_val"'`
4147                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4148 $as_echo "$ac_res" >&6; }
4149
4150 fi
4151 as_val=`eval 'as_val=${'$as_ac_Header'}
4152                  $as_echo "$as_val"'`
4153    if test "x$as_val" = x""yes; then
4154   cat >>confdefs.h <<_ACEOF
4155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4156 _ACEOF
4157
4158 fi
4159
4160 done
4161
4162
4163 for ac_header in sys/mount.h
4164 do
4165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4167 $as_echo_n "checking for $ac_header... " >&6; }
4168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4169   $as_echo_n "(cached) " >&6
4170 else
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177
4178         $ac_includes_default
4179         #ifdef HAVE_SYS_PARAM_H
4180         #include <sys/param.h>
4181         #endif
4182
4183
4184 #include <$ac_header>
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (ac_try="$ac_compile"
4188 case "(($ac_try" in
4189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190   *) ac_try_echo=$ac_try;;
4191 esac
4192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4193 $as_echo "$ac_try_echo") >&5
4194   (eval "$ac_compile") 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } && {
4201          test -z "$ac_c_werror_flag" ||
4202          test ! -s conftest.err
4203        } && test -s conftest.$ac_objext; then
4204   eval "$as_ac_Header=yes"
4205 else
4206   $as_echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209         eval "$as_ac_Header=no"
4210 fi
4211
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 fi
4214 ac_res=`eval 'as_val=${'$as_ac_Header'}
4215                  $as_echo "$as_val"'`
4216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4217 $as_echo "$ac_res" >&6; }
4218 as_val=`eval 'as_val=${'$as_ac_Header'}
4219                  $as_echo "$as_val"'`
4220    if test "x$as_val" = x""yes; then
4221   cat >>confdefs.h <<_ACEOF
4222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4223 _ACEOF
4224  :
4225 else
4226   :
4227 fi
4228
4229 done
4230
4231
4232
4233 for ac_header in glob.h
4234 do
4235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4237   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4238 $as_echo_n "checking for $ac_header... " >&6; }
4239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4240   $as_echo_n "(cached) " >&6
4241 fi
4242 ac_res=`eval 'as_val=${'$as_ac_Header'}
4243                  $as_echo "$as_val"'`
4244                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4245 $as_echo "$ac_res" >&6; }
4246 else
4247   # Is the header compilable?
4248 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4249 $as_echo_n "checking $ac_header usability... " >&6; }
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 $ac_includes_default
4257 #include <$ac_header>
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4261 case "(($ac_try" in
4262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263   *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266 $as_echo "$ac_try_echo") >&5
4267   (eval "$ac_compile") 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } && {
4274          test -z "$ac_c_werror_flag" ||
4275          test ! -s conftest.err
4276        } && test -s conftest.$ac_objext; then
4277   ac_header_compiler=yes
4278 else
4279   $as_echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282         ac_header_compiler=no
4283 fi
4284
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4287 $as_echo "$ac_header_compiler" >&6; }
4288
4289 # Is the header present?
4290 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4291 $as_echo_n "checking $ac_header presence... " >&6; }
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 #include <$ac_header>
4299 _ACEOF
4300 if { (ac_try="$ac_cpp conftest.$ac_ext"
4301 case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4306 $as_echo "$ac_try_echo") >&5
4307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } >/dev/null && {
4314          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4315          test ! -s conftest.err
4316        }; then
4317   ac_header_preproc=yes
4318 else
4319   $as_echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322   ac_header_preproc=no
4323 fi
4324
4325 rm -f conftest.err conftest.$ac_ext
4326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4327 $as_echo "$ac_header_preproc" >&6; }
4328
4329 # So?  What about this header?
4330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4331   yes:no: )
4332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4333 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4336     ac_header_preproc=yes
4337     ;;
4338   no:yes:* )
4339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4340 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4342 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4344 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4346 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4350 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4351     ( cat <<\_ASBOX
4352 ## ------------------------------- ##
4353 ## Report this to grant@NetBSD.org ##
4354 ## ------------------------------- ##
4355 _ASBOX
4356      ) | sed "s/^/$as_me: WARNING:     /" >&2
4357     ;;
4358 esac
4359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4360 $as_echo_n "checking for $ac_header... " >&6; }
4361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4362   $as_echo_n "(cached) " >&6
4363 else
4364   eval "$as_ac_Header=\$ac_header_preproc"
4365 fi
4366 ac_res=`eval 'as_val=${'$as_ac_Header'}
4367                  $as_echo "$as_val"'`
4368                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4369 $as_echo "$ac_res" >&6; }
4370
4371 fi
4372 as_val=`eval 'as_val=${'$as_ac_Header'}
4373                  $as_echo "$as_val"'`
4374    if test "x$as_val" = x""yes; then
4375   cat >>confdefs.h <<_ACEOF
4376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4377 _ACEOF
4378
4379 fi
4380
4381 done
4382
4383 cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_NBCOMPAT_GLOB 1
4385 _ACEOF
4386
4387
4388
4389 case " $LIBOBJS " in
4390   *" glob.$ac_objext "* ) ;;
4391   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
4392  ;;
4393 esac
4394
4395
4396
4397 for ac_header in sys/queue.h
4398 do
4399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4401   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 $as_echo_n "checking for $ac_header... " >&6; }
4403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4404   $as_echo_n "(cached) " >&6
4405 fi
4406 ac_res=`eval 'as_val=${'$as_ac_Header'}
4407                  $as_echo "$as_val"'`
4408                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4409 $as_echo "$ac_res" >&6; }
4410 else
4411   # Is the header compilable?
4412 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4413 $as_echo_n "checking $ac_header usability... " >&6; }
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h.  */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h.  */
4420 $ac_includes_default
4421 #include <$ac_header>
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (ac_try="$ac_compile"
4425 case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4430 $as_echo "$ac_try_echo") >&5
4431   (eval "$ac_compile") 2>conftest.er1
4432   ac_status=$?
4433   grep -v '^ *+' conftest.er1 >conftest.err
4434   rm -f conftest.er1
4435   cat conftest.err >&5
4436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); } && {
4438          test -z "$ac_c_werror_flag" ||
4439          test ! -s conftest.err
4440        } && test -s conftest.$ac_objext; then
4441   ac_header_compiler=yes
4442 else
4443   $as_echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446         ac_header_compiler=no
4447 fi
4448
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4451 $as_echo "$ac_header_compiler" >&6; }
4452
4453 # Is the header present?
4454 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4455 $as_echo_n "checking $ac_header presence... " >&6; }
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 #include <$ac_header>
4463 _ACEOF
4464 if { (ac_try="$ac_cpp conftest.$ac_ext"
4465 case "(($ac_try" in
4466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467   *) ac_try_echo=$ac_try;;
4468 esac
4469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470 $as_echo "$ac_try_echo") >&5
4471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4472   ac_status=$?
4473   grep -v '^ *+' conftest.er1 >conftest.err
4474   rm -f conftest.er1
4475   cat conftest.err >&5
4476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); } >/dev/null && {
4478          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4479          test ! -s conftest.err
4480        }; then
4481   ac_header_preproc=yes
4482 else
4483   $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486   ac_header_preproc=no
4487 fi
4488
4489 rm -f conftest.err conftest.$ac_ext
4490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4491 $as_echo "$ac_header_preproc" >&6; }
4492
4493 # So?  What about this header?
4494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4495   yes:no: )
4496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4497 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4498     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4500     ac_header_preproc=yes
4501     ;;
4502   no:yes:* )
4503     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4504 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4505     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4506 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4507     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4508 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4509     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4510 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4511     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4512 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4513     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4514 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4515     ( cat <<\_ASBOX
4516 ## ------------------------------- ##
4517 ## Report this to grant@NetBSD.org ##
4518 ## ------------------------------- ##
4519 _ASBOX
4520      ) | sed "s/^/$as_me: WARNING:     /" >&2
4521     ;;
4522 esac
4523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 $as_echo_n "checking for $ac_header... " >&6; }
4525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4526   $as_echo_n "(cached) " >&6
4527 else
4528   eval "$as_ac_Header=\$ac_header_preproc"
4529 fi
4530 ac_res=`eval 'as_val=${'$as_ac_Header'}
4531                  $as_echo "$as_val"'`
4532                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4533 $as_echo "$ac_res" >&6; }
4534
4535 fi
4536 as_val=`eval 'as_val=${'$as_ac_Header'}
4537                  $as_echo "$as_val"'`
4538    if test "x$as_val" = x""yes; then
4539   cat >>confdefs.h <<_ACEOF
4540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4541 _ACEOF
4542
4543 fi
4544
4545 done
4546
4547 cat >>confdefs.h <<\_ACEOF
4548 #define HAVE_NBCOMPAT_QUEUE 1
4549 _ACEOF
4550
4551
4552
4553
4554
4555 for ac_header in regex.h
4556 do
4557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4559   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4560 $as_echo_n "checking for $ac_header... " >&6; }
4561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4562   $as_echo_n "(cached) " >&6
4563 fi
4564 ac_res=`eval 'as_val=${'$as_ac_Header'}
4565                  $as_echo "$as_val"'`
4566                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4567 $as_echo "$ac_res" >&6; }
4568 else
4569   # Is the header compilable?
4570 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4571 $as_echo_n "checking $ac_header usability... " >&6; }
4572 cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 $ac_includes_default
4579 #include <$ac_header>
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (ac_try="$ac_compile"
4583 case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4588 $as_echo "$ac_try_echo") >&5
4589   (eval "$ac_compile") 2>conftest.er1
4590   ac_status=$?
4591   grep -v '^ *+' conftest.er1 >conftest.err
4592   rm -f conftest.er1
4593   cat conftest.err >&5
4594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); } && {
4596          test -z "$ac_c_werror_flag" ||
4597          test ! -s conftest.err
4598        } && test -s conftest.$ac_objext; then
4599   ac_header_compiler=yes
4600 else
4601   $as_echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604         ac_header_compiler=no
4605 fi
4606
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4609 $as_echo "$ac_header_compiler" >&6; }
4610
4611 # Is the header present?
4612 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4613 $as_echo_n "checking $ac_header presence... " >&6; }
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 #include <$ac_header>
4621 _ACEOF
4622 if { (ac_try="$ac_cpp conftest.$ac_ext"
4623 case "(($ac_try" in
4624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625   *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4628 $as_echo "$ac_try_echo") >&5
4629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4630   ac_status=$?
4631   grep -v '^ *+' conftest.er1 >conftest.err
4632   rm -f conftest.er1
4633   cat conftest.err >&5
4634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); } >/dev/null && {
4636          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4637          test ! -s conftest.err
4638        }; then
4639   ac_header_preproc=yes
4640 else
4641   $as_echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644   ac_header_preproc=no
4645 fi
4646
4647 rm -f conftest.err conftest.$ac_ext
4648 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4649 $as_echo "$ac_header_preproc" >&6; }
4650
4651 # So?  What about this header?
4652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4653   yes:no: )
4654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4655 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4656     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4658     ac_header_preproc=yes
4659     ;;
4660   no:yes:* )
4661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4662 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4664 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4665     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4666 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4667     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4668 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4669     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4671     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4672 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4673     ( cat <<\_ASBOX
4674 ## ------------------------------- ##
4675 ## Report this to grant@NetBSD.org ##
4676 ## ------------------------------- ##
4677 _ASBOX
4678      ) | sed "s/^/$as_me: WARNING:     /" >&2
4679     ;;
4680 esac
4681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4682 $as_echo_n "checking for $ac_header... " >&6; }
4683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4684   $as_echo_n "(cached) " >&6
4685 else
4686   eval "$as_ac_Header=\$ac_header_preproc"
4687 fi
4688 ac_res=`eval 'as_val=${'$as_ac_Header'}
4689                  $as_echo "$as_val"'`
4690                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4691 $as_echo "$ac_res" >&6; }
4692
4693 fi
4694 as_val=`eval 'as_val=${'$as_ac_Header'}
4695                  $as_echo "$as_val"'`
4696    if test "x$as_val" = x""yes; then
4697   cat >>confdefs.h <<_ACEOF
4698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4699 _ACEOF
4700
4701 fi
4702
4703 done
4704
4705 { $as_echo "$as_me:$LINENO: checking for regexec" >&5
4706 $as_echo_n "checking for regexec... " >&6; }
4707 if test "${ac_cv_func_regexec+set}" = set; then
4708   $as_echo_n "(cached) " >&6
4709 else
4710   cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716 /* Define regexec to an innocuous variant, in case <limits.h> declares regexec.
4717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4718 #define regexec innocuous_regexec
4719
4720 /* System header to define __stub macros and hopefully few prototypes,
4721     which can conflict with char regexec (); below.
4722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4723     <limits.h> exists even on freestanding compilers.  */
4724
4725 #ifdef __STDC__
4726 # include <limits.h>
4727 #else
4728 # include <assert.h>
4729 #endif
4730
4731 #undef regexec
4732
4733 /* Override any GCC internal prototype to avoid an error.
4734    Use char because int might match the return type of a GCC
4735    builtin and then its argument prototype would still apply.  */
4736 #ifdef __cplusplus
4737 extern "C"
4738 #endif
4739 char regexec ();
4740 /* The GNU C library defines this for functions which it implements
4741     to always fail with ENOSYS.  Some functions are actually named
4742     something starting with __ and the normal name is an alias.  */
4743 #if defined __stub_regexec || defined __stub___regexec
4744 choke me
4745 #endif
4746
4747 int
4748 main ()
4749 {
4750 return regexec ();
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4757 case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4762 $as_echo "$ac_try_echo") >&5
4763   (eval "$ac_link") 2>conftest.er1
4764   ac_status=$?
4765   grep -v '^ *+' conftest.er1 >conftest.err
4766   rm -f conftest.er1
4767   cat conftest.err >&5
4768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } && {
4770          test -z "$ac_c_werror_flag" ||
4771          test ! -s conftest.err
4772        } && test -s conftest$ac_exeext && {
4773          test "$cross_compiling" = yes ||
4774          $as_test_x conftest$ac_exeext
4775        }; then
4776   ac_cv_func_regexec=yes
4777 else
4778   $as_echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781         ac_cv_func_regexec=no
4782 fi
4783
4784 rm -rf conftest.dSYM
4785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4786       conftest$ac_exeext conftest.$ac_ext
4787 fi
4788 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_regexec" >&5
4789 $as_echo "$ac_cv_func_regexec" >&6; }
4790 if test "x$ac_cv_func_regexec" = x""yes; then
4791   :
4792 else
4793
4794         cat >>confdefs.h <<\_ACEOF
4795 #define HAVE_NBCOMPAT_REGEX 1
4796 _ACEOF
4797
4798
4799
4800         case " $LIBOBJS " in
4801   *" regcomp.$ac_objext "* ) ;;
4802   *) LIBOBJS="$LIBOBJS regcomp.$ac_objext"
4803  ;;
4804 esac
4805
4806         case " $LIBOBJS " in
4807   *" regerror.$ac_objext "* ) ;;
4808   *) LIBOBJS="$LIBOBJS regerror.$ac_objext"
4809  ;;
4810 esac
4811
4812         case " $LIBOBJS " in
4813   *" regexec.$ac_objext "* ) ;;
4814   *) LIBOBJS="$LIBOBJS regexec.$ac_objext"
4815  ;;
4816 esac
4817
4818         case " $LIBOBJS " in
4819   *" regfree.$ac_objext "* ) ;;
4820   *) LIBOBJS="$LIBOBJS regfree.$ac_objext"
4821  ;;
4822 esac
4823
4824
4825 fi
4826
4827
4828
4829 for ac_header in md5.h
4830 do
4831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4833   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4834 $as_echo_n "checking for $ac_header... " >&6; }
4835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4836   $as_echo_n "(cached) " >&6
4837 fi
4838 ac_res=`eval 'as_val=${'$as_ac_Header'}
4839                  $as_echo "$as_val"'`
4840                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4841 $as_echo "$ac_res" >&6; }
4842 else
4843   # Is the header compilable?
4844 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 $as_echo_n "checking $ac_header usability... " >&6; }
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h.  */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h.  */
4852 $ac_includes_default
4853 #include <$ac_header>
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4857 case "(($ac_try" in
4858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859   *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863   (eval "$ac_compile") 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } && {
4870          test -z "$ac_c_werror_flag" ||
4871          test ! -s conftest.err
4872        } && test -s conftest.$ac_objext; then
4873   ac_header_compiler=yes
4874 else
4875   $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878         ac_header_compiler=no
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4883 $as_echo "$ac_header_compiler" >&6; }
4884
4885 # Is the header present?
4886 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4887 $as_echo_n "checking $ac_header presence... " >&6; }
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894 #include <$ac_header>
4895 _ACEOF
4896 if { (ac_try="$ac_cpp conftest.$ac_ext"
4897 case "(($ac_try" in
4898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899   *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4902 $as_echo "$ac_try_echo") >&5
4903   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4904   ac_status=$?
4905   grep -v '^ *+' conftest.er1 >conftest.err
4906   rm -f conftest.er1
4907   cat conftest.err >&5
4908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } >/dev/null && {
4910          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911          test ! -s conftest.err
4912        }; then
4913   ac_header_preproc=yes
4914 else
4915   $as_echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918   ac_header_preproc=no
4919 fi
4920
4921 rm -f conftest.err conftest.$ac_ext
4922 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4923 $as_echo "$ac_header_preproc" >&6; }
4924
4925 # So?  What about this header?
4926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4927   yes:no: )
4928     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4929 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4932     ac_header_preproc=yes
4933     ;;
4934   no:yes:* )
4935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4936 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4938 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4940 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4942 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4943     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4944 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4946 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4947     ( cat <<\_ASBOX
4948 ## ------------------------------- ##
4949 ## Report this to grant@NetBSD.org ##
4950 ## ------------------------------- ##
4951 _ASBOX
4952      ) | sed "s/^/$as_me: WARNING:     /" >&2
4953     ;;
4954 esac
4955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4956 $as_echo_n "checking for $ac_header... " >&6; }
4957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4958   $as_echo_n "(cached) " >&6
4959 else
4960   eval "$as_ac_Header=\$ac_header_preproc"
4961 fi
4962 ac_res=`eval 'as_val=${'$as_ac_Header'}
4963                  $as_echo "$as_val"'`
4964                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4965 $as_echo "$ac_res" >&6; }
4966
4967 fi
4968 as_val=`eval 'as_val=${'$as_ac_Header'}
4969                  $as_echo "$as_val"'`
4970    if test "x$as_val" = x""yes; then
4971   cat >>confdefs.h <<_ACEOF
4972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973 _ACEOF
4974
4975
4976         { $as_echo "$as_me:$LINENO: checking for MD5Init in md5.h" >&5
4977 $as_echo_n "checking for MD5Init in md5.h... " >&6; }
4978 if test "${pkg_cv_have_md5init+set}" = set; then
4979   $as_echo_n "(cached) " >&6
4980 else
4981
4982                 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988
4989                 #include <sys/types.h>
4990                 #include <md5.h>
4991
4992 int
4993 main ()
4994 {
4995
4996                 MD5_CTX *f;
4997                 MD5Init(f);
4998         ;
4999   ;
5000   return 0;
5001 }
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (ac_try="$ac_compile"
5005 case "(($ac_try" in
5006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007   *) ac_try_echo=$ac_try;;
5008 esac
5009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5010 $as_echo "$ac_try_echo") >&5
5011   (eval "$ac_compile") 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } && {
5018          test -z "$ac_c_werror_flag" ||
5019          test ! -s conftest.err
5020        } && test -s conftest.$ac_objext; then
5021    pkg_cv_have_md5init=yes
5022 else
5023   $as_echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026          pkg_cv_have_md5init=no
5027 fi
5028
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030
5031 fi
5032 { $as_echo "$as_me:$LINENO: result: $pkg_cv_have_md5init" >&5
5033 $as_echo "$pkg_cv_have_md5init" >&6; }
5034         if test "x$pkg_cv_have_md5init" = "xyes"; then
5035                 :
5036         else
5037
5038                 cat >>confdefs.h <<\_ACEOF
5039 #define HAVE_NBCOMPAT_MD5INIT 1
5040 _ACEOF
5041
5042
5043
5044
5045                 :
5046         fi
5047
5048
5049 fi
5050
5051 done
5052
5053
5054
5055
5056
5057
5058 for ac_header in md5.h rmd160.h sha1.h sha2.h
5059 do
5060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5062   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5063 $as_echo_n "checking for $ac_header... " >&6; }
5064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5065   $as_echo_n "(cached) " >&6
5066 fi
5067 ac_res=`eval 'as_val=${'$as_ac_Header'}
5068                  $as_echo "$as_val"'`
5069                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5070 $as_echo "$ac_res" >&6; }
5071 else
5072   # Is the header compilable?
5073 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5074 $as_echo_n "checking $ac_header usability... " >&6; }
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 $ac_includes_default
5082 #include <$ac_header>
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5086 case "(($ac_try" in
5087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088   *) ac_try_echo=$ac_try;;
5089 esac
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092   (eval "$ac_compile") 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && {
5099          test -z "$ac_c_werror_flag" ||
5100          test ! -s conftest.err
5101        } && test -s conftest.$ac_objext; then
5102   ac_header_compiler=yes
5103 else
5104   $as_echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107         ac_header_compiler=no
5108 fi
5109
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5112 $as_echo "$ac_header_compiler" >&6; }
5113
5114 # Is the header present?
5115 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5116 $as_echo_n "checking $ac_header presence... " >&6; }
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 #include <$ac_header>
5124 _ACEOF
5125 if { (ac_try="$ac_cpp conftest.$ac_ext"
5126 case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5131 $as_echo "$ac_try_echo") >&5
5132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5133   ac_status=$?
5134   grep -v '^ *+' conftest.er1 >conftest.err
5135   rm -f conftest.er1
5136   cat conftest.err >&5
5137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } >/dev/null && {
5139          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5140          test ! -s conftest.err
5141        }; then
5142   ac_header_preproc=yes
5143 else
5144   $as_echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147   ac_header_preproc=no
5148 fi
5149
5150 rm -f conftest.err conftest.$ac_ext
5151 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5152 $as_echo "$ac_header_preproc" >&6; }
5153
5154 # So?  What about this header?
5155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5156   yes:no: )
5157     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5158 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5159     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5161     ac_header_preproc=yes
5162     ;;
5163   no:yes:* )
5164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5165 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5167 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5169 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5170     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5171 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5172     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5174     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5175 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5176     ( cat <<\_ASBOX
5177 ## ------------------------------- ##
5178 ## Report this to grant@NetBSD.org ##
5179 ## ------------------------------- ##
5180 _ASBOX
5181      ) | sed "s/^/$as_me: WARNING:     /" >&2
5182     ;;
5183 esac
5184 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 $as_echo_n "checking for $ac_header... " >&6; }
5186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5187   $as_echo_n "(cached) " >&6
5188 else
5189   eval "$as_ac_Header=\$ac_header_preproc"
5190 fi
5191 ac_res=`eval 'as_val=${'$as_ac_Header'}
5192                  $as_echo "$as_val"'`
5193                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5194 $as_echo "$ac_res" >&6; }
5195
5196 fi
5197 as_val=`eval 'as_val=${'$as_ac_Header'}
5198                  $as_echo "$as_val"'`
5199    if test "x$as_val" = x""yes; then
5200   cat >>confdefs.h <<_ACEOF
5201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5202 _ACEOF
5203
5204 fi
5205
5206 done
5207
5208 { $as_echo "$as_me:$LINENO: checking for MD5File" >&5
5209 $as_echo_n "checking for MD5File... " >&6; }
5210 if test "${ac_cv_func_MD5File+set}" = set; then
5211   $as_echo_n "(cached) " >&6
5212 else
5213   cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h.  */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h.  */
5219 /* Define MD5File to an innocuous variant, in case <limits.h> declares MD5File.
5220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5221 #define MD5File innocuous_MD5File
5222
5223 /* System header to define __stub macros and hopefully few prototypes,
5224     which can conflict with char MD5File (); below.
5225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226     <limits.h> exists even on freestanding compilers.  */
5227
5228 #ifdef __STDC__
5229 # include <limits.h>
5230 #else
5231 # include <assert.h>
5232 #endif
5233
5234 #undef MD5File
5235
5236 /* Override any GCC internal prototype to avoid an error.
5237    Use char because int might match the return type of a GCC
5238    builtin and then its argument prototype would still apply.  */
5239 #ifdef __cplusplus
5240 extern "C"
5241 #endif
5242 char MD5File ();
5243 /* The GNU C library defines this for functions which it implements
5244     to always fail with ENOSYS.  Some functions are actually named
5245     something starting with __ and the normal name is an alias.  */
5246 #if defined __stub_MD5File || defined __stub___MD5File
5247 choke me
5248 #endif
5249
5250 int
5251 main ()
5252 {
5253 return MD5File ();
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (ac_try="$ac_link"
5260 case "(($ac_try" in
5261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262   *) ac_try_echo=$ac_try;;
5263 esac
5264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5265 $as_echo "$ac_try_echo") >&5
5266   (eval "$ac_link") 2>conftest.er1
5267   ac_status=$?
5268   grep -v '^ *+' conftest.er1 >conftest.err
5269   rm -f conftest.er1
5270   cat conftest.err >&5
5271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); } && {
5273          test -z "$ac_c_werror_flag" ||
5274          test ! -s conftest.err
5275        } && test -s conftest$ac_exeext && {
5276          test "$cross_compiling" = yes ||
5277          $as_test_x conftest$ac_exeext
5278        }; then
5279   ac_cv_func_MD5File=yes
5280 else
5281   $as_echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284         ac_cv_func_MD5File=no
5285 fi
5286
5287 rm -rf conftest.dSYM
5288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5289       conftest$ac_exeext conftest.$ac_ext
5290 fi
5291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_MD5File" >&5
5292 $as_echo "$ac_cv_func_MD5File" >&6; }
5293 if test "x$ac_cv_func_MD5File" = x""yes; then
5294   :
5295 else
5296
5297         cat >>confdefs.h <<\_ACEOF
5298 #define HAVE_NBCOMPAT_MD5 1
5299 _ACEOF
5300
5301
5302
5303         case " $LIBOBJS " in
5304   *" md5c.$ac_objext "* ) ;;
5305   *) LIBOBJS="$LIBOBJS md5c.$ac_objext"
5306  ;;
5307 esac
5308
5309         case " $LIBOBJS " in
5310   *" md5hl.$ac_objext "* ) ;;
5311   *) LIBOBJS="$LIBOBJS md5hl.$ac_objext"
5312  ;;
5313 esac
5314
5315
5316 fi
5317
5318 { $as_echo "$as_me:$LINENO: checking for RMD160File" >&5
5319 $as_echo_n "checking for RMD160File... " >&6; }
5320 if test "${ac_cv_func_RMD160File+set}" = set; then
5321   $as_echo_n "(cached) " >&6
5322 else
5323   cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 /* Define RMD160File to an innocuous variant, in case <limits.h> declares RMD160File.
5330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5331 #define RMD160File innocuous_RMD160File
5332
5333 /* System header to define __stub macros and hopefully few prototypes,
5334     which can conflict with char RMD160File (); below.
5335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336     <limits.h> exists even on freestanding compilers.  */
5337
5338 #ifdef __STDC__
5339 # include <limits.h>
5340 #else
5341 # include <assert.h>
5342 #endif
5343
5344 #undef RMD160File
5345
5346 /* Override any GCC internal prototype to avoid an error.
5347    Use char because int might match the return type of a GCC
5348    builtin and then its argument prototype would still apply.  */
5349 #ifdef __cplusplus
5350 extern "C"
5351 #endif
5352 char RMD160File ();
5353 /* The GNU C library defines this for functions which it implements
5354     to always fail with ENOSYS.  Some functions are actually named
5355     something starting with __ and the normal name is an alias.  */
5356 #if defined __stub_RMD160File || defined __stub___RMD160File
5357 choke me
5358 #endif
5359
5360 int
5361 main ()
5362 {
5363 return RMD160File ();
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5370 case "(($ac_try" in
5371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372   *) ac_try_echo=$ac_try;;
5373 esac
5374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5375 $as_echo "$ac_try_echo") >&5
5376   (eval "$ac_link") 2>conftest.er1
5377   ac_status=$?
5378   grep -v '^ *+' conftest.er1 >conftest.err
5379   rm -f conftest.er1
5380   cat conftest.err >&5
5381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } && {
5383          test -z "$ac_c_werror_flag" ||
5384          test ! -s conftest.err
5385        } && test -s conftest$ac_exeext && {
5386          test "$cross_compiling" = yes ||
5387          $as_test_x conftest$ac_exeext
5388        }; then
5389   ac_cv_func_RMD160File=yes
5390 else
5391   $as_echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394         ac_cv_func_RMD160File=no
5395 fi
5396
5397 rm -rf conftest.dSYM
5398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5399       conftest$ac_exeext conftest.$ac_ext
5400 fi
5401 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_RMD160File" >&5
5402 $as_echo "$ac_cv_func_RMD160File" >&6; }
5403 if test "x$ac_cv_func_RMD160File" = x""yes; then
5404   :
5405 else
5406
5407         cat >>confdefs.h <<\_ACEOF
5408 #define HAVE_NBCOMPAT_RMD160 1
5409 _ACEOF
5410
5411
5412
5413         case " $LIBOBJS " in
5414   *" rmd160.$ac_objext "* ) ;;
5415   *) LIBOBJS="$LIBOBJS rmd160.$ac_objext"
5416  ;;
5417 esac
5418
5419         case " $LIBOBJS " in
5420   *" rmd160hl.$ac_objext "* ) ;;
5421   *) LIBOBJS="$LIBOBJS rmd160hl.$ac_objext"
5422  ;;
5423 esac
5424
5425
5426 fi
5427
5428 { $as_echo "$as_me:$LINENO: checking for SHA1File" >&5
5429 $as_echo_n "checking for SHA1File... " >&6; }
5430 if test "${ac_cv_func_SHA1File+set}" = set; then
5431   $as_echo_n "(cached) " >&6
5432 else
5433   cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h.  */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h.  */
5439 /* Define SHA1File to an innocuous variant, in case <limits.h> declares SHA1File.
5440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5441 #define SHA1File innocuous_SHA1File
5442
5443 /* System header to define __stub macros and hopefully few prototypes,
5444     which can conflict with char SHA1File (); below.
5445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446     <limits.h> exists even on freestanding compilers.  */
5447
5448 #ifdef __STDC__
5449 # include <limits.h>
5450 #else
5451 # include <assert.h>
5452 #endif
5453
5454 #undef SHA1File
5455
5456 /* Override any GCC internal prototype to avoid an error.
5457    Use char because int might match the return type of a GCC
5458    builtin and then its argument prototype would still apply.  */
5459 #ifdef __cplusplus
5460 extern "C"
5461 #endif
5462 char SHA1File ();
5463 /* The GNU C library defines this for functions which it implements
5464     to always fail with ENOSYS.  Some functions are actually named
5465     something starting with __ and the normal name is an alias.  */
5466 #if defined __stub_SHA1File || defined __stub___SHA1File
5467 choke me
5468 #endif
5469
5470 int
5471 main ()
5472 {
5473 return SHA1File ();
5474   ;
5475   return 0;
5476 }
5477 _ACEOF
5478 rm -f conftest.$ac_objext conftest$ac_exeext
5479 if { (ac_try="$ac_link"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485 $as_echo "$ac_try_echo") >&5
5486   (eval "$ac_link") 2>conftest.er1
5487   ac_status=$?
5488   grep -v '^ *+' conftest.er1 >conftest.err
5489   rm -f conftest.er1
5490   cat conftest.err >&5
5491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } && {
5493          test -z "$ac_c_werror_flag" ||
5494          test ! -s conftest.err
5495        } && test -s conftest$ac_exeext && {
5496          test "$cross_compiling" = yes ||
5497          $as_test_x conftest$ac_exeext
5498        }; then
5499   ac_cv_func_SHA1File=yes
5500 else
5501   $as_echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504         ac_cv_func_SHA1File=no
5505 fi
5506
5507 rm -rf conftest.dSYM
5508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5509       conftest$ac_exeext conftest.$ac_ext
5510 fi
5511 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_SHA1File" >&5
5512 $as_echo "$ac_cv_func_SHA1File" >&6; }
5513 if test "x$ac_cv_func_SHA1File" = x""yes; then
5514   :
5515 else
5516
5517         cat >>confdefs.h <<\_ACEOF
5518 #define HAVE_NBCOMPAT_SHA1 1
5519 _ACEOF
5520
5521
5522
5523         case " $LIBOBJS " in
5524   *" sha1.$ac_objext "* ) ;;
5525   *) LIBOBJS="$LIBOBJS sha1.$ac_objext"
5526  ;;
5527 esac
5528
5529         case " $LIBOBJS " in
5530   *" sha1hl.$ac_objext "* ) ;;
5531   *) LIBOBJS="$LIBOBJS sha1hl.$ac_objext"
5532  ;;
5533 esac
5534
5535
5536 fi
5537
5538
5539 { $as_echo "$as_me:$LINENO: checking for SHA512_File" >&5
5540 $as_echo_n "checking for SHA512_File... " >&6; }
5541 if test "${ac_cv_func_SHA512_File+set}" = set; then
5542   $as_echo_n "(cached) " >&6
5543 else
5544   cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550 /* Define SHA512_File to an innocuous variant, in case <limits.h> declares SHA512_File.
5551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5552 #define SHA512_File innocuous_SHA512_File
5553
5554 /* System header to define __stub macros and hopefully few prototypes,
5555     which can conflict with char SHA512_File (); below.
5556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5557     <limits.h> exists even on freestanding compilers.  */
5558
5559 #ifdef __STDC__
5560 # include <limits.h>
5561 #else
5562 # include <assert.h>
5563 #endif
5564
5565 #undef SHA512_File
5566
5567 /* Override any GCC internal prototype to avoid an error.
5568    Use char because int might match the return type of a GCC
5569    builtin and then its argument prototype would still apply.  */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 char SHA512_File ();
5574 /* The GNU C library defines this for functions which it implements
5575     to always fail with ENOSYS.  Some functions are actually named
5576     something starting with __ and the normal name is an alias.  */
5577 #if defined __stub_SHA512_File || defined __stub___SHA512_File
5578 choke me
5579 #endif
5580
5581 int
5582 main ()
5583 {
5584 return SHA512_File ();
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (ac_try="$ac_link"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5596 $as_echo "$ac_try_echo") >&5
5597   (eval "$ac_link") 2>conftest.er1
5598   ac_status=$?
5599   grep -v '^ *+' conftest.er1 >conftest.err
5600   rm -f conftest.er1
5601   cat conftest.err >&5
5602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } && {
5604          test -z "$ac_c_werror_flag" ||
5605          test ! -s conftest.err
5606        } && test -s conftest$ac_exeext && {
5607          test "$cross_compiling" = yes ||
5608          $as_test_x conftest$ac_exeext
5609        }; then
5610   ac_cv_func_SHA512_File=yes
5611 else
5612   $as_echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615         ac_cv_func_SHA512_File=no
5616 fi
5617
5618 rm -rf conftest.dSYM
5619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5620       conftest$ac_exeext conftest.$ac_ext
5621 fi
5622 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_SHA512_File" >&5
5623 $as_echo "$ac_cv_func_SHA512_File" >&6; }
5624 if test "x$ac_cv_func_SHA512_File" = x""yes; then
5625   :
5626 else
5627
5628         cat >>confdefs.h <<\_ACEOF
5629 #define HAVE_NBCOMPAT_SHA2 1
5630 _ACEOF
5631
5632
5633
5634         case " $LIBOBJS " in
5635   *" sha2.$ac_objext "* ) ;;
5636   *) LIBOBJS="$LIBOBJS sha2.$ac_objext"
5637  ;;
5638 esac
5639
5640         case " $LIBOBJS " in
5641   *" sha2hl.$ac_objext "* ) ;;
5642   *) LIBOBJS="$LIBOBJS sha2hl.$ac_objext"
5643  ;;
5644 esac
5645
5646
5647 fi
5648
5649
5650 # Check whether --enable-db was given.
5651 if test "${enable_db+set}" = set; then
5652   enableval=$enable_db;
5653 fi
5654
5655 WITH_DB=$enable_db
5656
5657
5658 for ac_func in issetugid
5659 do
5660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5661 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5662 $as_echo_n "checking for $ac_func... " >&6; }
5663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5664   $as_echo_n "(cached) " >&6
5665 else
5666   cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5674 #define $ac_func innocuous_$ac_func
5675
5676 /* System header to define __stub macros and hopefully few prototypes,
5677     which can conflict with char $ac_func (); below.
5678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679     <limits.h> exists even on freestanding compilers.  */
5680
5681 #ifdef __STDC__
5682 # include <limits.h>
5683 #else
5684 # include <assert.h>
5685 #endif
5686
5687 #undef $ac_func
5688
5689 /* Override any GCC internal prototype to avoid an error.
5690    Use char because int might match the return type of a GCC
5691    builtin and then its argument prototype would still apply.  */
5692 #ifdef __cplusplus
5693 extern "C"
5694 #endif
5695 char $ac_func ();
5696 /* The GNU C library defines this for functions which it implements
5697     to always fail with ENOSYS.  Some functions are actually named
5698     something starting with __ and the normal name is an alias.  */
5699 #if defined __stub_$ac_func || defined __stub___$ac_func
5700 choke me
5701 #endif
5702
5703 int
5704 main ()
5705 {
5706 return $ac_func ();
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext conftest$ac_exeext
5712 if { (ac_try="$ac_link"
5713 case "(($ac_try" in
5714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715   *) ac_try_echo=$ac_try;;
5716 esac
5717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5718 $as_echo "$ac_try_echo") >&5
5719   (eval "$ac_link") 2>conftest.er1
5720   ac_status=$?
5721   grep -v '^ *+' conftest.er1 >conftest.err
5722   rm -f conftest.er1
5723   cat conftest.err >&5
5724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } && {
5726          test -z "$ac_c_werror_flag" ||
5727          test ! -s conftest.err
5728        } && test -s conftest$ac_exeext && {
5729          test "$cross_compiling" = yes ||
5730          $as_test_x conftest$ac_exeext
5731        }; then
5732   eval "$as_ac_var=yes"
5733 else
5734   $as_echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737         eval "$as_ac_var=no"
5738 fi
5739
5740 rm -rf conftest.dSYM
5741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5742       conftest$ac_exeext conftest.$ac_ext
5743 fi
5744 ac_res=`eval 'as_val=${'$as_ac_var'}
5745                  $as_echo "$as_val"'`
5746                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5747 $as_echo "$ac_res" >&6; }
5748 as_val=`eval 'as_val=${'$as_ac_var'}
5749                  $as_echo "$as_val"'`
5750    if test "x$as_val" = x""yes; then
5751   cat >>confdefs.h <<_ACEOF
5752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5753 _ACEOF
5754
5755 fi
5756 done
5757
5758
5759 # Check whether --enable-bsd-getopt was given.
5760 if test "${enable_bsd_getopt+set}" = set; then
5761   enableval=$enable_bsd_getopt;
5762 fi
5763
5764
5765 { $as_echo "$as_me:$LINENO: checking whether optind is declared" >&5
5766 $as_echo_n "checking whether optind is declared... " >&6; }
5767 if test "${ac_cv_have_decl_optind+set}" = set; then
5768   $as_echo_n "(cached) " >&6
5769 else
5770   cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h.  */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h.  */
5776
5777         #include <stdio.h>
5778         #include <stdlib.h>
5779         #include <unistd.h>
5780
5781
5782 int
5783 main ()
5784 {
5785 #ifndef optind
5786   (void) optind;
5787 #endif
5788
5789   ;
5790   return 0;
5791 }
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (ac_try="$ac_compile"
5795 case "(($ac_try" in
5796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797   *) ac_try_echo=$ac_try;;
5798 esac
5799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5800 $as_echo "$ac_try_echo") >&5
5801   (eval "$ac_compile") 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } && {
5808          test -z "$ac_c_werror_flag" ||
5809          test ! -s conftest.err
5810        } && test -s conftest.$ac_objext; then
5811   ac_cv_have_decl_optind=yes
5812 else
5813   $as_echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816         ac_cv_have_decl_optind=no
5817 fi
5818
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 fi
5821 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
5822 $as_echo "$ac_cv_have_decl_optind" >&6; }
5823 if test "x$ac_cv_have_decl_optind" = x""yes; then
5824
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_DECL_OPTIND 1
5827 _ACEOF
5828
5829 :
5830 else
5831   cat >>confdefs.h <<_ACEOF
5832 #define HAVE_DECL_OPTIND 0
5833 _ACEOF
5834
5835 :
5836 fi
5837 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
5838 $as_echo_n "checking whether optreset is declared... " >&6; }
5839 if test "${ac_cv_have_decl_optreset+set}" = set; then
5840   $as_echo_n "(cached) " >&6
5841 else
5842   cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848
5849         #include <stdio.h>
5850         #include <stdlib.h>
5851         #include <unistd.h>
5852
5853
5854 int
5855 main ()
5856 {
5857 #ifndef optreset
5858   (void) optreset;
5859 #endif
5860
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5867 case "(($ac_try" in
5868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869   *) ac_try_echo=$ac_try;;
5870 esac
5871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872 $as_echo "$ac_try_echo") >&5
5873   (eval "$ac_compile") 2>conftest.er1
5874   ac_status=$?
5875   grep -v '^ *+' conftest.er1 >conftest.err
5876   rm -f conftest.er1
5877   cat conftest.err >&5
5878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); } && {
5880          test -z "$ac_c_werror_flag" ||
5881          test ! -s conftest.err
5882        } && test -s conftest.$ac_objext; then
5883   ac_cv_have_decl_optreset=yes
5884 else
5885   $as_echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888         ac_cv_have_decl_optreset=no
5889 fi
5890
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 fi
5893 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
5894 $as_echo "$ac_cv_have_decl_optreset" >&6; }
5895 if test "x$ac_cv_have_decl_optreset" = x""yes; then
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE_DECL_OPTRESET 1
5899 _ACEOF
5900
5901 :
5902 else
5903   cat >>confdefs.h <<_ACEOF
5904 #define HAVE_DECL_OPTRESET 0
5905 _ACEOF
5906
5907 :
5908 fi
5909
5910
5911
5912
5913
5914 for ac_header in getopt.h
5915 do
5916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5918   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5919 $as_echo_n "checking for $ac_header... " >&6; }
5920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5921   $as_echo_n "(cached) " >&6
5922 fi
5923 ac_res=`eval 'as_val=${'$as_ac_Header'}
5924                  $as_echo "$as_val"'`
5925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5926 $as_echo "$ac_res" >&6; }
5927 else
5928   # Is the header compilable?
5929 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5930 $as_echo_n "checking $ac_header usability... " >&6; }
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937 $ac_includes_default
5938 #include <$ac_header>
5939 _ACEOF
5940 rm -f conftest.$ac_objext
5941 if { (ac_try="$ac_compile"
5942 case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947 $as_echo "$ac_try_echo") >&5
5948   (eval "$ac_compile") 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
5952   cat conftest.err >&5
5953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } && {
5955          test -z "$ac_c_werror_flag" ||
5956          test ! -s conftest.err
5957        } && test -s conftest.$ac_objext; then
5958   ac_header_compiler=yes
5959 else
5960   $as_echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963         ac_header_compiler=no
5964 fi
5965
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5968 $as_echo "$ac_header_compiler" >&6; }
5969
5970 # Is the header present?
5971 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5972 $as_echo_n "checking $ac_header presence... " >&6; }
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979 #include <$ac_header>
5980 _ACEOF
5981 if { (ac_try="$ac_cpp conftest.$ac_ext"
5982 case "(($ac_try" in
5983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984   *) ac_try_echo=$ac_try;;
5985 esac
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } >/dev/null && {
5995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5996          test ! -s conftest.err
5997        }; then
5998   ac_header_preproc=yes
5999 else
6000   $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003   ac_header_preproc=no
6004 fi
6005
6006 rm -f conftest.err conftest.$ac_ext
6007 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6008 $as_echo "$ac_header_preproc" >&6; }
6009
6010 # So?  What about this header?
6011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6012   yes:no: )
6013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6014 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6017     ac_header_preproc=yes
6018     ;;
6019   no:yes:* )
6020     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6021 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6023 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6024     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6025 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6027 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6030     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6031 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6032     ( cat <<\_ASBOX
6033 ## ------------------------------- ##
6034 ## Report this to grant@NetBSD.org ##
6035 ## ------------------------------- ##
6036 _ASBOX
6037      ) | sed "s/^/$as_me: WARNING:     /" >&2
6038     ;;
6039 esac
6040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6041 $as_echo_n "checking for $ac_header... " >&6; }
6042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6043   $as_echo_n "(cached) " >&6
6044 else
6045   eval "$as_ac_Header=\$ac_header_preproc"
6046 fi
6047 ac_res=`eval 'as_val=${'$as_ac_Header'}
6048                  $as_echo "$as_val"'`
6049                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6050 $as_echo "$ac_res" >&6; }
6051
6052 fi
6053 as_val=`eval 'as_val=${'$as_ac_Header'}
6054                  $as_echo "$as_val"'`
6055    if test "x$as_val" = x""yes; then
6056   cat >>confdefs.h <<_ACEOF
6057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 _ACEOF
6059   { $as_echo "$as_me:$LINENO: checking for struct option" >&5
6060 $as_echo_n "checking for struct option... " >&6; }
6061 if test "${ac_cv_type_struct_option+set}" = set; then
6062   $as_echo_n "(cached) " >&6
6063 else
6064   ac_cv_type_struct_option=no
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h.  */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h.  */
6071 #include <getopt.h>
6072
6073 int
6074 main ()
6075 {
6076 if (sizeof (struct option))
6077        return 0;
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (ac_try="$ac_compile"
6084 case "(($ac_try" in
6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086   *) ac_try_echo=$ac_try;;
6087 esac
6088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6089 $as_echo "$ac_try_echo") >&5
6090   (eval "$ac_compile") 2>conftest.er1
6091   ac_status=$?
6092   grep -v '^ *+' conftest.er1 >conftest.err
6093   rm -f conftest.er1
6094   cat conftest.err >&5
6095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); } && {
6097          test -z "$ac_c_werror_flag" ||
6098          test ! -s conftest.err
6099        } && test -s conftest.$ac_objext; then
6100   cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h.  */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h.  */
6106 #include <getopt.h>
6107
6108 int
6109 main ()
6110 {
6111 if (sizeof ((struct option)))
6112           return 0;
6113   ;
6114   return 0;
6115 }
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6119 case "(($ac_try" in
6120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121   *) ac_try_echo=$ac_try;;
6122 esac
6123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6124 $as_echo "$ac_try_echo") >&5
6125   (eval "$ac_compile") 2>conftest.er1
6126   ac_status=$?
6127   grep -v '^ *+' conftest.er1 >conftest.err
6128   rm -f conftest.er1
6129   cat conftest.err >&5
6130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } && {
6132          test -z "$ac_c_werror_flag" ||
6133          test ! -s conftest.err
6134        } && test -s conftest.$ac_objext; then
6135   :
6136 else
6137   $as_echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140         ac_cv_type_struct_option=yes
6141 fi
6142
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 else
6145   $as_echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148
6149 fi
6150
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 fi
6153 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
6154 $as_echo "$ac_cv_type_struct_option" >&6; }
6155 if test "x$ac_cv_type_struct_option" = x""yes; then
6156
6157 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_STRUCT_OPTION 1
6159 _ACEOF
6160
6161 :
6162 else
6163    case " $LIBOBJS " in
6164   *" getopt_long.$ac_objext "* ) ;;
6165   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
6166  ;;
6167 esac
6168
6169 fi
6170
6171 else
6172    case " $LIBOBJS " in
6173   *" getopt_long.$ac_objext "* ) ;;
6174   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
6175  ;;
6176 esac
6177
6178
6179 fi
6180
6181 done
6182
6183
6184 if test "$enable_bsd_getopt" = yes; then
6185         if test "$ac_cv_have_decl_optreset" = no; then
6186                 case " $LIBOBJS " in
6187   *" getopt.$ac_objext "* ) ;;
6188   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
6189  ;;
6190 esac
6191
6192         fi
6193 fi
6194
6195 pkg_use_nbcompat_vis=yes
6196
6197 for ac_header in vis.h
6198 do
6199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6201   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 $as_echo_n "checking for $ac_header... " >&6; }
6203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6204   $as_echo_n "(cached) " >&6
6205 fi
6206 ac_res=`eval 'as_val=${'$as_ac_Header'}
6207                  $as_echo "$as_val"'`
6208                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6209 $as_echo "$ac_res" >&6; }
6210 else
6211   # Is the header compilable?
6212 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6213 $as_echo_n "checking $ac_header usability... " >&6; }
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220 $ac_includes_default
6221 #include <$ac_header>
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227   *) ac_try_echo=$ac_try;;
6228 esac
6229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6230 $as_echo "$ac_try_echo") >&5
6231   (eval "$ac_compile") 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } && {
6238          test -z "$ac_c_werror_flag" ||
6239          test ! -s conftest.err
6240        } && test -s conftest.$ac_objext; then
6241   ac_header_compiler=yes
6242 else
6243   $as_echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246         ac_header_compiler=no
6247 fi
6248
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251 $as_echo "$ac_header_compiler" >&6; }
6252
6253 # Is the header present?
6254 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6255 $as_echo_n "checking $ac_header presence... " >&6; }
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 #include <$ac_header>
6263 _ACEOF
6264 if { (ac_try="$ac_cpp conftest.$ac_ext"
6265 case "(($ac_try" in
6266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267   *) ac_try_echo=$ac_try;;
6268 esac
6269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6270 $as_echo "$ac_try_echo") >&5
6271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6272   ac_status=$?
6273   grep -v '^ *+' conftest.er1 >conftest.err
6274   rm -f conftest.er1
6275   cat conftest.err >&5
6276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); } >/dev/null && {
6278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6279          test ! -s conftest.err
6280        }; then
6281   ac_header_preproc=yes
6282 else
6283   $as_echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286   ac_header_preproc=no
6287 fi
6288
6289 rm -f conftest.err conftest.$ac_ext
6290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6291 $as_echo "$ac_header_preproc" >&6; }
6292
6293 # So?  What about this header?
6294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6295   yes:no: )
6296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6297 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6298     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6300     ac_header_preproc=yes
6301     ;;
6302   no:yes:* )
6303     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6304 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6305     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6306 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6307     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6308 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6309     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6310 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6311     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6313     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6314 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6315     ( cat <<\_ASBOX
6316 ## ------------------------------- ##
6317 ## Report this to grant@NetBSD.org ##
6318 ## ------------------------------- ##
6319 _ASBOX
6320      ) | sed "s/^/$as_me: WARNING:     /" >&2
6321     ;;
6322 esac
6323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 $as_echo_n "checking for $ac_header... " >&6; }
6325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6326   $as_echo_n "(cached) " >&6
6327 else
6328   eval "$as_ac_Header=\$ac_header_preproc"
6329 fi
6330 ac_res=`eval 'as_val=${'$as_ac_Header'}
6331                  $as_echo "$as_val"'`
6332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6334
6335 fi
6336 as_val=`eval 'as_val=${'$as_ac_Header'}
6337                  $as_echo "$as_val"'`
6338    if test "x$as_val" = x""yes; then
6339   cat >>confdefs.h <<_ACEOF
6340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6341 _ACEOF
6342
6343
6344         { $as_echo "$as_me:$LINENO: checking for VIS_WHITE in vis.h" >&5
6345 $as_echo_n "checking for VIS_WHITE in vis.h... " >&6; }
6346 if test "${pkg_cv_have_vis_white+set}" = set; then
6347   $as_echo_n "(cached) " >&6
6348 else
6349
6350                 cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h.  */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h.  */
6356
6357                 #include <sys/types.h>
6358                 #include <vis.h>
6359
6360 int
6361 main ()
6362 {
6363   int X = VIS_WHITE; ;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6375 $as_echo "$ac_try_echo") >&5
6376   (eval "$ac_compile") 2>conftest.er1
6377   ac_status=$?
6378   grep -v '^ *+' conftest.er1 >conftest.err
6379   rm -f conftest.er1
6380   cat conftest.err >&5
6381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); } && {
6383          test -z "$ac_c_werror_flag" ||
6384          test ! -s conftest.err
6385        } && test -s conftest.$ac_objext; then
6386    pkg_cv_have_vis_white=yes
6387 else
6388   $as_echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6390
6391          pkg_cv_have_vis_white=no
6392 fi
6393
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395
6396 fi
6397 { $as_echo "$as_me:$LINENO: result: $pkg_cv_have_vis_white" >&5
6398 $as_echo "$pkg_cv_have_vis_white" >&6; }
6399         if test "x$pkg_cv_have_vis_white" = "xyes"; then
6400
6401
6402
6403
6404
6405
6406
6407 for ac_func in strunvis strvis strsvis svis unvis vis
6408 do
6409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6410 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6411 $as_echo_n "checking for $ac_func... " >&6; }
6412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6413   $as_echo_n "(cached) " >&6
6414 else
6415   cat >conftest.$ac_ext <<_ACEOF
6416 /* confdefs.h.  */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h.  */
6421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6423 #define $ac_func innocuous_$ac_func
6424
6425 /* System header to define __stub macros and hopefully few prototypes,
6426     which can conflict with char $ac_func (); below.
6427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6428     <limits.h> exists even on freestanding compilers.  */
6429
6430 #ifdef __STDC__
6431 # include <limits.h>
6432 #else
6433 # include <assert.h>
6434 #endif
6435
6436 #undef $ac_func
6437
6438 /* Override any GCC internal prototype to avoid an error.
6439    Use char because int might match the return type of a GCC
6440    builtin and then its argument prototype would still apply.  */
6441 #ifdef __cplusplus
6442 extern "C"
6443 #endif
6444 char $ac_func ();
6445 /* The GNU C library defines this for functions which it implements
6446     to always fail with ENOSYS.  Some functions are actually named
6447     something starting with __ and the normal name is an alias.  */
6448 #if defined __stub_$ac_func || defined __stub___$ac_func
6449 choke me
6450 #endif
6451
6452 int
6453 main ()
6454 {
6455 return $ac_func ();
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (ac_try="$ac_link"
6462 case "(($ac_try" in
6463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464   *) ac_try_echo=$ac_try;;
6465 esac
6466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6467 $as_echo "$ac_try_echo") >&5
6468   (eval "$ac_link") 2>conftest.er1
6469   ac_status=$?
6470   grep -v '^ *+' conftest.er1 >conftest.err
6471   rm -f conftest.er1
6472   cat conftest.err >&5
6473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } && {
6475          test -z "$ac_c_werror_flag" ||
6476          test ! -s conftest.err
6477        } && test -s conftest$ac_exeext && {
6478          test "$cross_compiling" = yes ||
6479          $as_test_x conftest$ac_exeext
6480        }; then
6481   eval "$as_ac_var=yes"
6482 else
6483   $as_echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486         eval "$as_ac_var=no"
6487 fi
6488
6489 rm -rf conftest.dSYM
6490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6491       conftest$ac_exeext conftest.$ac_ext
6492 fi
6493 ac_res=`eval 'as_val=${'$as_ac_var'}
6494                  $as_echo "$as_val"'`
6495                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6496 $as_echo "$ac_res" >&6; }
6497 as_val=`eval 'as_val=${'$as_ac_var'}
6498                  $as_echo "$as_val"'`
6499    if test "x$as_val" = x""yes; then
6500   cat >>confdefs.h <<_ACEOF
6501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6502 _ACEOF
6503
6504 fi
6505 done
6506
6507
6508
6509
6510
6511
6512
6513 for ac_func in strunvis strvis strsvis svis unvis vis
6514 do
6515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6517 $as_echo_n "checking for $ac_func... " >&6; }
6518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6519   $as_echo_n "(cached) " >&6
6520 else
6521   cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h.  */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h.  */
6527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6529 #define $ac_func innocuous_$ac_func
6530
6531 /* System header to define __stub macros and hopefully few prototypes,
6532     which can conflict with char $ac_func (); below.
6533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6534     <limits.h> exists even on freestanding compilers.  */
6535
6536 #ifdef __STDC__
6537 # include <limits.h>
6538 #else
6539 # include <assert.h>
6540 #endif
6541
6542 #undef $ac_func
6543
6544 /* Override any GCC internal prototype to avoid an error.
6545    Use char because int might match the return type of a GCC
6546    builtin and then its argument prototype would still apply.  */
6547 #ifdef __cplusplus
6548 extern "C"
6549 #endif
6550 char $ac_func ();
6551 /* The GNU C library defines this for functions which it implements
6552     to always fail with ENOSYS.  Some functions are actually named
6553     something starting with __ and the normal name is an alias.  */
6554 #if defined __stub_$ac_func || defined __stub___$ac_func
6555 choke me
6556 #endif
6557
6558 int
6559 main ()
6560 {
6561 return $ac_func ();
6562   ;
6563   return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext conftest$ac_exeext
6567 if { (ac_try="$ac_link"
6568 case "(($ac_try" in
6569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570   *) ac_try_echo=$ac_try;;
6571 esac
6572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6573 $as_echo "$ac_try_echo") >&5
6574   (eval "$ac_link") 2>conftest.er1
6575   ac_status=$?
6576   grep -v '^ *+' conftest.er1 >conftest.err
6577   rm -f conftest.er1
6578   cat conftest.err >&5
6579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } && {
6581          test -z "$ac_c_werror_flag" ||
6582          test ! -s conftest.err
6583        } && test -s conftest$ac_exeext && {
6584          test "$cross_compiling" = yes ||
6585          $as_test_x conftest$ac_exeext
6586        }; then
6587   eval "$as_ac_var=yes"
6588 else
6589   $as_echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592         eval "$as_ac_var=no"
6593 fi
6594
6595 rm -rf conftest.dSYM
6596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6597       conftest$ac_exeext conftest.$ac_ext
6598 fi
6599 ac_res=`eval 'as_val=${'$as_ac_var'}
6600                  $as_echo "$as_val"'`
6601                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6602 $as_echo "$ac_res" >&6; }
6603 as_val=`eval 'as_val=${'$as_ac_var'}
6604                  $as_echo "$as_val"'`
6605    if test "x$as_val" = x""yes; then
6606   cat >>confdefs.h <<_ACEOF
6607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6608 _ACEOF
6609  pkg_use_nbcompat_vis=no
6610 else
6611   pkg_use_nbcompat_vis=yes; break
6612 fi
6613 done
6614
6615
6616         else
6617
6618                 :
6619         fi
6620
6621
6622 fi
6623
6624 done
6625
6626
6627 if test $pkg_use_nbcompat_vis = yes; then
6628         cat >>confdefs.h <<\_ACEOF
6629 #define HAVE_NBCOMPAT_VIS 1
6630 _ACEOF
6631
6632
6633
6634         case " $LIBOBJS " in
6635   *" vis.$ac_objext "* ) ;;
6636   *) LIBOBJS="$LIBOBJS vis.$ac_objext"
6637  ;;
6638 esac
6639
6640         case " $LIBOBJS " in
6641   *" unvis.$ac_objext "* ) ;;
6642   *) LIBOBJS="$LIBOBJS unvis.$ac_objext"
6643  ;;
6644 esac
6645
6646 fi
6647
6648
6649 { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
6650 $as_echo_n "checking for __attribute__... " >&6; }
6651 if test "${ac_cv___attribute__+set}" = set; then
6652   $as_echo_n "(cached) " >&6
6653 else
6654
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h.  */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h.  */
6661 #include <stdlib.h>
6662 static void foo(void) __attribute__ ((noreturn));
6663
6664 static void
6665 foo(void)
6666 {
6667   exit(1);
6668 }
6669
6670 _ACEOF
6671 rm -f conftest.$ac_objext
6672 if { (ac_try="$ac_compile"
6673 case "(($ac_try" in
6674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675   *) ac_try_echo=$ac_try;;
6676 esac
6677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6678 $as_echo "$ac_try_echo") >&5
6679   (eval "$ac_compile") 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } && {
6686          test -z "$ac_c_werror_flag" ||
6687          test ! -s conftest.err
6688        } && test -s conftest.$ac_objext; then
6689   ac_cv___attribute__=yes
6690 else
6691   $as_echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694         ac_cv___attribute__=no
6695 fi
6696
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 fi
6699
6700 if test "$ac_cv___attribute__" = "yes"; then
6701
6702 cat >>confdefs.h <<\_ACEOF
6703 #define HAVE___ATTRIBUTE__ 1
6704 _ACEOF
6705
6706 fi
6707 { $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
6708 $as_echo "$ac_cv___attribute__" >&6; }
6709
6710 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6711 $as_echo_n "checking for size_t... " >&6; }
6712 if test "${ac_cv_type_size_t+set}" = set; then
6713   $as_echo_n "(cached) " >&6
6714 else
6715   ac_cv_type_size_t=no
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h.  */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h.  */
6722 $ac_includes_default
6723 int
6724 main ()
6725 {
6726 if (sizeof (size_t))
6727        return 0;
6728   ;
6729   return 0;
6730 }
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (ac_try="$ac_compile"
6734 case "(($ac_try" in
6735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736   *) ac_try_echo=$ac_try;;
6737 esac
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740   (eval "$ac_compile") 2>conftest.er1
6741   ac_status=$?
6742   grep -v '^ *+' conftest.er1 >conftest.err
6743   rm -f conftest.er1
6744   cat conftest.err >&5
6745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } && {
6747          test -z "$ac_c_werror_flag" ||
6748          test ! -s conftest.err
6749        } && test -s conftest.$ac_objext; then
6750   cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h.  */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h.  */
6756 $ac_includes_default
6757 int
6758 main ()
6759 {
6760 if (sizeof ((size_t)))
6761           return 0;
6762   ;
6763   return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6768 case "(($ac_try" in
6769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770   *) ac_try_echo=$ac_try;;
6771 esac
6772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6773 $as_echo "$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   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); } && {
6781          test -z "$ac_c_werror_flag" ||
6782          test ! -s conftest.err
6783        } && test -s conftest.$ac_objext; then
6784   :
6785 else
6786   $as_echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789         ac_cv_type_size_t=yes
6790 fi
6791
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 else
6794   $as_echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797
6798 fi
6799
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 fi
6802 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6803 $as_echo "$ac_cv_type_size_t" >&6; }
6804 if test "x$ac_cv_type_size_t" = x""yes; then
6805   :
6806 else
6807
6808 cat >>confdefs.h <<_ACEOF
6809 #define size_t unsigned int
6810 _ACEOF
6811
6812 fi
6813
6814
6815   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
6816 $as_echo_n "checking for uintptr_t... " >&6; }
6817 if test "${ac_cv_type_uintptr_t+set}" = set; then
6818   $as_echo_n "(cached) " >&6
6819 else
6820   ac_cv_type_uintptr_t=no
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h.  */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h.  */
6827 $ac_includes_default
6828 int
6829 main ()
6830 {
6831 if (sizeof (uintptr_t))
6832        return 0;
6833   ;
6834   return 0;
6835 }
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6839 case "(($ac_try" in
6840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841   *) ac_try_echo=$ac_try;;
6842 esac
6843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6844 $as_echo "$ac_try_echo") >&5
6845   (eval "$ac_compile") 2>conftest.er1
6846   ac_status=$?
6847   grep -v '^ *+' conftest.er1 >conftest.err
6848   rm -f conftest.er1
6849   cat conftest.err >&5
6850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); } && {
6852          test -z "$ac_c_werror_flag" ||
6853          test ! -s conftest.err
6854        } && test -s conftest.$ac_objext; then
6855   cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861 $ac_includes_default
6862 int
6863 main ()
6864 {
6865 if (sizeof ((uintptr_t)))
6866           return 0;
6867   ;
6868   return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6873 case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879   (eval "$ac_compile") 2>conftest.er1
6880   ac_status=$?
6881   grep -v '^ *+' conftest.er1 >conftest.err
6882   rm -f conftest.er1
6883   cat conftest.err >&5
6884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); } && {
6886          test -z "$ac_c_werror_flag" ||
6887          test ! -s conftest.err
6888        } && test -s conftest.$ac_objext; then
6889   :
6890 else
6891   $as_echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6893
6894         ac_cv_type_uintptr_t=yes
6895 fi
6896
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898 else
6899   $as_echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902
6903 fi
6904
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6908 $as_echo "$ac_cv_type_uintptr_t" >&6; }
6909 if test "x$ac_cv_type_uintptr_t" = x""yes; then
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_UINTPTR_T 1
6913 _ACEOF
6914
6915 else
6916   for ac_type in 'unsigned int' 'unsigned long int' \
6917         'unsigned long long int'; do
6918        cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924 $ac_includes_default
6925 int
6926 main ()
6927 {
6928 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6929 test_array [0] = 0
6930
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (ac_try="$ac_compile"
6937 case "(($ac_try" in
6938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939   *) ac_try_echo=$ac_try;;
6940 esac
6941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6942 $as_echo "$ac_try_echo") >&5
6943   (eval "$ac_compile") 2>conftest.er1
6944   ac_status=$?
6945   grep -v '^ *+' conftest.er1 >conftest.err
6946   rm -f conftest.er1
6947   cat conftest.err >&5
6948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } && {
6950          test -z "$ac_c_werror_flag" ||
6951          test ! -s conftest.err
6952        } && test -s conftest.$ac_objext; then
6953
6954 cat >>confdefs.h <<_ACEOF
6955 #define uintptr_t $ac_type
6956 _ACEOF
6957
6958           ac_type=
6959 else
6960   $as_echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963
6964 fi
6965
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967        test -z "$ac_type" && break
6968      done
6969 fi
6970
6971
6972
6973   { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6974 $as_echo_n "checking for int8_t... " >&6; }
6975 if test "${ac_cv_c_int8_t+set}" = set; then
6976   $as_echo_n "(cached) " >&6
6977 else
6978   ac_cv_c_int8_t=no
6979      for ac_type in 'int8_t' 'int' 'long int' \
6980          'long long int' 'short int' 'signed char'; do
6981        cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987 $ac_includes_default
6988 int
6989 main ()
6990 {
6991 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6992 test_array [0] = 0
6993
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7000 case "(($ac_try" in
7001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002   *) ac_try_echo=$ac_try;;
7003 esac
7004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7005 $as_echo "$ac_try_echo") >&5
7006   (eval "$ac_compile") 2>conftest.er1
7007   ac_status=$?
7008   grep -v '^ *+' conftest.er1 >conftest.err
7009   rm -f conftest.er1
7010   cat conftest.err >&5
7011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } && {
7013          test -z "$ac_c_werror_flag" ||
7014          test ! -s conftest.err
7015        } && test -s conftest.$ac_objext; then
7016   cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h.  */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h.  */
7022 $ac_includes_default
7023 int
7024 main ()
7025 {
7026 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
7027                  < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
7028 test_array [0] = 0
7029
7030   ;
7031   return 0;
7032 }
7033 _ACEOF
7034 rm -f conftest.$ac_objext
7035 if { (ac_try="$ac_compile"
7036 case "(($ac_try" in
7037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038   *) ac_try_echo=$ac_try;;
7039 esac
7040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7041 $as_echo "$ac_try_echo") >&5
7042   (eval "$ac_compile") 2>conftest.er1
7043   ac_status=$?
7044   grep -v '^ *+' conftest.er1 >conftest.err
7045   rm -f conftest.er1
7046   cat conftest.err >&5
7047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } && {
7049          test -z "$ac_c_werror_flag" ||
7050          test ! -s conftest.err
7051        } && test -s conftest.$ac_objext; then
7052   :
7053 else
7054   $as_echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7056
7057         case $ac_type in
7058   int8_t) ac_cv_c_int8_t=yes ;;
7059   *) ac_cv_c_int8_t=$ac_type ;;
7060 esac
7061
7062 fi
7063
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 else
7066   $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069
7070 fi
7071
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073        test "$ac_cv_c_int8_t" != no && break
7074      done
7075 fi
7076 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
7077 $as_echo "$ac_cv_c_int8_t" >&6; }
7078   case $ac_cv_c_int8_t in #(
7079   no|yes) ;; #(
7080   *)
7081
7082 cat >>confdefs.h <<_ACEOF
7083 #define int8_t $ac_cv_c_int8_t
7084 _ACEOF
7085 ;;
7086   esac
7087
7088
7089   { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
7090 $as_echo_n "checking for int16_t... " >&6; }
7091 if test "${ac_cv_c_int16_t+set}" = set; then
7092   $as_echo_n "(cached) " >&6
7093 else
7094   ac_cv_c_int16_t=no
7095      for ac_type in 'int16_t' 'int' 'long int' \
7096          'long long int' 'short int' 'signed char'; do
7097        cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h.  */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h.  */
7103 $ac_includes_default
7104 int
7105 main ()
7106 {
7107 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7108 test_array [0] = 0
7109
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7116 case "(($ac_try" in
7117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118   *) ac_try_echo=$ac_try;;
7119 esac
7120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7121 $as_echo "$ac_try_echo") >&5
7122   (eval "$ac_compile") 2>conftest.er1
7123   ac_status=$?
7124   grep -v '^ *+' conftest.er1 >conftest.err
7125   rm -f conftest.er1
7126   cat conftest.err >&5
7127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } && {
7129          test -z "$ac_c_werror_flag" ||
7130          test ! -s conftest.err
7131        } && test -s conftest.$ac_objext; then
7132   cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h.  */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h.  */
7138 $ac_includes_default
7139 int
7140 main ()
7141 {
7142 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
7143                  < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
7144 test_array [0] = 0
7145
7146   ;
7147   return 0;
7148 }
7149 _ACEOF
7150 rm -f conftest.$ac_objext
7151 if { (ac_try="$ac_compile"
7152 case "(($ac_try" in
7153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154   *) ac_try_echo=$ac_try;;
7155 esac
7156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7157 $as_echo "$ac_try_echo") >&5
7158   (eval "$ac_compile") 2>conftest.er1
7159   ac_status=$?
7160   grep -v '^ *+' conftest.er1 >conftest.err
7161   rm -f conftest.er1
7162   cat conftest.err >&5
7163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } && {
7165          test -z "$ac_c_werror_flag" ||
7166          test ! -s conftest.err
7167        } && test -s conftest.$ac_objext; then
7168   :
7169 else
7170   $as_echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173         case $ac_type in
7174   int16_t) ac_cv_c_int16_t=yes ;;
7175   *) ac_cv_c_int16_t=$ac_type ;;
7176 esac
7177
7178 fi
7179
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 else
7182   $as_echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185
7186 fi
7187
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189        test "$ac_cv_c_int16_t" != no && break
7190      done
7191 fi
7192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7193 $as_echo "$ac_cv_c_int16_t" >&6; }
7194   case $ac_cv_c_int16_t in #(
7195   no|yes) ;; #(
7196   *)
7197
7198 cat >>confdefs.h <<_ACEOF
7199 #define int16_t $ac_cv_c_int16_t
7200 _ACEOF
7201 ;;
7202   esac
7203
7204
7205   { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7206 $as_echo_n "checking for int32_t... " >&6; }
7207 if test "${ac_cv_c_int32_t+set}" = set; then
7208   $as_echo_n "(cached) " >&6
7209 else
7210   ac_cv_c_int32_t=no
7211      for ac_type in 'int32_t' 'int' 'long int' \
7212          'long long int' 'short int' 'signed char'; do
7213        cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h.  */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h.  */
7219 $ac_includes_default
7220 int
7221 main ()
7222 {
7223 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7224 test_array [0] = 0
7225
7226   ;
7227   return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7232 case "(($ac_try" in
7233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234   *) ac_try_echo=$ac_try;;
7235 esac
7236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7237 $as_echo "$ac_try_echo") >&5
7238   (eval "$ac_compile") 2>conftest.er1
7239   ac_status=$?
7240   grep -v '^ *+' conftest.er1 >conftest.err
7241   rm -f conftest.er1
7242   cat conftest.err >&5
7243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); } && {
7245          test -z "$ac_c_werror_flag" ||
7246          test ! -s conftest.err
7247        } && test -s conftest.$ac_objext; then
7248   cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h.  */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h.  */
7254 $ac_includes_default
7255 int
7256 main ()
7257 {
7258 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7259                  < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7260 test_array [0] = 0
7261
7262   ;
7263   return 0;
7264 }
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7268 case "(($ac_try" in
7269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270   *) ac_try_echo=$ac_try;;
7271 esac
7272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7273 $as_echo "$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   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); } && {
7281          test -z "$ac_c_werror_flag" ||
7282          test ! -s conftest.err
7283        } && test -s conftest.$ac_objext; then
7284   :
7285 else
7286   $as_echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289         case $ac_type in
7290   int32_t) ac_cv_c_int32_t=yes ;;
7291   *) ac_cv_c_int32_t=$ac_type ;;
7292 esac
7293
7294 fi
7295
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 else
7298   $as_echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301
7302 fi
7303
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305        test "$ac_cv_c_int32_t" != no && break
7306      done
7307 fi
7308 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7309 $as_echo "$ac_cv_c_int32_t" >&6; }
7310   case $ac_cv_c_int32_t in #(
7311   no|yes) ;; #(
7312   *)
7313
7314 cat >>confdefs.h <<_ACEOF
7315 #define int32_t $ac_cv_c_int32_t
7316 _ACEOF
7317 ;;
7318   esac
7319
7320
7321   { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7322 $as_echo_n "checking for int64_t... " >&6; }
7323 if test "${ac_cv_c_int64_t+set}" = set; then
7324   $as_echo_n "(cached) " >&6
7325 else
7326   ac_cv_c_int64_t=no
7327      for ac_type in 'int64_t' 'int' 'long int' \
7328          'long long int' 'short int' 'signed char'; do
7329        cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 $ac_includes_default
7336 int
7337 main ()
7338 {
7339 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7340 test_array [0] = 0
7341
7342   ;
7343   return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7348 case "(($ac_try" in
7349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350   *) ac_try_echo=$ac_try;;
7351 esac
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354   (eval "$ac_compile") 2>conftest.er1
7355   ac_status=$?
7356   grep -v '^ *+' conftest.er1 >conftest.err
7357   rm -f conftest.er1
7358   cat conftest.err >&5
7359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); } && {
7361          test -z "$ac_c_werror_flag" ||
7362          test ! -s conftest.err
7363        } && test -s conftest.$ac_objext; then
7364   cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h.  */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h.  */
7370 $ac_includes_default
7371 int
7372 main ()
7373 {
7374 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7375                  < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7376 test_array [0] = 0
7377
7378   ;
7379   return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7384 case "(($ac_try" in
7385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386   *) ac_try_echo=$ac_try;;
7387 esac
7388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7389 $as_echo "$ac_try_echo") >&5
7390   (eval "$ac_compile") 2>conftest.er1
7391   ac_status=$?
7392   grep -v '^ *+' conftest.er1 >conftest.err
7393   rm -f conftest.er1
7394   cat conftest.err >&5
7395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } && {
7397          test -z "$ac_c_werror_flag" ||
7398          test ! -s conftest.err
7399        } && test -s conftest.$ac_objext; then
7400   :
7401 else
7402   $as_echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405         case $ac_type in
7406   int64_t) ac_cv_c_int64_t=yes ;;
7407   *) ac_cv_c_int64_t=$ac_type ;;
7408 esac
7409
7410 fi
7411
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 else
7414   $as_echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421        test "$ac_cv_c_int64_t" != no && break
7422      done
7423 fi
7424 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7425 $as_echo "$ac_cv_c_int64_t" >&6; }
7426   case $ac_cv_c_int64_t in #(
7427   no|yes) ;; #(
7428   *)
7429
7430 cat >>confdefs.h <<_ACEOF
7431 #define int64_t $ac_cv_c_int64_t
7432 _ACEOF
7433 ;;
7434   esac
7435
7436
7437   { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7438 $as_echo_n "checking for uint8_t... " >&6; }
7439 if test "${ac_cv_c_uint8_t+set}" = set; then
7440   $as_echo_n "(cached) " >&6
7441 else
7442   ac_cv_c_uint8_t=no
7443      for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7444          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7445        cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h.  */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h.  */
7451 $ac_includes_default
7452 int
7453 main ()
7454 {
7455 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7456 test_array [0] = 0
7457
7458   ;
7459   return 0;
7460 }
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7464 case "(($ac_try" in
7465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466   *) ac_try_echo=$ac_try;;
7467 esac
7468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7469 $as_echo "$ac_try_echo") >&5
7470   (eval "$ac_compile") 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } && {
7477          test -z "$ac_c_werror_flag" ||
7478          test ! -s conftest.err
7479        } && test -s conftest.$ac_objext; then
7480   case $ac_type in
7481   uint8_t) ac_cv_c_uint8_t=yes ;;
7482   *) ac_cv_c_uint8_t=$ac_type ;;
7483 esac
7484
7485 else
7486   $as_echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7488
7489
7490 fi
7491
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493        test "$ac_cv_c_uint8_t" != no && break
7494      done
7495 fi
7496 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7497 $as_echo "$ac_cv_c_uint8_t" >&6; }
7498   case $ac_cv_c_uint8_t in #(
7499   no|yes) ;; #(
7500   *)
7501
7502 cat >>confdefs.h <<\_ACEOF
7503 #define _UINT8_T 1
7504 _ACEOF
7505
7506
7507 cat >>confdefs.h <<_ACEOF
7508 #define uint8_t $ac_cv_c_uint8_t
7509 _ACEOF
7510 ;;
7511   esac
7512
7513
7514   { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7515 $as_echo_n "checking for uint16_t... " >&6; }
7516 if test "${ac_cv_c_uint16_t+set}" = set; then
7517   $as_echo_n "(cached) " >&6
7518 else
7519   ac_cv_c_uint16_t=no
7520      for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7521          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7522        cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h.  */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h.  */
7528 $ac_includes_default
7529 int
7530 main ()
7531 {
7532 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7533 test_array [0] = 0
7534
7535   ;
7536   return 0;
7537 }
7538 _ACEOF
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7541 case "(($ac_try" in
7542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543   *) ac_try_echo=$ac_try;;
7544 esac
7545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7546 $as_echo "$ac_try_echo") >&5
7547   (eval "$ac_compile") 2>conftest.er1
7548   ac_status=$?
7549   grep -v '^ *+' conftest.er1 >conftest.err
7550   rm -f conftest.er1
7551   cat conftest.err >&5
7552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } && {
7554          test -z "$ac_c_werror_flag" ||
7555          test ! -s conftest.err
7556        } && test -s conftest.$ac_objext; then
7557   case $ac_type in
7558   uint16_t) ac_cv_c_uint16_t=yes ;;
7559   *) ac_cv_c_uint16_t=$ac_type ;;
7560 esac
7561
7562 else
7563   $as_echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566
7567 fi
7568
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570        test "$ac_cv_c_uint16_t" != no && break
7571      done
7572 fi
7573 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7574 $as_echo "$ac_cv_c_uint16_t" >&6; }
7575   case $ac_cv_c_uint16_t in #(
7576   no|yes) ;; #(
7577   *)
7578
7579
7580 cat >>confdefs.h <<_ACEOF
7581 #define uint16_t $ac_cv_c_uint16_t
7582 _ACEOF
7583 ;;
7584   esac
7585
7586
7587   { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7588 $as_echo_n "checking for uint32_t... " >&6; }
7589 if test "${ac_cv_c_uint32_t+set}" = set; then
7590   $as_echo_n "(cached) " >&6
7591 else
7592   ac_cv_c_uint32_t=no
7593      for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7594          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7595        cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h.  */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h.  */
7601 $ac_includes_default
7602 int
7603 main ()
7604 {
7605 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7606 test_array [0] = 0
7607
7608   ;
7609   return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext
7613 if { (ac_try="$ac_compile"
7614 case "(($ac_try" in
7615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616   *) ac_try_echo=$ac_try;;
7617 esac
7618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7619 $as_echo "$ac_try_echo") >&5
7620   (eval "$ac_compile") 2>conftest.er1
7621   ac_status=$?
7622   grep -v '^ *+' conftest.er1 >conftest.err
7623   rm -f conftest.er1
7624   cat conftest.err >&5
7625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); } && {
7627          test -z "$ac_c_werror_flag" ||
7628          test ! -s conftest.err
7629        } && test -s conftest.$ac_objext; then
7630   case $ac_type in
7631   uint32_t) ac_cv_c_uint32_t=yes ;;
7632   *) ac_cv_c_uint32_t=$ac_type ;;
7633 esac
7634
7635 else
7636   $as_echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7638
7639
7640 fi
7641
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643        test "$ac_cv_c_uint32_t" != no && break
7644      done
7645 fi
7646 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7647 $as_echo "$ac_cv_c_uint32_t" >&6; }
7648   case $ac_cv_c_uint32_t in #(
7649   no|yes) ;; #(
7650   *)
7651
7652 cat >>confdefs.h <<\_ACEOF
7653 #define _UINT32_T 1
7654 _ACEOF
7655
7656
7657 cat >>confdefs.h <<_ACEOF
7658 #define uint32_t $ac_cv_c_uint32_t
7659 _ACEOF
7660 ;;
7661   esac
7662
7663
7664   { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7665 $as_echo_n "checking for uint64_t... " >&6; }
7666 if test "${ac_cv_c_uint64_t+set}" = set; then
7667   $as_echo_n "(cached) " >&6
7668 else
7669   ac_cv_c_uint64_t=no
7670      for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7671          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7672        cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 $ac_includes_default
7679 int
7680 main ()
7681 {
7682 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7683 test_array [0] = 0
7684
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7691 case "(($ac_try" in
7692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693   *) ac_try_echo=$ac_try;;
7694 esac
7695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7696 $as_echo "$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   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); } && {
7704          test -z "$ac_c_werror_flag" ||
7705          test ! -s conftest.err
7706        } && test -s conftest.$ac_objext; then
7707   case $ac_type in
7708   uint64_t) ac_cv_c_uint64_t=yes ;;
7709   *) ac_cv_c_uint64_t=$ac_type ;;
7710 esac
7711
7712 else
7713   $as_echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716
7717 fi
7718
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720        test "$ac_cv_c_uint64_t" != no && break
7721      done
7722 fi
7723 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7724 $as_echo "$ac_cv_c_uint64_t" >&6; }
7725   case $ac_cv_c_uint64_t in #(
7726   no|yes) ;; #(
7727   *)
7728
7729 cat >>confdefs.h <<\_ACEOF
7730 #define _UINT64_T 1
7731 _ACEOF
7732
7733
7734 cat >>confdefs.h <<_ACEOF
7735 #define uint64_t $ac_cv_c_uint64_t
7736 _ACEOF
7737 ;;
7738   esac
7739
7740 { $as_echo "$as_me:$LINENO: checking for long long" >&5
7741 $as_echo_n "checking for long long... " >&6; }
7742 if test "${ac_cv_type_long_long+set}" = set; then
7743   $as_echo_n "(cached) " >&6
7744 else
7745   ac_cv_type_long_long=no
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h.  */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h.  */
7752 #if STDC_HEADERS
7753 #include <stdlib.h>
7754 #include <stddef.h>
7755 #endif
7756 #if HAVE_INTTYPES_H
7757 #include <inttypes.h>
7758 #endif
7759 #if HAVE_SYS_TYPES_H
7760 #include <sys/types.h>
7761 #endif
7762 #if HAVE_SYS_BITYPES_H
7763 #include <sys/bitypes.h>
7764 #endif
7765
7766 int
7767 main ()
7768 {
7769 if (sizeof (long long))
7770        return 0;
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 rm -f conftest.$ac_objext
7776 if { (ac_try="$ac_compile"
7777 case "(($ac_try" in
7778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779   *) ac_try_echo=$ac_try;;
7780 esac
7781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7782 $as_echo "$ac_try_echo") >&5
7783   (eval "$ac_compile") 2>conftest.er1
7784   ac_status=$?
7785   grep -v '^ *+' conftest.er1 >conftest.err
7786   rm -f conftest.er1
7787   cat conftest.err >&5
7788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); } && {
7790          test -z "$ac_c_werror_flag" ||
7791          test ! -s conftest.err
7792        } && test -s conftest.$ac_objext; then
7793   cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799 #if STDC_HEADERS
7800 #include <stdlib.h>
7801 #include <stddef.h>
7802 #endif
7803 #if HAVE_INTTYPES_H
7804 #include <inttypes.h>
7805 #endif
7806 #if HAVE_SYS_TYPES_H
7807 #include <sys/types.h>
7808 #endif
7809 #if HAVE_SYS_BITYPES_H
7810 #include <sys/bitypes.h>
7811 #endif
7812
7813 int
7814 main ()
7815 {
7816 if (sizeof ((long long)))
7817           return 0;
7818   ;
7819   return 0;
7820 }
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (ac_try="$ac_compile"
7824 case "(($ac_try" in
7825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826   *) ac_try_echo=$ac_try;;
7827 esac
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830   (eval "$ac_compile") 2>conftest.er1
7831   ac_status=$?
7832   grep -v '^ *+' conftest.er1 >conftest.err
7833   rm -f conftest.er1
7834   cat conftest.err >&5
7835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } && {
7837          test -z "$ac_c_werror_flag" ||
7838          test ! -s conftest.err
7839        } && test -s conftest.$ac_objext; then
7840   :
7841 else
7842   $as_echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845         ac_cv_type_long_long=yes
7846 fi
7847
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 else
7850   $as_echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853
7854 fi
7855
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 fi
7858 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7859 $as_echo "$ac_cv_type_long_long" >&6; }
7860 if test "x$ac_cv_type_long_long" = x""yes; then
7861
7862 cat >>confdefs.h <<_ACEOF
7863 #define HAVE_LONG_LONG 1
7864 _ACEOF
7865
7866
7867 fi
7868 { $as_echo "$as_me:$LINENO: checking for long double" >&5
7869 $as_echo_n "checking for long double... " >&6; }
7870 if test "${ac_cv_type_long_double+set}" = set; then
7871   $as_echo_n "(cached) " >&6
7872 else
7873   ac_cv_type_long_double=no
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 #if STDC_HEADERS
7881 #include <stdlib.h>
7882 #include <stddef.h>
7883 #endif
7884 #if HAVE_INTTYPES_H
7885 #include <inttypes.h>
7886 #endif
7887 #if HAVE_SYS_TYPES_H
7888 #include <sys/types.h>
7889 #endif
7890 #if HAVE_SYS_BITYPES_H
7891 #include <sys/bitypes.h>
7892 #endif
7893
7894 int
7895 main ()
7896 {
7897 if (sizeof (long double))
7898        return 0;
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7905 case "(($ac_try" in
7906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907   *) ac_try_echo=$ac_try;;
7908 esac
7909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7910 $as_echo "$ac_try_echo") >&5
7911   (eval "$ac_compile") 2>conftest.er1
7912   ac_status=$?
7913   grep -v '^ *+' conftest.er1 >conftest.err
7914   rm -f conftest.er1
7915   cat conftest.err >&5
7916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } && {
7918          test -z "$ac_c_werror_flag" ||
7919          test ! -s conftest.err
7920        } && test -s conftest.$ac_objext; then
7921   cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927 #if STDC_HEADERS
7928 #include <stdlib.h>
7929 #include <stddef.h>
7930 #endif
7931 #if HAVE_INTTYPES_H
7932 #include <inttypes.h>
7933 #endif
7934 #if HAVE_SYS_TYPES_H
7935 #include <sys/types.h>
7936 #endif
7937 #if HAVE_SYS_BITYPES_H
7938 #include <sys/bitypes.h>
7939 #endif
7940
7941 int
7942 main ()
7943 {
7944 if (sizeof ((long double)))
7945           return 0;
7946   ;
7947   return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (ac_try="$ac_compile"
7952 case "(($ac_try" in
7953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954   *) ac_try_echo=$ac_try;;
7955 esac
7956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7957 $as_echo "$ac_try_echo") >&5
7958   (eval "$ac_compile") 2>conftest.er1
7959   ac_status=$?
7960   grep -v '^ *+' conftest.er1 >conftest.err
7961   rm -f conftest.er1
7962   cat conftest.err >&5
7963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); } && {
7965          test -z "$ac_c_werror_flag" ||
7966          test ! -s conftest.err
7967        } && test -s conftest.$ac_objext; then
7968   :
7969 else
7970   $as_echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973         ac_cv_type_long_double=yes
7974 fi
7975
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 else
7978   $as_echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981
7982 fi
7983
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 fi
7986 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7987 $as_echo "$ac_cv_type_long_double" >&6; }
7988 if test "x$ac_cv_type_long_double" = x""yes; then
7989
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_LONG_DOUBLE 1
7992 _ACEOF
7993
7994
7995 fi
7996
7997 { $as_echo "$as_me:$LINENO: checking for fsid_t" >&5
7998 $as_echo_n "checking for fsid_t... " >&6; }
7999 if test "${ac_cv_type_fsid_t+set}" = set; then
8000   $as_echo_n "(cached) " >&6
8001 else
8002   ac_cv_type_fsid_t=no
8003 cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009 #if HAVE_SYS_TYPES_H
8010 #include <sys/types.h>
8011 #endif
8012 #if HAVE_SYS_PARAM_H
8013 #include <sys/param.h>
8014 #endif
8015 #if HAVE_SYS_MOUNT_H
8016 #include <sys/mount.h>
8017 #endif
8018 #if HAVE_SYS_VFS_H
8019 #include <sys/vfs.h>
8020 #endif
8021
8022 int
8023 main ()
8024 {
8025 if (sizeof (fsid_t))
8026        return 0;
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039   (eval "$ac_compile") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && {
8046          test -z "$ac_c_werror_flag" ||
8047          test ! -s conftest.err
8048        } && test -s conftest.$ac_objext; then
8049   cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055 #if HAVE_SYS_TYPES_H
8056 #include <sys/types.h>
8057 #endif
8058 #if HAVE_SYS_PARAM_H
8059 #include <sys/param.h>
8060 #endif
8061 #if HAVE_SYS_MOUNT_H
8062 #include <sys/mount.h>
8063 #endif
8064 #if HAVE_SYS_VFS_H
8065 #include <sys/vfs.h>
8066 #endif
8067
8068 int
8069 main ()
8070 {
8071 if (sizeof ((fsid_t)))
8072           return 0;
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8079 case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085   (eval "$ac_compile") 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } && {
8092          test -z "$ac_c_werror_flag" ||
8093          test ! -s conftest.err
8094        } && test -s conftest.$ac_objext; then
8095   :
8096 else
8097   $as_echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100         ac_cv_type_fsid_t=yes
8101 fi
8102
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 else
8105   $as_echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8107
8108
8109 fi
8110
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 fi
8113 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_fsid_t" >&5
8114 $as_echo "$ac_cv_type_fsid_t" >&6; }
8115 if test "x$ac_cv_type_fsid_t" = x""yes; then
8116
8117 cat >>confdefs.h <<_ACEOF
8118 #define HAVE_FSID_T 1
8119 _ACEOF
8120
8121
8122 fi
8123
8124
8125  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8126 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8127 if test "${ac_cv_c_bigendian+set}" = set; then
8128   $as_echo_n "(cached) " >&6
8129 else
8130   ac_cv_c_bigendian=unknown
8131     # See if we're dealing with a universal compiler.
8132     cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h.  */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h.  */
8138 #ifndef __APPLE_CC__
8139                not a universal capable compiler
8140              #endif
8141              typedef int dummy;
8142
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8146 case "(($ac_try" in
8147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148   *) ac_try_echo=$ac_try;;
8149 esac
8150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8151 $as_echo "$ac_try_echo") >&5
8152   (eval "$ac_compile") 2>conftest.er1
8153   ac_status=$?
8154   grep -v '^ *+' conftest.er1 >conftest.err
8155   rm -f conftest.er1
8156   cat conftest.err >&5
8157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); } && {
8159          test -z "$ac_c_werror_flag" ||
8160          test ! -s conftest.err
8161        } && test -s conftest.$ac_objext; then
8162
8163         # Check for potential -arch flags.  It is not universal unless
8164         # there are some -arch flags.  Note that *ppc* also matches
8165         # ppc64.  This check is also rather less than ideal.
8166         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
8167           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
8168         esac
8169 else
8170   $as_echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173
8174 fi
8175
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177     if test $ac_cv_c_bigendian = unknown; then
8178       # See if sys/param.h defines the BYTE_ORDER macro.
8179       cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 #include <sys/types.h>
8186              #include <sys/param.h>
8187
8188 int
8189 main ()
8190 {
8191 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8192                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8193                      && LITTLE_ENDIAN)
8194               bogus endian macros
8195              #endif
8196
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext
8202 if { (ac_try="$ac_compile"
8203 case "(($ac_try" in
8204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205   *) ac_try_echo=$ac_try;;
8206 esac
8207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8208 $as_echo "$ac_try_echo") >&5
8209   (eval "$ac_compile") 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } && {
8216          test -z "$ac_c_werror_flag" ||
8217          test ! -s conftest.err
8218        } && test -s conftest.$ac_objext; then
8219   # It does; now see whether it defined to BIG_ENDIAN or not.
8220          cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226 #include <sys/types.h>
8227                 #include <sys/param.h>
8228
8229 int
8230 main ()
8231 {
8232 #if BYTE_ORDER != BIG_ENDIAN
8233                  not big endian
8234                 #endif
8235
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8247 $as_echo "$ac_try_echo") >&5
8248   (eval "$ac_compile") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } && {
8255          test -z "$ac_c_werror_flag" ||
8256          test ! -s conftest.err
8257        } && test -s conftest.$ac_objext; then
8258   ac_cv_c_bigendian=yes
8259 else
8260   $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263         ac_cv_c_bigendian=no
8264 fi
8265
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 else
8268   $as_echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271
8272 fi
8273
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275     fi
8276     if test $ac_cv_c_bigendian = unknown; then
8277       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8278       cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284 #include <limits.h>
8285
8286 int
8287 main ()
8288 {
8289 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8290               bogus endian macros
8291              #endif
8292
8293   ;
8294   return 0;
8295 }
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8299 case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8304 $as_echo "$ac_try_echo") >&5
8305   (eval "$ac_compile") 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } && {
8312          test -z "$ac_c_werror_flag" ||
8313          test ! -s conftest.err
8314        } && test -s conftest.$ac_objext; then
8315   # It does; now see whether it defined to _BIG_ENDIAN or not.
8316          cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 #include <limits.h>
8323
8324 int
8325 main ()
8326 {
8327 #ifndef _BIG_ENDIAN
8328                  not big endian
8329                 #endif
8330
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8337 case "(($ac_try" in
8338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339   *) ac_try_echo=$ac_try;;
8340 esac
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343   (eval "$ac_compile") 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } && {
8350          test -z "$ac_c_werror_flag" ||
8351          test ! -s conftest.err
8352        } && test -s conftest.$ac_objext; then
8353   ac_cv_c_bigendian=yes
8354 else
8355   $as_echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358         ac_cv_c_bigendian=no
8359 fi
8360
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 else
8363   $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366
8367 fi
8368
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370     fi
8371     if test $ac_cv_c_bigendian = unknown; then
8372       # Compile a test program.
8373       if test "$cross_compiling" = yes; then
8374   # Try to guess by grepping values from an object file.
8375          cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h.  */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h.  */
8381 short int ascii_mm[] =
8382                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8383                 short int ascii_ii[] =
8384                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8385                 int use_ascii (int i) {
8386                   return ascii_mm[i] + ascii_ii[i];
8387                 }
8388                 short int ebcdic_ii[] =
8389                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8390                 short int ebcdic_mm[] =
8391                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8392                 int use_ebcdic (int i) {
8393                   return ebcdic_mm[i] + ebcdic_ii[i];
8394                 }
8395                 extern int foo;
8396
8397 int
8398 main ()
8399 {
8400 return use_ascii (foo) == use_ebcdic (foo);
8401   ;
8402   return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (ac_try="$ac_compile"
8407 case "(($ac_try" in
8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409   *) ac_try_echo=$ac_try;;
8410 esac
8411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8412 $as_echo "$ac_try_echo") >&5
8413   (eval "$ac_compile") 2>conftest.er1
8414   ac_status=$?
8415   grep -v '^ *+' conftest.er1 >conftest.err
8416   rm -f conftest.er1
8417   cat conftest.err >&5
8418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } && {
8420          test -z "$ac_c_werror_flag" ||
8421          test ! -s conftest.err
8422        } && test -s conftest.$ac_objext; then
8423   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8424               ac_cv_c_bigendian=yes
8425             fi
8426             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8427               if test "$ac_cv_c_bigendian" = unknown; then
8428                 ac_cv_c_bigendian=no
8429               else
8430                 # finding both strings is unlikely to happen, but who knows?
8431                 ac_cv_c_bigendian=unknown
8432               fi
8433             fi
8434 else
8435   $as_echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438
8439 fi
8440
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 else
8443   cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 $ac_includes_default
8450 int
8451 main ()
8452 {
8453
8454              /* Are we little or big endian?  From Harbison&Steele.  */
8455              union
8456              {
8457                long int l;
8458                char c[sizeof (long int)];
8459              } u;
8460              u.l = 1;
8461              return u.c[sizeof (long int) - 1] == 1;
8462
8463   ;
8464   return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8469 case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8474 $as_echo "$ac_try_echo") >&5
8475   (eval "$ac_link") 2>&5
8476   ac_status=$?
8477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8479   { (case "(($ac_try" in
8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481   *) ac_try_echo=$ac_try;;
8482 esac
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485   (eval "$ac_try") 2>&5
8486   ac_status=$?
8487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; }; then
8489   ac_cv_c_bigendian=no
8490 else
8491   $as_echo "$as_me: program exited with status $ac_status" >&5
8492 $as_echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 ( exit $ac_status )
8496 ac_cv_c_bigendian=yes
8497 fi
8498 rm -rf conftest.dSYM
8499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8500 fi
8501
8502
8503     fi
8504 fi
8505 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8506 $as_echo "$ac_cv_c_bigendian" >&6; }
8507  case $ac_cv_c_bigendian in #(
8508    yes)
8509      cat >>confdefs.h <<\_ACEOF
8510 #define WORDS_BIGENDIAN 1
8511 _ACEOF
8512 ;; #(
8513    no)
8514       ;; #(
8515    universal)
8516
8517 cat >>confdefs.h <<\_ACEOF
8518 #define AC_APPLE_UNIVERSAL_BUILD 1
8519 _ACEOF
8520
8521      ;; #(
8522    *)
8523      { { $as_echo "$as_me:$LINENO: error: unknown endianness
8524  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8525 $as_echo "$as_me: error: unknown endianness
8526  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8527    { (exit 1); exit 1; }; } ;;
8528  esac
8529
8530 # The cast to long int works around a bug in the HP C Compiler
8531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8533 # This bug is HP SR number 8606223364.
8534 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
8535 $as_echo_n "checking size of off_t... " >&6; }
8536 if test "${ac_cv_sizeof_off_t+set}" = set; then
8537   $as_echo_n "(cached) " >&6
8538 else
8539   if test "$cross_compiling" = yes; then
8540   # Depending upon the size, compute the lo and hi bounds.
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547 $ac_includes_default
8548 int
8549 main ()
8550 {
8551 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
8552 test_array [0] = 0
8553
8554   ;
8555   return 0;
8556 }
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8560 case "(($ac_try" in
8561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562   *) ac_try_echo=$ac_try;;
8563 esac
8564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565 $as_echo "$ac_try_echo") >&5
8566   (eval "$ac_compile") 2>conftest.er1
8567   ac_status=$?
8568   grep -v '^ *+' conftest.er1 >conftest.err
8569   rm -f conftest.er1
8570   cat conftest.err >&5
8571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); } && {
8573          test -z "$ac_c_werror_flag" ||
8574          test ! -s conftest.err
8575        } && test -s conftest.$ac_objext; then
8576   ac_lo=0 ac_mid=0
8577   while :; do
8578     cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584 $ac_includes_default
8585 int
8586 main ()
8587 {
8588 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8589 test_array [0] = 0
8590
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext
8596 if { (ac_try="$ac_compile"
8597 case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603   (eval "$ac_compile") 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } && {
8610          test -z "$ac_c_werror_flag" ||
8611          test ! -s conftest.err
8612        } && test -s conftest.$ac_objext; then
8613   ac_hi=$ac_mid; break
8614 else
8615   $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618         ac_lo=`expr $ac_mid + 1`
8619                         if test $ac_lo -le $ac_mid; then
8620                           ac_lo= ac_hi=
8621                           break
8622                         fi
8623                         ac_mid=`expr 2 '*' $ac_mid + 1`
8624 fi
8625
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627   done
8628 else
8629   $as_echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632         cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h.  */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h.  */
8638 $ac_includes_default
8639 int
8640 main ()
8641 {
8642 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
8643 test_array [0] = 0
8644
8645   ;
8646   return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8651 case "(($ac_try" in
8652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653   *) ac_try_echo=$ac_try;;
8654 esac
8655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656 $as_echo "$ac_try_echo") >&5
8657   (eval "$ac_compile") 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } && {
8664          test -z "$ac_c_werror_flag" ||
8665          test ! -s conftest.err
8666        } && test -s conftest.$ac_objext; then
8667   ac_hi=-1 ac_mid=-1
8668   while :; do
8669     cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675 $ac_includes_default
8676 int
8677 main ()
8678 {
8679 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
8680 test_array [0] = 0
8681
8682   ;
8683   return 0;
8684 }
8685 _ACEOF
8686 rm -f conftest.$ac_objext
8687 if { (ac_try="$ac_compile"
8688 case "(($ac_try" in
8689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690   *) ac_try_echo=$ac_try;;
8691 esac
8692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8693 $as_echo "$ac_try_echo") >&5
8694   (eval "$ac_compile") 2>conftest.er1
8695   ac_status=$?
8696   grep -v '^ *+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } && {
8701          test -z "$ac_c_werror_flag" ||
8702          test ! -s conftest.err
8703        } && test -s conftest.$ac_objext; then
8704   ac_lo=$ac_mid; break
8705 else
8706   $as_echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709         ac_hi=`expr '(' $ac_mid ')' - 1`
8710                         if test $ac_mid -le $ac_hi; then
8711                           ac_lo= ac_hi=
8712                           break
8713                         fi
8714                         ac_mid=`expr 2 '*' $ac_mid`
8715 fi
8716
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718   done
8719 else
8720   $as_echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723         ac_lo= ac_hi=
8724 fi
8725
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 fi
8728
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 # Binary search between lo and hi bounds.
8731 while test "x$ac_lo" != "x$ac_hi"; do
8732   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8733   cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739 $ac_includes_default
8740 int
8741 main ()
8742 {
8743 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8744 test_array [0] = 0
8745
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8752 case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757 $as_echo "$ac_try_echo") >&5
8758   (eval "$ac_compile") 2>conftest.er1
8759   ac_status=$?
8760   grep -v '^ *+' conftest.er1 >conftest.err
8761   rm -f conftest.er1
8762   cat conftest.err >&5
8763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } && {
8765          test -z "$ac_c_werror_flag" ||
8766          test ! -s conftest.err
8767        } && test -s conftest.$ac_objext; then
8768   ac_hi=$ac_mid
8769 else
8770   $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773         ac_lo=`expr '(' $ac_mid ')' + 1`
8774 fi
8775
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 done
8778 case $ac_lo in
8779 ?*) ac_cv_sizeof_off_t=$ac_lo;;
8780 '') if test "$ac_cv_type_off_t" = yes; then
8781      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8783 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8784 See \`config.log' for more details." >&5
8785 $as_echo "$as_me: error: cannot compute sizeof (off_t)
8786 See \`config.log' for more details." >&2;}
8787    { (exit 77); exit 77; }; }; }
8788    else
8789      ac_cv_sizeof_off_t=0
8790    fi ;;
8791 esac
8792 else
8793   cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h.  */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h.  */
8799 $ac_includes_default
8800 static long int longval () { return (long int) (sizeof (off_t)); }
8801 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
8802 #include <stdio.h>
8803 #include <stdlib.h>
8804 int
8805 main ()
8806 {
8807
8808   FILE *f = fopen ("conftest.val", "w");
8809   if (! f)
8810     return 1;
8811   if (((long int) (sizeof (off_t))) < 0)
8812     {
8813       long int i = longval ();
8814       if (i != ((long int) (sizeof (off_t))))
8815         return 1;
8816       fprintf (f, "%ld", i);
8817     }
8818   else
8819     {
8820       unsigned long int i = ulongval ();
8821       if (i != ((long int) (sizeof (off_t))))
8822         return 1;
8823       fprintf (f, "%lu", i);
8824     }
8825   /* Do not output a trailing newline, as this causes \r\n confusion
8826      on some platforms.  */
8827   return ferror (f) || fclose (f) != 0;
8828
8829   ;
8830   return 0;
8831 }
8832 _ACEOF
8833 rm -f conftest$ac_exeext
8834 if { (ac_try="$ac_link"
8835 case "(($ac_try" in
8836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837   *) ac_try_echo=$ac_try;;
8838 esac
8839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8840 $as_echo "$ac_try_echo") >&5
8841   (eval "$ac_link") 2>&5
8842   ac_status=$?
8843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8845   { (case "(($ac_try" in
8846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847   *) ac_try_echo=$ac_try;;
8848 esac
8849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850 $as_echo "$ac_try_echo") >&5
8851   (eval "$ac_try") 2>&5
8852   ac_status=$?
8853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; }; then
8855   ac_cv_sizeof_off_t=`cat conftest.val`
8856 else
8857   $as_echo "$as_me: program exited with status $ac_status" >&5
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ( exit $ac_status )
8862 if test "$ac_cv_type_off_t" = yes; then
8863      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8865 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8866 See \`config.log' for more details." >&5
8867 $as_echo "$as_me: error: cannot compute sizeof (off_t)
8868 See \`config.log' for more details." >&2;}
8869    { (exit 77); exit 77; }; }; }
8870    else
8871      ac_cv_sizeof_off_t=0
8872    fi
8873 fi
8874 rm -rf conftest.dSYM
8875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 rm -f conftest.val
8878 fi
8879 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8880 $as_echo "$ac_cv_sizeof_off_t" >&6; }
8881
8882
8883
8884 cat >>confdefs.h <<_ACEOF
8885 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8886 _ACEOF
8887
8888
8889
8890 # Checks for library functions.
8891
8892 for ac_header in stdlib.h
8893 do
8894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8896   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8897 $as_echo_n "checking for $ac_header... " >&6; }
8898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8899   $as_echo_n "(cached) " >&6
8900 fi
8901 ac_res=`eval 'as_val=${'$as_ac_Header'}
8902                  $as_echo "$as_val"'`
8903                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8904 $as_echo "$ac_res" >&6; }
8905 else
8906   # Is the header compilable?
8907 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8908 $as_echo_n "checking $ac_header usability... " >&6; }
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h.  */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h.  */
8915 $ac_includes_default
8916 #include <$ac_header>
8917 _ACEOF
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8920 case "(($ac_try" in
8921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922   *) ac_try_echo=$ac_try;;
8923 esac
8924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8925 $as_echo "$ac_try_echo") >&5
8926   (eval "$ac_compile") 2>conftest.er1
8927   ac_status=$?
8928   grep -v '^ *+' conftest.er1 >conftest.err
8929   rm -f conftest.er1
8930   cat conftest.err >&5
8931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } && {
8933          test -z "$ac_c_werror_flag" ||
8934          test ! -s conftest.err
8935        } && test -s conftest.$ac_objext; then
8936   ac_header_compiler=yes
8937 else
8938   $as_echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941         ac_header_compiler=no
8942 fi
8943
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946 $as_echo "$ac_header_compiler" >&6; }
8947
8948 # Is the header present?
8949 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950 $as_echo_n "checking $ac_header presence... " >&6; }
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 #include <$ac_header>
8958 _ACEOF
8959 if { (ac_try="$ac_cpp conftest.$ac_ext"
8960 case "(($ac_try" in
8961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962   *) ac_try_echo=$ac_try;;
8963 esac
8964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8965 $as_echo "$ac_try_echo") >&5
8966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8967   ac_status=$?
8968   grep -v '^ *+' conftest.er1 >conftest.err
8969   rm -f conftest.er1
8970   cat conftest.err >&5
8971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } >/dev/null && {
8973          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8974          test ! -s conftest.err
8975        }; then
8976   ac_header_preproc=yes
8977 else
8978   $as_echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981   ac_header_preproc=no
8982 fi
8983
8984 rm -f conftest.err conftest.$ac_ext
8985 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8986 $as_echo "$ac_header_preproc" >&6; }
8987
8988 # So?  What about this header?
8989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8990   yes:no: )
8991     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8992 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8993     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8994 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8995     ac_header_preproc=yes
8996     ;;
8997   no:yes:* )
8998     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8999 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9000     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9001 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9002     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9003 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9005 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9008     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9009 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9010     ( cat <<\_ASBOX
9011 ## ------------------------------- ##
9012 ## Report this to grant@NetBSD.org ##
9013 ## ------------------------------- ##
9014 _ASBOX
9015      ) | sed "s/^/$as_me: WARNING:     /" >&2
9016     ;;
9017 esac
9018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9019 $as_echo_n "checking for $ac_header... " >&6; }
9020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9021   $as_echo_n "(cached) " >&6
9022 else
9023   eval "$as_ac_Header=\$ac_header_preproc"
9024 fi
9025 ac_res=`eval 'as_val=${'$as_ac_Header'}
9026                  $as_echo "$as_val"'`
9027                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9028 $as_echo "$ac_res" >&6; }
9029
9030 fi
9031 as_val=`eval 'as_val=${'$as_ac_Header'}
9032                  $as_echo "$as_val"'`
9033    if test "x$as_val" = x""yes; then
9034   cat >>confdefs.h <<_ACEOF
9035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9036 _ACEOF
9037
9038 fi
9039
9040 done
9041
9042 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9043 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9044 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9045   $as_echo_n "(cached) " >&6
9046 else
9047   if test "$cross_compiling" = yes; then
9048   ac_cv_func_malloc_0_nonnull=no
9049 else
9050   cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9057 # include <stdlib.h>
9058 #else
9059 char *malloc ();
9060 #endif
9061
9062 int
9063 main ()
9064 {
9065 return ! malloc (0);
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest$ac_exeext
9071 if { (ac_try="$ac_link"
9072 case "(($ac_try" in
9073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074   *) ac_try_echo=$ac_try;;
9075 esac
9076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9077 $as_echo "$ac_try_echo") >&5
9078   (eval "$ac_link") 2>&5
9079   ac_status=$?
9080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9082   { (case "(($ac_try" in
9083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084   *) ac_try_echo=$ac_try;;
9085 esac
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088   (eval "$ac_try") 2>&5
9089   ac_status=$?
9090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); }; }; then
9092   ac_cv_func_malloc_0_nonnull=yes
9093 else
9094   $as_echo "$as_me: program exited with status $ac_status" >&5
9095 $as_echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 ( exit $ac_status )
9099 ac_cv_func_malloc_0_nonnull=no
9100 fi
9101 rm -rf conftest.dSYM
9102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9103 fi
9104
9105
9106 fi
9107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9108 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9109 if test $ac_cv_func_malloc_0_nonnull = yes; then
9110
9111 cat >>confdefs.h <<\_ACEOF
9112 #define HAVE_MALLOC 1
9113 _ACEOF
9114
9115 else
9116   cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_MALLOC 0
9118 _ACEOF
9119
9120    case " $LIBOBJS " in
9121   *" malloc.$ac_objext "* ) ;;
9122   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9123  ;;
9124 esac
9125
9126
9127 cat >>confdefs.h <<\_ACEOF
9128 #define malloc rpl_malloc
9129 _ACEOF
9130
9131 fi
9132
9133
9134
9135 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
9136 $as_echo_n "checking whether strerror_r is declared... " >&6; }
9137 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
9138   $as_echo_n "(cached) " >&6
9139 else
9140   cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h.  */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h.  */
9146 $ac_includes_default
9147 int
9148 main ()
9149 {
9150 #ifndef strerror_r
9151   (void) strerror_r;
9152 #endif
9153
9154   ;
9155   return 0;
9156 }
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (ac_try="$ac_compile"
9160 case "(($ac_try" in
9161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162   *) ac_try_echo=$ac_try;;
9163 esac
9164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9165 $as_echo "$ac_try_echo") >&5
9166   (eval "$ac_compile") 2>conftest.er1
9167   ac_status=$?
9168   grep -v '^ *+' conftest.er1 >conftest.err
9169   rm -f conftest.er1
9170   cat conftest.err >&5
9171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); } && {
9173          test -z "$ac_c_werror_flag" ||
9174          test ! -s conftest.err
9175        } && test -s conftest.$ac_objext; then
9176   ac_cv_have_decl_strerror_r=yes
9177 else
9178   $as_echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181         ac_cv_have_decl_strerror_r=no
9182 fi
9183
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 fi
9186 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
9187 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
9188 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
9189
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_DECL_STRERROR_R 1
9192 _ACEOF
9193
9194
9195 else
9196   cat >>confdefs.h <<_ACEOF
9197 #define HAVE_DECL_STRERROR_R 0
9198 _ACEOF
9199
9200
9201 fi
9202
9203
9204
9205 for ac_func in strerror_r
9206 do
9207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9208 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9209 $as_echo_n "checking for $ac_func... " >&6; }
9210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9211   $as_echo_n "(cached) " >&6
9212 else
9213   cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h.  */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h.  */
9219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9221 #define $ac_func innocuous_$ac_func
9222
9223 /* System header to define __stub macros and hopefully few prototypes,
9224     which can conflict with char $ac_func (); below.
9225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9226     <limits.h> exists even on freestanding compilers.  */
9227
9228 #ifdef __STDC__
9229 # include <limits.h>
9230 #else
9231 # include <assert.h>
9232 #endif
9233
9234 #undef $ac_func
9235
9236 /* Override any GCC internal prototype to avoid an error.
9237    Use char because int might match the return type of a GCC
9238    builtin and then its argument prototype would still apply.  */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 char $ac_func ();
9243 /* The GNU C library defines this for functions which it implements
9244     to always fail with ENOSYS.  Some functions are actually named
9245     something starting with __ and the normal name is an alias.  */
9246 #if defined __stub_$ac_func || defined __stub___$ac_func
9247 choke me
9248 #endif
9249
9250 int
9251 main ()
9252 {
9253 return $ac_func ();
9254   ;
9255   return 0;
9256 }
9257 _ACEOF
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (ac_try="$ac_link"
9260 case "(($ac_try" in
9261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262   *) ac_try_echo=$ac_try;;
9263 esac
9264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9265 $as_echo "$ac_try_echo") >&5
9266   (eval "$ac_link") 2>conftest.er1
9267   ac_status=$?
9268   grep -v '^ *+' conftest.er1 >conftest.err
9269   rm -f conftest.er1
9270   cat conftest.err >&5
9271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272   (exit $ac_status); } && {
9273          test -z "$ac_c_werror_flag" ||
9274          test ! -s conftest.err
9275        } && test -s conftest$ac_exeext && {
9276          test "$cross_compiling" = yes ||
9277          $as_test_x conftest$ac_exeext
9278        }; then
9279   eval "$as_ac_var=yes"
9280 else
9281   $as_echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284         eval "$as_ac_var=no"
9285 fi
9286
9287 rm -rf conftest.dSYM
9288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9289       conftest$ac_exeext conftest.$ac_ext
9290 fi
9291 ac_res=`eval 'as_val=${'$as_ac_var'}
9292                  $as_echo "$as_val"'`
9293                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9294 $as_echo "$ac_res" >&6; }
9295 as_val=`eval 'as_val=${'$as_ac_var'}
9296                  $as_echo "$as_val"'`
9297    if test "x$as_val" = x""yes; then
9298   cat >>confdefs.h <<_ACEOF
9299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9300 _ACEOF
9301
9302 fi
9303 done
9304
9305 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
9306 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
9307 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
9308   $as_echo_n "(cached) " >&6
9309 else
9310
9311     ac_cv_func_strerror_r_char_p=no
9312     if test $ac_cv_have_decl_strerror_r = yes; then
9313       cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h.  */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h.  */
9319 $ac_includes_default
9320 int
9321 main ()
9322 {
9323
9324           char buf[100];
9325           char x = *strerror_r (0, buf, sizeof buf);
9326           char *p = strerror_r (0, buf, sizeof buf);
9327           return !p || x;
9328
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9335 case "(($ac_try" in
9336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337   *) ac_try_echo=$ac_try;;
9338 esac
9339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9340 $as_echo "$ac_try_echo") >&5
9341   (eval "$ac_compile") 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && {
9348          test -z "$ac_c_werror_flag" ||
9349          test ! -s conftest.err
9350        } && test -s conftest.$ac_objext; then
9351   ac_cv_func_strerror_r_char_p=yes
9352 else
9353   $as_echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356
9357 fi
9358
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360     else
9361       # strerror_r is not declared.  Choose between
9362       # systems that have relatively inaccessible declarations for the
9363       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
9364       # former has a strerror_r that returns char*, while the latter
9365       # has a strerror_r that returns `int'.
9366       # This test should segfault on the DEC system.
9367       if test "$cross_compiling" = yes; then
9368   :
9369 else
9370   cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h.  */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h.  */
9376 $ac_includes_default
9377         extern char *strerror_r ();
9378 int
9379 main ()
9380 {
9381 char buf[100];
9382           char x = *strerror_r (0, buf, sizeof buf);
9383           return ! isalpha (x);
9384   ;
9385   return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest$ac_exeext
9389 if { (ac_try="$ac_link"
9390 case "(($ac_try" in
9391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392   *) ac_try_echo=$ac_try;;
9393 esac
9394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9395 $as_echo "$ac_try_echo") >&5
9396   (eval "$ac_link") 2>&5
9397   ac_status=$?
9398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9400   { (case "(($ac_try" in
9401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402   *) ac_try_echo=$ac_try;;
9403 esac
9404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9405 $as_echo "$ac_try_echo") >&5
9406   (eval "$ac_try") 2>&5
9407   ac_status=$?
9408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); }; }; then
9410   ac_cv_func_strerror_r_char_p=yes
9411 else
9412   $as_echo "$as_me: program exited with status $ac_status" >&5
9413 $as_echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416 fi
9417 rm -rf conftest.dSYM
9418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9419 fi
9420
9421
9422     fi
9423
9424 fi
9425 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
9426 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9427 if test $ac_cv_func_strerror_r_char_p = yes; then
9428
9429 cat >>confdefs.h <<\_ACEOF
9430 #define STRERROR_R_CHAR_P 1
9431 _ACEOF
9432
9433 fi
9434
9435 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
9436 $as_echo_n "checking for pid_t... " >&6; }
9437 if test "${ac_cv_type_pid_t+set}" = set; then
9438   $as_echo_n "(cached) " >&6
9439 else
9440   ac_cv_type_pid_t=no
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447 $ac_includes_default
9448 int
9449 main ()
9450 {
9451 if (sizeof (pid_t))
9452        return 0;
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext
9458 if { (ac_try="$ac_compile"
9459 case "(($ac_try" in
9460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461   *) ac_try_echo=$ac_try;;
9462 esac
9463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9464 $as_echo "$ac_try_echo") >&5
9465   (eval "$ac_compile") 2>conftest.er1
9466   ac_status=$?
9467   grep -v '^ *+' conftest.er1 >conftest.err
9468   rm -f conftest.er1
9469   cat conftest.err >&5
9470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } && {
9472          test -z "$ac_c_werror_flag" ||
9473          test ! -s conftest.err
9474        } && test -s conftest.$ac_objext; then
9475   cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h.  */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h.  */
9481 $ac_includes_default
9482 int
9483 main ()
9484 {
9485 if (sizeof ((pid_t)))
9486           return 0;
9487   ;
9488   return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext
9492 if { (ac_try="$ac_compile"
9493 case "(($ac_try" in
9494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495   *) ac_try_echo=$ac_try;;
9496 esac
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499   (eval "$ac_compile") 2>conftest.er1
9500   ac_status=$?
9501   grep -v '^ *+' conftest.er1 >conftest.err
9502   rm -f conftest.er1
9503   cat conftest.err >&5
9504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } && {
9506          test -z "$ac_c_werror_flag" ||
9507          test ! -s conftest.err
9508        } && test -s conftest.$ac_objext; then
9509   :
9510 else
9511   $as_echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514         ac_cv_type_pid_t=yes
9515 fi
9516
9517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9518 else
9519   $as_echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522
9523 fi
9524
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526 fi
9527 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9528 $as_echo "$ac_cv_type_pid_t" >&6; }
9529 if test "x$ac_cv_type_pid_t" = x""yes; then
9530   :
9531 else
9532
9533 cat >>confdefs.h <<_ACEOF
9534 #define pid_t int
9535 _ACEOF
9536
9537 fi
9538
9539
9540 for ac_header in vfork.h
9541 do
9542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9544   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9545 $as_echo_n "checking for $ac_header... " >&6; }
9546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9547   $as_echo_n "(cached) " >&6
9548 fi
9549 ac_res=`eval 'as_val=${'$as_ac_Header'}
9550                  $as_echo "$as_val"'`
9551                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9552 $as_echo "$ac_res" >&6; }
9553 else
9554   # Is the header compilable?
9555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9556 $as_echo_n "checking $ac_header usability... " >&6; }
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h.  */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h.  */
9563 $ac_includes_default
9564 #include <$ac_header>
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9568 case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9573 $as_echo "$ac_try_echo") >&5
9574   (eval "$ac_compile") 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } && {
9581          test -z "$ac_c_werror_flag" ||
9582          test ! -s conftest.err
9583        } && test -s conftest.$ac_objext; then
9584   ac_header_compiler=yes
9585 else
9586   $as_echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589         ac_header_compiler=no
9590 fi
9591
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9594 $as_echo "$ac_header_compiler" >&6; }
9595
9596 # Is the header present?
9597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9598 $as_echo_n "checking $ac_header presence... " >&6; }
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605 #include <$ac_header>
9606 _ACEOF
9607 if { (ac_try="$ac_cpp conftest.$ac_ext"
9608 case "(($ac_try" in
9609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610   *) ac_try_echo=$ac_try;;
9611 esac
9612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9613 $as_echo "$ac_try_echo") >&5
9614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9615   ac_status=$?
9616   grep -v '^ *+' conftest.er1 >conftest.err
9617   rm -f conftest.er1
9618   cat conftest.err >&5
9619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); } >/dev/null && {
9621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9622          test ! -s conftest.err
9623        }; then
9624   ac_header_preproc=yes
9625 else
9626   $as_echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629   ac_header_preproc=no
9630 fi
9631
9632 rm -f conftest.err conftest.$ac_ext
9633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9634 $as_echo "$ac_header_preproc" >&6; }
9635
9636 # So?  What about this header?
9637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9638   yes:no: )
9639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9643     ac_header_preproc=yes
9644     ;;
9645   no:yes:* )
9646     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9649 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9653 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9656     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9658     ( cat <<\_ASBOX
9659 ## ------------------------------- ##
9660 ## Report this to grant@NetBSD.org ##
9661 ## ------------------------------- ##
9662 _ASBOX
9663      ) | sed "s/^/$as_me: WARNING:     /" >&2
9664     ;;
9665 esac
9666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9667 $as_echo_n "checking for $ac_header... " >&6; }
9668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9669   $as_echo_n "(cached) " >&6
9670 else
9671   eval "$as_ac_Header=\$ac_header_preproc"
9672 fi
9673 ac_res=`eval 'as_val=${'$as_ac_Header'}
9674                  $as_echo "$as_val"'`
9675                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9676 $as_echo "$ac_res" >&6; }
9677
9678 fi
9679 as_val=`eval 'as_val=${'$as_ac_Header'}
9680                  $as_echo "$as_val"'`
9681    if test "x$as_val" = x""yes; then
9682   cat >>confdefs.h <<_ACEOF
9683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9684 _ACEOF
9685
9686 fi
9687
9688 done
9689
9690
9691
9692 for ac_func in fork vfork
9693 do
9694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9695 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9696 $as_echo_n "checking for $ac_func... " >&6; }
9697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9698   $as_echo_n "(cached) " >&6
9699 else
9700   cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h.  */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h.  */
9706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9708 #define $ac_func innocuous_$ac_func
9709
9710 /* System header to define __stub macros and hopefully few prototypes,
9711     which can conflict with char $ac_func (); below.
9712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713     <limits.h> exists even on freestanding compilers.  */
9714
9715 #ifdef __STDC__
9716 # include <limits.h>
9717 #else
9718 # include <assert.h>
9719 #endif
9720
9721 #undef $ac_func
9722
9723 /* Override any GCC internal prototype to avoid an error.
9724    Use char because int might match the return type of a GCC
9725    builtin and then its argument prototype would still apply.  */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char $ac_func ();
9730 /* The GNU C library defines this for functions which it implements
9731     to always fail with ENOSYS.  Some functions are actually named
9732     something starting with __ and the normal name is an alias.  */
9733 #if defined __stub_$ac_func || defined __stub___$ac_func
9734 choke me
9735 #endif
9736
9737 int
9738 main ()
9739 {
9740 return $ac_func ();
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9747 case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9752 $as_echo "$ac_try_echo") >&5
9753   (eval "$ac_link") 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } && {
9760          test -z "$ac_c_werror_flag" ||
9761          test ! -s conftest.err
9762        } && test -s conftest$ac_exeext && {
9763          test "$cross_compiling" = yes ||
9764          $as_test_x conftest$ac_exeext
9765        }; then
9766   eval "$as_ac_var=yes"
9767 else
9768   $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771         eval "$as_ac_var=no"
9772 fi
9773
9774 rm -rf conftest.dSYM
9775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9776       conftest$ac_exeext conftest.$ac_ext
9777 fi
9778 ac_res=`eval 'as_val=${'$as_ac_var'}
9779                  $as_echo "$as_val"'`
9780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9781 $as_echo "$ac_res" >&6; }
9782 as_val=`eval 'as_val=${'$as_ac_var'}
9783                  $as_echo "$as_val"'`
9784    if test "x$as_val" = x""yes; then
9785   cat >>confdefs.h <<_ACEOF
9786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9787 _ACEOF
9788
9789 fi
9790 done
9791
9792 if test "x$ac_cv_func_fork" = xyes; then
9793   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9794 $as_echo_n "checking for working fork... " >&6; }
9795 if test "${ac_cv_func_fork_works+set}" = set; then
9796   $as_echo_n "(cached) " >&6
9797 else
9798   if test "$cross_compiling" = yes; then
9799   ac_cv_func_fork_works=cross
9800 else
9801   cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h.  */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h.  */
9807 $ac_includes_default
9808 int
9809 main ()
9810 {
9811
9812           /* By Ruediger Kuhlmann. */
9813           return fork () < 0;
9814
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 rm -f conftest$ac_exeext
9820 if { (ac_try="$ac_link"
9821 case "(($ac_try" in
9822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823   *) ac_try_echo=$ac_try;;
9824 esac
9825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9826 $as_echo "$ac_try_echo") >&5
9827   (eval "$ac_link") 2>&5
9828   ac_status=$?
9829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9831   { (case "(($ac_try" in
9832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833   *) ac_try_echo=$ac_try;;
9834 esac
9835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836 $as_echo "$ac_try_echo") >&5
9837   (eval "$ac_try") 2>&5
9838   ac_status=$?
9839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_cv_func_fork_works=yes
9842 else
9843   $as_echo "$as_me: program exited with status $ac_status" >&5
9844 $as_echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ( exit $ac_status )
9848 ac_cv_func_fork_works=no
9849 fi
9850 rm -rf conftest.dSYM
9851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9852 fi
9853
9854
9855 fi
9856 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9857 $as_echo "$ac_cv_func_fork_works" >&6; }
9858
9859 else
9860   ac_cv_func_fork_works=$ac_cv_func_fork
9861 fi
9862 if test "x$ac_cv_func_fork_works" = xcross; then
9863   case $host in
9864     *-*-amigaos* | *-*-msdosdjgpp*)
9865       # Override, as these systems have only a dummy fork() stub
9866       ac_cv_func_fork_works=no
9867       ;;
9868     *)
9869       ac_cv_func_fork_works=yes
9870       ;;
9871   esac
9872   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9873 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9874 fi
9875 ac_cv_func_vfork_works=$ac_cv_func_vfork
9876 if test "x$ac_cv_func_vfork" = xyes; then
9877   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9878 $as_echo_n "checking for working vfork... " >&6; }
9879 if test "${ac_cv_func_vfork_works+set}" = set; then
9880   $as_echo_n "(cached) " >&6
9881 else
9882   if test "$cross_compiling" = yes; then
9883   ac_cv_func_vfork_works=cross
9884 else
9885   cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891 /* Thanks to Paul Eggert for this test.  */
9892 $ac_includes_default
9893 #include <sys/wait.h>
9894 #ifdef HAVE_VFORK_H
9895 # include <vfork.h>
9896 #endif
9897 /* On some sparc systems, changes by the child to local and incoming
9898    argument registers are propagated back to the parent.  The compiler
9899    is told about this with #include <vfork.h>, but some compilers
9900    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9901    static variable whose address is put into a register that is
9902    clobbered by the vfork.  */
9903 static void
9904 #ifdef __cplusplus
9905 sparc_address_test (int arg)
9906 # else
9907 sparc_address_test (arg) int arg;
9908 #endif
9909 {
9910   static pid_t child;
9911   if (!child) {
9912     child = vfork ();
9913     if (child < 0) {
9914       perror ("vfork");
9915       _exit(2);
9916     }
9917     if (!child) {
9918       arg = getpid();
9919       write(-1, "", 0);
9920       _exit (arg);
9921     }
9922   }
9923 }
9924
9925 int
9926 main ()
9927 {
9928   pid_t parent = getpid ();
9929   pid_t child;
9930
9931   sparc_address_test (0);
9932
9933   child = vfork ();
9934
9935   if (child == 0) {
9936     /* Here is another test for sparc vfork register problems.  This
9937        test uses lots of local variables, at least as many local
9938        variables as main has allocated so far including compiler
9939        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9940        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9941        reuse the register of parent for one of the local variables,
9942        since it will think that parent can't possibly be used any more
9943        in this routine.  Assigning to the local variable will thus
9944        munge parent in the parent process.  */
9945     pid_t
9946       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9947       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9948     /* Convince the compiler that p..p7 are live; otherwise, it might
9949        use the same hardware register for all 8 local variables.  */
9950     if (p != p1 || p != p2 || p != p3 || p != p4
9951         || p != p5 || p != p6 || p != p7)
9952       _exit(1);
9953
9954     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9955        from child file descriptors.  If the child closes a descriptor
9956        before it execs or exits, this munges the parent's descriptor
9957        as well.  Test for this by closing stdout in the child.  */
9958     _exit(close(fileno(stdout)) != 0);
9959   } else {
9960     int status;
9961     struct stat st;
9962
9963     while (wait(&status) != child)
9964       ;
9965     return (
9966          /* Was there some problem with vforking?  */
9967          child < 0
9968
9969          /* Did the child fail?  (This shouldn't happen.)  */
9970          || status
9971
9972          /* Did the vfork/compiler bug occur?  */
9973          || parent != getpid()
9974
9975          /* Did the file descriptor bug occur?  */
9976          || fstat(fileno(stdout), &st) != 0
9977          );
9978   }
9979 }
9980 _ACEOF
9981 rm -f conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9983 case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9988 $as_echo "$ac_try_echo") >&5
9989   (eval "$ac_link") 2>&5
9990   ac_status=$?
9991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9993   { (case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998 $as_echo "$ac_try_echo") >&5
9999   (eval "$ac_try") 2>&5
10000   ac_status=$?
10001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; }; then
10003   ac_cv_func_vfork_works=yes
10004 else
10005   $as_echo "$as_me: program exited with status $ac_status" >&5
10006 $as_echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ( exit $ac_status )
10010 ac_cv_func_vfork_works=no
10011 fi
10012 rm -rf conftest.dSYM
10013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10014 fi
10015
10016
10017 fi
10018 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10019 $as_echo "$ac_cv_func_vfork_works" >&6; }
10020
10021 fi;
10022 if test "x$ac_cv_func_fork_works" = xcross; then
10023   ac_cv_func_vfork_works=$ac_cv_func_vfork
10024   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10025 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10026 fi
10027
10028 if test "x$ac_cv_func_vfork_works" = xyes; then
10029
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_WORKING_VFORK 1
10032 _ACEOF
10033
10034 else
10035
10036 cat >>confdefs.h <<\_ACEOF
10037 #define vfork fork
10038 _ACEOF
10039
10040 fi
10041 if test "x$ac_cv_func_fork_works" = xyes; then
10042
10043 cat >>confdefs.h <<\_ACEOF
10044 #define HAVE_WORKING_FORK 1
10045 _ACEOF
10046
10047 fi
10048
10049
10050 for ac_func in vprintf
10051 do
10052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10054 $as_echo_n "checking for $ac_func... " >&6; }
10055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10056   $as_echo_n "(cached) " >&6
10057 else
10058   cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h.  */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h.  */
10064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10066 #define $ac_func innocuous_$ac_func
10067
10068 /* System header to define __stub macros and hopefully few prototypes,
10069     which can conflict with char $ac_func (); below.
10070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071     <limits.h> exists even on freestanding compilers.  */
10072
10073 #ifdef __STDC__
10074 # include <limits.h>
10075 #else
10076 # include <assert.h>
10077 #endif
10078
10079 #undef $ac_func
10080
10081 /* Override any GCC internal prototype to avoid an error.
10082    Use char because int might match the return type of a GCC
10083    builtin and then its argument prototype would still apply.  */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char $ac_func ();
10088 /* The GNU C library defines this for functions which it implements
10089     to always fail with ENOSYS.  Some functions are actually named
10090     something starting with __ and the normal name is an alias.  */
10091 #if defined __stub_$ac_func || defined __stub___$ac_func
10092 choke me
10093 #endif
10094
10095 int
10096 main ()
10097 {
10098 return $ac_func ();
10099   ;
10100   return 0;
10101 }
10102 _ACEOF
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107   *) ac_try_echo=$ac_try;;
10108 esac
10109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10110 $as_echo "$ac_try_echo") >&5
10111   (eval "$ac_link") 2>conftest.er1
10112   ac_status=$?
10113   grep -v '^ *+' conftest.er1 >conftest.err
10114   rm -f conftest.er1
10115   cat conftest.err >&5
10116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } && {
10118          test -z "$ac_c_werror_flag" ||
10119          test ! -s conftest.err
10120        } && test -s conftest$ac_exeext && {
10121          test "$cross_compiling" = yes ||
10122          $as_test_x conftest$ac_exeext
10123        }; then
10124   eval "$as_ac_var=yes"
10125 else
10126   $as_echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129         eval "$as_ac_var=no"
10130 fi
10131
10132 rm -rf conftest.dSYM
10133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134       conftest$ac_exeext conftest.$ac_ext
10135 fi
10136 ac_res=`eval 'as_val=${'$as_ac_var'}
10137                  $as_echo "$as_val"'`
10138                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10139 $as_echo "$ac_res" >&6; }
10140 as_val=`eval 'as_val=${'$as_ac_var'}
10141                  $as_echo "$as_val"'`
10142    if test "x$as_val" = x""yes; then
10143   cat >>confdefs.h <<_ACEOF
10144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10145 _ACEOF
10146
10147 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10148 $as_echo_n "checking for _doprnt... " >&6; }
10149 if test "${ac_cv_func__doprnt+set}" = set; then
10150   $as_echo_n "(cached) " >&6
10151 else
10152   cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h.  */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h.  */
10158 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10160 #define _doprnt innocuous__doprnt
10161
10162 /* System header to define __stub macros and hopefully few prototypes,
10163     which can conflict with char _doprnt (); below.
10164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10165     <limits.h> exists even on freestanding compilers.  */
10166
10167 #ifdef __STDC__
10168 # include <limits.h>
10169 #else
10170 # include <assert.h>
10171 #endif
10172
10173 #undef _doprnt
10174
10175 /* Override any GCC internal prototype to avoid an error.
10176    Use char because int might match the return type of a GCC
10177    builtin and then its argument prototype would still apply.  */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 char _doprnt ();
10182 /* The GNU C library defines this for functions which it implements
10183     to always fail with ENOSYS.  Some functions are actually named
10184     something starting with __ and the normal name is an alias.  */
10185 #if defined __stub__doprnt || defined __stub____doprnt
10186 choke me
10187 #endif
10188
10189 int
10190 main ()
10191 {
10192 return _doprnt ();
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (ac_try="$ac_link"
10199 case "(($ac_try" in
10200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201   *) ac_try_echo=$ac_try;;
10202 esac
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205   (eval "$ac_link") 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } && {
10212          test -z "$ac_c_werror_flag" ||
10213          test ! -s conftest.err
10214        } && test -s conftest$ac_exeext && {
10215          test "$cross_compiling" = yes ||
10216          $as_test_x conftest$ac_exeext
10217        }; then
10218   ac_cv_func__doprnt=yes
10219 else
10220   $as_echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223         ac_cv_func__doprnt=no
10224 fi
10225
10226 rm -rf conftest.dSYM
10227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10228       conftest$ac_exeext conftest.$ac_ext
10229 fi
10230 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10231 $as_echo "$ac_cv_func__doprnt" >&6; }
10232 if test "x$ac_cv_func__doprnt" = x""yes; then
10233
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_DOPRNT 1
10236 _ACEOF
10237
10238 fi
10239
10240 fi
10241 done
10242
10243
10244
10245 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10246 $as_echo_n "checking whether snprintf is declared... " >&6; }
10247 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10248   $as_echo_n "(cached) " >&6
10249 else
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 #include <stdio.h>
10257
10258 int
10259 main ()
10260 {
10261 #ifndef snprintf
10262   (void) snprintf;
10263 #endif
10264
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (ac_try="$ac_compile"
10271 case "(($ac_try" in
10272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273   *) ac_try_echo=$ac_try;;
10274 esac
10275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10276 $as_echo "$ac_try_echo") >&5
10277   (eval "$ac_compile") 2>conftest.er1
10278   ac_status=$?
10279   grep -v '^ *+' conftest.er1 >conftest.err
10280   rm -f conftest.er1
10281   cat conftest.err >&5
10282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } && {
10284          test -z "$ac_c_werror_flag" ||
10285          test ! -s conftest.err
10286        } && test -s conftest.$ac_objext; then
10287   ac_cv_have_decl_snprintf=yes
10288 else
10289   $as_echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292         ac_cv_have_decl_snprintf=no
10293 fi
10294
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 fi
10297 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10298 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
10299 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
10300
10301 cat >>confdefs.h <<_ACEOF
10302 #define HAVE_DECL_SNPRINTF 1
10303 _ACEOF
10304
10305
10306 else
10307   cat >>confdefs.h <<_ACEOF
10308 #define HAVE_DECL_SNPRINTF 0
10309 _ACEOF
10310
10311
10312 fi
10313 { $as_echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
10314 $as_echo_n "checking whether vasprintf is declared... " >&6; }
10315 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
10316   $as_echo_n "(cached) " >&6
10317 else
10318   cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 #include <stdio.h>
10325
10326 int
10327 main ()
10328 {
10329 #ifndef vasprintf
10330   (void) vasprintf;
10331 #endif
10332
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341   *) ac_try_echo=$ac_try;;
10342 esac
10343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10344 $as_echo "$ac_try_echo") >&5
10345   (eval "$ac_compile") 2>conftest.er1
10346   ac_status=$?
10347   grep -v '^ *+' conftest.er1 >conftest.err
10348   rm -f conftest.er1
10349   cat conftest.err >&5
10350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } && {
10352          test -z "$ac_c_werror_flag" ||
10353          test ! -s conftest.err
10354        } && test -s conftest.$ac_objext; then
10355   ac_cv_have_decl_vasprintf=yes
10356 else
10357   $as_echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10359
10360         ac_cv_have_decl_vasprintf=no
10361 fi
10362
10363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 fi
10365 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
10366 $as_echo "$ac_cv_have_decl_vasprintf" >&6; }
10367 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then
10368
10369 cat >>confdefs.h <<_ACEOF
10370 #define HAVE_DECL_VASPRINTF 1
10371 _ACEOF
10372
10373
10374 else
10375   cat >>confdefs.h <<_ACEOF
10376 #define HAVE_DECL_VASPRINTF 0
10377 _ACEOF
10378
10379
10380 fi
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415 for ac_func in asprintf err fgetln fnmatch fparseln getenv isblank \
10416         lchflags lchmod lchown lutimes mkdtemp mkstemp setenv setgroupent \
10417         setpassent setprogname shquote snprintf statvfs strdup strerror \
10418         strlcat strlcpy strmode strsep strtoll unsetenv usleep utimes warn
10419
10420 do
10421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10423 $as_echo_n "checking for $ac_func... " >&6; }
10424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10425   $as_echo_n "(cached) " >&6
10426 else
10427   cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10435 #define $ac_func innocuous_$ac_func
10436
10437 /* System header to define __stub macros and hopefully few prototypes,
10438     which can conflict with char $ac_func (); below.
10439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10440     <limits.h> exists even on freestanding compilers.  */
10441
10442 #ifdef __STDC__
10443 # include <limits.h>
10444 #else
10445 # include <assert.h>
10446 #endif
10447
10448 #undef $ac_func
10449
10450 /* Override any GCC internal prototype to avoid an error.
10451    Use char because int might match the return type of a GCC
10452    builtin and then its argument prototype would still apply.  */
10453 #ifdef __cplusplus
10454 extern "C"
10455 #endif
10456 char $ac_func ();
10457 /* The GNU C library defines this for functions which it implements
10458     to always fail with ENOSYS.  Some functions are actually named
10459     something starting with __ and the normal name is an alias.  */
10460 #if defined __stub_$ac_func || defined __stub___$ac_func
10461 choke me
10462 #endif
10463
10464 int
10465 main ()
10466 {
10467 return $ac_func ();
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10479 $as_echo "$ac_try_echo") >&5
10480   (eval "$ac_link") 2>conftest.er1
10481   ac_status=$?
10482   grep -v '^ *+' conftest.er1 >conftest.err
10483   rm -f conftest.er1
10484   cat conftest.err >&5
10485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); } && {
10487          test -z "$ac_c_werror_flag" ||
10488          test ! -s conftest.err
10489        } && test -s conftest$ac_exeext && {
10490          test "$cross_compiling" = yes ||
10491          $as_test_x conftest$ac_exeext
10492        }; then
10493   eval "$as_ac_var=yes"
10494 else
10495   $as_echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10497
10498         eval "$as_ac_var=no"
10499 fi
10500
10501 rm -rf conftest.dSYM
10502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10503       conftest$ac_exeext conftest.$ac_ext
10504 fi
10505 ac_res=`eval 'as_val=${'$as_ac_var'}
10506                  $as_echo "$as_val"'`
10507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10508 $as_echo "$ac_res" >&6; }
10509 as_val=`eval 'as_val=${'$as_ac_var'}
10510                  $as_echo "$as_val"'`
10511    if test "x$as_val" = x""yes; then
10512   cat >>confdefs.h <<_ACEOF
10513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10514 _ACEOF
10515
10516 else
10517   case " $LIBOBJS " in
10518   *" $ac_func.$ac_objext "* ) ;;
10519   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10520  ;;
10521 esac
10522
10523 fi
10524 done
10525
10526
10527
10528
10529 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10530 $as_echo_n "checking for socket in -lsocket... " >&6; }
10531 if test "${ac_cv_lib_socket_socket+set}" = set; then
10532   $as_echo_n "(cached) " >&6
10533 else
10534   ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lsocket  $LIBS"
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542
10543 /* Override any GCC internal prototype to avoid an error.
10544    Use char because int might match the return type of a GCC
10545    builtin and then its argument prototype would still apply.  */
10546 #ifdef __cplusplus
10547 extern "C"
10548 #endif
10549 char socket ();
10550 int
10551 main ()
10552 {
10553 return socket ();
10554   ;
10555   return 0;
10556 }
10557 _ACEOF
10558 rm -f conftest.$ac_objext conftest$ac_exeext
10559 if { (ac_try="$ac_link"
10560 case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10565 $as_echo "$ac_try_echo") >&5
10566   (eval "$ac_link") 2>conftest.er1
10567   ac_status=$?
10568   grep -v '^ *+' conftest.er1 >conftest.err
10569   rm -f conftest.er1
10570   cat conftest.err >&5
10571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } && {
10573          test -z "$ac_c_werror_flag" ||
10574          test ! -s conftest.err
10575        } && test -s conftest$ac_exeext && {
10576          test "$cross_compiling" = yes ||
10577          $as_test_x conftest$ac_exeext
10578        }; then
10579   ac_cv_lib_socket_socket=yes
10580 else
10581   $as_echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584         ac_cv_lib_socket_socket=no
10585 fi
10586
10587 rm -rf conftest.dSYM
10588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10589       conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_lib_save_LIBS
10591 fi
10592 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10593 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10594 if test "x$ac_cv_lib_socket_socket" = x""yes; then
10595   cat >>confdefs.h <<_ACEOF
10596 #define HAVE_LIBSOCKET 1
10597 _ACEOF
10598
10599   LIBS="-lsocket $LIBS"
10600
10601 fi
10602
10603
10604 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10605 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10606 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10607   $as_echo_n "(cached) " >&6
10608 else
10609   ac_check_lib_save_LIBS=$LIBS
10610 LIBS="-lnsl  $LIBS"
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617
10618 /* Override any GCC internal prototype to avoid an error.
10619    Use char because int might match the return type of a GCC
10620    builtin and then its argument prototype would still apply.  */
10621 #ifdef __cplusplus
10622 extern "C"
10623 #endif
10624 char gethostbyname ();
10625 int
10626 main ()
10627 {
10628 return gethostbyname ();
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (ac_try="$ac_link"
10635 case "(($ac_try" in
10636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637   *) ac_try_echo=$ac_try;;
10638 esac
10639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10640 $as_echo "$ac_try_echo") >&5
10641   (eval "$ac_link") 2>conftest.er1
10642   ac_status=$?
10643   grep -v '^ *+' conftest.er1 >conftest.err
10644   rm -f conftest.er1
10645   cat conftest.err >&5
10646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } && {
10648          test -z "$ac_c_werror_flag" ||
10649          test ! -s conftest.err
10650        } && test -s conftest$ac_exeext && {
10651          test "$cross_compiling" = yes ||
10652          $as_test_x conftest$ac_exeext
10653        }; then
10654   ac_cv_lib_nsl_gethostbyname=yes
10655 else
10656   $as_echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659         ac_cv_lib_nsl_gethostbyname=no
10660 fi
10661
10662 rm -rf conftest.dSYM
10663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10664       conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10666 fi
10667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10668 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10669 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
10670   cat >>confdefs.h <<_ACEOF
10671 #define HAVE_LIBNSL 1
10672 _ACEOF
10673
10674   LIBS="-lnsl $LIBS"
10675
10676 fi
10677
10678
10679 need_getaddrinfo=no
10680 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
10681 $as_echo_n "checking for socklen_t... " >&6; }
10682 if test "${ac_cv_type_socklen_t+set}" = set; then
10683   $as_echo_n "(cached) " >&6
10684 else
10685   ac_cv_type_socklen_t=no
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 #ifdef HAVE_SYS_TYPES_H
10693 # include <sys/types.h>
10694 #endif
10695
10696 #include <sys/socket.h>
10697
10698
10699 int
10700 main ()
10701 {
10702 if (sizeof (socklen_t))
10703        return 0;
10704   ;
10705   return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712   *) ac_try_echo=$ac_try;;
10713 esac
10714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715 $as_echo "$ac_try_echo") >&5
10716   (eval "$ac_compile") 2>conftest.er1
10717   ac_status=$?
10718   grep -v '^ *+' conftest.er1 >conftest.err
10719   rm -f conftest.er1
10720   cat conftest.err >&5
10721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } && {
10723          test -z "$ac_c_werror_flag" ||
10724          test ! -s conftest.err
10725        } && test -s conftest.$ac_objext; then
10726   cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732 #ifdef HAVE_SYS_TYPES_H
10733 # include <sys/types.h>
10734 #endif
10735
10736 #include <sys/socket.h>
10737
10738
10739 int
10740 main ()
10741 {
10742 if (sizeof ((socklen_t)))
10743           return 0;
10744   ;
10745   return 0;
10746 }
10747 _ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (ac_try="$ac_compile"
10750 case "(($ac_try" in
10751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752   *) ac_try_echo=$ac_try;;
10753 esac
10754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10755 $as_echo "$ac_try_echo") >&5
10756   (eval "$ac_compile") 2>conftest.er1
10757   ac_status=$?
10758   grep -v '^ *+' conftest.er1 >conftest.err
10759   rm -f conftest.er1
10760   cat conftest.err >&5
10761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); } && {
10763          test -z "$ac_c_werror_flag" ||
10764          test ! -s conftest.err
10765        } && test -s conftest.$ac_objext; then
10766   :
10767 else
10768   $as_echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10770
10771         ac_cv_type_socklen_t=yes
10772 fi
10773
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775 else
10776   $as_echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779
10780 fi
10781
10782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783 fi
10784 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
10785 $as_echo "$ac_cv_type_socklen_t" >&6; }
10786 if test "x$ac_cv_type_socklen_t" = x""yes; then
10787
10788 cat >>confdefs.h <<_ACEOF
10789 #define HAVE_SOCKLEN_T 1
10790 _ACEOF
10791
10792
10793 fi
10794
10795 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10796 $as_echo_n "checking for struct addrinfo... " >&6; }
10797 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10798   $as_echo_n "(cached) " >&6
10799 else
10800   ac_cv_type_struct_addrinfo=no
10801 cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h.  */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h.  */
10807 #include <netdb.h>
10808
10809 int
10810 main ()
10811 {
10812 if (sizeof (struct addrinfo))
10813        return 0;
10814   ;
10815   return 0;
10816 }
10817 _ACEOF
10818 rm -f conftest.$ac_objext
10819 if { (ac_try="$ac_compile"
10820 case "(($ac_try" in
10821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822   *) ac_try_echo=$ac_try;;
10823 esac
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826   (eval "$ac_compile") 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } && {
10833          test -z "$ac_c_werror_flag" ||
10834          test ! -s conftest.err
10835        } && test -s conftest.$ac_objext; then
10836   cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842 #include <netdb.h>
10843
10844 int
10845 main ()
10846 {
10847 if (sizeof ((struct addrinfo)))
10848           return 0;
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10860 $as_echo "$ac_try_echo") >&5
10861   (eval "$ac_compile") 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } && {
10868          test -z "$ac_c_werror_flag" ||
10869          test ! -s conftest.err
10870        } && test -s conftest.$ac_objext; then
10871   :
10872 else
10873   $as_echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876         ac_cv_type_struct_addrinfo=yes
10877 fi
10878
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 else
10881   $as_echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 fi
10889 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10890 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
10891 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
10892
10893 cat >>confdefs.h <<_ACEOF
10894 #define HAVE_STRUCT_ADDRINFO 1
10895 _ACEOF
10896
10897
10898 fi
10899
10900 { $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5
10901 $as_echo_n "checking for struct in6_addr... " >&6; }
10902 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
10903   $as_echo_n "(cached) " >&6
10904 else
10905   ac_cv_type_struct_in6_addr=no
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h.  */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h.  */
10912 #ifdef HAVE_SYS_TYPES_H
10913 # include <sys/types.h>
10914 #endif
10915 #include <netinet/in.h>
10916
10917
10918 int
10919 main ()
10920 {
10921 if (sizeof (struct in6_addr))
10922        return 0;
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10934 $as_echo "$ac_try_echo") >&5
10935   (eval "$ac_compile") 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } && {
10942          test -z "$ac_c_werror_flag" ||
10943          test ! -s conftest.err
10944        } && test -s conftest.$ac_objext; then
10945   cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h.  */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h.  */
10951 #ifdef HAVE_SYS_TYPES_H
10952 # include <sys/types.h>
10953 #endif
10954 #include <netinet/in.h>
10955
10956
10957 int
10958 main ()
10959 {
10960 if (sizeof ((struct in6_addr)))
10961           return 0;
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext
10967 if { (ac_try="$ac_compile"
10968 case "(($ac_try" in
10969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970   *) ac_try_echo=$ac_try;;
10971 esac
10972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10973 $as_echo "$ac_try_echo") >&5
10974   (eval "$ac_compile") 2>conftest.er1
10975   ac_status=$?
10976   grep -v '^ *+' conftest.er1 >conftest.err
10977   rm -f conftest.er1
10978   cat conftest.err >&5
10979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } && {
10981          test -z "$ac_c_werror_flag" ||
10982          test ! -s conftest.err
10983        } && test -s conftest.$ac_objext; then
10984   :
10985 else
10986   $as_echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989         ac_cv_type_struct_in6_addr=yes
10990 fi
10991
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 else
10994   $as_echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10996
10997
10998 fi
10999
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 fi
11002 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
11003 $as_echo "$ac_cv_type_struct_in6_addr" >&6; }
11004 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then
11005
11006 cat >>confdefs.h <<_ACEOF
11007 #define HAVE_STRUCT_IN6_ADDR 1
11008 _ACEOF
11009
11010
11011 fi
11012
11013 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11014 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
11015 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11016   $as_echo_n "(cached) " >&6
11017 else
11018   ac_cv_type_struct_sockaddr_in6=no
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h.  */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h.  */
11025 #ifdef HAVE_SYS_TYPES_H
11026 # include <sys/types.h>
11027 #endif
11028 #include <netinet/in.h>
11029
11030
11031 int
11032 main ()
11033 {
11034 if (sizeof (struct sockaddr_in6))
11035        return 0;
11036   ;
11037   return 0;
11038 }
11039 _ACEOF
11040 rm -f conftest.$ac_objext
11041 if { (ac_try="$ac_compile"
11042 case "(($ac_try" in
11043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044   *) ac_try_echo=$ac_try;;
11045 esac
11046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11047 $as_echo "$ac_try_echo") >&5
11048   (eval "$ac_compile") 2>conftest.er1
11049   ac_status=$?
11050   grep -v '^ *+' conftest.er1 >conftest.err
11051   rm -f conftest.er1
11052   cat conftest.err >&5
11053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } && {
11055          test -z "$ac_c_werror_flag" ||
11056          test ! -s conftest.err
11057        } && test -s conftest.$ac_objext; then
11058   cat >conftest.$ac_ext <<_ACEOF
11059 /* confdefs.h.  */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h.  */
11064 #ifdef HAVE_SYS_TYPES_H
11065 # include <sys/types.h>
11066 #endif
11067 #include <netinet/in.h>
11068
11069
11070 int
11071 main ()
11072 {
11073 if (sizeof ((struct sockaddr_in6)))
11074           return 0;
11075   ;
11076   return 0;
11077 }
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087   (eval "$ac_compile") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } && {
11094          test -z "$ac_c_werror_flag" ||
11095          test ! -s conftest.err
11096        } && test -s conftest.$ac_objext; then
11097   :
11098 else
11099   $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102         ac_cv_type_struct_sockaddr_in6=yes
11103 fi
11104
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 else
11107   $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110
11111 fi
11112
11113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 fi
11115 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11116 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
11117 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
11118
11119 cat >>confdefs.h <<_ACEOF
11120 #define HAVE_STRUCT_SOCKADDR_IN6 1
11121 _ACEOF
11122
11123
11124 fi
11125
11126 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11127 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
11128 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11129   $as_echo_n "(cached) " >&6
11130 else
11131   ac_cv_type_struct_sockaddr_storage=no
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #ifdef HAVE_SYS_TYPES_H
11139 # include <sys/types.h>
11140 #endif
11141 #include <sys/socket.h>
11142
11143
11144 int
11145 main ()
11146 {
11147 if (sizeof (struct sockaddr_storage))
11148        return 0;
11149   ;
11150   return 0;
11151 }
11152 _ACEOF
11153 rm -f conftest.$ac_objext
11154 if { (ac_try="$ac_compile"
11155 case "(($ac_try" in
11156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157   *) ac_try_echo=$ac_try;;
11158 esac
11159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11160 $as_echo "$ac_try_echo") >&5
11161   (eval "$ac_compile") 2>conftest.er1
11162   ac_status=$?
11163   grep -v '^ *+' conftest.er1 >conftest.err
11164   rm -f conftest.er1
11165   cat conftest.err >&5
11166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); } && {
11168          test -z "$ac_c_werror_flag" ||
11169          test ! -s conftest.err
11170        } && test -s conftest.$ac_objext; then
11171   cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 #ifdef HAVE_SYS_TYPES_H
11178 # include <sys/types.h>
11179 #endif
11180 #include <sys/socket.h>
11181
11182
11183 int
11184 main ()
11185 {
11186 if (sizeof ((struct sockaddr_storage)))
11187           return 0;
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196   *) ac_try_echo=$ac_try;;
11197 esac
11198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11199 $as_echo "$ac_try_echo") >&5
11200   (eval "$ac_compile") 2>conftest.er1
11201   ac_status=$?
11202   grep -v '^ *+' conftest.er1 >conftest.err
11203   rm -f conftest.er1
11204   cat conftest.err >&5
11205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } && {
11207          test -z "$ac_c_werror_flag" ||
11208          test ! -s conftest.err
11209        } && test -s conftest.$ac_objext; then
11210   :
11211 else
11212   $as_echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215         ac_cv_type_struct_sockaddr_storage=yes
11216 fi
11217
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 else
11220   $as_echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11222
11223
11224 fi
11225
11226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227 fi
11228 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11229 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
11230 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
11231
11232 cat >>confdefs.h <<_ACEOF
11233 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11234 _ACEOF
11235
11236
11237 fi
11238
11239
11240
11241
11242 for ac_func in getnameinfo gai_strerror getaddrinfo
11243 do
11244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11246 $as_echo_n "checking for $ac_func... " >&6; }
11247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11248   $as_echo_n "(cached) " >&6
11249 else
11250   cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h.  */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h.  */
11256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11258 #define $ac_func innocuous_$ac_func
11259
11260 /* System header to define __stub macros and hopefully few prototypes,
11261     which can conflict with char $ac_func (); below.
11262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263     <limits.h> exists even on freestanding compilers.  */
11264
11265 #ifdef __STDC__
11266 # include <limits.h>
11267 #else
11268 # include <assert.h>
11269 #endif
11270
11271 #undef $ac_func
11272
11273 /* Override any GCC internal prototype to avoid an error.
11274    Use char because int might match the return type of a GCC
11275    builtin and then its argument prototype would still apply.  */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 char $ac_func ();
11280 /* The GNU C library defines this for functions which it implements
11281     to always fail with ENOSYS.  Some functions are actually named
11282     something starting with __ and the normal name is an alias.  */
11283 #if defined __stub_$ac_func || defined __stub___$ac_func
11284 choke me
11285 #endif
11286
11287 int
11288 main ()
11289 {
11290 return $ac_func ();
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302 $as_echo "$ac_try_echo") >&5
11303   (eval "$ac_link") 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } && {
11310          test -z "$ac_c_werror_flag" ||
11311          test ! -s conftest.err
11312        } && test -s conftest$ac_exeext && {
11313          test "$cross_compiling" = yes ||
11314          $as_test_x conftest$ac_exeext
11315        }; then
11316   eval "$as_ac_var=yes"
11317 else
11318   $as_echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321         eval "$as_ac_var=no"
11322 fi
11323
11324 rm -rf conftest.dSYM
11325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11326       conftest$ac_exeext conftest.$ac_ext
11327 fi
11328 ac_res=`eval 'as_val=${'$as_ac_var'}
11329                  $as_echo "$as_val"'`
11330                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11332 as_val=`eval 'as_val=${'$as_ac_var'}
11333                  $as_echo "$as_val"'`
11334    if test "x$as_val" = x""yes; then
11335   cat >>confdefs.h <<_ACEOF
11336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11337 _ACEOF
11338  :
11339 else
11340   need_getaddrinfo=yes
11341 fi
11342 done
11343
11344 if test $need_getaddrinfo = yes; then
11345         case " $LIBOBJS " in
11346   *" getaddrinfo.$ac_objext "* ) ;;
11347   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11348  ;;
11349 esac
11350
11351 fi
11352
11353 need_findenv=no
11354
11355
11356
11357 for ac_func in getenv setenv unsetenv
11358 do
11359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11360 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11361 $as_echo_n "checking for $ac_func... " >&6; }
11362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11363   $as_echo_n "(cached) " >&6
11364 else
11365   cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h.  */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h.  */
11371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11373 #define $ac_func innocuous_$ac_func
11374
11375 /* System header to define __stub macros and hopefully few prototypes,
11376     which can conflict with char $ac_func (); below.
11377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11378     <limits.h> exists even on freestanding compilers.  */
11379
11380 #ifdef __STDC__
11381 # include <limits.h>
11382 #else
11383 # include <assert.h>
11384 #endif
11385
11386 #undef $ac_func
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389    Use char because int might match the return type of a GCC
11390    builtin and then its argument prototype would still apply.  */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char $ac_func ();
11395 /* The GNU C library defines this for functions which it implements
11396     to always fail with ENOSYS.  Some functions are actually named
11397     something starting with __ and the normal name is an alias.  */
11398 #if defined __stub_$ac_func || defined __stub___$ac_func
11399 choke me
11400 #endif
11401
11402 int
11403 main ()
11404 {
11405 return $ac_func ();
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (ac_try="$ac_link"
11412 case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418   (eval "$ac_link") 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } && {
11425          test -z "$ac_c_werror_flag" ||
11426          test ! -s conftest.err
11427        } && test -s conftest$ac_exeext && {
11428          test "$cross_compiling" = yes ||
11429          $as_test_x conftest$ac_exeext
11430        }; then
11431   eval "$as_ac_var=yes"
11432 else
11433   $as_echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436         eval "$as_ac_var=no"
11437 fi
11438
11439 rm -rf conftest.dSYM
11440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441       conftest$ac_exeext conftest.$ac_ext
11442 fi
11443 ac_res=`eval 'as_val=${'$as_ac_var'}
11444                  $as_echo "$as_val"'`
11445                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11446 $as_echo "$ac_res" >&6; }
11447 as_val=`eval 'as_val=${'$as_ac_var'}
11448                  $as_echo "$as_val"'`
11449    if test "x$as_val" = x""yes; then
11450   cat >>confdefs.h <<_ACEOF
11451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11452 _ACEOF
11453  :
11454 else
11455   need_findenv=yes
11456 fi
11457 done
11458
11459 if test $need_findenv = yes; then
11460         case " $LIBOBJS " in
11461   *" findenv.$ac_objext "* ) ;;
11462   *) LIBOBJS="$LIBOBJS findenv.$ac_objext"
11463  ;;
11464 esac
11465
11466 fi
11467
11468 need_gettemp=no
11469
11470
11471 for ac_func in mkdtemp mkstemp
11472 do
11473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11475 $as_echo_n "checking for $ac_func... " >&6; }
11476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11477   $as_echo_n "(cached) " >&6
11478 else
11479   cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h.  */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h.  */
11485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11487 #define $ac_func innocuous_$ac_func
11488
11489 /* System header to define __stub macros and hopefully few prototypes,
11490     which can conflict with char $ac_func (); below.
11491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11492     <limits.h> exists even on freestanding compilers.  */
11493
11494 #ifdef __STDC__
11495 # include <limits.h>
11496 #else
11497 # include <assert.h>
11498 #endif
11499
11500 #undef $ac_func
11501
11502 /* Override any GCC internal prototype to avoid an error.
11503    Use char because int might match the return type of a GCC
11504    builtin and then its argument prototype would still apply.  */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char $ac_func ();
11509 /* The GNU C library defines this for functions which it implements
11510     to always fail with ENOSYS.  Some functions are actually named
11511     something starting with __ and the normal name is an alias.  */
11512 #if defined __stub_$ac_func || defined __stub___$ac_func
11513 choke me
11514 #endif
11515
11516 int
11517 main ()
11518 {
11519 return $ac_func ();
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext conftest$ac_exeext
11525 if { (ac_try="$ac_link"
11526 case "(($ac_try" in
11527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528   *) ac_try_echo=$ac_try;;
11529 esac
11530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11531 $as_echo "$ac_try_echo") >&5
11532   (eval "$ac_link") 2>conftest.er1
11533   ac_status=$?
11534   grep -v '^ *+' conftest.er1 >conftest.err
11535   rm -f conftest.er1
11536   cat conftest.err >&5
11537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } && {
11539          test -z "$ac_c_werror_flag" ||
11540          test ! -s conftest.err
11541        } && test -s conftest$ac_exeext && {
11542          test "$cross_compiling" = yes ||
11543          $as_test_x conftest$ac_exeext
11544        }; then
11545   eval "$as_ac_var=yes"
11546 else
11547   $as_echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550         eval "$as_ac_var=no"
11551 fi
11552
11553 rm -rf conftest.dSYM
11554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11555       conftest$ac_exeext conftest.$ac_ext
11556 fi
11557 ac_res=`eval 'as_val=${'$as_ac_var'}
11558                  $as_echo "$as_val"'`
11559                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11560 $as_echo "$ac_res" >&6; }
11561 as_val=`eval 'as_val=${'$as_ac_var'}
11562                  $as_echo "$as_val"'`
11563    if test "x$as_val" = x""yes; then
11564   cat >>confdefs.h <<_ACEOF
11565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11566 _ACEOF
11567  :
11568 else
11569    need_gettemp=yes
11570 fi
11571 done
11572
11573 if test $need_gettemp = yes; then
11574         case " $LIBOBJS " in
11575   *" gettemp.$ac_objext "* ) ;;
11576   *) LIBOBJS="$LIBOBJS gettemp.$ac_objext"
11577  ;;
11578 esac
11579
11580 fi
11581
11582
11583
11584
11585
11586
11587 for ac_func in bcopy bzero memset memcpy setlocale
11588 do
11589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11590 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11591 $as_echo_n "checking for $ac_func... " >&6; }
11592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11593   $as_echo_n "(cached) " >&6
11594 else
11595   cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h.  */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h.  */
11601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11603 #define $ac_func innocuous_$ac_func
11604
11605 /* System header to define __stub macros and hopefully few prototypes,
11606     which can conflict with char $ac_func (); below.
11607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11608     <limits.h> exists even on freestanding compilers.  */
11609
11610 #ifdef __STDC__
11611 # include <limits.h>
11612 #else
11613 # include <assert.h>
11614 #endif
11615
11616 #undef $ac_func
11617
11618 /* Override any GCC internal prototype to avoid an error.
11619    Use char because int might match the return type of a GCC
11620    builtin and then its argument prototype would still apply.  */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 char $ac_func ();
11625 /* The GNU C library defines this for functions which it implements
11626     to always fail with ENOSYS.  Some functions are actually named
11627     something starting with __ and the normal name is an alias.  */
11628 #if defined __stub_$ac_func || defined __stub___$ac_func
11629 choke me
11630 #endif
11631
11632 int
11633 main ()
11634 {
11635 return $ac_func ();
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext conftest$ac_exeext
11641 if { (ac_try="$ac_link"
11642 case "(($ac_try" in
11643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644   *) ac_try_echo=$ac_try;;
11645 esac
11646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11647 $as_echo "$ac_try_echo") >&5
11648   (eval "$ac_link") 2>conftest.er1
11649   ac_status=$?
11650   grep -v '^ *+' conftest.er1 >conftest.err
11651   rm -f conftest.er1
11652   cat conftest.err >&5
11653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); } && {
11655          test -z "$ac_c_werror_flag" ||
11656          test ! -s conftest.err
11657        } && test -s conftest$ac_exeext && {
11658          test "$cross_compiling" = yes ||
11659          $as_test_x conftest$ac_exeext
11660        }; then
11661   eval "$as_ac_var=yes"
11662 else
11663   $as_echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11665
11666         eval "$as_ac_var=no"
11667 fi
11668
11669 rm -rf conftest.dSYM
11670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11671       conftest$ac_exeext conftest.$ac_ext
11672 fi
11673 ac_res=`eval 'as_val=${'$as_ac_var'}
11674                  $as_echo "$as_val"'`
11675                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11676 $as_echo "$ac_res" >&6; }
11677 as_val=`eval 'as_val=${'$as_ac_var'}
11678                  $as_echo "$as_val"'`
11679    if test "x$as_val" = x""yes; then
11680   cat >>confdefs.h <<_ACEOF
11681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 _ACEOF
11683
11684 fi
11685 done
11686
11687
11688 need_setmode=no
11689
11690
11691 for ac_func in getmode setmode
11692 do
11693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 $as_echo_n "checking for $ac_func... " >&6; }
11696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11697   $as_echo_n "(cached) " >&6
11698 else
11699   cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11707 #define $ac_func innocuous_$ac_func
11708
11709 /* System header to define __stub macros and hopefully few prototypes,
11710     which can conflict with char $ac_func (); below.
11711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712     <limits.h> exists even on freestanding compilers.  */
11713
11714 #ifdef __STDC__
11715 # include <limits.h>
11716 #else
11717 # include <assert.h>
11718 #endif
11719
11720 #undef $ac_func
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723    Use char because int might match the return type of a GCC
11724    builtin and then its argument prototype would still apply.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char $ac_func ();
11729 /* The GNU C library defines this for functions which it implements
11730     to always fail with ENOSYS.  Some functions are actually named
11731     something starting with __ and the normal name is an alias.  */
11732 #if defined __stub_$ac_func || defined __stub___$ac_func
11733 choke me
11734 #endif
11735
11736 int
11737 main ()
11738 {
11739 return $ac_func ();
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11751 $as_echo "$ac_try_echo") >&5
11752   (eval "$ac_link") 2>conftest.er1
11753   ac_status=$?
11754   grep -v '^ *+' conftest.er1 >conftest.err
11755   rm -f conftest.er1
11756   cat conftest.err >&5
11757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); } && {
11759          test -z "$ac_c_werror_flag" ||
11760          test ! -s conftest.err
11761        } && test -s conftest$ac_exeext && {
11762          test "$cross_compiling" = yes ||
11763          $as_test_x conftest$ac_exeext
11764        }; then
11765   eval "$as_ac_var=yes"
11766 else
11767   $as_echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770         eval "$as_ac_var=no"
11771 fi
11772
11773 rm -rf conftest.dSYM
11774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11775       conftest$ac_exeext conftest.$ac_ext
11776 fi
11777 ac_res=`eval 'as_val=${'$as_ac_var'}
11778                  $as_echo "$as_val"'`
11779                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11780 $as_echo "$ac_res" >&6; }
11781 as_val=`eval 'as_val=${'$as_ac_var'}
11782                  $as_echo "$as_val"'`
11783    if test "x$as_val" = x""yes; then
11784   cat >>confdefs.h <<_ACEOF
11785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11786 _ACEOF
11787  :
11788 else
11789   need_setmode=yes
11790 fi
11791 done
11792
11793
11794 if test $need_setmode = yes; then
11795         case " $LIBOBJS " in
11796   *" setmode.$ac_objext "* ) ;;
11797   *) LIBOBJS="$LIBOBJS setmode.$ac_objext"
11798  ;;
11799 esac
11800
11801 fi
11802
11803 { $as_echo "$as_me:$LINENO: checking whether endgrent is declared" >&5
11804 $as_echo_n "checking whether endgrent is declared... " >&6; }
11805 if test "${ac_cv_have_decl_endgrent+set}" = set; then
11806   $as_echo_n "(cached) " >&6
11807 else
11808   cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h.  */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h.  */
11814 $ac_includes_default
11815 int
11816 main ()
11817 {
11818 #ifndef endgrent
11819   (void) endgrent;
11820 #endif
11821
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830   *) ac_try_echo=$ac_try;;
11831 esac
11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833 $as_echo "$ac_try_echo") >&5
11834   (eval "$ac_compile") 2>conftest.er1
11835   ac_status=$?
11836   grep -v '^ *+' conftest.er1 >conftest.err
11837   rm -f conftest.er1
11838   cat conftest.err >&5
11839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } && {
11841          test -z "$ac_c_werror_flag" ||
11842          test ! -s conftest.err
11843        } && test -s conftest.$ac_objext; then
11844   ac_cv_have_decl_endgrent=yes
11845 else
11846   $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849         ac_cv_have_decl_endgrent=no
11850 fi
11851
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_endgrent" >&5
11855 $as_echo "$ac_cv_have_decl_endgrent" >&6; }
11856 if test "x$ac_cv_have_decl_endgrent" = x""yes; then
11857
11858 cat >>confdefs.h <<_ACEOF
11859 #define HAVE_DECL_ENDGRENT 1
11860 _ACEOF
11861
11862
11863 else
11864   cat >>confdefs.h <<_ACEOF
11865 #define HAVE_DECL_ENDGRENT 0
11866 _ACEOF
11867
11868
11869 fi
11870 { $as_echo "$as_me:$LINENO: checking whether endpwent is declared" >&5
11871 $as_echo_n "checking whether endpwent is declared... " >&6; }
11872 if test "${ac_cv_have_decl_endpwent+set}" = set; then
11873   $as_echo_n "(cached) " >&6
11874 else
11875   cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881 $ac_includes_default
11882 int
11883 main ()
11884 {
11885 #ifndef endpwent
11886   (void) endpwent;
11887 #endif
11888
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 rm -f conftest.$ac_objext
11894 if { (ac_try="$ac_compile"
11895 case "(($ac_try" in
11896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897   *) ac_try_echo=$ac_try;;
11898 esac
11899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11900 $as_echo "$ac_try_echo") >&5
11901   (eval "$ac_compile") 2>conftest.er1
11902   ac_status=$?
11903   grep -v '^ *+' conftest.er1 >conftest.err
11904   rm -f conftest.er1
11905   cat conftest.err >&5
11906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); } && {
11908          test -z "$ac_c_werror_flag" ||
11909          test ! -s conftest.err
11910        } && test -s conftest.$ac_objext; then
11911   ac_cv_have_decl_endpwent=yes
11912 else
11913   $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916         ac_cv_have_decl_endpwent=no
11917 fi
11918
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920 fi
11921 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_endpwent" >&5
11922 $as_echo "$ac_cv_have_decl_endpwent" >&6; }
11923 if test "x$ac_cv_have_decl_endpwent" = x""yes; then
11924
11925 cat >>confdefs.h <<_ACEOF
11926 #define HAVE_DECL_ENDPWENT 1
11927 _ACEOF
11928
11929
11930 else
11931   cat >>confdefs.h <<_ACEOF
11932 #define HAVE_DECL_ENDPWENT 0
11933 _ACEOF
11934
11935
11936 fi
11937
11938
11939
11940 need_pwcache=no
11941
11942
11943
11944
11945
11946
11947 for ac_func in gid_from_group group_from_gid pwcache_groupdb \
11948         pwcache_userdb uid_from_user user_from_uid \
11949
11950 do
11951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11952 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11953 $as_echo_n "checking for $ac_func... " >&6; }
11954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11955   $as_echo_n "(cached) " >&6
11956 else
11957   cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11965 #define $ac_func innocuous_$ac_func
11966
11967 /* System header to define __stub macros and hopefully few prototypes,
11968     which can conflict with char $ac_func (); below.
11969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11970     <limits.h> exists even on freestanding compilers.  */
11971
11972 #ifdef __STDC__
11973 # include <limits.h>
11974 #else
11975 # include <assert.h>
11976 #endif
11977
11978 #undef $ac_func
11979
11980 /* Override any GCC internal prototype to avoid an error.
11981    Use char because int might match the return type of a GCC
11982    builtin and then its argument prototype would still apply.  */
11983 #ifdef __cplusplus
11984 extern "C"
11985 #endif
11986 char $ac_func ();
11987 /* The GNU C library defines this for functions which it implements
11988     to always fail with ENOSYS.  Some functions are actually named
11989     something starting with __ and the normal name is an alias.  */
11990 #if defined __stub_$ac_func || defined __stub___$ac_func
11991 choke me
11992 #endif
11993
11994 int
11995 main ()
11996 {
11997 return $ac_func ();
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010   (eval "$ac_link") 2>conftest.er1
12011   ac_status=$?
12012   grep -v '^ *+' conftest.er1 >conftest.err
12013   rm -f conftest.er1
12014   cat conftest.err >&5
12015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); } && {
12017          test -z "$ac_c_werror_flag" ||
12018          test ! -s conftest.err
12019        } && test -s conftest$ac_exeext && {
12020          test "$cross_compiling" = yes ||
12021          $as_test_x conftest$ac_exeext
12022        }; then
12023   eval "$as_ac_var=yes"
12024 else
12025   $as_echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028         eval "$as_ac_var=no"
12029 fi
12030
12031 rm -rf conftest.dSYM
12032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12033       conftest$ac_exeext conftest.$ac_ext
12034 fi
12035 ac_res=`eval 'as_val=${'$as_ac_var'}
12036                  $as_echo "$as_val"'`
12037                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12038 $as_echo "$ac_res" >&6; }
12039 as_val=`eval 'as_val=${'$as_ac_var'}
12040                  $as_echo "$as_val"'`
12041    if test "x$as_val" = x""yes; then
12042   cat >>confdefs.h <<_ACEOF
12043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12044 _ACEOF
12045  :
12046 else
12047   need_pwcache=yes
12048 fi
12049 done
12050
12051
12052 if test $need_pwcache = yes; then
12053         case " $LIBOBJS " in
12054   *" pwcache.$ac_objext "* ) ;;
12055   *) LIBOBJS="$LIBOBJS pwcache.$ac_objext"
12056  ;;
12057 esac
12058
12059 fi
12060
12061 { $as_echo "$as_me:$LINENO: checking for fts_open" >&5
12062 $as_echo_n "checking for fts_open... " >&6; }
12063 if test "${ac_cv_func_fts_open+set}" = set; then
12064   $as_echo_n "(cached) " >&6
12065 else
12066   cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h.  */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h.  */
12072 /* Define fts_open to an innocuous variant, in case <limits.h> declares fts_open.
12073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12074 #define fts_open innocuous_fts_open
12075
12076 /* System header to define __stub macros and hopefully few prototypes,
12077     which can conflict with char fts_open (); below.
12078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12079     <limits.h> exists even on freestanding compilers.  */
12080
12081 #ifdef __STDC__
12082 # include <limits.h>
12083 #else
12084 # include <assert.h>
12085 #endif
12086
12087 #undef fts_open
12088
12089 /* Override any GCC internal prototype to avoid an error.
12090    Use char because int might match the return type of a GCC
12091    builtin and then its argument prototype would still apply.  */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 char fts_open ();
12096 /* The GNU C library defines this for functions which it implements
12097     to always fail with ENOSYS.  Some functions are actually named
12098     something starting with __ and the normal name is an alias.  */
12099 #if defined __stub_fts_open || defined __stub___fts_open
12100 choke me
12101 #endif
12102
12103 int
12104 main ()
12105 {
12106 return fts_open ();
12107   ;
12108   return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12118 $as_echo "$ac_try_echo") >&5
12119   (eval "$ac_link") 2>conftest.er1
12120   ac_status=$?
12121   grep -v '^ *+' conftest.er1 >conftest.err
12122   rm -f conftest.er1
12123   cat conftest.err >&5
12124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); } && {
12126          test -z "$ac_c_werror_flag" ||
12127          test ! -s conftest.err
12128        } && test -s conftest$ac_exeext && {
12129          test "$cross_compiling" = yes ||
12130          $as_test_x conftest$ac_exeext
12131        }; then
12132   ac_cv_func_fts_open=yes
12133 else
12134   $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137         ac_cv_func_fts_open=no
12138 fi
12139
12140 rm -rf conftest.dSYM
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142       conftest$ac_exeext conftest.$ac_ext
12143 fi
12144 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fts_open" >&5
12145 $as_echo "$ac_cv_func_fts_open" >&6; }
12146 if test "x$ac_cv_func_fts_open" = x""yes; then
12147   :
12148 else
12149
12150         cat >>confdefs.h <<\_ACEOF
12151 #define HAVE_NBCOMPAT_FTS 1
12152 _ACEOF
12153
12154
12155
12156         case " $LIBOBJS " in
12157   *" fts.$ac_objext "* ) ;;
12158   *) LIBOBJS="$LIBOBJS fts.$ac_objext"
12159  ;;
12160 esac
12161
12162
12163 fi
12164
12165
12166 { $as_echo "$as_me:$LINENO: checking for timegm" >&5
12167 $as_echo_n "checking for timegm... " >&6; }
12168 if test "${ac_cv_func_timegm+set}" = set; then
12169   $as_echo_n "(cached) " >&6
12170 else
12171   cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177 /* Define timegm to an innocuous variant, in case <limits.h> declares timegm.
12178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12179 #define timegm innocuous_timegm
12180
12181 /* System header to define __stub macros and hopefully few prototypes,
12182     which can conflict with char timegm (); below.
12183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12184     <limits.h> exists even on freestanding compilers.  */
12185
12186 #ifdef __STDC__
12187 # include <limits.h>
12188 #else
12189 # include <assert.h>
12190 #endif
12191
12192 #undef timegm
12193
12194 /* Override any GCC internal prototype to avoid an error.
12195    Use char because int might match the return type of a GCC
12196    builtin and then its argument prototype would still apply.  */
12197 #ifdef __cplusplus
12198 extern "C"
12199 #endif
12200 char timegm ();
12201 /* The GNU C library defines this for functions which it implements
12202     to always fail with ENOSYS.  Some functions are actually named
12203     something starting with __ and the normal name is an alias.  */
12204 #if defined __stub_timegm || defined __stub___timegm
12205 choke me
12206 #endif
12207
12208 int
12209 main ()
12210 {
12211 return timegm ();
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220   *) ac_try_echo=$ac_try;;
12221 esac
12222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223 $as_echo "$ac_try_echo") >&5
12224   (eval "$ac_link") 2>conftest.er1
12225   ac_status=$?
12226   grep -v '^ *+' conftest.er1 >conftest.err
12227   rm -f conftest.er1
12228   cat conftest.err >&5
12229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); } && {
12231          test -z "$ac_c_werror_flag" ||
12232          test ! -s conftest.err
12233        } && test -s conftest$ac_exeext && {
12234          test "$cross_compiling" = yes ||
12235          $as_test_x conftest$ac_exeext
12236        }; then
12237   ac_cv_func_timegm=yes
12238 else
12239   $as_echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242         ac_cv_func_timegm=no
12243 fi
12244
12245 rm -rf conftest.dSYM
12246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12247       conftest$ac_exeext conftest.$ac_ext
12248 fi
12249 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5
12250 $as_echo "$ac_cv_func_timegm" >&6; }
12251 if test "x$ac_cv_func_timegm" = x""yes; then
12252   :
12253 else
12254   case " $LIBOBJS " in
12255   *" timegm.$ac_objext "* ) ;;
12256   *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
12257  ;;
12258 esac
12259
12260 fi
12261
12262
12263 # Handle Darwin 7 having a poll() compatibility function.  Be
12264 # conservative -- if we don't find one of <poll.h> or <sys/poll.h>, then
12265 # use our own poll() implementation.
12266 #
12267 pkg_cv_have_poll_h=no
12268
12269
12270 for ac_header in poll.h sys/poll.h
12271 do
12272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12275 $as_echo_n "checking for $ac_header... " >&6; }
12276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12277   $as_echo_n "(cached) " >&6
12278 fi
12279 ac_res=`eval 'as_val=${'$as_ac_Header'}
12280                  $as_echo "$as_val"'`
12281                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12282 $as_echo "$ac_res" >&6; }
12283 else
12284   # Is the header compilable?
12285 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12286 $as_echo_n "checking $ac_header usability... " >&6; }
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293 $ac_includes_default
12294 #include <$ac_header>
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300   *) ac_try_echo=$ac_try;;
12301 esac
12302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12303 $as_echo "$ac_try_echo") >&5
12304   (eval "$ac_compile") 2>conftest.er1
12305   ac_status=$?
12306   grep -v '^ *+' conftest.er1 >conftest.err
12307   rm -f conftest.er1
12308   cat conftest.err >&5
12309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } && {
12311          test -z "$ac_c_werror_flag" ||
12312          test ! -s conftest.err
12313        } && test -s conftest.$ac_objext; then
12314   ac_header_compiler=yes
12315 else
12316   $as_echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319         ac_header_compiler=no
12320 fi
12321
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12324 $as_echo "$ac_header_compiler" >&6; }
12325
12326 # Is the header present?
12327 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12328 $as_echo_n "checking $ac_header presence... " >&6; }
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335 #include <$ac_header>
12336 _ACEOF
12337 if { (ac_try="$ac_cpp conftest.$ac_ext"
12338 case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12343 $as_echo "$ac_try_echo") >&5
12344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } >/dev/null && {
12351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12352          test ! -s conftest.err
12353        }; then
12354   ac_header_preproc=yes
12355 else
12356   $as_echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359   ac_header_preproc=no
12360 fi
12361
12362 rm -f conftest.err conftest.$ac_ext
12363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12364 $as_echo "$ac_header_preproc" >&6; }
12365
12366 # So?  What about this header?
12367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12368   yes:no: )
12369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12370 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12373     ac_header_preproc=yes
12374     ;;
12375   no:yes:* )
12376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12377 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12379 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12381 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12383 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12387 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12388     ( cat <<\_ASBOX
12389 ## ------------------------------- ##
12390 ## Report this to grant@NetBSD.org ##
12391 ## ------------------------------- ##
12392 _ASBOX
12393      ) | sed "s/^/$as_me: WARNING:     /" >&2
12394     ;;
12395 esac
12396 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12397 $as_echo_n "checking for $ac_header... " >&6; }
12398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12399   $as_echo_n "(cached) " >&6
12400 else
12401   eval "$as_ac_Header=\$ac_header_preproc"
12402 fi
12403 ac_res=`eval 'as_val=${'$as_ac_Header'}
12404                  $as_echo "$as_val"'`
12405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12406 $as_echo "$ac_res" >&6; }
12407
12408 fi
12409 as_val=`eval 'as_val=${'$as_ac_Header'}
12410                  $as_echo "$as_val"'`
12411    if test "x$as_val" = x""yes; then
12412   cat >>confdefs.h <<_ACEOF
12413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12414 _ACEOF
12415
12416 fi
12417
12418 done
12419
12420
12421
12422 for ac_header in poll.h sys/poll.h
12423 do
12424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12426   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12427 $as_echo_n "checking for $ac_header... " >&6; }
12428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12429   $as_echo_n "(cached) " >&6
12430 fi
12431 ac_res=`eval 'as_val=${'$as_ac_Header'}
12432                  $as_echo "$as_val"'`
12433                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12434 $as_echo "$ac_res" >&6; }
12435 else
12436   # Is the header compilable?
12437 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12438 $as_echo_n "checking $ac_header usability... " >&6; }
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h.  */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h.  */
12445 $ac_includes_default
12446 #include <$ac_header>
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12455 $as_echo "$ac_try_echo") >&5
12456   (eval "$ac_compile") 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } && {
12463          test -z "$ac_c_werror_flag" ||
12464          test ! -s conftest.err
12465        } && test -s conftest.$ac_objext; then
12466   ac_header_compiler=yes
12467 else
12468   $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471         ac_header_compiler=no
12472 fi
12473
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 $as_echo "$ac_header_compiler" >&6; }
12477
12478 # Is the header present?
12479 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12480 $as_echo_n "checking $ac_header presence... " >&6; }
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487 #include <$ac_header>
12488 _ACEOF
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } >/dev/null && {
12503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12504          test ! -s conftest.err
12505        }; then
12506   ac_header_preproc=yes
12507 else
12508   $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511   ac_header_preproc=no
12512 fi
12513
12514 rm -f conftest.err conftest.$ac_ext
12515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 $as_echo "$ac_header_preproc" >&6; }
12517
12518 # So?  What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12520   yes:no: )
12521     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12522 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12525     ac_header_preproc=yes
12526     ;;
12527   no:yes:* )
12528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12529 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12531 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12533 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12535 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12539 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12540     ( cat <<\_ASBOX
12541 ## ------------------------------- ##
12542 ## Report this to grant@NetBSD.org ##
12543 ## ------------------------------- ##
12544 _ASBOX
12545      ) | sed "s/^/$as_me: WARNING:     /" >&2
12546     ;;
12547 esac
12548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12549 $as_echo_n "checking for $ac_header... " >&6; }
12550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12551   $as_echo_n "(cached) " >&6
12552 else
12553   eval "$as_ac_Header=\$ac_header_preproc"
12554 fi
12555 ac_res=`eval 'as_val=${'$as_ac_Header'}
12556                  $as_echo "$as_val"'`
12557                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12558 $as_echo "$ac_res" >&6; }
12559
12560 fi
12561 as_val=`eval 'as_val=${'$as_ac_Header'}
12562                  $as_echo "$as_val"'`
12563    if test "x$as_val" = x""yes; then
12564   cat >>confdefs.h <<_ACEOF
12565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12566 _ACEOF
12567  pkg_cv_have_poll_h=yes
12568 fi
12569
12570 done
12571
12572
12573 pkg_use_nbcompat_poll=yes
12574 if test $pkg_cv_have_poll_h = yes; then
12575         pkg_use_nbcompat_poll=no
12576 fi
12577
12578 if test $pkg_cv_have_poll_h = yes -o test $pkg_cv_have_sys_poll_h = yes; then
12579         { $as_echo "$as_me:$LINENO: checking for poll" >&5
12580 $as_echo_n "checking for poll... " >&6; }
12581 if test "${ac_cv_func_poll+set}" = set; then
12582   $as_echo_n "(cached) " >&6
12583 else
12584   cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
12591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12592 #define poll innocuous_poll
12593
12594 /* System header to define __stub macros and hopefully few prototypes,
12595     which can conflict with char poll (); below.
12596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12597     <limits.h> exists even on freestanding compilers.  */
12598
12599 #ifdef __STDC__
12600 # include <limits.h>
12601 #else
12602 # include <assert.h>
12603 #endif
12604
12605 #undef poll
12606
12607 /* Override any GCC internal prototype to avoid an error.
12608    Use char because int might match the return type of a GCC
12609    builtin and then its argument prototype would still apply.  */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 char poll ();
12614 /* The GNU C library defines this for functions which it implements
12615     to always fail with ENOSYS.  Some functions are actually named
12616     something starting with __ and the normal name is an alias.  */
12617 #if defined __stub_poll || defined __stub___poll
12618 choke me
12619 #endif
12620
12621 int
12622 main ()
12623 {
12624 return poll ();
12625   ;
12626   return 0;
12627 }
12628 _ACEOF
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (ac_try="$ac_link"
12631 case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12636 $as_echo "$ac_try_echo") >&5
12637   (eval "$ac_link") 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } && {
12644          test -z "$ac_c_werror_flag" ||
12645          test ! -s conftest.err
12646        } && test -s conftest$ac_exeext && {
12647          test "$cross_compiling" = yes ||
12648          $as_test_x conftest$ac_exeext
12649        }; then
12650   ac_cv_func_poll=yes
12651 else
12652   $as_echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655         ac_cv_func_poll=no
12656 fi
12657
12658 rm -rf conftest.dSYM
12659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12660       conftest$ac_exeext conftest.$ac_ext
12661 fi
12662 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
12663 $as_echo "$ac_cv_func_poll" >&6; }
12664 if test "x$ac_cv_func_poll" = x""yes; then
12665
12666
12667         { $as_echo "$as_me:$LINENO: checking if poll() is implemented natively" >&5
12668 $as_echo_n "checking if poll() is implemented natively... " >&6; }
12669 if test "${pkg_cv_native_poll+set}" = set; then
12670   $as_echo_n "(cached) " >&6
12671 else
12672
12673                 cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h.  */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h.  */
12679   #if HAVE_POLL_H
12680                   #include <poll.h>
12681                   #endif
12682                   #if HAVE_SYS_POLL_H
12683                   #include <sys/poll.h>
12684                   #endif
12685
12686 int
12687 main ()
12688 {
12689   #ifdef _POLL_EMUL_H_
12690                   #error "poll() is emulated"
12691                   #endif
12692                 ;
12693   ;
12694   return 0;
12695 }
12696 _ACEOF
12697 rm -f conftest.$ac_objext
12698 if { (ac_try="$ac_compile"
12699 case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12704 $as_echo "$ac_try_echo") >&5
12705   (eval "$ac_compile") 2>conftest.er1
12706   ac_status=$?
12707   grep -v '^ *+' conftest.er1 >conftest.err
12708   rm -f conftest.er1
12709   cat conftest.err >&5
12710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } && {
12712          test -z "$ac_c_werror_flag" ||
12713          test ! -s conftest.err
12714        } && test -s conftest.$ac_objext; then
12715    pkg_cv_native_poll=yes
12716 else
12717   $as_echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720          pkg_cv_native_poll=no
12721 fi
12722
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724
12725 fi
12726 { $as_echo "$as_me:$LINENO: result: $pkg_cv_native_poll" >&5
12727 $as_echo "$pkg_cv_native_poll" >&6; }
12728         if test "x$pkg_cv_native_poll" = "xyes"; then
12729                 pkg_use_nbcompat_poll=no
12730         else
12731                 pkg_use_nbcompat_poll=yes
12732                 :
12733         fi
12734
12735
12736 fi
12737
12738 fi
12739
12740 if test $pkg_use_nbcompat_poll = yes; then
12741         cat >>confdefs.h <<\_ACEOF
12742 #define HAVE_NBCOMPAT_POLL 1
12743 _ACEOF
12744
12745
12746
12747         case " $LIBOBJS " in
12748   *" poll.$ac_objext "* ) ;;
12749   *) LIBOBJS="$LIBOBJS poll.$ac_objext"
12750  ;;
12751 esac
12752
12753 fi
12754
12755
12756
12757
12758
12759 for ac_func in getpassphrase getpgrp memmove select
12760 do
12761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12762 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12763 $as_echo_n "checking for $ac_func... " >&6; }
12764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12765   $as_echo_n "(cached) " >&6
12766 else
12767   cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12775 #define $ac_func innocuous_$ac_func
12776
12777 /* System header to define __stub macros and hopefully few prototypes,
12778     which can conflict with char $ac_func (); below.
12779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12780     <limits.h> exists even on freestanding compilers.  */
12781
12782 #ifdef __STDC__
12783 # include <limits.h>
12784 #else
12785 # include <assert.h>
12786 #endif
12787
12788 #undef $ac_func
12789
12790 /* Override any GCC internal prototype to avoid an error.
12791    Use char because int might match the return type of a GCC
12792    builtin and then its argument prototype would still apply.  */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 char $ac_func ();
12797 /* The GNU C library defines this for functions which it implements
12798     to always fail with ENOSYS.  Some functions are actually named
12799     something starting with __ and the normal name is an alias.  */
12800 #if defined __stub_$ac_func || defined __stub___$ac_func
12801 choke me
12802 #endif
12803
12804 int
12805 main ()
12806 {
12807 return $ac_func ();
12808   ;
12809   return 0;
12810 }
12811 _ACEOF
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820   (eval "$ac_link") 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } && {
12827          test -z "$ac_c_werror_flag" ||
12828          test ! -s conftest.err
12829        } && test -s conftest$ac_exeext && {
12830          test "$cross_compiling" = yes ||
12831          $as_test_x conftest$ac_exeext
12832        }; then
12833   eval "$as_ac_var=yes"
12834 else
12835   $as_echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838         eval "$as_ac_var=no"
12839 fi
12840
12841 rm -rf conftest.dSYM
12842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12843       conftest$ac_exeext conftest.$ac_ext
12844 fi
12845 ac_res=`eval 'as_val=${'$as_ac_var'}
12846                  $as_echo "$as_val"'`
12847                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12848 $as_echo "$ac_res" >&6; }
12849 as_val=`eval 'as_val=${'$as_ac_var'}
12850                  $as_echo "$as_val"'`
12851    if test "x$as_val" = x""yes; then
12852   cat >>confdefs.h <<_ACEOF
12853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12854 _ACEOF
12855
12856 fi
12857 done
12858
12859
12860 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
12861 $as_echo_n "checking for getpgrp... " >&6; }
12862 if test "${ac_cv_func_getpgrp+set}" = set; then
12863   $as_echo_n "(cached) " >&6
12864 else
12865   cat >conftest.$ac_ext <<_ACEOF
12866 /* confdefs.h.  */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h.  */
12871 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
12872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12873 #define getpgrp innocuous_getpgrp
12874
12875 /* System header to define __stub macros and hopefully few prototypes,
12876     which can conflict with char getpgrp (); below.
12877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12878     <limits.h> exists even on freestanding compilers.  */
12879
12880 #ifdef __STDC__
12881 # include <limits.h>
12882 #else
12883 # include <assert.h>
12884 #endif
12885
12886 #undef getpgrp
12887
12888 /* Override any GCC internal prototype to avoid an error.
12889    Use char because int might match the return type of a GCC
12890    builtin and then its argument prototype would still apply.  */
12891 #ifdef __cplusplus
12892 extern "C"
12893 #endif
12894 char getpgrp ();
12895 /* The GNU C library defines this for functions which it implements
12896     to always fail with ENOSYS.  Some functions are actually named
12897     something starting with __ and the normal name is an alias.  */
12898 #if defined __stub_getpgrp || defined __stub___getpgrp
12899 choke me
12900 #endif
12901
12902 int
12903 main ()
12904 {
12905 return getpgrp ();
12906   ;
12907   return 0;
12908 }
12909 _ACEOF
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914   *) ac_try_echo=$ac_try;;
12915 esac
12916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12917 $as_echo "$ac_try_echo") >&5
12918   (eval "$ac_link") 2>conftest.er1
12919   ac_status=$?
12920   grep -v '^ *+' conftest.er1 >conftest.err
12921   rm -f conftest.er1
12922   cat conftest.err >&5
12923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); } && {
12925          test -z "$ac_c_werror_flag" ||
12926          test ! -s conftest.err
12927        } && test -s conftest$ac_exeext && {
12928          test "$cross_compiling" = yes ||
12929          $as_test_x conftest$ac_exeext
12930        }; then
12931   ac_cv_func_getpgrp=yes
12932 else
12933   $as_echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936         ac_cv_func_getpgrp=no
12937 fi
12938
12939 rm -rf conftest.dSYM
12940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12941       conftest$ac_exeext conftest.$ac_ext
12942 fi
12943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
12944 $as_echo "$ac_cv_func_getpgrp" >&6; }
12945 if test "x$ac_cv_func_getpgrp" = x""yes; then
12946   { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12947 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12948 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12949   $as_echo_n "(cached) " >&6
12950 else
12951   # Use it with a single arg.
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h.  */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h.  */
12958 $ac_includes_default
12959 int
12960 main ()
12961 {
12962 getpgrp (0);
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 rm -f conftest.$ac_objext
12968 if { (ac_try="$ac_compile"
12969 case "(($ac_try" in
12970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971   *) ac_try_echo=$ac_try;;
12972 esac
12973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12974 $as_echo "$ac_try_echo") >&5
12975   (eval "$ac_compile") 2>conftest.er1
12976   ac_status=$?
12977   grep -v '^ *+' conftest.er1 >conftest.err
12978   rm -f conftest.er1
12979   cat conftest.err >&5
12980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); } && {
12982          test -z "$ac_c_werror_flag" ||
12983          test ! -s conftest.err
12984        } && test -s conftest.$ac_objext; then
12985   ac_cv_func_getpgrp_void=no
12986 else
12987   $as_echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12989
12990         ac_cv_func_getpgrp_void=yes
12991 fi
12992
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994
12995 fi
12996 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12997 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12998 if test $ac_cv_func_getpgrp_void = yes; then
12999
13000 cat >>confdefs.h <<\_ACEOF
13001 #define GETPGRP_VOID 1
13002 _ACEOF
13003
13004 fi
13005
13006 fi
13007
13008
13009 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_flags" >&5
13010 $as_echo_n "checking for struct statfs.f_flags... " >&6; }
13011 if test "${ac_cv_member_struct_statfs_f_flags+set}" = set; then
13012   $as_echo_n "(cached) " >&6
13013 else
13014   cat >conftest.$ac_ext <<_ACEOF
13015 /* confdefs.h.  */
13016 _ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h.  */
13020  #include <sys/statfs.h>
13021
13022 int
13023 main ()
13024 {
13025 static struct statfs ac_aggr;
13026 if (ac_aggr.f_flags)
13027 return 0;
13028   ;
13029   return 0;
13030 }
13031 _ACEOF
13032 rm -f conftest.$ac_objext
13033 if { (ac_try="$ac_compile"
13034 case "(($ac_try" in
13035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036   *) ac_try_echo=$ac_try;;
13037 esac
13038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13039 $as_echo "$ac_try_echo") >&5
13040   (eval "$ac_compile") 2>conftest.er1
13041   ac_status=$?
13042   grep -v '^ *+' conftest.er1 >conftest.err
13043   rm -f conftest.er1
13044   cat conftest.err >&5
13045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); } && {
13047          test -z "$ac_c_werror_flag" ||
13048          test ! -s conftest.err
13049        } && test -s conftest.$ac_objext; then
13050   ac_cv_member_struct_statfs_f_flags=yes
13051 else
13052   $as_echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
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 <sys/statfs.h>
13062
13063 int
13064 main ()
13065 {
13066 static struct statfs ac_aggr;
13067 if (sizeof ac_aggr.f_flags)
13068 return 0;
13069   ;
13070   return 0;
13071 }
13072 _ACEOF
13073 rm -f conftest.$ac_objext
13074 if { (ac_try="$ac_compile"
13075 case "(($ac_try" in
13076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077   *) ac_try_echo=$ac_try;;
13078 esac
13079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13080 $as_echo "$ac_try_echo") >&5
13081   (eval "$ac_compile") 2>conftest.er1
13082   ac_status=$?
13083   grep -v '^ *+' conftest.er1 >conftest.err
13084   rm -f conftest.er1
13085   cat conftest.err >&5
13086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); } && {
13088          test -z "$ac_c_werror_flag" ||
13089          test ! -s conftest.err
13090        } && test -s conftest.$ac_objext; then
13091   ac_cv_member_struct_statfs_f_flags=yes
13092 else
13093   $as_echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13095
13096         ac_cv_member_struct_statfs_f_flags=no
13097 fi
13098
13099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 fi
13101
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 fi
13104 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_flags" >&5
13105 $as_echo "$ac_cv_member_struct_statfs_f_flags" >&6; }
13106 if test "x$ac_cv_member_struct_statfs_f_flags" = x""yes; then
13107
13108 cat >>confdefs.h <<_ACEOF
13109 #define HAVE_STRUCT_STATFS_F_FLAGS 1
13110 _ACEOF
13111
13112 :
13113 else
13114   :
13115 fi
13116
13117 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_fsize" >&5
13118 $as_echo_n "checking for struct statfs.f_fsize... " >&6; }
13119 if test "${ac_cv_member_struct_statfs_f_fsize+set}" = set; then
13120   $as_echo_n "(cached) " >&6
13121 else
13122   cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h.  */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h.  */
13128  #include <sys/statfs.h>
13129
13130 int
13131 main ()
13132 {
13133 static struct statfs ac_aggr;
13134 if (ac_aggr.f_fsize)
13135 return 0;
13136   ;
13137   return 0;
13138 }
13139 _ACEOF
13140 rm -f conftest.$ac_objext
13141 if { (ac_try="$ac_compile"
13142 case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13147 $as_echo "$ac_try_echo") >&5
13148   (eval "$ac_compile") 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } && {
13155          test -z "$ac_c_werror_flag" ||
13156          test ! -s conftest.err
13157        } && test -s conftest.$ac_objext; then
13158   ac_cv_member_struct_statfs_f_fsize=yes
13159 else
13160   $as_echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163         cat >conftest.$ac_ext <<_ACEOF
13164 /* confdefs.h.  */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h.  */
13169  #include <sys/statfs.h>
13170
13171 int
13172 main ()
13173 {
13174 static struct statfs ac_aggr;
13175 if (sizeof ac_aggr.f_fsize)
13176 return 0;
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 rm -f conftest.$ac_objext
13182 if { (ac_try="$ac_compile"
13183 case "(($ac_try" in
13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185   *) ac_try_echo=$ac_try;;
13186 esac
13187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13188 $as_echo "$ac_try_echo") >&5
13189   (eval "$ac_compile") 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } && {
13196          test -z "$ac_c_werror_flag" ||
13197          test ! -s conftest.err
13198        } && test -s conftest.$ac_objext; then
13199   ac_cv_member_struct_statfs_f_fsize=yes
13200 else
13201   $as_echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204         ac_cv_member_struct_statfs_f_fsize=no
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 fi
13209
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 fi
13212 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsize" >&5
13213 $as_echo "$ac_cv_member_struct_statfs_f_fsize" >&6; }
13214 if test "x$ac_cv_member_struct_statfs_f_fsize" = x""yes; then
13215
13216 cat >>confdefs.h <<_ACEOF
13217 #define HAVE_STRUCT_STATFS_F_FSIZE 1
13218 _ACEOF
13219
13220 :
13221 else
13222   :
13223 fi
13224
13225 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_iosize" >&5
13226 $as_echo_n "checking for struct statfs.f_iosize... " >&6; }
13227 if test "${ac_cv_member_struct_statfs_f_iosize+set}" = set; then
13228   $as_echo_n "(cached) " >&6
13229 else
13230   cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h.  */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h.  */
13236  #include <sys/statfs.h>
13237
13238 int
13239 main ()
13240 {
13241 static struct statfs ac_aggr;
13242 if (ac_aggr.f_iosize)
13243 return 0;
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252   *) ac_try_echo=$ac_try;;
13253 esac
13254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13255 $as_echo "$ac_try_echo") >&5
13256   (eval "$ac_compile") 2>conftest.er1
13257   ac_status=$?
13258   grep -v '^ *+' conftest.er1 >conftest.err
13259   rm -f conftest.er1
13260   cat conftest.err >&5
13261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } && {
13263          test -z "$ac_c_werror_flag" ||
13264          test ! -s conftest.err
13265        } && test -s conftest.$ac_objext; then
13266   ac_cv_member_struct_statfs_f_iosize=yes
13267 else
13268   $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271         cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277  #include <sys/statfs.h>
13278
13279 int
13280 main ()
13281 {
13282 static struct statfs ac_aggr;
13283 if (sizeof ac_aggr.f_iosize)
13284 return 0;
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13296 $as_echo "$ac_try_echo") >&5
13297   (eval "$ac_compile") 2>conftest.er1
13298   ac_status=$?
13299   grep -v '^ *+' conftest.er1 >conftest.err
13300   rm -f conftest.er1
13301   cat conftest.err >&5
13302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); } && {
13304          test -z "$ac_c_werror_flag" ||
13305          test ! -s conftest.err
13306        } && test -s conftest.$ac_objext; then
13307   ac_cv_member_struct_statfs_f_iosize=yes
13308 else
13309   $as_echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312         ac_cv_member_struct_statfs_f_iosize=no
13313 fi
13314
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316 fi
13317
13318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319 fi
13320 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_iosize" >&5
13321 $as_echo "$ac_cv_member_struct_statfs_f_iosize" >&6; }
13322 if test "x$ac_cv_member_struct_statfs_f_iosize" = x""yes; then
13323
13324 cat >>confdefs.h <<_ACEOF
13325 #define HAVE_STRUCT_STATFS_F_IOSIZE 1
13326 _ACEOF
13327
13328 :
13329 else
13330   :
13331 fi
13332
13333 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
13334 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
13335 if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
13336   $as_echo_n "(cached) " >&6
13337 else
13338   cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h.  */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h.  */
13344  #include <sys/types.h>
13345           #if HAVE_DIRENT_H
13346           # include <dirent.h>
13347           #else
13348           # define dirent direct
13349           # if HAVE_SYS_NDIR_H
13350           #  include <sys/ndir.h>
13351           # endif
13352           # if HAVE_SYS_DIR_H
13353           #  include <sys/dir.h>
13354           # endif
13355           # if HAVE_NDIR_H
13356           #  include <ndir.h>
13357           # endif
13358           #endif
13359
13360 int
13361 main ()
13362 {
13363 static struct dirent ac_aggr;
13364 if (ac_aggr.d_namlen)
13365 return 0;
13366   ;
13367   return 0;
13368 }
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (ac_try="$ac_compile"
13372 case "(($ac_try" in
13373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374   *) ac_try_echo=$ac_try;;
13375 esac
13376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13377 $as_echo "$ac_try_echo") >&5
13378   (eval "$ac_compile") 2>conftest.er1
13379   ac_status=$?
13380   grep -v '^ *+' conftest.er1 >conftest.err
13381   rm -f conftest.er1
13382   cat conftest.err >&5
13383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); } && {
13385          test -z "$ac_c_werror_flag" ||
13386          test ! -s conftest.err
13387        } && test -s conftest.$ac_objext; then
13388   ac_cv_member_struct_dirent_d_namlen=yes
13389 else
13390   $as_echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13392
13393         cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399  #include <sys/types.h>
13400           #if HAVE_DIRENT_H
13401           # include <dirent.h>
13402           #else
13403           # define dirent direct
13404           # if HAVE_SYS_NDIR_H
13405           #  include <sys/ndir.h>
13406           # endif
13407           # if HAVE_SYS_DIR_H
13408           #  include <sys/dir.h>
13409           # endif
13410           # if HAVE_NDIR_H
13411           #  include <ndir.h>
13412           # endif
13413           #endif
13414
13415 int
13416 main ()
13417 {
13418 static struct dirent ac_aggr;
13419 if (sizeof ac_aggr.d_namlen)
13420 return 0;
13421   ;
13422   return 0;
13423 }
13424 _ACEOF
13425 rm -f conftest.$ac_objext
13426 if { (ac_try="$ac_compile"
13427 case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13432 $as_echo "$ac_try_echo") >&5
13433   (eval "$ac_compile") 2>conftest.er1
13434   ac_status=$?
13435   grep -v '^ *+' conftest.er1 >conftest.err
13436   rm -f conftest.er1
13437   cat conftest.err >&5
13438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } && {
13440          test -z "$ac_c_werror_flag" ||
13441          test ! -s conftest.err
13442        } && test -s conftest.$ac_objext; then
13443   ac_cv_member_struct_dirent_d_namlen=yes
13444 else
13445   $as_echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448         ac_cv_member_struct_dirent_d_namlen=no
13449 fi
13450
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 fi
13456 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
13457 $as_echo "$ac_cv_member_struct_dirent_d_namlen" >&6; }
13458 if test "x$ac_cv_member_struct_dirent_d_namlen" = x""yes; then
13459
13460 cat >>confdefs.h <<_ACEOF
13461 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
13462 _ACEOF
13463
13464 :
13465 else
13466   :
13467 fi
13468 { $as_echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
13469 $as_echo_n "checking for DIR.dd_fd... " >&6; }
13470 if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
13471   $as_echo_n "(cached) " >&6
13472 else
13473   cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479  #include <sys/types.h>
13480           #if HAVE_DIRENT_H
13481           # include <dirent.h>
13482           #else
13483           # define dirent direct
13484           # if HAVE_SYS_NDIR_H
13485           #  include <sys/ndir.h>
13486           # endif
13487           # if HAVE_SYS_DIR_H
13488           #  include <sys/dir.h>
13489           # endif
13490           # if HAVE_NDIR_H
13491           #  include <ndir.h>
13492           # endif
13493           #endif
13494
13495 int
13496 main ()
13497 {
13498 static DIR ac_aggr;
13499 if (ac_aggr.dd_fd)
13500 return 0;
13501   ;
13502   return 0;
13503 }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13512 $as_echo "$ac_try_echo") >&5
13513   (eval "$ac_compile") 2>conftest.er1
13514   ac_status=$?
13515   grep -v '^ *+' conftest.er1 >conftest.err
13516   rm -f conftest.er1
13517   cat conftest.err >&5
13518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); } && {
13520          test -z "$ac_c_werror_flag" ||
13521          test ! -s conftest.err
13522        } && test -s conftest.$ac_objext; then
13523   ac_cv_member_DIR_dd_fd=yes
13524 else
13525   $as_echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528         cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h.  */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h.  */
13534  #include <sys/types.h>
13535           #if HAVE_DIRENT_H
13536           # include <dirent.h>
13537           #else
13538           # define dirent direct
13539           # if HAVE_SYS_NDIR_H
13540           #  include <sys/ndir.h>
13541           # endif
13542           # if HAVE_SYS_DIR_H
13543           #  include <sys/dir.h>
13544           # endif
13545           # if HAVE_NDIR_H
13546           #  include <ndir.h>
13547           # endif
13548           #endif
13549
13550 int
13551 main ()
13552 {
13553 static DIR ac_aggr;
13554 if (sizeof ac_aggr.dd_fd)
13555 return 0;
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 rm -f conftest.$ac_objext
13561 if { (ac_try="$ac_compile"
13562 case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567 $as_echo "$ac_try_echo") >&5
13568   (eval "$ac_compile") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } && {
13575          test -z "$ac_c_werror_flag" ||
13576          test ! -s conftest.err
13577        } && test -s conftest.$ac_objext; then
13578   ac_cv_member_DIR_dd_fd=yes
13579 else
13580   $as_echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583         ac_cv_member_DIR_dd_fd=no
13584 fi
13585
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 fi
13588
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 fi
13591 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
13592 $as_echo "$ac_cv_member_DIR_dd_fd" >&6; }
13593 if test "x$ac_cv_member_DIR_dd_fd" = x""yes; then
13594
13595 cat >>confdefs.h <<_ACEOF
13596 #define HAVE_DIR_DD_FD 1
13597 _ACEOF
13598
13599 :
13600 else
13601   :
13602 fi
13603
13604
13605 { $as_echo "$as_me:$LINENO: checking for dirfd" >&5
13606 $as_echo_n "checking for dirfd... " >&6; }
13607 cat >conftest.$ac_ext <<_ACEOF
13608 /* confdefs.h.  */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h.  */
13613  #include <sys/types.h>
13614     #if HAVE_DIRENT_H
13615     # include <dirent.h>
13616     #else
13617     # define dirent direct
13618     # if HAVE_SYS_NDIR_H
13619     #  include <sys/ndir.h>
13620     # endif
13621     # if HAVE_SYS_DIR_H
13622     #  include <sys/dir.h>
13623     # endif
13624     # if HAVE_NDIR_H
13625     #  include <ndir.h>
13626     # endif
13627     #endif
13628     int dummy_var;
13629
13630 int
13631 main ()
13632 {
13633  dummy_var = dirfd((DIR *)0)
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642   *) ac_try_echo=$ac_try;;
13643 esac
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646   (eval "$ac_link") 2>conftest.er1
13647   ac_status=$?
13648   grep -v '^ *+' conftest.er1 >conftest.err
13649   rm -f conftest.er1
13650   cat conftest.err >&5
13651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } && {
13653          test -z "$ac_c_werror_flag" ||
13654          test ! -s conftest.err
13655        } && test -s conftest$ac_exeext && {
13656          test "$cross_compiling" = yes ||
13657          $as_test_x conftest$ac_exeext
13658        }; then
13659
13660         { $as_echo "$as_me:$LINENO: result: yes" >&5
13661 $as_echo "yes" >&6; }
13662
13663 cat >>confdefs.h <<\_ACEOF
13664 #define HAVE_DIRFD 1
13665 _ACEOF
13666
13667
13668 else
13669   $as_echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672                 { $as_echo "$as_me:$LINENO: result: no" >&5
13673 $as_echo "no" >&6; }
13674
13675
13676 fi
13677
13678 rm -rf conftest.dSYM
13679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13680       conftest$ac_exeext conftest.$ac_ext
13681
13682 if test $ac_cv_type_long_long = yes; then
13683
13684
13685         { $as_echo "$as_me:$LINENO: checking *printf() support for %lld" >&5
13686 $as_echo_n "checking *printf() support for %lld... " >&6; }
13687         can_printf_longlong=no
13688         if test "$cross_compiling" = yes; then
13689   :
13690 else
13691   cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697
13698                 #include <stdio.h>
13699                 int main() {
13700                         char buf[100];
13701                         sprintf(buf, "%lld", 4294967300LL);
13702                         return (strcmp(buf, "4294967300"));
13703                 }
13704
13705 _ACEOF
13706 rm -f conftest$ac_exeext
13707 if { (ac_try="$ac_link"
13708 case "(($ac_try" in
13709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710   *) ac_try_echo=$ac_try;;
13711 esac
13712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13713 $as_echo "$ac_try_echo") >&5
13714   (eval "$ac_link") 2>&5
13715   ac_status=$?
13716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13718   { (case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13723 $as_echo "$ac_try_echo") >&5
13724   (eval "$ac_try") 2>&5
13725   ac_status=$?
13726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; }; then
13728
13729                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13730 $as_echo "yes" >&6; }
13731                 can_printf_longlong=yes
13732
13733 else
13734   $as_echo "$as_me: program exited with status $ac_status" >&5
13735 $as_echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ( exit $ac_status )
13739
13740                 { $as_echo "$as_me:$LINENO: result: no" >&5
13741 $as_echo "no" >&6; }
13742
13743 fi
13744 rm -rf conftest.dSYM
13745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13746 fi
13747
13748
13749
13750         if test $can_printf_longlong != yes; then
13751                 { $as_echo "$as_me:$LINENO: checking *printf() support for %qd" >&5
13752 $as_echo_n "checking *printf() support for %qd... " >&6; }
13753                 if test "$cross_compiling" = yes; then
13754   :
13755 else
13756   cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h.  */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h.  */
13762
13763                         #include <stdio.h>
13764                         int main() {
13765                                 char buf[100];
13766                                 sprintf(buf, "%qd", 4294967300LL);
13767                                 return (strcmp(buf, "4294967300"));
13768                         }
13769
13770 _ACEOF
13771 rm -f conftest$ac_exeext
13772 if { (ac_try="$ac_link"
13773 case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13778 $as_echo "$ac_try_echo") >&5
13779   (eval "$ac_link") 2>&5
13780   ac_status=$?
13781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13783   { (case "(($ac_try" in
13784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785   *) ac_try_echo=$ac_try;;
13786 esac
13787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13788 $as_echo "$ac_try_echo") >&5
13789   (eval "$ac_try") 2>&5
13790   ac_status=$?
13791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; }; then
13793
13794                         { $as_echo "$as_me:$LINENO: result: yes" >&5
13795 $as_echo "yes" >&6; }
13796                         can_printf_longlong=yes
13797                         cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_PRINTF_QD 1
13799 _ACEOF
13800
13801
13802
13803
13804 else
13805   $as_echo "$as_me: program exited with status $ac_status" >&5
13806 $as_echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 ( exit $ac_status )
13810
13811                         { $as_echo "$as_me:$LINENO: result: no" >&5
13812 $as_echo "no" >&6; }
13813
13814 fi
13815 rm -rf conftest.dSYM
13816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13817 fi
13818
13819
13820         fi
13821
13822         if test $can_printf_longlong = yes; then
13823                 cat >>confdefs.h <<\_ACEOF
13824 #define HAVE_WORKING_LONG_LONG 1
13825 _ACEOF
13826
13827
13828
13829
13830 for ac_func in strtoll
13831 do
13832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13833 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13834 $as_echo_n "checking for $ac_func... " >&6; }
13835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13836   $as_echo_n "(cached) " >&6
13837 else
13838   cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h.  */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h.  */
13844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13846 #define $ac_func innocuous_$ac_func
13847
13848 /* System header to define __stub macros and hopefully few prototypes,
13849     which can conflict with char $ac_func (); below.
13850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13851     <limits.h> exists even on freestanding compilers.  */
13852
13853 #ifdef __STDC__
13854 # include <limits.h>
13855 #else
13856 # include <assert.h>
13857 #endif
13858
13859 #undef $ac_func
13860
13861 /* Override any GCC internal prototype to avoid an error.
13862    Use char because int might match the return type of a GCC
13863    builtin and then its argument prototype would still apply.  */
13864 #ifdef __cplusplus
13865 extern "C"
13866 #endif
13867 char $ac_func ();
13868 /* The GNU C library defines this for functions which it implements
13869     to always fail with ENOSYS.  Some functions are actually named
13870     something starting with __ and the normal name is an alias.  */
13871 #if defined __stub_$ac_func || defined __stub___$ac_func
13872 choke me
13873 #endif
13874
13875 int
13876 main ()
13877 {
13878 return $ac_func ();
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 rm -f conftest.$ac_objext conftest$ac_exeext
13884 if { (ac_try="$ac_link"
13885 case "(($ac_try" in
13886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887   *) ac_try_echo=$ac_try;;
13888 esac
13889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13890 $as_echo "$ac_try_echo") >&5
13891   (eval "$ac_link") 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } && {
13898          test -z "$ac_c_werror_flag" ||
13899          test ! -s conftest.err
13900        } && test -s conftest$ac_exeext && {
13901          test "$cross_compiling" = yes ||
13902          $as_test_x conftest$ac_exeext
13903        }; then
13904   eval "$as_ac_var=yes"
13905 else
13906   $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909         eval "$as_ac_var=no"
13910 fi
13911
13912 rm -rf conftest.dSYM
13913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13914       conftest$ac_exeext conftest.$ac_ext
13915 fi
13916 ac_res=`eval 'as_val=${'$as_ac_var'}
13917                  $as_echo "$as_val"'`
13918                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13919 $as_echo "$ac_res" >&6; }
13920 as_val=`eval 'as_val=${'$as_ac_var'}
13921                  $as_echo "$as_val"'`
13922    if test "x$as_val" = x""yes; then
13923   cat >>confdefs.h <<_ACEOF
13924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13925 _ACEOF
13926
13927 else
13928   case " $LIBOBJS " in
13929   *" $ac_func.$ac_objext "* ) ;;
13930   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13931  ;;
13932 esac
13933
13934 fi
13935 done
13936
13937
13938         fi
13939
13940 fi
13941
13942
13943
13944 { $as_echo "$as_me:$LINENO: checking if vsnprintf is standards compliant" >&5
13945 $as_echo_n "checking if vsnprintf is standards compliant... " >&6; }
13946 have_std_vsnprintf=no
13947 if test "$cross_compiling" = yes; then
13948   :
13949 else
13950   cat >conftest.$ac_ext <<_ACEOF
13951 /* confdefs.h.  */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h.  */
13956
13957 #include <stdio.h>
13958 #include <stdlib.h>
13959 #include <stdarg.h>
13960 void dotest(char *fmt, ...) {
13961         char buf[3];
13962         va_list ap;
13963         va_start(ap, fmt);
13964         exit(snprintf(buf, 3, fmt, ap) == 4 ? 0 : 1);
13965 }
13966 int main() {
13967         dotest("test");
13968 }
13969
13970 _ACEOF
13971 rm -f conftest$ac_exeext
13972 if { (ac_try="$ac_link"
13973 case "(($ac_try" in
13974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975   *) ac_try_echo=$ac_try;;
13976 esac
13977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13978 $as_echo "$ac_try_echo") >&5
13979   (eval "$ac_link") 2>&5
13980   ac_status=$?
13981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13983   { (case "(($ac_try" in
13984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985   *) ac_try_echo=$ac_try;;
13986 esac
13987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13988 $as_echo "$ac_try_echo") >&5
13989   (eval "$ac_try") 2>&5
13990   ac_status=$?
13991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; }; then
13993
13994         { $as_echo "$as_me:$LINENO: result: yes" >&5
13995 $as_echo "yes" >&6; }
13996         have_std_vsnprintf=yes
13997
13998 else
13999   $as_echo "$as_me: program exited with status $ac_status" >&5
14000 $as_echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003 ( exit $ac_status )
14004
14005         { $as_echo "$as_me:$LINENO: result: no" >&5
14006 $as_echo "no" >&6; }
14007
14008 fi
14009 rm -rf conftest.dSYM
14010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14011 fi
14012
14013
14014
14015 if test $have_std_vsnprintf = no; then
14016         case " $LIBOBJS " in
14017   *" snprintf.$ac_objext "* ) ;;
14018   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14019  ;;
14020 esac
14021
14022 fi
14023
14024
14025
14026
14027 ac_config_files="$ac_config_files Makefile"
14028
14029 cat >confcache <<\_ACEOF
14030 # This file is a shell script that caches the results of configure
14031 # tests run on this system so they can be shared between configure
14032 # scripts and configure runs, see configure's option --config-cache.
14033 # It is not useful on other systems.  If it contains results you don't
14034 # want to keep, you may remove or edit it.
14035 #
14036 # config.status only pays attention to the cache file if you give it
14037 # the --recheck option to rerun configure.
14038 #
14039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14041 # following values.
14042
14043 _ACEOF
14044
14045 # The following way of writing the cache mishandles newlines in values,
14046 # but we know of no workaround that is simple, portable, and efficient.
14047 # So, we kill variables containing newlines.
14048 # Ultrix sh set writes to stderr and can't be redirected directly,
14049 # and sets the high bit in the cache file unless we assign to the vars.
14050 (
14051   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14052     eval ac_val=\$$ac_var
14053     case $ac_val in #(
14054     *${as_nl}*)
14055       case $ac_var in #(
14056       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14058       esac
14059       case $ac_var in #(
14060       _ | IFS | as_nl) ;; #(
14061       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14062       *) $as_unset $ac_var ;;
14063       esac ;;
14064     esac
14065   done
14066
14067   (set) 2>&1 |
14068     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14069     *${as_nl}ac_space=\ *)
14070       # `set' does not quote correctly, so add quotes (double-quote
14071       # substitution turns \\\\ into \\, and sed turns \\ into \).
14072       sed -n \
14073         "s/'/'\\\\''/g;
14074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14075       ;; #(
14076     *)
14077       # `set' quotes correctly as required by POSIX, so do not add quotes.
14078       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14079       ;;
14080     esac |
14081     sort
14082 ) |
14083   sed '
14084      /^ac_cv_env_/b end
14085      t clear
14086      :clear
14087      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14088      t end
14089      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14090      :end' >>confcache
14091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14092   if test -w "$cache_file"; then
14093     test "x$cache_file" != "x/dev/null" &&
14094       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14095 $as_echo "$as_me: updating cache $cache_file" >&6;}
14096     cat confcache >$cache_file
14097   else
14098     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14099 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14100   fi
14101 fi
14102 rm -f confcache
14103
14104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14105 # Let make expand exec_prefix.
14106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14107
14108 DEFS=-DHAVE_CONFIG_H
14109
14110 ac_libobjs=
14111 ac_ltlibobjs=
14112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14113   # 1. Remove the extension, and $U if already installed.
14114   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14115   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14116   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14117   #    will be set to the directory where LIBOBJS objects are built.
14118   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14119   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14120 done
14121 LIBOBJS=$ac_libobjs
14122
14123 LTLIBOBJS=$ac_ltlibobjs
14124
14125
14126
14127
14128 : ${CONFIG_STATUS=./config.status}
14129 ac_write_fail=0
14130 ac_clean_files_save=$ac_clean_files
14131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14132 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14133 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14134 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14135 #! $SHELL
14136 # Generated by $as_me.
14137 # Run this file to recreate the current configuration.
14138 # Compiler output produced by configure, useful for debugging
14139 # configure, is in config.log if it exists.
14140
14141 debug=false
14142 ac_cs_recheck=false
14143 ac_cs_silent=false
14144 SHELL=\${CONFIG_SHELL-$SHELL}
14145 _ACEOF
14146
14147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14148 ## --------------------- ##
14149 ## M4sh Initialization.  ##
14150 ## --------------------- ##
14151
14152 # Be more Bourne compatible
14153 DUALCASE=1; export DUALCASE # for MKS sh
14154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14155   emulate sh
14156   NULLCMD=:
14157   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14158   # is contrary to our usage.  Disable this feature.
14159   alias -g '${1+"$@"}'='"$@"'
14160   setopt NO_GLOB_SUBST
14161 else
14162   case `(set -o) 2>/dev/null` in
14163   *posix*) set -o posix ;;
14164 esac
14165
14166 fi
14167
14168
14169
14170
14171 # PATH needs CR
14172 # Avoid depending upon Character Ranges.
14173 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14174 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14175 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14176 as_cr_digits='0123456789'
14177 as_cr_alnum=$as_cr_Letters$as_cr_digits
14178
14179 as_nl='
14180 '
14181 export as_nl
14182 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14183 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14185 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14186 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14187   as_echo='printf %s\n'
14188   as_echo_n='printf %s'
14189 else
14190   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14191     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14192     as_echo_n='/usr/ucb/echo -n'
14193   else
14194     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14195     as_echo_n_body='eval
14196       arg=$1;
14197       case $arg in
14198       *"$as_nl"*)
14199         expr "X$arg" : "X\\(.*\\)$as_nl";
14200         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14201       esac;
14202       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14203     '
14204     export as_echo_n_body
14205     as_echo_n='sh -c $as_echo_n_body as_echo'
14206   fi
14207   export as_echo_body
14208   as_echo='sh -c $as_echo_body as_echo'
14209 fi
14210
14211 # The user is always right.
14212 if test "${PATH_SEPARATOR+set}" != set; then
14213   PATH_SEPARATOR=:
14214   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14215     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14216       PATH_SEPARATOR=';'
14217   }
14218 fi
14219
14220 # Support unset when possible.
14221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14222   as_unset=unset
14223 else
14224   as_unset=false
14225 fi
14226
14227
14228 # IFS
14229 # We need space, tab and new line, in precisely that order.  Quoting is
14230 # there to prevent editors from complaining about space-tab.
14231 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14232 # splitting by setting IFS to empty value.)
14233 IFS=" ""        $as_nl"
14234
14235 # Find who we are.  Look in the path if we contain no directory separator.
14236 case $0 in
14237   *[\\/]* ) as_myself=$0 ;;
14238   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14240 do
14241   IFS=$as_save_IFS
14242   test -z "$as_dir" && as_dir=.
14243   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14244 done
14245 IFS=$as_save_IFS
14246
14247      ;;
14248 esac
14249 # We did not find ourselves, most probably we were run as `sh COMMAND'
14250 # in which case we are not to be found in the path.
14251 if test "x$as_myself" = x; then
14252   as_myself=$0
14253 fi
14254 if test ! -f "$as_myself"; then
14255   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14256   { (exit 1); exit 1; }
14257 fi
14258
14259 # Work around bugs in pre-3.0 UWIN ksh.
14260 for as_var in ENV MAIL MAILPATH
14261 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14262 done
14263 PS1='$ '
14264 PS2='> '
14265 PS4='+ '
14266
14267 # NLS nuisances.
14268 LC_ALL=C
14269 export LC_ALL
14270 LANGUAGE=C
14271 export LANGUAGE
14272
14273 # Required to use basename.
14274 if expr a : '\(a\)' >/dev/null 2>&1 &&
14275    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14276   as_expr=expr
14277 else
14278   as_expr=false
14279 fi
14280
14281 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14282   as_basename=basename
14283 else
14284   as_basename=false
14285 fi
14286
14287
14288 # Name of the executable.
14289 as_me=`$as_basename -- "$0" ||
14290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14291          X"$0" : 'X\(//\)$' \| \
14292          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14293 $as_echo X/"$0" |
14294     sed '/^.*\/\([^/][^/]*\)\/*$/{
14295             s//\1/
14296             q
14297           }
14298           /^X\/\(\/\/\)$/{
14299             s//\1/
14300             q
14301           }
14302           /^X\/\(\/\).*/{
14303             s//\1/
14304             q
14305           }
14306           s/.*/./; q'`
14307
14308 # CDPATH.
14309 $as_unset CDPATH
14310
14311
14312
14313   as_lineno_1=$LINENO
14314   as_lineno_2=$LINENO
14315   test "x$as_lineno_1" != "x$as_lineno_2" &&
14316   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14317
14318   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14319   # uniformly replaced by the line number.  The first 'sed' inserts a
14320   # line-number line after each line using $LINENO; the second 'sed'
14321   # does the real work.  The second script uses 'N' to pair each
14322   # line-number line with the line containing $LINENO, and appends
14323   # trailing '-' during substitution so that $LINENO is not a special
14324   # case at line end.
14325   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14326   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14327   # E. McMahon (1931-1989) for sed's syntax.  :-)
14328   sed -n '
14329     p
14330     /[$]LINENO/=
14331   ' <$as_myself |
14332     sed '
14333       s/[$]LINENO.*/&-/
14334       t lineno
14335       b
14336       :lineno
14337       N
14338       :loop
14339       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14340       t loop
14341       s/-\n.*//
14342     ' >$as_me.lineno &&
14343   chmod +x "$as_me.lineno" ||
14344     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14345    { (exit 1); exit 1; }; }
14346
14347   # Don't try to exec as it changes $[0], causing all sort of problems
14348   # (the dirname of $[0] is not the place where we might find the
14349   # original and so on.  Autoconf is especially sensitive to this).
14350   . "./$as_me.lineno"
14351   # Exit status is that of the last command.
14352   exit
14353 }
14354
14355
14356 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14357   as_dirname=dirname
14358 else
14359   as_dirname=false
14360 fi
14361
14362 ECHO_C= ECHO_N= ECHO_T=
14363 case `echo -n x` in
14364 -n*)
14365   case `echo 'x\c'` in
14366   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14367   *)   ECHO_C='\c';;
14368   esac;;
14369 *)
14370   ECHO_N='-n';;
14371 esac
14372 if expr a : '\(a\)' >/dev/null 2>&1 &&
14373    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14374   as_expr=expr
14375 else
14376   as_expr=false
14377 fi
14378
14379 rm -f conf$$ conf$$.exe conf$$.file
14380 if test -d conf$$.dir; then
14381   rm -f conf$$.dir/conf$$.file
14382 else
14383   rm -f conf$$.dir
14384   mkdir conf$$.dir 2>/dev/null
14385 fi
14386 if (echo >conf$$.file) 2>/dev/null; then
14387   if ln -s conf$$.file conf$$ 2>/dev/null; then
14388     as_ln_s='ln -s'
14389     # ... but there are two gotchas:
14390     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14391     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14392     # In both cases, we have to default to `cp -p'.
14393     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14394       as_ln_s='cp -p'
14395   elif ln conf$$.file conf$$ 2>/dev/null; then
14396     as_ln_s=ln
14397   else
14398     as_ln_s='cp -p'
14399   fi
14400 else
14401   as_ln_s='cp -p'
14402 fi
14403 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14404 rmdir conf$$.dir 2>/dev/null
14405
14406 if mkdir -p . 2>/dev/null; then
14407   as_mkdir_p=:
14408 else
14409   test -d ./-p && rmdir ./-p
14410   as_mkdir_p=false
14411 fi
14412
14413 if test -x / >/dev/null 2>&1; then
14414   as_test_x='test -x'
14415 else
14416   if ls -dL / >/dev/null 2>&1; then
14417     as_ls_L_option=L
14418   else
14419     as_ls_L_option=
14420   fi
14421   as_test_x='
14422     eval sh -c '\''
14423       if test -d "$1"; then
14424         test -d "$1/.";
14425       else
14426         case $1 in
14427         -*)set "./$1";;
14428         esac;
14429         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14430         ???[sx]*):;;*)false;;esac;fi
14431     '\'' sh
14432   '
14433 fi
14434 as_executable_p=$as_test_x
14435
14436 # Sed expression to map a string onto a valid CPP name.
14437 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14438
14439 # Sed expression to map a string onto a valid variable name.
14440 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14441
14442
14443 exec 6>&1
14444
14445 # Save the log message, to keep $[0] and so on meaningful, and to
14446 # report actual input values of CONFIG_FILES etc. instead of their
14447 # values after options handling.
14448 ac_log="
14449 This file was extended by libnbcompat $as_me 20080519, which was
14450 generated by GNU Autoconf 2.63.  Invocation command line was
14451
14452   CONFIG_FILES    = $CONFIG_FILES
14453   CONFIG_HEADERS  = $CONFIG_HEADERS
14454   CONFIG_LINKS    = $CONFIG_LINKS
14455   CONFIG_COMMANDS = $CONFIG_COMMANDS
14456   $ $0 $@
14457
14458 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14459 "
14460
14461 _ACEOF
14462
14463 case $ac_config_files in *"
14464 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14465 esac
14466
14467 case $ac_config_headers in *"
14468 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14469 esac
14470
14471
14472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14473 # Files that config.status was made for.
14474 config_files="$ac_config_files"
14475 config_headers="$ac_config_headers"
14476
14477 _ACEOF
14478
14479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14480 ac_cs_usage="\
14481 \`$as_me' instantiates files from templates according to the
14482 current configuration.
14483
14484 Usage: $0 [OPTION]... [FILE]...
14485
14486   -h, --help       print this help, then exit
14487   -V, --version    print version number and configuration settings, then exit
14488   -q, --quiet, --silent
14489                    do not print progress messages
14490   -d, --debug      don't remove temporary files
14491       --recheck    update $as_me by reconfiguring in the same conditions
14492       --file=FILE[:TEMPLATE]
14493                    instantiate the configuration file FILE
14494       --header=FILE[:TEMPLATE]
14495                    instantiate the configuration header FILE
14496
14497 Configuration files:
14498 $config_files
14499
14500 Configuration headers:
14501 $config_headers
14502
14503 Report bugs to <bug-autoconf@gnu.org>."
14504
14505 _ACEOF
14506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14507 ac_cs_version="\\
14508 libnbcompat config.status 20080519
14509 configured by $0, generated by GNU Autoconf 2.63,
14510   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14511
14512 Copyright (C) 2008 Free Software Foundation, Inc.
14513 This config.status script is free software; the Free Software Foundation
14514 gives unlimited permission to copy, distribute and modify it."
14515
14516 ac_pwd='$ac_pwd'
14517 srcdir='$srcdir'
14518 INSTALL='$INSTALL'
14519 AWK='$AWK'
14520 test -n "\$AWK" || AWK=awk
14521 _ACEOF
14522
14523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14524 # The default lists apply if the user does not specify any file.
14525 ac_need_defaults=:
14526 while test $# != 0
14527 do
14528   case $1 in
14529   --*=*)
14530     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14531     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14532     ac_shift=:
14533     ;;
14534   *)
14535     ac_option=$1
14536     ac_optarg=$2
14537     ac_shift=shift
14538     ;;
14539   esac
14540
14541   case $ac_option in
14542   # Handling of the options.
14543   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14544     ac_cs_recheck=: ;;
14545   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14546     $as_echo "$ac_cs_version"; exit ;;
14547   --debug | --debu | --deb | --de | --d | -d )
14548     debug=: ;;
14549   --file | --fil | --fi | --f )
14550     $ac_shift
14551     case $ac_optarg in
14552     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14553     esac
14554     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14555     ac_need_defaults=false;;
14556   --header | --heade | --head | --hea )
14557     $ac_shift
14558     case $ac_optarg in
14559     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14560     esac
14561     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14562     ac_need_defaults=false;;
14563   --he | --h)
14564     # Conflict between --help and --header
14565     { $as_echo "$as_me: error: ambiguous option: $1
14566 Try \`$0 --help' for more information." >&2
14567    { (exit 1); exit 1; }; };;
14568   --help | --hel | -h )
14569     $as_echo "$ac_cs_usage"; exit ;;
14570   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14571   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14572     ac_cs_silent=: ;;
14573
14574   # This is an error.
14575   -*) { $as_echo "$as_me: error: unrecognized option: $1
14576 Try \`$0 --help' for more information." >&2
14577    { (exit 1); exit 1; }; } ;;
14578
14579   *) ac_config_targets="$ac_config_targets $1"
14580      ac_need_defaults=false ;;
14581
14582   esac
14583   shift
14584 done
14585
14586 ac_configure_extra_args=
14587
14588 if $ac_cs_silent; then
14589   exec 6>/dev/null
14590   ac_configure_extra_args="$ac_configure_extra_args --silent"
14591 fi
14592
14593 _ACEOF
14594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14595 if \$ac_cs_recheck; then
14596   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14597   shift
14598   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14599   CONFIG_SHELL='$SHELL'
14600   export CONFIG_SHELL
14601   exec "\$@"
14602 fi
14603
14604 _ACEOF
14605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14606 exec 5>>config.log
14607 {
14608   echo
14609   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14610 ## Running $as_me. ##
14611 _ASBOX
14612   $as_echo "$ac_log"
14613 } >&5
14614
14615 _ACEOF
14616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14617 _ACEOF
14618
14619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14620
14621 # Handling of arguments.
14622 for ac_config_target in $ac_config_targets
14623 do
14624   case $ac_config_target in
14625     "nbcompat/config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbcompat/config.h" ;;
14626     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14627
14628   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14629 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14630    { (exit 1); exit 1; }; };;
14631   esac
14632 done
14633
14634
14635 # If the user did not use the arguments to specify the items to instantiate,
14636 # then the envvar interface is used.  Set only those that are not.
14637 # We use the long form for the default assignment because of an extremely
14638 # bizarre bug on SunOS 4.1.3.
14639 if $ac_need_defaults; then
14640   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14641   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14642 fi
14643
14644 # Have a temporary directory for convenience.  Make it in the build tree
14645 # simply because there is no reason against having it here, and in addition,
14646 # creating and moving files from /tmp can sometimes cause problems.
14647 # Hook for its removal unless debugging.
14648 # Note that there is a small window in which the directory will not be cleaned:
14649 # after its creation but before its name has been assigned to `$tmp'.
14650 $debug ||
14651 {
14652   tmp=
14653   trap 'exit_status=$?
14654   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14655 ' 0
14656   trap '{ (exit 1); exit 1; }' 1 2 13 15
14657 }
14658 # Create a (secure) tmp directory for tmp files.
14659
14660 {
14661   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14662   test -n "$tmp" && test -d "$tmp"
14663 }  ||
14664 {
14665   tmp=./conf$$-$RANDOM
14666   (umask 077 && mkdir "$tmp")
14667 } ||
14668 {
14669    $as_echo "$as_me: cannot create a temporary directory in ." >&2
14670    { (exit 1); exit 1; }
14671 }
14672
14673 # Set up the scripts for CONFIG_FILES section.
14674 # No need to generate them if there are no CONFIG_FILES.
14675 # This happens for instance with `./config.status config.h'.
14676 if test -n "$CONFIG_FILES"; then
14677
14678
14679 ac_cr='\r'
14680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14682   ac_cs_awk_cr='\\r'
14683 else
14684   ac_cs_awk_cr=$ac_cr
14685 fi
14686
14687 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14688 _ACEOF
14689
14690
14691 {
14692   echo "cat >conf$$subs.awk <<_ACEOF" &&
14693   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14694   echo "_ACEOF"
14695 } >conf$$subs.sh ||
14696   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14697 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14698    { (exit 1); exit 1; }; }
14699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14700 ac_delim='%!_!# '
14701 for ac_last_try in false false false false false :; do
14702   . ./conf$$subs.sh ||
14703     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14704 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14705    { (exit 1); exit 1; }; }
14706
14707   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14708   if test $ac_delim_n = $ac_delim_num; then
14709     break
14710   elif $ac_last_try; then
14711     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14712 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14713    { (exit 1); exit 1; }; }
14714   else
14715     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14716   fi
14717 done
14718 rm -f conf$$subs.sh
14719
14720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14721 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14722 _ACEOF
14723 sed -n '
14724 h
14725 s/^/S["/; s/!.*/"]=/
14726 p
14727 g
14728 s/^[^!]*!//
14729 :repl
14730 t repl
14731 s/'"$ac_delim"'$//
14732 t delim
14733 :nl
14734 h
14735 s/\(.\{148\}\).*/\1/
14736 t more1
14737 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14738 p
14739 n
14740 b repl
14741 :more1
14742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14743 p
14744 g
14745 s/.\{148\}//
14746 t nl
14747 :delim
14748 h
14749 s/\(.\{148\}\).*/\1/
14750 t more2
14751 s/["\\]/\\&/g; s/^/"/; s/$/"/
14752 p
14753 b
14754 :more2
14755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14756 p
14757 g
14758 s/.\{148\}//
14759 t delim
14760 ' <conf$$subs.awk | sed '
14761 /^[^""]/{
14762   N
14763   s/\n//
14764 }
14765 ' >>$CONFIG_STATUS || ac_write_fail=1
14766 rm -f conf$$subs.awk
14767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14768 _ACAWK
14769 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14770   for (key in S) S_is_set[key] = 1
14771   FS = "\a"
14772
14773 }
14774 {
14775   line = $ 0
14776   nfields = split(line, field, "@")
14777   substed = 0
14778   len = length(field[1])
14779   for (i = 2; i < nfields; i++) {
14780     key = field[i]
14781     keylen = length(key)
14782     if (S_is_set[key]) {
14783       value = S[key]
14784       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14785       len += length(value) + length(field[++i])
14786       substed = 1
14787     } else
14788       len += 1 + keylen
14789   }
14790
14791   print line
14792 }
14793
14794 _ACAWK
14795 _ACEOF
14796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14798   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14799 else
14800   cat
14801 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14802   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14803 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14804    { (exit 1); exit 1; }; }
14805 _ACEOF
14806
14807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14809 # trailing colons and then remove the whole line if VPATH becomes empty
14810 # (actually we leave an empty line to preserve line numbers).
14811 if test "x$srcdir" = x.; then
14812   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14813 s/:*\$(srcdir):*/:/
14814 s/:*\${srcdir}:*/:/
14815 s/:*@srcdir@:*/:/
14816 s/^\([^=]*=[     ]*\):*/\1/
14817 s/:*$//
14818 s/^[^=]*=[       ]*$//
14819 }'
14820 fi
14821
14822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14823 fi # test -n "$CONFIG_FILES"
14824
14825 # Set up the scripts for CONFIG_HEADERS section.
14826 # No need to generate them if there are no CONFIG_HEADERS.
14827 # This happens for instance with `./config.status Makefile'.
14828 if test -n "$CONFIG_HEADERS"; then
14829 cat >"$tmp/defines.awk" <<\_ACAWK ||
14830 BEGIN {
14831 _ACEOF
14832
14833 # Transform confdefs.h into an awk script `defines.awk', embedded as
14834 # here-document in config.status, that substitutes the proper values into
14835 # config.h.in to produce config.h.
14836
14837 # Create a delimiter string that does not exist in confdefs.h, to ease
14838 # handling of long lines.
14839 ac_delim='%!_!# '
14840 for ac_last_try in false false :; do
14841   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14842   if test -z "$ac_t"; then
14843     break
14844   elif $ac_last_try; then
14845     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14846 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14847    { (exit 1); exit 1; }; }
14848   else
14849     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14850   fi
14851 done
14852
14853 # For the awk script, D is an array of macro values keyed by name,
14854 # likewise P contains macro parameters if any.  Preserve backslash
14855 # newline sequences.
14856
14857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14858 sed -n '
14859 s/.\{148\}/&'"$ac_delim"'/g
14860 t rset
14861 :rset
14862 s/^[     ]*#[    ]*define[       ][      ]*/ /
14863 t def
14864 d
14865 :def
14866 s/\\$//
14867 t bsnl
14868 s/["\\]/\\&/g
14869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14870 D["\1"]=" \3"/p
14871 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14872 d
14873 :bsnl
14874 s/["\\]/\\&/g
14875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14876 D["\1"]=" \3\\\\\\n"\\/p
14877 t cont
14878 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14879 t cont
14880 d
14881 :cont
14882 n
14883 s/.\{148\}/&'"$ac_delim"'/g
14884 t clear
14885 :clear
14886 s/\\$//
14887 t bsnlc
14888 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14889 d
14890 :bsnlc
14891 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14892 b cont
14893 ' <confdefs.h | sed '
14894 s/'"$ac_delim"'/"\\\
14895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14896
14897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898   for (key in D) D_is_set[key] = 1
14899   FS = "\a"
14900 }
14901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14902   line = \$ 0
14903   split(line, arg, " ")
14904   if (arg[1] == "#") {
14905     defundef = arg[2]
14906     mac1 = arg[3]
14907   } else {
14908     defundef = substr(arg[1], 2)
14909     mac1 = arg[2]
14910   }
14911   split(mac1, mac2, "(") #)
14912   macro = mac2[1]
14913   prefix = substr(line, 1, index(line, defundef) - 1)
14914   if (D_is_set[macro]) {
14915     # Preserve the white space surrounding the "#".
14916     print prefix "define", macro P[macro] D[macro]
14917     next
14918   } else {
14919     # Replace #undef with comments.  This is necessary, for example,
14920     # in the case of _POSIX_SOURCE, which is predefined and required
14921     # on some systems where configure will not decide to define it.
14922     if (defundef == "undef") {
14923       print "/*", prefix defundef, macro, "*/"
14924       next
14925     }
14926   }
14927 }
14928 { print }
14929 _ACAWK
14930 _ACEOF
14931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14933 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14934    { (exit 1); exit 1; }; }
14935 fi # test -n "$CONFIG_HEADERS"
14936
14937
14938 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
14939 shift
14940 for ac_tag
14941 do
14942   case $ac_tag in
14943   :[FHLC]) ac_mode=$ac_tag; continue;;
14944   esac
14945   case $ac_mode$ac_tag in
14946   :[FHL]*:*);;
14947   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14948 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14949    { (exit 1); exit 1; }; };;
14950   :[FH]-) ac_tag=-:-;;
14951   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14952   esac
14953   ac_save_IFS=$IFS
14954   IFS=:
14955   set x $ac_tag
14956   IFS=$ac_save_IFS
14957   shift
14958   ac_file=$1
14959   shift
14960
14961   case $ac_mode in
14962   :L) ac_source=$1;;
14963   :[FH])
14964     ac_file_inputs=
14965     for ac_f
14966     do
14967       case $ac_f in
14968       -) ac_f="$tmp/stdin";;
14969       *) # Look for the file first in the build tree, then in the source tree
14970          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14971          # because $ac_f cannot contain `:'.
14972          test -f "$ac_f" ||
14973            case $ac_f in
14974            [\\/$]*) false;;
14975            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14976            esac ||
14977            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14978 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14979    { (exit 1); exit 1; }; };;
14980       esac
14981       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14982       ac_file_inputs="$ac_file_inputs '$ac_f'"
14983     done
14984
14985     # Let's still pretend it is `configure' which instantiates (i.e., don't
14986     # use $as_me), people would be surprised to read:
14987     #    /* config.h.  Generated by config.status.  */
14988     configure_input='Generated from '`
14989           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14990         `' by configure.'
14991     if test x"$ac_file" != x-; then
14992       configure_input="$ac_file.  $configure_input"
14993       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14994 $as_echo "$as_me: creating $ac_file" >&6;}
14995     fi
14996     # Neutralize special characters interpreted by sed in replacement strings.
14997     case $configure_input in #(
14998     *\&* | *\|* | *\\* )
14999        ac_sed_conf_input=`$as_echo "$configure_input" |
15000        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15001     *) ac_sed_conf_input=$configure_input;;
15002     esac
15003
15004     case $ac_tag in
15005     *:-:* | *:-) cat >"$tmp/stdin" \
15006       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15007 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15008    { (exit 1); exit 1; }; } ;;
15009     esac
15010     ;;
15011   esac
15012
15013   ac_dir=`$as_dirname -- "$ac_file" ||
15014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15015          X"$ac_file" : 'X\(//\)[^/]' \| \
15016          X"$ac_file" : 'X\(//\)$' \| \
15017          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15018 $as_echo X"$ac_file" |
15019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15020             s//\1/
15021             q
15022           }
15023           /^X\(\/\/\)[^/].*/{
15024             s//\1/
15025             q
15026           }
15027           /^X\(\/\/\)$/{
15028             s//\1/
15029             q
15030           }
15031           /^X\(\/\).*/{
15032             s//\1/
15033             q
15034           }
15035           s/.*/./; q'`
15036   { as_dir="$ac_dir"
15037   case $as_dir in #(
15038   -*) as_dir=./$as_dir;;
15039   esac
15040   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15041     as_dirs=
15042     while :; do
15043       case $as_dir in #(
15044       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15045       *) as_qdir=$as_dir;;
15046       esac
15047       as_dirs="'$as_qdir' $as_dirs"
15048       as_dir=`$as_dirname -- "$as_dir" ||
15049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15050          X"$as_dir" : 'X\(//\)[^/]' \| \
15051          X"$as_dir" : 'X\(//\)$' \| \
15052          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15053 $as_echo X"$as_dir" |
15054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15055             s//\1/
15056             q
15057           }
15058           /^X\(\/\/\)[^/].*/{
15059             s//\1/
15060             q
15061           }
15062           /^X\(\/\/\)$/{
15063             s//\1/
15064             q
15065           }
15066           /^X\(\/\).*/{
15067             s//\1/
15068             q
15069           }
15070           s/.*/./; q'`
15071       test -d "$as_dir" && break
15072     done
15073     test -z "$as_dirs" || eval "mkdir $as_dirs"
15074   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15075 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15076    { (exit 1); exit 1; }; }; }
15077   ac_builddir=.
15078
15079 case "$ac_dir" in
15080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15081 *)
15082   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15083   # A ".." for each directory in $ac_dir_suffix.
15084   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15085   case $ac_top_builddir_sub in
15086   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15087   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15088   esac ;;
15089 esac
15090 ac_abs_top_builddir=$ac_pwd
15091 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15092 # for backward compatibility:
15093 ac_top_builddir=$ac_top_build_prefix
15094
15095 case $srcdir in
15096   .)  # We are building in place.
15097     ac_srcdir=.
15098     ac_top_srcdir=$ac_top_builddir_sub
15099     ac_abs_top_srcdir=$ac_pwd ;;
15100   [\\/]* | ?:[\\/]* )  # Absolute name.
15101     ac_srcdir=$srcdir$ac_dir_suffix;
15102     ac_top_srcdir=$srcdir
15103     ac_abs_top_srcdir=$srcdir ;;
15104   *) # Relative name.
15105     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15106     ac_top_srcdir=$ac_top_build_prefix$srcdir
15107     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15108 esac
15109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15110
15111
15112   case $ac_mode in
15113   :F)
15114   #
15115   # CONFIG_FILE
15116   #
15117
15118   case $INSTALL in
15119   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15120   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15121   esac
15122 _ACEOF
15123
15124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125 # If the template does not know about datarootdir, expand it.
15126 # FIXME: This hack should be removed a few years after 2.60.
15127 ac_datarootdir_hack=; ac_datarootdir_seen=
15128
15129 ac_sed_dataroot='
15130 /datarootdir/ {
15131   p
15132   q
15133 }
15134 /@datadir@/p
15135 /@docdir@/p
15136 /@infodir@/p
15137 /@localedir@/p
15138 /@mandir@/p
15139 '
15140 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141 *datarootdir*) ac_datarootdir_seen=yes;;
15142 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15145 _ACEOF
15146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147   ac_datarootdir_hack='
15148   s&@datadir@&$datadir&g
15149   s&@docdir@&$docdir&g
15150   s&@infodir@&$infodir&g
15151   s&@localedir@&$localedir&g
15152   s&@mandir@&$mandir&g
15153     s&\\\${datarootdir}&$datarootdir&g' ;;
15154 esac
15155 _ACEOF
15156
15157 # Neutralize VPATH when `$srcdir' = `.'.
15158 # Shell code in configure.ac might set extrasub.
15159 # FIXME: do we really want to maintain this feature?
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 ac_sed_extra="$ac_vpsub
15162 $extrasub
15163 _ACEOF
15164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15165 :t
15166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15167 s|@configure_input@|$ac_sed_conf_input|;t t
15168 s&@top_builddir@&$ac_top_builddir_sub&;t t
15169 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170 s&@srcdir@&$ac_srcdir&;t t
15171 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172 s&@top_srcdir@&$ac_top_srcdir&;t t
15173 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174 s&@builddir@&$ac_builddir&;t t
15175 s&@abs_builddir@&$ac_abs_builddir&;t t
15176 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177 s&@INSTALL@&$ac_INSTALL&;t t
15178 $ac_datarootdir_hack
15179 "
15180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15181   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15182 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15183    { (exit 1); exit 1; }; }
15184
15185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15186   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15187   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15188   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15189 which seems to be undefined.  Please make sure it is defined." >&5
15190 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15191 which seems to be undefined.  Please make sure it is defined." >&2;}
15192
15193   rm -f "$tmp/stdin"
15194   case $ac_file in
15195   -) cat "$tmp/out" && rm -f "$tmp/out";;
15196   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15197   esac \
15198   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15199 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15200    { (exit 1); exit 1; }; }
15201  ;;
15202   :H)
15203   #
15204   # CONFIG_HEADER
15205   #
15206   if test x"$ac_file" != x-; then
15207     {
15208       $as_echo "/* $configure_input  */" \
15209       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15210     } >"$tmp/config.h" \
15211       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15212 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15213    { (exit 1); exit 1; }; }
15214     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15215       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15216 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15217     else
15218       rm -f "$ac_file"
15219       mv "$tmp/config.h" "$ac_file" \
15220         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15221 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15222    { (exit 1); exit 1; }; }
15223     fi
15224   else
15225     $as_echo "/* $configure_input  */" \
15226       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15227       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15228 $as_echo "$as_me: error: could not create -" >&2;}
15229    { (exit 1); exit 1; }; }
15230   fi
15231  ;;
15232
15233
15234   esac
15235
15236 done # for ac_tag
15237
15238
15239 { (exit 0); exit 0; }
15240 _ACEOF
15241 chmod +x $CONFIG_STATUS
15242 ac_clean_files=$ac_clean_files_save
15243
15244 test $ac_write_fail = 0 ||
15245   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15246 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15247    { (exit 1); exit 1; }; }
15248
15249
15250 # configure is writing to config.log, and then calls config.status.
15251 # config.status does its own redirection, appending to config.log.
15252 # Unfortunately, on DOS this fails, as config.log is still kept open
15253 # by configure, so config.status won't be able to write to it; its
15254 # output is simply discarded.  So we exec the FD to /dev/null,
15255 # effectively closing config.log, so it can be properly (re)opened and
15256 # appended to by config.status.  When coming back to configure, we
15257 # need to make the FD available again.
15258 if test "$no_create" != yes; then
15259   ac_cs_success=:
15260   ac_config_status_args=
15261   test "$silent" = yes &&
15262     ac_config_status_args="$ac_config_status_args --quiet"
15263   exec 5>/dev/null
15264   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15265   exec 5>>config.log
15266   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15267   # would make configure fail if this is the last instruction.
15268   $ac_cs_success || { (exit 1); exit 1; }
15269 fi
15270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15271   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15273 fi
15274