Update build system.
[packages/xinetd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="xinetd/main.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 target
662 target_cpu
663 target_vendor
664 target_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 INSTALL_PROGRAM
673 INSTALL_SCRIPT
674 INSTALL_DATA
675 RANLIB
676 CPP
677 GREP
678 EGREP
679 LIBOBJS
680 LTLIBOBJS'
681 ac_subst_files=''
682       ac_precious_vars='build_alias
683 host_alias
684 target_alias
685 CC
686 CFLAGS
687 LDFLAGS
688 LIBS
689 CPPFLAGS
690 CPP'
691
692
693 # Initialize some variables set by options.
694 ac_init_help=
695 ac_init_version=false
696 # The variables have the same names as the options, with
697 # dashes changed to underlines.
698 cache_file=/dev/null
699 exec_prefix=NONE
700 no_create=
701 no_recursion=
702 prefix=NONE
703 program_prefix=NONE
704 program_suffix=NONE
705 program_transform_name=s,x,x,
706 silent=
707 site=
708 srcdir=
709 verbose=
710 x_includes=NONE
711 x_libraries=NONE
712
713 # Installation directory options.
714 # These are left unexpanded so users can "make install exec_prefix=/foo"
715 # and all the variables that are supposed to be based on exec_prefix
716 # by default will actually change.
717 # Use braces instead of parens because sh, perl, etc. also accept them.
718 # (The list follows the same order as the GNU Coding Standards.)
719 bindir='${exec_prefix}/bin'
720 sbindir='${exec_prefix}/sbin'
721 libexecdir='${exec_prefix}/libexec'
722 datarootdir='${prefix}/share'
723 datadir='${datarootdir}'
724 sysconfdir='${prefix}/etc'
725 sharedstatedir='${prefix}/com'
726 localstatedir='${prefix}/var'
727 includedir='${prefix}/include'
728 oldincludedir='/usr/include'
729 docdir='${datarootdir}/doc/${PACKAGE}'
730 infodir='${datarootdir}/info'
731 htmldir='${docdir}'
732 dvidir='${docdir}'
733 pdfdir='${docdir}'
734 psdir='${docdir}'
735 libdir='${exec_prefix}/lib'
736 localedir='${datarootdir}/locale'
737 mandir='${datarootdir}/man'
738
739 ac_prev=
740 ac_dashdash=
741 for ac_option
742 do
743   # If the previous option needs an argument, assign it.
744   if test -n "$ac_prev"; then
745     eval $ac_prev=\$ac_option
746     ac_prev=
747     continue
748   fi
749
750   case $ac_option in
751   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
752   *)    ac_optarg=yes ;;
753   esac
754
755   # Accept the important Cygnus configure options, so we can diagnose typos.
756
757   case $ac_dashdash$ac_option in
758   --)
759     ac_dashdash=yes ;;
760
761   -bindir | --bindir | --bindi | --bind | --bin | --bi)
762     ac_prev=bindir ;;
763   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
764     bindir=$ac_optarg ;;
765
766   -build | --build | --buil | --bui | --bu)
767     ac_prev=build_alias ;;
768   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
769     build_alias=$ac_optarg ;;
770
771   -cache-file | --cache-file | --cache-fil | --cache-fi \
772   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
773     ac_prev=cache_file ;;
774   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
775   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
776     cache_file=$ac_optarg ;;
777
778   --config-cache | -C)
779     cache_file=config.cache ;;
780
781   -datadir | --datadir | --datadi | --datad)
782     ac_prev=datadir ;;
783   -datadir=* | --datadir=* | --datadi=* | --datad=*)
784     datadir=$ac_optarg ;;
785
786   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
787   | --dataroo | --dataro | --datar)
788     ac_prev=datarootdir ;;
789   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
790   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
791     datarootdir=$ac_optarg ;;
792
793   -disable-* | --disable-*)
794     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795     # Reject names that are not valid shell variable names.
796     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
798    { (exit 1); exit 1; }; }
799     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
800     eval enable_$ac_feature=no ;;
801
802   -docdir | --docdir | --docdi | --doc | --do)
803     ac_prev=docdir ;;
804   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
805     docdir=$ac_optarg ;;
806
807   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
808     ac_prev=dvidir ;;
809   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
810     dvidir=$ac_optarg ;;
811
812   -enable-* | --enable-*)
813     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
814     # Reject names that are not valid shell variable names.
815     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
817    { (exit 1); exit 1; }; }
818     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
819     eval enable_$ac_feature=\$ac_optarg ;;
820
821   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
822   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
823   | --exec | --exe | --ex)
824     ac_prev=exec_prefix ;;
825   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
826   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
827   | --exec=* | --exe=* | --ex=*)
828     exec_prefix=$ac_optarg ;;
829
830   -gas | --gas | --ga | --g)
831     # Obsolete; use --with-gas.
832     with_gas=yes ;;
833
834   -help | --help | --hel | --he | -h)
835     ac_init_help=long ;;
836   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
837     ac_init_help=recursive ;;
838   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
839     ac_init_help=short ;;
840
841   -host | --host | --hos | --ho)
842     ac_prev=host_alias ;;
843   -host=* | --host=* | --hos=* | --ho=*)
844     host_alias=$ac_optarg ;;
845
846   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
847     ac_prev=htmldir ;;
848   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
849   | --ht=*)
850     htmldir=$ac_optarg ;;
851
852   -includedir | --includedir | --includedi | --included | --include \
853   | --includ | --inclu | --incl | --inc)
854     ac_prev=includedir ;;
855   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
856   | --includ=* | --inclu=* | --incl=* | --inc=*)
857     includedir=$ac_optarg ;;
858
859   -infodir | --infodir | --infodi | --infod | --info | --inf)
860     ac_prev=infodir ;;
861   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
862     infodir=$ac_optarg ;;
863
864   -libdir | --libdir | --libdi | --libd)
865     ac_prev=libdir ;;
866   -libdir=* | --libdir=* | --libdi=* | --libd=*)
867     libdir=$ac_optarg ;;
868
869   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
870   | --libexe | --libex | --libe)
871     ac_prev=libexecdir ;;
872   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
873   | --libexe=* | --libex=* | --libe=*)
874     libexecdir=$ac_optarg ;;
875
876   -localedir | --localedir | --localedi | --localed | --locale)
877     ac_prev=localedir ;;
878   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
879     localedir=$ac_optarg ;;
880
881   -localstatedir | --localstatedir | --localstatedi | --localstated \
882   | --localstate | --localstat | --localsta | --localst | --locals)
883     ac_prev=localstatedir ;;
884   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
885   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
886     localstatedir=$ac_optarg ;;
887
888   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
889     ac_prev=mandir ;;
890   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
891     mandir=$ac_optarg ;;
892
893   -nfp | --nfp | --nf)
894     # Obsolete; use --without-fp.
895     with_fp=no ;;
896
897   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
898   | --no-cr | --no-c | -n)
899     no_create=yes ;;
900
901   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
902   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
903     no_recursion=yes ;;
904
905   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
906   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
907   | --oldin | --oldi | --old | --ol | --o)
908     ac_prev=oldincludedir ;;
909   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
910   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
911   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
912     oldincludedir=$ac_optarg ;;
913
914   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
915     ac_prev=prefix ;;
916   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
917     prefix=$ac_optarg ;;
918
919   -program-prefix | --program-prefix | --program-prefi | --program-pref \
920   | --program-pre | --program-pr | --program-p)
921     ac_prev=program_prefix ;;
922   -program-prefix=* | --program-prefix=* | --program-prefi=* \
923   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
924     program_prefix=$ac_optarg ;;
925
926   -program-suffix | --program-suffix | --program-suffi | --program-suff \
927   | --program-suf | --program-su | --program-s)
928     ac_prev=program_suffix ;;
929   -program-suffix=* | --program-suffix=* | --program-suffi=* \
930   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
931     program_suffix=$ac_optarg ;;
932
933   -program-transform-name | --program-transform-name \
934   | --program-transform-nam | --program-transform-na \
935   | --program-transform-n | --program-transform- \
936   | --program-transform | --program-transfor \
937   | --program-transfo | --program-transf \
938   | --program-trans | --program-tran \
939   | --progr-tra | --program-tr | --program-t)
940     ac_prev=program_transform_name ;;
941   -program-transform-name=* | --program-transform-name=* \
942   | --program-transform-nam=* | --program-transform-na=* \
943   | --program-transform-n=* | --program-transform-=* \
944   | --program-transform=* | --program-transfor=* \
945   | --program-transfo=* | --program-transf=* \
946   | --program-trans=* | --program-tran=* \
947   | --progr-tra=* | --program-tr=* | --program-t=*)
948     program_transform_name=$ac_optarg ;;
949
950   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
951     ac_prev=pdfdir ;;
952   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
953     pdfdir=$ac_optarg ;;
954
955   -psdir | --psdir | --psdi | --psd | --ps)
956     ac_prev=psdir ;;
957   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
958     psdir=$ac_optarg ;;
959
960   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
961   | -silent | --silent | --silen | --sile | --sil)
962     silent=yes ;;
963
964   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
965     ac_prev=sbindir ;;
966   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
967   | --sbi=* | --sb=*)
968     sbindir=$ac_optarg ;;
969
970   -sharedstatedir | --sharedstatedir | --sharedstatedi \
971   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
972   | --sharedst | --shareds | --shared | --share | --shar \
973   | --sha | --sh)
974     ac_prev=sharedstatedir ;;
975   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
976   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
977   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
978   | --sha=* | --sh=*)
979     sharedstatedir=$ac_optarg ;;
980
981   -site | --site | --sit)
982     ac_prev=site ;;
983   -site=* | --site=* | --sit=*)
984     site=$ac_optarg ;;
985
986   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
987     ac_prev=srcdir ;;
988   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
989     srcdir=$ac_optarg ;;
990
991   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
992   | --syscon | --sysco | --sysc | --sys | --sy)
993     ac_prev=sysconfdir ;;
994   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
995   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
996     sysconfdir=$ac_optarg ;;
997
998   -target | --target | --targe | --targ | --tar | --ta | --t)
999     ac_prev=target_alias ;;
1000   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1001     target_alias=$ac_optarg ;;
1002
1003   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1004     verbose=yes ;;
1005
1006   -version | --version | --versio | --versi | --vers | -V)
1007     ac_init_version=: ;;
1008
1009   -with-* | --with-*)
1010     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1011     # Reject names that are not valid shell variable names.
1012     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013       { echo "$as_me: error: invalid package name: $ac_package" >&2
1014    { (exit 1); exit 1; }; }
1015     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1016     eval with_$ac_package=\$ac_optarg ;;
1017
1018   -without-* | --without-*)
1019     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022       { echo "$as_me: error: invalid package name: $ac_package" >&2
1023    { (exit 1); exit 1; }; }
1024     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1025     eval with_$ac_package=no ;;
1026
1027   --x)
1028     # Obsolete; use --with-x.
1029     with_x=yes ;;
1030
1031   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1032   | --x-incl | --x-inc | --x-in | --x-i)
1033     ac_prev=x_includes ;;
1034   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1035   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1036     x_includes=$ac_optarg ;;
1037
1038   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1039   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1040     ac_prev=x_libraries ;;
1041   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1042   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1043     x_libraries=$ac_optarg ;;
1044
1045   -*) { echo "$as_me: error: unrecognized option: $ac_option
1046 Try \`$0 --help' for more information." >&2
1047    { (exit 1); exit 1; }; }
1048     ;;
1049
1050   *=*)
1051     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1054       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1055    { (exit 1); exit 1; }; }
1056     eval $ac_envvar=\$ac_optarg
1057     export $ac_envvar ;;
1058
1059   *)
1060     # FIXME: should be removed in autoconf 3.0.
1061     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1062     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1064     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1065     ;;
1066
1067   esac
1068 done
1069
1070 if test -n "$ac_prev"; then
1071   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1072   { echo "$as_me: error: missing argument to $ac_option" >&2
1073    { (exit 1); exit 1; }; }
1074 fi
1075
1076 # Be sure to have absolute directory names.
1077 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1078                 datadir sysconfdir sharedstatedir localstatedir includedir \
1079                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1080                 libdir localedir mandir
1081 do
1082   eval ac_val=\$$ac_var
1083   case $ac_val in
1084     [\\/$]* | ?:[\\/]* )  continue;;
1085     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1086   esac
1087   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1088    { (exit 1); exit 1; }; }
1089 done
1090
1091 # There might be people who depend on the old broken behavior: `$host'
1092 # used to hold the argument of --host etc.
1093 # FIXME: To remove some day.
1094 build=$build_alias
1095 host=$host_alias
1096 target=$target_alias
1097
1098 # FIXME: To remove some day.
1099 if test "x$host_alias" != x; then
1100   if test "x$build_alias" = x; then
1101     cross_compiling=maybe
1102     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1103     If a cross compiler is detected then cross compile mode will be used." >&2
1104   elif test "x$build_alias" != "x$host_alias"; then
1105     cross_compiling=yes
1106   fi
1107 fi
1108
1109 ac_tool_prefix=
1110 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1111
1112 test "$silent" = yes && exec 6>/dev/null
1113
1114
1115 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1116 ac_ls_di=`ls -di .` &&
1117 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1118   { echo "$as_me: error: Working directory cannot be determined" >&2
1119    { (exit 1); exit 1; }; }
1120 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1121   { echo "$as_me: error: pwd does not report name of working directory" >&2
1122    { (exit 1); exit 1; }; }
1123
1124
1125 # Find the source files, if location was not specified.
1126 if test -z "$srcdir"; then
1127   ac_srcdir_defaulted=yes
1128   # Try the directory containing this script, then the parent directory.
1129   ac_confdir=`$as_dirname -- "$0" ||
1130 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1131          X"$0" : 'X\(//\)[^/]' \| \
1132          X"$0" : 'X\(//\)$' \| \
1133          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1134 echo X"$0" |
1135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1136             s//\1/
1137             q
1138           }
1139           /^X\(\/\/\)[^/].*/{
1140             s//\1/
1141             q
1142           }
1143           /^X\(\/\/\)$/{
1144             s//\1/
1145             q
1146           }
1147           /^X\(\/\).*/{
1148             s//\1/
1149             q
1150           }
1151           s/.*/./; q'`
1152   srcdir=$ac_confdir
1153   if test ! -r "$srcdir/$ac_unique_file"; then
1154     srcdir=..
1155   fi
1156 else
1157   ac_srcdir_defaulted=no
1158 fi
1159 if test ! -r "$srcdir/$ac_unique_file"; then
1160   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1161   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1162    { (exit 1); exit 1; }; }
1163 fi
1164 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1165 ac_abs_confdir=`(
1166         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1167    { (exit 1); exit 1; }; }
1168         pwd)`
1169 # When building in place, set srcdir=.
1170 if test "$ac_abs_confdir" = "$ac_pwd"; then
1171   srcdir=.
1172 fi
1173 # Remove unnecessary trailing slashes from srcdir.
1174 # Double slashes in file names in object file debugging info
1175 # mess up M-x gdb in Emacs.
1176 case $srcdir in
1177 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1178 esac
1179 for ac_var in $ac_precious_vars; do
1180   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1181   eval ac_env_${ac_var}_value=\$${ac_var}
1182   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1183   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1184 done
1185
1186 #
1187 # Report the --help message.
1188 #
1189 if test "$ac_init_help" = "long"; then
1190   # Omit some internal or obsolete options to make the list less imposing.
1191   # This message is too long to be a string in the A/UX 3.1 sh.
1192   cat <<_ACEOF
1193 \`configure' configures this package to adapt to many kinds of systems.
1194
1195 Usage: $0 [OPTION]... [VAR=VALUE]...
1196
1197 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1198 VAR=VALUE.  See below for descriptions of some of the useful variables.
1199
1200 Defaults for the options are specified in brackets.
1201
1202 Configuration:
1203   -h, --help              display this help and exit
1204       --help=short        display options specific to this package
1205       --help=recursive    display the short help of all the included packages
1206   -V, --version           display version information and exit
1207   -q, --quiet, --silent   do not print \`checking...' messages
1208       --cache-file=FILE   cache test results in FILE [disabled]
1209   -C, --config-cache      alias for \`--cache-file=config.cache'
1210   -n, --no-create         do not create output files
1211       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1212
1213 Installation directories:
1214   --prefix=PREFIX         install architecture-independent files in PREFIX
1215                           [$ac_default_prefix]
1216   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1217                           [PREFIX]
1218
1219 By default, \`make install' will install all the files in
1220 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1221 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1222 for instance \`--prefix=\$HOME'.
1223
1224 For better control, use the options below.
1225
1226 Fine tuning of the installation directories:
1227   --bindir=DIR           user executables [EPREFIX/bin]
1228   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1229   --libexecdir=DIR       program executables [EPREFIX/libexec]
1230   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1231   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1232   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1233   --libdir=DIR           object code libraries [EPREFIX/lib]
1234   --includedir=DIR       C header files [PREFIX/include]
1235   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1236   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1237   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1238   --infodir=DIR          info documentation [DATAROOTDIR/info]
1239   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1240   --mandir=DIR           man documentation [DATAROOTDIR/man]
1241   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1242   --htmldir=DIR          html documentation [DOCDIR]
1243   --dvidir=DIR           dvi documentation [DOCDIR]
1244   --pdfdir=DIR           pdf documentation [DOCDIR]
1245   --psdir=DIR            ps documentation [DOCDIR]
1246 _ACEOF
1247
1248   cat <<\_ACEOF
1249
1250 System types:
1251   --build=BUILD     configure for building on BUILD [guessed]
1252   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1253   --target=TARGET   configure for building compilers for TARGET [HOST]
1254 _ACEOF
1255 fi
1256
1257 if test -n "$ac_init_help"; then
1258
1259   cat <<\_ACEOF
1260
1261 Optional Packages:
1262   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1263   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1264   --with-howl=PATH        Compile in howl support.
1265                           PATH is the prefix where howl is installed,
1266                           and is not optional.
1267   --with-loadavg=PATH   Compile in loadavg support.
1268
1269   --with-inet6    Compile in ipv6 support. (obsolete)
1270   --with-libwrap=PATH   Compile in libwrap (tcp_wrappers) support.
1271
1272 Some influential environment variables:
1273   CC          C compiler command
1274   CFLAGS      C compiler flags
1275   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1276               nonstandard directory <lib dir>
1277   LIBS        libraries to pass to the linker, e.g. -l<library>
1278   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1279               you have headers in a nonstandard directory <include dir>
1280   CPP         C preprocessor
1281
1282 Use these variables to override the choices made by `configure' or to help
1283 it to find libraries and programs with nonstandard names/locations.
1284
1285 _ACEOF
1286 ac_status=$?
1287 fi
1288
1289 if test "$ac_init_help" = "recursive"; then
1290   # If there are subdirs, report their specific --help.
1291   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1292     test -d "$ac_dir" || continue
1293     ac_builddir=.
1294
1295 case "$ac_dir" in
1296 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1297 *)
1298   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1299   # A ".." for each directory in $ac_dir_suffix.
1300   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1301   case $ac_top_builddir_sub in
1302   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1303   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1304   esac ;;
1305 esac
1306 ac_abs_top_builddir=$ac_pwd
1307 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1308 # for backward compatibility:
1309 ac_top_builddir=$ac_top_build_prefix
1310
1311 case $srcdir in
1312   .)  # We are building in place.
1313     ac_srcdir=.
1314     ac_top_srcdir=$ac_top_builddir_sub
1315     ac_abs_top_srcdir=$ac_pwd ;;
1316   [\\/]* | ?:[\\/]* )  # Absolute name.
1317     ac_srcdir=$srcdir$ac_dir_suffix;
1318     ac_top_srcdir=$srcdir
1319     ac_abs_top_srcdir=$srcdir ;;
1320   *) # Relative name.
1321     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1322     ac_top_srcdir=$ac_top_build_prefix$srcdir
1323     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1324 esac
1325 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1326
1327     cd "$ac_dir" || { ac_status=$?; continue; }
1328     # Check for guested configure.
1329     if test -f "$ac_srcdir/configure.gnu"; then
1330       echo &&
1331       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1332     elif test -f "$ac_srcdir/configure"; then
1333       echo &&
1334       $SHELL "$ac_srcdir/configure" --help=recursive
1335     else
1336       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1337     fi || ac_status=$?
1338     cd "$ac_pwd" || { ac_status=$?; break; }
1339   done
1340 fi
1341
1342 test -n "$ac_init_help" && exit $ac_status
1343 if $ac_init_version; then
1344   cat <<\_ACEOF
1345 configure
1346 generated by GNU Autoconf 2.61
1347
1348 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1349 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1350 This configure script is free software; the Free Software Foundation
1351 gives unlimited permission to copy, distribute and modify it.
1352 _ACEOF
1353   exit
1354 fi
1355 cat >config.log <<_ACEOF
1356 This file contains any messages produced by compilers while
1357 running configure, to aid debugging if configure makes a mistake.
1358
1359 It was created by $as_me, which was
1360 generated by GNU Autoconf 2.61.  Invocation command line was
1361
1362   $ $0 $@
1363
1364 _ACEOF
1365 exec 5>>config.log
1366 {
1367 cat <<_ASUNAME
1368 ## --------- ##
1369 ## Platform. ##
1370 ## --------- ##
1371
1372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1377
1378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1379 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1380
1381 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1382 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1384 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1385 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1386 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1387 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1388
1389 _ASUNAME
1390
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 for as_dir in $PATH
1393 do
1394   IFS=$as_save_IFS
1395   test -z "$as_dir" && as_dir=.
1396   echo "PATH: $as_dir"
1397 done
1398 IFS=$as_save_IFS
1399
1400 } >&5
1401
1402 cat >&5 <<_ACEOF
1403
1404
1405 ## ----------- ##
1406 ## Core tests. ##
1407 ## ----------- ##
1408
1409 _ACEOF
1410
1411
1412 # Keep a trace of the command line.
1413 # Strip out --no-create and --no-recursion so they do not pile up.
1414 # Strip out --silent because we don't want to record it for future runs.
1415 # Also quote any args containing shell meta-characters.
1416 # Make two passes to allow for proper duplicate-argument suppression.
1417 ac_configure_args=
1418 ac_configure_args0=
1419 ac_configure_args1=
1420 ac_must_keep_next=false
1421 for ac_pass in 1 2
1422 do
1423   for ac_arg
1424   do
1425     case $ac_arg in
1426     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1427     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1428     | -silent | --silent | --silen | --sile | --sil)
1429       continue ;;
1430     *\'*)
1431       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1432     esac
1433     case $ac_pass in
1434     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1435     2)
1436       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1437       if test $ac_must_keep_next = true; then
1438         ac_must_keep_next=false # Got value, back to normal.
1439       else
1440         case $ac_arg in
1441           *=* | --config-cache | -C | -disable-* | --disable-* \
1442           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1443           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1444           | -with-* | --with-* | -without-* | --without-* | --x)
1445             case "$ac_configure_args0 " in
1446               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1447             esac
1448             ;;
1449           -* ) ac_must_keep_next=true ;;
1450         esac
1451       fi
1452       ac_configure_args="$ac_configure_args '$ac_arg'"
1453       ;;
1454     esac
1455   done
1456 done
1457 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1458 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1459
1460 # When interrupted or exit'd, cleanup temporary files, and complete
1461 # config.log.  We remove comments because anyway the quotes in there
1462 # would cause problems or look ugly.
1463 # WARNING: Use '\'' to represent an apostrophe within the trap.
1464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1465 trap 'exit_status=$?
1466   # Save into config.log some information that might help in debugging.
1467   {
1468     echo
1469
1470     cat <<\_ASBOX
1471 ## ---------------- ##
1472 ## Cache variables. ##
1473 ## ---------------- ##
1474 _ASBOX
1475     echo
1476     # The following way of writing the cache mishandles newlines in values,
1477 (
1478   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1479     eval ac_val=\$$ac_var
1480     case $ac_val in #(
1481     *${as_nl}*)
1482       case $ac_var in #(
1483       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1484 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1485       esac
1486       case $ac_var in #(
1487       _ | IFS | as_nl) ;; #(
1488       *) $as_unset $ac_var ;;
1489       esac ;;
1490     esac
1491   done
1492   (set) 2>&1 |
1493     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1494     *${as_nl}ac_space=\ *)
1495       sed -n \
1496         "s/'\''/'\''\\\\'\'''\''/g;
1497           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1498       ;; #(
1499     *)
1500       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1501       ;;
1502     esac |
1503     sort
1504 )
1505     echo
1506
1507     cat <<\_ASBOX
1508 ## ----------------- ##
1509 ## Output variables. ##
1510 ## ----------------- ##
1511 _ASBOX
1512     echo
1513     for ac_var in $ac_subst_vars
1514     do
1515       eval ac_val=\$$ac_var
1516       case $ac_val in
1517       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1518       esac
1519       echo "$ac_var='\''$ac_val'\''"
1520     done | sort
1521     echo
1522
1523     if test -n "$ac_subst_files"; then
1524       cat <<\_ASBOX
1525 ## ------------------- ##
1526 ## File substitutions. ##
1527 ## ------------------- ##
1528 _ASBOX
1529       echo
1530       for ac_var in $ac_subst_files
1531       do
1532         eval ac_val=\$$ac_var
1533         case $ac_val in
1534         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1535         esac
1536         echo "$ac_var='\''$ac_val'\''"
1537       done | sort
1538       echo
1539     fi
1540
1541     if test -s confdefs.h; then
1542       cat <<\_ASBOX
1543 ## ----------- ##
1544 ## confdefs.h. ##
1545 ## ----------- ##
1546 _ASBOX
1547       echo
1548       cat confdefs.h
1549       echo
1550     fi
1551     test "$ac_signal" != 0 &&
1552       echo "$as_me: caught signal $ac_signal"
1553     echo "$as_me: exit $exit_status"
1554   } >&5
1555   rm -f core *.core core.conftest.* &&
1556     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1557     exit $exit_status
1558 ' 0
1559 for ac_signal in 1 2 13 15; do
1560   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1561 done
1562 ac_signal=0
1563
1564 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1565 rm -f -r conftest* confdefs.h
1566
1567 # Predefined preprocessor variables.
1568
1569 cat >>confdefs.h <<_ACEOF
1570 #define PACKAGE_NAME "$PACKAGE_NAME"
1571 _ACEOF
1572
1573
1574 cat >>confdefs.h <<_ACEOF
1575 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1576 _ACEOF
1577
1578
1579 cat >>confdefs.h <<_ACEOF
1580 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1581 _ACEOF
1582
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_STRING "$PACKAGE_STRING"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1591 _ACEOF
1592
1593
1594 # Let the site file select an alternate cache file if it wants to.
1595 # Prefer explicitly selected file to automatically selected ones.
1596 if test -n "$CONFIG_SITE"; then
1597   set x "$CONFIG_SITE"
1598 elif test "x$prefix" != xNONE; then
1599   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1600 else
1601   set x "$ac_default_prefix/share/config.site" \
1602         "$ac_default_prefix/etc/config.site"
1603 fi
1604 shift
1605 for ac_site_file
1606 do
1607   if test -r "$ac_site_file"; then
1608     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1609 echo "$as_me: loading site script $ac_site_file" >&6;}
1610     sed 's/^/| /' "$ac_site_file" >&5
1611     . "$ac_site_file"
1612   fi
1613 done
1614
1615 if test -r "$cache_file"; then
1616   # Some versions of bash will fail to source /dev/null (special
1617   # files actually), so we avoid doing that.
1618   if test -f "$cache_file"; then
1619     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1620 echo "$as_me: loading cache $cache_file" >&6;}
1621     case $cache_file in
1622       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1623       *)                      . "./$cache_file";;
1624     esac
1625   fi
1626 else
1627   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1628 echo "$as_me: creating cache $cache_file" >&6;}
1629   >$cache_file
1630 fi
1631
1632 # Check that the precious variables saved in the cache have kept the same
1633 # value.
1634 ac_cache_corrupted=false
1635 for ac_var in $ac_precious_vars; do
1636   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1637   eval ac_new_set=\$ac_env_${ac_var}_set
1638   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1639   eval ac_new_val=\$ac_env_${ac_var}_value
1640   case $ac_old_set,$ac_new_set in
1641     set,)
1642       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1643 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1644       ac_cache_corrupted=: ;;
1645     ,set)
1646       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1647 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1648       ac_cache_corrupted=: ;;
1649     ,);;
1650     *)
1651       if test "x$ac_old_val" != "x$ac_new_val"; then
1652         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1653 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1654         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1655 echo "$as_me:   former value:  $ac_old_val" >&2;}
1656         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1657 echo "$as_me:   current value: $ac_new_val" >&2;}
1658         ac_cache_corrupted=:
1659       fi;;
1660   esac
1661   # Pass precious variables to config.status.
1662   if test "$ac_new_set" = set; then
1663     case $ac_new_val in
1664     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1665     *) ac_arg=$ac_var=$ac_new_val ;;
1666     esac
1667     case " $ac_configure_args " in
1668       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1669       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1670     esac
1671   fi
1672 done
1673 if $ac_cache_corrupted; then
1674   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1675 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1676   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1677 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1678    { (exit 1); exit 1; }; }
1679 fi
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697 ac_ext=c
1698 ac_cpp='$CPP $CPPFLAGS'
1699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1702
1703
1704
1705 ac_aux_dir=
1706 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1707   if test -f "$ac_dir/install-sh"; then
1708     ac_aux_dir=$ac_dir
1709     ac_install_sh="$ac_aux_dir/install-sh -c"
1710     break
1711   elif test -f "$ac_dir/install.sh"; then
1712     ac_aux_dir=$ac_dir
1713     ac_install_sh="$ac_aux_dir/install.sh -c"
1714     break
1715   elif test -f "$ac_dir/shtool"; then
1716     ac_aux_dir=$ac_dir
1717     ac_install_sh="$ac_aux_dir/shtool install -c"
1718     break
1719   fi
1720 done
1721 if test -z "$ac_aux_dir"; then
1722   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1723 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1724    { (exit 1); exit 1; }; }
1725 fi
1726
1727 # These three variables are undocumented and unsupported,
1728 # and are intended to be withdrawn in a future Autoconf release.
1729 # They can cause serious problems if a builder's source tree is in a directory
1730 # whose full name contains unusual characters.
1731 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1732 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1733 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1734
1735
1736 # Make sure we can run config.sub.
1737 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1738   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1739 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1740    { (exit 1); exit 1; }; }
1741
1742 { echo "$as_me:$LINENO: checking build system type" >&5
1743 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1744 if test "${ac_cv_build+set}" = set; then
1745   echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747   ac_build_alias=$build_alias
1748 test "x$ac_build_alias" = x &&
1749   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1750 test "x$ac_build_alias" = x &&
1751   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1752 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1753    { (exit 1); exit 1; }; }
1754 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1755   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1756 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1757    { (exit 1); exit 1; }; }
1758
1759 fi
1760 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1761 echo "${ECHO_T}$ac_cv_build" >&6; }
1762 case $ac_cv_build in
1763 *-*-*) ;;
1764 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1765 echo "$as_me: error: invalid value of canonical build" >&2;}
1766    { (exit 1); exit 1; }; };;
1767 esac
1768 build=$ac_cv_build
1769 ac_save_IFS=$IFS; IFS='-'
1770 set x $ac_cv_build
1771 shift
1772 build_cpu=$1
1773 build_vendor=$2
1774 shift; shift
1775 # Remember, the first character of IFS is used to create $*,
1776 # except with old shells:
1777 build_os=$*
1778 IFS=$ac_save_IFS
1779 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1780
1781
1782 { echo "$as_me:$LINENO: checking host system type" >&5
1783 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1784 if test "${ac_cv_host+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   if test "x$host_alias" = x; then
1788   ac_cv_host=$ac_cv_build
1789 else
1790   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1791     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1792 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1793    { (exit 1); exit 1; }; }
1794 fi
1795
1796 fi
1797 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1798 echo "${ECHO_T}$ac_cv_host" >&6; }
1799 case $ac_cv_host in
1800 *-*-*) ;;
1801 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1802 echo "$as_me: error: invalid value of canonical host" >&2;}
1803    { (exit 1); exit 1; }; };;
1804 esac
1805 host=$ac_cv_host
1806 ac_save_IFS=$IFS; IFS='-'
1807 set x $ac_cv_host
1808 shift
1809 host_cpu=$1
1810 host_vendor=$2
1811 shift; shift
1812 # Remember, the first character of IFS is used to create $*,
1813 # except with old shells:
1814 host_os=$*
1815 IFS=$ac_save_IFS
1816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1817
1818
1819 { echo "$as_me:$LINENO: checking target system type" >&5
1820 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1821 if test "${ac_cv_target+set}" = set; then
1822   echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824   if test "x$target_alias" = x; then
1825   ac_cv_target=$ac_cv_host
1826 else
1827   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1828     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1829 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1830    { (exit 1); exit 1; }; }
1831 fi
1832
1833 fi
1834 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1835 echo "${ECHO_T}$ac_cv_target" >&6; }
1836 case $ac_cv_target in
1837 *-*-*) ;;
1838 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1839 echo "$as_me: error: invalid value of canonical target" >&2;}
1840    { (exit 1); exit 1; }; };;
1841 esac
1842 target=$ac_cv_target
1843 ac_save_IFS=$IFS; IFS='-'
1844 set x $ac_cv_target
1845 shift
1846 target_cpu=$1
1847 target_vendor=$2
1848 shift; shift
1849 # Remember, the first character of IFS is used to create $*,
1850 # except with old shells:
1851 target_os=$*
1852 IFS=$ac_save_IFS
1853 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1854
1855
1856 # The aliases save the names the user supplied, while $host etc.
1857 # will get canonicalized.
1858 test -n "$target_alias" &&
1859   test "$program_prefix$program_suffix$program_transform_name" = \
1860     NONENONEs,x,x, &&
1861   program_prefix=${target_alias}-
1862
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 if test -n "$ac_tool_prefix"; then
1869   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1873 if test "${ac_cv_prog_CC+set}" = set; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   if test -n "$CC"; then
1877   ac_cv_prog_CC="$CC" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1886     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888     break 2
1889   fi
1890 done
1891 done
1892 IFS=$as_save_IFS
1893
1894 fi
1895 fi
1896 CC=$ac_cv_prog_CC
1897 if test -n "$CC"; then
1898   { echo "$as_me:$LINENO: result: $CC" >&5
1899 echo "${ECHO_T}$CC" >&6; }
1900 else
1901   { echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6; }
1903 fi
1904
1905
1906 fi
1907 if test -z "$ac_cv_prog_CC"; then
1908   ac_ct_CC=$CC
1909   # Extract the first word of "gcc", so it can be a program name with args.
1910 set dummy gcc; ac_word=$2
1911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$ac_ct_CC"; then
1917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1926     ac_cv_prog_ac_ct_CC="gcc"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932 IFS=$as_save_IFS
1933
1934 fi
1935 fi
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6; }
1940 else
1941   { echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6; }
1943 fi
1944
1945   if test "x$ac_ct_CC" = x; then
1946     CC=""
1947   else
1948     case $cross_compiling:$ac_tool_warned in
1949 yes:)
1950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1951 whose name does not start with the host triplet.  If you think this
1952 configuration is useful to you, please write to autoconf@gnu.org." >&5
1953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1954 whose name does not start with the host triplet.  If you think this
1955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1956 ac_tool_warned=yes ;;
1957 esac
1958     CC=$ac_ct_CC
1959   fi
1960 else
1961   CC="$ac_cv_prog_CC"
1962 fi
1963
1964 if test -z "$CC"; then
1965           if test -n "$ac_tool_prefix"; then
1966     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1967 set dummy ${ac_tool_prefix}cc; ac_word=$2
1968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   if test -n "$CC"; then
1974   ac_cv_prog_CC="$CC" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   for ac_exec_ext in '' $ac_executable_extensions; do
1982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1983     ac_cv_prog_CC="${ac_tool_prefix}cc"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989 IFS=$as_save_IFS
1990
1991 fi
1992 fi
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995   { echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6; }
1997 else
1998   { echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6; }
2000 fi
2001
2002
2003   fi
2004 fi
2005 if test -z "$CC"; then
2006   # Extract the first word of "cc", so it can be a program name with args.
2007 set dummy cc; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$CC"; then
2014   ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016   ac_prog_rejected=no
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020   IFS=$as_save_IFS
2021   test -z "$as_dir" && as_dir=.
2022   for ac_exec_ext in '' $ac_executable_extensions; do
2023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2024     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2025        ac_prog_rejected=yes
2026        continue
2027      fi
2028     ac_cv_prog_CC="cc"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 if test $ac_prog_rejected = yes; then
2037   # We found a bogon in the path, so make sure we never use it.
2038   set dummy $ac_cv_prog_CC
2039   shift
2040   if test $# != 0; then
2041     # We chose a different compiler from the bogus one.
2042     # However, it has the same basename, so the bogon will be chosen
2043     # first if we set CC to just the basename; use the full file name.
2044     shift
2045     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2046   fi
2047 fi
2048 fi
2049 fi
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052   { echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6; }
2054 else
2055   { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059
2060 fi
2061 if test -z "$CC"; then
2062   if test -n "$ac_tool_prefix"; then
2063   for ac_prog in cl.exe
2064   do
2065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test -n "$CC"; then
2073   ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080   for ac_exec_ext in '' $ac_executable_extensions; do
2081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2082     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084     break 2
2085   fi
2086 done
2087 done
2088 IFS=$as_save_IFS
2089
2090 fi
2091 fi
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094   { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2096 else
2097   { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2099 fi
2100
2101
2102     test -n "$CC" && break
2103   done
2104 fi
2105 if test -z "$CC"; then
2106   ac_ct_CC=$CC
2107   for ac_prog in cl.exe
2108 do
2109   # Extract the first word of "$ac_prog", so it can be a program name with args.
2110 set dummy $ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   if test -n "$ac_ct_CC"; then
2117   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124   for ac_exec_ext in '' $ac_executable_extensions; do
2125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126     ac_cv_prog_ac_ct_CC="$ac_prog"
2127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128     break 2
2129   fi
2130 done
2131 done
2132 IFS=$as_save_IFS
2133
2134 fi
2135 fi
2136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2137 if test -n "$ac_ct_CC"; then
2138   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2139 echo "${ECHO_T}$ac_ct_CC" >&6; }
2140 else
2141   { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146   test -n "$ac_ct_CC" && break
2147 done
2148
2149   if test "x$ac_ct_CC" = x; then
2150     CC=""
2151   else
2152     case $cross_compiling:$ac_tool_warned in
2153 yes:)
2154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2155 whose name does not start with the host triplet.  If you think this
2156 configuration is useful to you, please write to autoconf@gnu.org." >&5
2157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2158 whose name does not start with the host triplet.  If you think this
2159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2160 ac_tool_warned=yes ;;
2161 esac
2162     CC=$ac_ct_CC
2163   fi
2164 fi
2165
2166 fi
2167
2168
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173    { (exit 1); exit 1; }; }
2174
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184   (eval "$ac_compiler --version >&5") 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2189 case "(($ac_try" in
2190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191   *) ac_try_echo=$ac_try;;
2192 esac
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194   (eval "$ac_compiler -v >&5") 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2199 case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204   (eval "$ac_compiler -V >&5") 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }
2208
2209 cat >conftest.$ac_ext <<_ACEOF
2210 /* confdefs.h.  */
2211 _ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h.  */
2215
2216 int
2217 main ()
2218 {
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2228 # of exeext.
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2232 #
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort.  b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2237 #
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions.  Remove them first so a
2240 # subsequent execution test works.
2241 ac_rmfiles=
2242 for ac_file in $ac_files
2243 do
2244   case $ac_file in
2245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2247   esac
2248 done
2249 rm -f $ac_rmfiles
2250
2251 if { (ac_try="$ac_link_default"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_link_default") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; then
2261   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2265 # Autoconf.
2266 for ac_file in $ac_files ''
2267 do
2268   test -f "$ac_file" || continue
2269   case $ac_file in
2270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2271         ;;
2272     [ab].out )
2273         # We found the default executable, but exeext='' is most
2274         # certainly right.
2275         break;;
2276     *.* )
2277         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2278         then :; else
2279            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280         fi
2281         # We set ac_cv_exeext here because the later test for it is not
2282         # safe: cross compilers may not add the suffix if given an `-o'
2283         # argument, so we may need to know it at that point already.
2284         # Even if this section looks crufty: it has the advantage of
2285         # actually working.
2286         break;;
2287     * )
2288         break;;
2289   esac
2290 done
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2292
2293 else
2294   ac_file=''
2295 fi
2296
2297 { echo "$as_me:$LINENO: result: $ac_file" >&5
2298 echo "${ECHO_T}$ac_file" >&6; }
2299 if test -z "$ac_file"; then
2300   echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&2;}
2307    { (exit 77); exit 77; }; }
2308 fi
2309
2310 ac_exeext=$ac_cv_exeext
2311
2312 # Check that the compiler produces executables we can run.  If not, either
2313 # the compiler is broken, or we cross compile.
2314 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2315 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2316 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2317 # If not cross compiling, check that we can run a simple program.
2318 if test "$cross_compiling" != yes; then
2319   if { ac_try='./$ac_file'
2320   { (case "(($ac_try" in
2321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322   *) ac_try_echo=$ac_try;;
2323 esac
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325   (eval "$ac_try") 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; }; then
2329     cross_compiling=no
2330   else
2331     if test "$cross_compiling" = maybe; then
2332         cross_compiling=yes
2333     else
2334         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2335 If you meant to cross compile, use \`--host'.
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot run C compiled programs.
2338 If you meant to cross compile, use \`--host'.
2339 See \`config.log' for more details." >&2;}
2340    { (exit 1); exit 1; }; }
2341     fi
2342   fi
2343 fi
2344 { echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6; }
2346
2347 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2348 ac_clean_files=$ac_clean_files_save
2349 # Check that the compiler produces executables we can run.  If not, either
2350 # the compiler is broken, or we cross compile.
2351 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2353 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2354 echo "${ECHO_T}$cross_compiling" >&6; }
2355
2356 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2358 if { (ac_try="$ac_link"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364   (eval "$ac_link") 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }; then
2368   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2369 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2370 # work properly (i.e., refer to `conftest.exe'), while it won't with
2371 # `rm'.
2372 for ac_file in conftest.exe conftest conftest.*; do
2373   test -f "$ac_file" || continue
2374   case $ac_file in
2375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2376     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2377           break;;
2378     * ) break;;
2379   esac
2380 done
2381 else
2382   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2385 See \`config.log' for more details." >&2;}
2386    { (exit 1); exit 1; }; }
2387 fi
2388
2389 rm -f conftest$ac_cv_exeext
2390 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2391 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2392
2393 rm -f conftest.$ac_ext
2394 EXEEXT=$ac_cv_exeext
2395 ac_exeext=$EXEEXT
2396 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2397 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2398 if test "${ac_cv_objext+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   cat >conftest.$ac_ext <<_ACEOF
2402 /* confdefs.h.  */
2403 _ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h.  */
2407
2408 int
2409 main ()
2410 {
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 rm -f conftest.o conftest.obj
2417 if { (ac_try="$ac_compile"
2418 case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423   (eval "$ac_compile") 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; then
2427   for ac_file in conftest.o conftest.obj conftest.*; do
2428   test -f "$ac_file" || continue;
2429   case $ac_file in
2430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2431     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432        break;;
2433   esac
2434 done
2435 else
2436   echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2440 See \`config.log' for more details." >&5
2441 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2442 See \`config.log' for more details." >&2;}
2443    { (exit 1); exit 1; }; }
2444 fi
2445
2446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2447 fi
2448 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2449 echo "${ECHO_T}$ac_cv_objext" >&6; }
2450 OBJEXT=$ac_cv_objext
2451 ac_objext=$OBJEXT
2452 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2453 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2454 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463
2464 int
2465 main ()
2466 {
2467 #ifndef __GNUC__
2468        choke me
2469 #endif
2470
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (ac_try="$ac_compile"
2477 case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482   (eval "$ac_compile") 2>conftest.er1
2483   ac_status=$?
2484   grep -v '^ *+' conftest.er1 >conftest.err
2485   rm -f conftest.er1
2486   cat conftest.err >&5
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); } && {
2489          test -z "$ac_c_werror_flag" ||
2490          test ! -s conftest.err
2491        } && test -s conftest.$ac_objext; then
2492   ac_compiler_gnu=yes
2493 else
2494   echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497         ac_compiler_gnu=no
2498 fi
2499
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2502
2503 fi
2504 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2505 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2506 GCC=`test $ac_compiler_gnu = yes && echo yes`
2507 ac_test_CFLAGS=${CFLAGS+set}
2508 ac_save_CFLAGS=$CFLAGS
2509 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2510 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_cc_g+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514   ac_save_c_werror_flag=$ac_c_werror_flag
2515    ac_c_werror_flag=yes
2516    ac_cv_prog_cc_g=no
2517    CFLAGS="-g"
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.$ac_objext
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540   (eval "$ac_compile") 2>conftest.er1
2541   ac_status=$?
2542   grep -v '^ *+' conftest.er1 >conftest.err
2543   rm -f conftest.er1
2544   cat conftest.err >&5
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); } && {
2547          test -z "$ac_c_werror_flag" ||
2548          test ! -s conftest.err
2549        } && test -s conftest.$ac_objext; then
2550   ac_cv_prog_cc_g=yes
2551 else
2552   echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555         CFLAGS=""
2556       cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (ac_try="$ac_compile"
2573 case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578   (eval "$ac_compile") 2>conftest.er1
2579   ac_status=$?
2580   grep -v '^ *+' conftest.er1 >conftest.err
2581   rm -f conftest.er1
2582   cat conftest.err >&5
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } && {
2585          test -z "$ac_c_werror_flag" ||
2586          test ! -s conftest.err
2587        } && test -s conftest.$ac_objext; then
2588   :
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593         ac_c_werror_flag=$ac_save_c_werror_flag
2594          CFLAGS="-g"
2595          cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (ac_try="$ac_compile"
2612 case "(($ac_try" in
2613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614   *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617   (eval "$ac_compile") 2>conftest.er1
2618   ac_status=$?
2619   grep -v '^ *+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } && {
2624          test -z "$ac_c_werror_flag" ||
2625          test ! -s conftest.err
2626        } && test -s conftest.$ac_objext; then
2627   ac_cv_prog_cc_g=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632
2633 fi
2634
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2637
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2640
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642    ac_c_werror_flag=$ac_save_c_werror_flag
2643 fi
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647   CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649   if test "$GCC" = yes; then
2650     CFLAGS="-g -O2"
2651   else
2652     CFLAGS="-g"
2653   fi
2654 else
2655   if test "$GCC" = yes; then
2656     CFLAGS="-O2"
2657   else
2658     CFLAGS=
2659   fi
2660 fi
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   ac_cv_prog_cc_c89=no
2667 ac_save_CC=$CC
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 #include <stdarg.h>
2675 #include <stdio.h>
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2682      char **p;
2683      int i;
2684 {
2685   return p[i];
2686 }
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2688 {
2689   char *s;
2690   va_list v;
2691   va_start (v,p);
2692   s = g (p, va_arg (v,int));
2693   va_end (v);
2694   return s;
2695 }
2696
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2698    function prototypes and stuff, but not '\xHH' hex character constants.
2699    These don't provoke an error unfortunately, instead are silently treated
2700    as 'x'.  The following induces an error, until -std is added to get
2701    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2702    array size at least.  It's necessary to write '\x00'==0 to get something
2703    that's true only with -std.  */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707    inside strings and character constants.  */
2708 #define FOO(x) 'x'
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2710
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715 int argc;
2716 char **argv;
2717 int
2718 main ()
2719 {
2720 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 do
2728   CC="$ac_save_CC $ac_arg"
2729   rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compile") 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } && {
2743          test -z "$ac_c_werror_flag" ||
2744          test ! -s conftest.err
2745        } && test -s conftest.$ac_objext; then
2746   ac_cv_prog_cc_c89=$ac_arg
2747 else
2748   echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751
2752 fi
2753
2754 rm -f core conftest.err conftest.$ac_objext
2755   test "x$ac_cv_prog_cc_c89" != "xno" && break
2756 done
2757 rm -f conftest.$ac_ext
2758 CC=$ac_save_CC
2759
2760 fi
2761 # AC_CACHE_VAL
2762 case "x$ac_cv_prog_cc_c89" in
2763   x)
2764     { echo "$as_me:$LINENO: result: none needed" >&5
2765 echo "${ECHO_T}none needed" >&6; } ;;
2766   xno)
2767     { echo "$as_me:$LINENO: result: unsupported" >&5
2768 echo "${ECHO_T}unsupported" >&6; } ;;
2769   *)
2770     CC="$CC $ac_cv_prog_cc_c89"
2771     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2772 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2773 esac
2774
2775
2776 ac_ext=c
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781
2782 # Find a good install program.  We prefer a C program (faster),
2783 # so one script is as good as another.  But avoid the broken or
2784 # incompatible versions:
2785 # SysV /etc/install, /usr/sbin/install
2786 # SunOS /usr/etc/install
2787 # IRIX /sbin/install
2788 # AIX /bin/install
2789 # AmigaOS /C/install, which installs bootblocks on floppy discs
2790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2793 # OS/2's system install, which has a completely different semantic
2794 # ./install, which can be erroneously created by make from ./install.sh.
2795 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2796 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2797 if test -z "$INSTALL"; then
2798 if test "${ac_cv_path_install+set}" = set; then
2799   echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806   # Account for people who put trailing slashes in PATH elements.
2807 case $as_dir/ in
2808   ./ | .// | /cC/* | \
2809   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2810   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2811   /usr/ucb/* ) ;;
2812   *)
2813     # OSF1 and SCO ODT 3.0 have their own names for install.
2814     # Don't use installbsd from OSF since it installs stuff as root
2815     # by default.
2816     for ac_prog in ginstall scoinst install; do
2817       for ac_exec_ext in '' $ac_executable_extensions; do
2818         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2819           if test $ac_prog = install &&
2820             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821             # AIX install.  It has an incompatible calling convention.
2822             :
2823           elif test $ac_prog = install &&
2824             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2825             # program-specific install script used by HP pwplus--don't use.
2826             :
2827           else
2828             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2829             break 3
2830           fi
2831         fi
2832       done
2833     done
2834     ;;
2835 esac
2836 done
2837 IFS=$as_save_IFS
2838
2839
2840 fi
2841   if test "${ac_cv_path_install+set}" = set; then
2842     INSTALL=$ac_cv_path_install
2843   else
2844     # As a last resort, use the slow shell script.  Don't cache a
2845     # value for INSTALL within a source directory, because that will
2846     # break other packages using the cache if that directory is
2847     # removed, or if the value is a relative name.
2848     INSTALL=$ac_install_sh
2849   fi
2850 fi
2851 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2852 echo "${ECHO_T}$INSTALL" >&6; }
2853
2854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2855 # It thinks the first close brace ends the variable substitution.
2856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2857
2858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2859
2860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2861
2862 if test -n "$ac_tool_prefix"; then
2863   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_RANLIB+set}" = set; then
2868   echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870   if test -n "$RANLIB"; then
2871   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878   for ac_exec_ext in '' $ac_executable_extensions; do
2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 RANLIB=$ac_cv_prog_RANLIB
2891 if test -n "$RANLIB"; then
2892   { echo "$as_me:$LINENO: result: $RANLIB" >&5
2893 echo "${ECHO_T}$RANLIB" >&6; }
2894 else
2895   { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$ac_cv_prog_RANLIB"; then
2902   ac_ct_RANLIB=$RANLIB
2903   # Extract the first word of "ranlib", so it can be a program name with args.
2904 set dummy ranlib; ac_word=$2
2905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2907 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910   if test -n "$ac_ct_RANLIB"; then
2911   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918   for ac_exec_ext in '' $ac_executable_extensions; do
2919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920     ac_cv_prog_ac_ct_RANLIB="ranlib"
2921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2931 if test -n "$ac_ct_RANLIB"; then
2932   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2933 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2934 else
2935   { echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6; }
2937 fi
2938
2939   if test "x$ac_ct_RANLIB" = x; then
2940     RANLIB=":"
2941   else
2942     case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet.  If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&5
2947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2948 whose name does not start with the host triplet.  If you think this
2949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952     RANLIB=$ac_ct_RANLIB
2953   fi
2954 else
2955   RANLIB="$ac_cv_prog_RANLIB"
2956 fi
2957
2958
2959
2960
2961 { echo "$as_me:$LINENO: checking for main in -lcompat" >&5
2962 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6; }
2963 if test "${ac_cv_lib_compat_main+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966   ac_check_lib_save_LIBS=$LIBS
2967 LIBS="-lcompat  $LIBS"
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974
2975
2976 int
2977 main ()
2978 {
2979 return main ();
2980   ;
2981   return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext conftest$ac_exeext
2985 if { (ac_try="$ac_link"
2986 case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_link") 2>conftest.er1
2992   ac_status=$?
2993   grep -v '^ *+' conftest.er1 >conftest.err
2994   rm -f conftest.er1
2995   cat conftest.err >&5
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); } && {
2998          test -z "$ac_c_werror_flag" ||
2999          test ! -s conftest.err
3000        } && test -s conftest$ac_exeext &&
3001        $as_test_x conftest$ac_exeext; then
3002   ac_cv_lib_compat_main=yes
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007         ac_cv_lib_compat_main=no
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3011       conftest$ac_exeext conftest.$ac_ext
3012 LIBS=$ac_check_lib_save_LIBS
3013 fi
3014 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
3015 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6; }
3016 if test $ac_cv_lib_compat_main = yes; then
3017   cat >>confdefs.h <<_ACEOF
3018 #define HAVE_LIBCOMPAT 1
3019 _ACEOF
3020
3021   LIBS="-lcompat $LIBS"
3022
3023 fi
3024
3025 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3026 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
3027 if test "${ac_cv_search_gethostbyname+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   ac_func_search_save_LIBS=$LIBS
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037
3038 /* Override any GCC internal prototype to avoid an error.
3039    Use char because int might match the return type of a GCC
3040    builtin and then its argument prototype would still apply.  */
3041 #ifdef __cplusplus
3042 extern "C"
3043 #endif
3044 char gethostbyname ();
3045 int
3046 main ()
3047 {
3048 return gethostbyname ();
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 for ac_lib in '' nsl socket resolv; do
3054   if test -z "$ac_lib"; then
3055     ac_res="none required"
3056   else
3057     ac_res=-l$ac_lib
3058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3059   fi
3060   rm -f conftest.$ac_objext conftest$ac_exeext
3061 if { (ac_try="$ac_link"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_link") 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } && {
3074          test -z "$ac_c_werror_flag" ||
3075          test ! -s conftest.err
3076        } && test -s conftest$ac_exeext &&
3077        $as_test_x conftest$ac_exeext; then
3078   ac_cv_search_gethostbyname=$ac_res
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083
3084 fi
3085
3086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3087       conftest$ac_exeext
3088   if test "${ac_cv_search_gethostbyname+set}" = set; then
3089   break
3090 fi
3091 done
3092 if test "${ac_cv_search_gethostbyname+set}" = set; then
3093   :
3094 else
3095   ac_cv_search_gethostbyname=no
3096 fi
3097 rm conftest.$ac_ext
3098 LIBS=$ac_func_search_save_LIBS
3099 fi
3100 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3101 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
3102 ac_res=$ac_cv_search_gethostbyname
3103 if test "$ac_res" != no; then
3104   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3105
3106 fi
3107
3108 { echo "$as_me:$LINENO: checking for library containing getnameinfo" >&5
3109 echo $ECHO_N "checking for library containing getnameinfo... $ECHO_C" >&6; }
3110 if test "${ac_cv_search_getnameinfo+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   ac_func_search_save_LIBS=$LIBS
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 /* Override any GCC internal prototype to avoid an error.
3122    Use char because int might match the return type of a GCC
3123    builtin and then its argument prototype would still apply.  */
3124 #ifdef __cplusplus
3125 extern "C"
3126 #endif
3127 char getnameinfo ();
3128 int
3129 main ()
3130 {
3131 return getnameinfo ();
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 for ac_lib in '' nsl socket resolv; do
3137   if test -z "$ac_lib"; then
3138     ac_res="none required"
3139   else
3140     ac_res=-l$ac_lib
3141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3142   fi
3143   rm -f conftest.$ac_objext conftest$ac_exeext
3144 if { (ac_try="$ac_link"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_link") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } && {
3157          test -z "$ac_c_werror_flag" ||
3158          test ! -s conftest.err
3159        } && test -s conftest$ac_exeext &&
3160        $as_test_x conftest$ac_exeext; then
3161   ac_cv_search_getnameinfo=$ac_res
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166
3167 fi
3168
3169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3170       conftest$ac_exeext
3171   if test "${ac_cv_search_getnameinfo+set}" = set; then
3172   break
3173 fi
3174 done
3175 if test "${ac_cv_search_getnameinfo+set}" = set; then
3176   :
3177 else
3178   ac_cv_search_getnameinfo=no
3179 fi
3180 rm conftest.$ac_ext
3181 LIBS=$ac_func_search_save_LIBS
3182 fi
3183 { echo "$as_me:$LINENO: result: $ac_cv_search_getnameinfo" >&5
3184 echo "${ECHO_T}$ac_cv_search_getnameinfo" >&6; }
3185 ac_res=$ac_cv_search_getnameinfo
3186 if test "$ac_res" != no; then
3187   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3188
3189 fi
3190
3191 { echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
3192 echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
3193 if test "${ac_cv_search_inet_ntop+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   ac_func_search_save_LIBS=$LIBS
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203
3204 /* Override any GCC internal prototype to avoid an error.
3205    Use char because int might match the return type of a GCC
3206    builtin and then its argument prototype would still apply.  */
3207 #ifdef __cplusplus
3208 extern "C"
3209 #endif
3210 char inet_ntop ();
3211 int
3212 main ()
3213 {
3214 return inet_ntop ();
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 for ac_lib in '' nsl socket resolv; do
3220   if test -z "$ac_lib"; then
3221     ac_res="none required"
3222   else
3223     ac_res=-l$ac_lib
3224     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3225   fi
3226   rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (ac_try="$ac_link"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_link") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } && {
3240          test -z "$ac_c_werror_flag" ||
3241          test ! -s conftest.err
3242        } && test -s conftest$ac_exeext &&
3243        $as_test_x conftest$ac_exeext; then
3244   ac_cv_search_inet_ntop=$ac_res
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3253       conftest$ac_exeext
3254   if test "${ac_cv_search_inet_ntop+set}" = set; then
3255   break
3256 fi
3257 done
3258 if test "${ac_cv_search_inet_ntop+set}" = set; then
3259   :
3260 else
3261   ac_cv_search_inet_ntop=no
3262 fi
3263 rm conftest.$ac_ext
3264 LIBS=$ac_func_search_save_LIBS
3265 fi
3266 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
3267 echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
3268 ac_res=$ac_cv_search_inet_ntop
3269 if test "$ac_res" != no; then
3270   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3271
3272 fi
3273
3274
3275
3276 for ac_func in getnameinfo inet_ntop
3277 do
3278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h.  */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h.  */
3290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3292 #define $ac_func innocuous_$ac_func
3293
3294 /* System header to define __stub macros and hopefully few prototypes,
3295     which can conflict with char $ac_func (); below.
3296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3297     <limits.h> exists even on freestanding compilers.  */
3298
3299 #ifdef __STDC__
3300 # include <limits.h>
3301 #else
3302 # include <assert.h>
3303 #endif
3304
3305 #undef $ac_func
3306
3307 /* Override any GCC internal prototype to avoid an error.
3308    Use char because int might match the return type of a GCC
3309    builtin and then its argument prototype would still apply.  */
3310 #ifdef __cplusplus
3311 extern "C"
3312 #endif
3313 char $ac_func ();
3314 /* The GNU C library defines this for functions which it implements
3315     to always fail with ENOSYS.  Some functions are actually named
3316     something starting with __ and the normal name is an alias.  */
3317 #if defined __stub_$ac_func || defined __stub___$ac_func
3318 choke me
3319 #endif
3320
3321 int
3322 main ()
3323 {
3324 return $ac_func ();
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext conftest$ac_exeext
3330 if { (ac_try="$ac_link"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_link") 2>conftest.er1
3337   ac_status=$?
3338   grep -v '^ *+' conftest.er1 >conftest.err
3339   rm -f conftest.er1
3340   cat conftest.err >&5
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); } && {
3343          test -z "$ac_c_werror_flag" ||
3344          test ! -s conftest.err
3345        } && test -s conftest$ac_exeext &&
3346        $as_test_x conftest$ac_exeext; then
3347   eval "$as_ac_var=yes"
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352         eval "$as_ac_var=no"
3353 fi
3354
3355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3356       conftest$ac_exeext conftest.$ac_ext
3357 fi
3358 ac_res=`eval echo '${'$as_ac_var'}'`
3359                { echo "$as_me:$LINENO: result: $ac_res" >&5
3360 echo "${ECHO_T}$ac_res" >&6; }
3361 if test `eval echo '${'$as_ac_var'}'` = yes; then
3362   cat >>confdefs.h <<_ACEOF
3363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3364 _ACEOF
3365
3366 fi
3367 done
3368
3369
3370 for ac_func in difftime
3371 do
3372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3376   echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378   cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3386 #define $ac_func innocuous_$ac_func
3387
3388 /* System header to define __stub macros and hopefully few prototypes,
3389     which can conflict with char $ac_func (); below.
3390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3391     <limits.h> exists even on freestanding compilers.  */
3392
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398
3399 #undef $ac_func
3400
3401 /* Override any GCC internal prototype to avoid an error.
3402    Use char because int might match the return type of a GCC
3403    builtin and then its argument prototype would still apply.  */
3404 #ifdef __cplusplus
3405 extern "C"
3406 #endif
3407 char $ac_func ();
3408 /* The GNU C library defines this for functions which it implements
3409     to always fail with ENOSYS.  Some functions are actually named
3410     something starting with __ and the normal name is an alias.  */
3411 #if defined __stub_$ac_func || defined __stub___$ac_func
3412 choke me
3413 #endif
3414
3415 int
3416 main ()
3417 {
3418 return $ac_func ();
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (ac_try="$ac_link"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430   (eval "$ac_link") 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } && {
3437          test -z "$ac_c_werror_flag" ||
3438          test ! -s conftest.err
3439        } && test -s conftest$ac_exeext &&
3440        $as_test_x conftest$ac_exeext; then
3441   eval "$as_ac_var=yes"
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446         eval "$as_ac_var=no"
3447 fi
3448
3449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3450       conftest$ac_exeext conftest.$ac_ext
3451 fi
3452 ac_res=`eval echo '${'$as_ac_var'}'`
3453                { echo "$as_me:$LINENO: result: $ac_res" >&5
3454 echo "${ECHO_T}$ac_res" >&6; }
3455 if test `eval echo '${'$as_ac_var'}'` = yes; then
3456   cat >>confdefs.h <<_ACEOF
3457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3458 _ACEOF
3459
3460 else
3461
3462 { echo "$as_me:$LINENO: checking for difftime in -lm" >&5
3463 echo $ECHO_N "checking for difftime in -lm... $ECHO_C" >&6; }
3464 if test "${ac_cv_lib_m_difftime+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   ac_check_lib_save_LIBS=$LIBS
3468 LIBS="-lm  $LIBS"
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475
3476 /* Override any GCC internal prototype to avoid an error.
3477    Use char because int might match the return type of a GCC
3478    builtin and then its argument prototype would still apply.  */
3479 #ifdef __cplusplus
3480 extern "C"
3481 #endif
3482 char difftime ();
3483 int
3484 main ()
3485 {
3486 return difftime ();
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 rm -f conftest.$ac_objext conftest$ac_exeext
3492 if { (ac_try="$ac_link"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498   (eval "$ac_link") 2>conftest.er1
3499   ac_status=$?
3500   grep -v '^ *+' conftest.er1 >conftest.err
3501   rm -f conftest.er1
3502   cat conftest.err >&5
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } && {
3505          test -z "$ac_c_werror_flag" ||
3506          test ! -s conftest.err
3507        } && test -s conftest$ac_exeext &&
3508        $as_test_x conftest$ac_exeext; then
3509   ac_cv_lib_m_difftime=yes
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514         ac_cv_lib_m_difftime=no
3515 fi
3516
3517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3518       conftest$ac_exeext conftest.$ac_ext
3519 LIBS=$ac_check_lib_save_LIBS
3520 fi
3521 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_difftime" >&5
3522 echo "${ECHO_T}$ac_cv_lib_m_difftime" >&6; }
3523 if test $ac_cv_lib_m_difftime = yes; then
3524   cat >>confdefs.h <<_ACEOF
3525 #define HAVE_LIBM 1
3526 _ACEOF
3527
3528   LIBS="-lm $LIBS"
3529
3530 fi
3531
3532 fi
3533 done
3534
3535
3536 for ac_func in fcvt
3537 do
3538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3552 #define $ac_func innocuous_$ac_func
3553
3554 /* System header to define __stub macros and hopefully few prototypes,
3555     which can conflict with char $ac_func (); below.
3556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3557     <limits.h> exists even on freestanding compilers.  */
3558
3559 #ifdef __STDC__
3560 # include <limits.h>
3561 #else
3562 # include <assert.h>
3563 #endif
3564
3565 #undef $ac_func
3566
3567 /* Override any GCC internal prototype to avoid an error.
3568    Use char because int might match the return type of a GCC
3569    builtin and then its argument prototype would still apply.  */
3570 #ifdef __cplusplus
3571 extern "C"
3572 #endif
3573 char $ac_func ();
3574 /* The GNU C library defines this for functions which it implements
3575     to always fail with ENOSYS.  Some functions are actually named
3576     something starting with __ and the normal name is an alias.  */
3577 #if defined __stub_$ac_func || defined __stub___$ac_func
3578 choke me
3579 #endif
3580
3581 int
3582 main ()
3583 {
3584 return $ac_func ();
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 rm -f conftest.$ac_objext conftest$ac_exeext
3590 if { (ac_try="$ac_link"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_link") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } && {
3603          test -z "$ac_c_werror_flag" ||
3604          test ! -s conftest.err
3605        } && test -s conftest$ac_exeext &&
3606        $as_test_x conftest$ac_exeext; then
3607   eval "$as_ac_var=yes"
3608 else
3609   echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612         eval "$as_ac_var=no"
3613 fi
3614
3615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3616       conftest$ac_exeext conftest.$ac_ext
3617 fi
3618 ac_res=`eval echo '${'$as_ac_var'}'`
3619                { echo "$as_me:$LINENO: result: $ac_res" >&5
3620 echo "${ECHO_T}$ac_res" >&6; }
3621 if test `eval echo '${'$as_ac_var'}'` = yes; then
3622   cat >>confdefs.h <<_ACEOF
3623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3624 _ACEOF
3625
3626 else
3627
3628 { echo "$as_me:$LINENO: checking for fcvt in -lm" >&5
3629 echo $ECHO_N "checking for fcvt in -lm... $ECHO_C" >&6; }
3630 if test "${ac_cv_lib_m_fcvt+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   ac_check_lib_save_LIBS=$LIBS
3634 LIBS="-lm  $LIBS"
3635 cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641
3642 /* Override any GCC internal prototype to avoid an error.
3643    Use char because int might match the return type of a GCC
3644    builtin and then its argument prototype would still apply.  */
3645 #ifdef __cplusplus
3646 extern "C"
3647 #endif
3648 char fcvt ();
3649 int
3650 main ()
3651 {
3652 return fcvt ();
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.$ac_objext conftest$ac_exeext
3658 if { (ac_try="$ac_link"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_link") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } && {
3671          test -z "$ac_c_werror_flag" ||
3672          test ! -s conftest.err
3673        } && test -s conftest$ac_exeext &&
3674        $as_test_x conftest$ac_exeext; then
3675   ac_cv_lib_m_fcvt=yes
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680         ac_cv_lib_m_fcvt=no
3681 fi
3682
3683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3684       conftest$ac_exeext conftest.$ac_ext
3685 LIBS=$ac_check_lib_save_LIBS
3686 fi
3687 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fcvt" >&5
3688 echo "${ECHO_T}$ac_cv_lib_m_fcvt" >&6; }
3689 if test $ac_cv_lib_m_fcvt = yes; then
3690   cat >>confdefs.h <<_ACEOF
3691 #define HAVE_LIBM 1
3692 _ACEOF
3693
3694   LIBS="-lm $LIBS"
3695
3696 fi
3697
3698 fi
3699 done
3700
3701
3702 for ac_func in ecvt
3703 do
3704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h.  */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h.  */
3716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3718 #define $ac_func innocuous_$ac_func
3719
3720 /* System header to define __stub macros and hopefully few prototypes,
3721     which can conflict with char $ac_func (); below.
3722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3723     <limits.h> exists even on freestanding compilers.  */
3724
3725 #ifdef __STDC__
3726 # include <limits.h>
3727 #else
3728 # include <assert.h>
3729 #endif
3730
3731 #undef $ac_func
3732
3733 /* Override any GCC internal prototype to avoid an error.
3734    Use char because int might match the return type of a GCC
3735    builtin and then its argument prototype would still apply.  */
3736 #ifdef __cplusplus
3737 extern "C"
3738 #endif
3739 char $ac_func ();
3740 /* The GNU C library defines this for functions which it implements
3741     to always fail with ENOSYS.  Some functions are actually named
3742     something starting with __ and the normal name is an alias.  */
3743 #if defined __stub_$ac_func || defined __stub___$ac_func
3744 choke me
3745 #endif
3746
3747 int
3748 main ()
3749 {
3750 return $ac_func ();
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (ac_try="$ac_link"
3757 case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762   (eval "$ac_link") 2>conftest.er1
3763   ac_status=$?
3764   grep -v '^ *+' conftest.er1 >conftest.err
3765   rm -f conftest.er1
3766   cat conftest.err >&5
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); } && {
3769          test -z "$ac_c_werror_flag" ||
3770          test ! -s conftest.err
3771        } && test -s conftest$ac_exeext &&
3772        $as_test_x conftest$ac_exeext; then
3773   eval "$as_ac_var=yes"
3774 else
3775   echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778         eval "$as_ac_var=no"
3779 fi
3780
3781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3782       conftest$ac_exeext conftest.$ac_ext
3783 fi
3784 ac_res=`eval echo '${'$as_ac_var'}'`
3785                { echo "$as_me:$LINENO: result: $ac_res" >&5
3786 echo "${ECHO_T}$ac_res" >&6; }
3787 if test `eval echo '${'$as_ac_var'}'` = yes; then
3788   cat >>confdefs.h <<_ACEOF
3789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3790 _ACEOF
3791
3792 else
3793
3794 { echo "$as_me:$LINENO: checking for ecvt in -lm" >&5
3795 echo $ECHO_N "checking for ecvt in -lm... $ECHO_C" >&6; }
3796 if test "${ac_cv_lib_m_ecvt+set}" = set; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799   ac_check_lib_save_LIBS=$LIBS
3800 LIBS="-lm  $LIBS"
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h.  */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h.  */
3807
3808 /* Override any GCC internal prototype to avoid an error.
3809    Use char because int might match the return type of a GCC
3810    builtin and then its argument prototype would still apply.  */
3811 #ifdef __cplusplus
3812 extern "C"
3813 #endif
3814 char ecvt ();
3815 int
3816 main ()
3817 {
3818 return ecvt ();
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 rm -f conftest.$ac_objext conftest$ac_exeext
3824 if { (ac_try="$ac_link"
3825 case "(($ac_try" in
3826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827   *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830   (eval "$ac_link") 2>conftest.er1
3831   ac_status=$?
3832   grep -v '^ *+' conftest.er1 >conftest.err
3833   rm -f conftest.er1
3834   cat conftest.err >&5
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } && {
3837          test -z "$ac_c_werror_flag" ||
3838          test ! -s conftest.err
3839        } && test -s conftest$ac_exeext &&
3840        $as_test_x conftest$ac_exeext; then
3841   ac_cv_lib_m_ecvt=yes
3842 else
3843   echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846         ac_cv_lib_m_ecvt=no
3847 fi
3848
3849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3850       conftest$ac_exeext conftest.$ac_ext
3851 LIBS=$ac_check_lib_save_LIBS
3852 fi
3853 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ecvt" >&5
3854 echo "${ECHO_T}$ac_cv_lib_m_ecvt" >&6; }
3855 if test $ac_cv_lib_m_ecvt = yes; then
3856   cat >>confdefs.h <<_ACEOF
3857 #define HAVE_LIBM 1
3858 _ACEOF
3859
3860   LIBS="-lm $LIBS"
3861
3862 fi
3863
3864 fi
3865 done
3866
3867
3868 for ac_func in gcvt
3869 do
3870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h.  */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h.  */
3882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3884 #define $ac_func innocuous_$ac_func
3885
3886 /* System header to define __stub macros and hopefully few prototypes,
3887     which can conflict with char $ac_func (); below.
3888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889     <limits.h> exists even on freestanding compilers.  */
3890
3891 #ifdef __STDC__
3892 # include <limits.h>
3893 #else
3894 # include <assert.h>
3895 #endif
3896
3897 #undef $ac_func
3898
3899 /* Override any GCC internal prototype to avoid an error.
3900    Use char because int might match the return type of a GCC
3901    builtin and then its argument prototype would still apply.  */
3902 #ifdef __cplusplus
3903 extern "C"
3904 #endif
3905 char $ac_func ();
3906 /* The GNU C library defines this for functions which it implements
3907     to always fail with ENOSYS.  Some functions are actually named
3908     something starting with __ and the normal name is an alias.  */
3909 #if defined __stub_$ac_func || defined __stub___$ac_func
3910 choke me
3911 #endif
3912
3913 int
3914 main ()
3915 {
3916 return $ac_func ();
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext conftest$ac_exeext
3922 if { (ac_try="$ac_link"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928   (eval "$ac_link") 2>conftest.er1
3929   ac_status=$?
3930   grep -v '^ *+' conftest.er1 >conftest.err
3931   rm -f conftest.er1
3932   cat conftest.err >&5
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } && {
3935          test -z "$ac_c_werror_flag" ||
3936          test ! -s conftest.err
3937        } && test -s conftest$ac_exeext &&
3938        $as_test_x conftest$ac_exeext; then
3939   eval "$as_ac_var=yes"
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944         eval "$as_ac_var=no"
3945 fi
3946
3947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3948       conftest$ac_exeext conftest.$ac_ext
3949 fi
3950 ac_res=`eval echo '${'$as_ac_var'}'`
3951                { echo "$as_me:$LINENO: result: $ac_res" >&5
3952 echo "${ECHO_T}$ac_res" >&6; }
3953 if test `eval echo '${'$as_ac_var'}'` = yes; then
3954   cat >>confdefs.h <<_ACEOF
3955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3956 _ACEOF
3957
3958 else
3959
3960 { echo "$as_me:$LINENO: checking for gcvt in -lm" >&5
3961 echo $ECHO_N "checking for gcvt in -lm... $ECHO_C" >&6; }
3962 if test "${ac_cv_lib_m_gcvt+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   ac_check_lib_save_LIBS=$LIBS
3966 LIBS="-lm  $LIBS"
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973
3974 /* Override any GCC internal prototype to avoid an error.
3975    Use char because int might match the return type of a GCC
3976    builtin and then its argument prototype would still apply.  */
3977 #ifdef __cplusplus
3978 extern "C"
3979 #endif
3980 char gcvt ();
3981 int
3982 main ()
3983 {
3984 return gcvt ();
3985   ;
3986   return 0;
3987 }
3988 _ACEOF
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (ac_try="$ac_link"
3991 case "(($ac_try" in
3992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993   *) ac_try_echo=$ac_try;;
3994 esac
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996   (eval "$ac_link") 2>conftest.er1
3997   ac_status=$?
3998   grep -v '^ *+' conftest.er1 >conftest.err
3999   rm -f conftest.er1
4000   cat conftest.err >&5
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); } && {
4003          test -z "$ac_c_werror_flag" ||
4004          test ! -s conftest.err
4005        } && test -s conftest$ac_exeext &&
4006        $as_test_x conftest$ac_exeext; then
4007   ac_cv_lib_m_gcvt=yes
4008 else
4009   echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012         ac_cv_lib_m_gcvt=no
4013 fi
4014
4015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4016       conftest$ac_exeext conftest.$ac_ext
4017 LIBS=$ac_check_lib_save_LIBS
4018 fi
4019 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_gcvt" >&5
4020 echo "${ECHO_T}$ac_cv_lib_m_gcvt" >&6; }
4021 if test $ac_cv_lib_m_gcvt = yes; then
4022   cat >>confdefs.h <<_ACEOF
4023 #define HAVE_LIBM 1
4024 _ACEOF
4025
4026   LIBS="-lm $LIBS"
4027
4028 fi
4029
4030 fi
4031 done
4032
4033
4034 { echo "$as_me:$LINENO: checking for strerror" >&5
4035 echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
4036 if test "${ac_cv_func_strerror+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
4046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4047 #define strerror innocuous_strerror
4048
4049 /* System header to define __stub macros and hopefully few prototypes,
4050     which can conflict with char strerror (); below.
4051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052     <limits.h> exists even on freestanding compilers.  */
4053
4054 #ifdef __STDC__
4055 # include <limits.h>
4056 #else
4057 # include <assert.h>
4058 #endif
4059
4060 #undef strerror
4061
4062 /* Override any GCC internal prototype to avoid an error.
4063    Use char because int might match the return type of a GCC
4064    builtin and then its argument prototype would still apply.  */
4065 #ifdef __cplusplus
4066 extern "C"
4067 #endif
4068 char strerror ();
4069 /* The GNU C library defines this for functions which it implements
4070     to always fail with ENOSYS.  Some functions are actually named
4071     something starting with __ and the normal name is an alias.  */
4072 #if defined __stub_strerror || defined __stub___strerror
4073 choke me
4074 #endif
4075
4076 int
4077 main ()
4078 {
4079 return strerror ();
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.$ac_objext conftest$ac_exeext
4085 if { (ac_try="$ac_link"
4086 case "(($ac_try" in
4087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088   *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091   (eval "$ac_link") 2>conftest.er1
4092   ac_status=$?
4093   grep -v '^ *+' conftest.er1 >conftest.err
4094   rm -f conftest.er1
4095   cat conftest.err >&5
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } && {
4098          test -z "$ac_c_werror_flag" ||
4099          test ! -s conftest.err
4100        } && test -s conftest$ac_exeext &&
4101        $as_test_x conftest$ac_exeext; then
4102   ac_cv_func_strerror=yes
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107         ac_cv_func_strerror=no
4108 fi
4109
4110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4111       conftest$ac_exeext conftest.$ac_ext
4112 fi
4113 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4114 echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
4115 if test $ac_cv_func_strerror = yes; then
4116   cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_STRERROR 1
4118 _ACEOF
4119
4120 fi
4121
4122 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
4123 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
4124 if test "${ac_cv_func_strcasecmp+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
4134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4135 #define strcasecmp innocuous_strcasecmp
4136
4137 /* System header to define __stub macros and hopefully few prototypes,
4138     which can conflict with char strcasecmp (); below.
4139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140     <limits.h> exists even on freestanding compilers.  */
4141
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147
4148 #undef strcasecmp
4149
4150 /* Override any GCC internal prototype to avoid an error.
4151    Use char because int might match the return type of a GCC
4152    builtin and then its argument prototype would still apply.  */
4153 #ifdef __cplusplus
4154 extern "C"
4155 #endif
4156 char strcasecmp ();
4157 /* The GNU C library defines this for functions which it implements
4158     to always fail with ENOSYS.  Some functions are actually named
4159     something starting with __ and the normal name is an alias.  */
4160 #if defined __stub_strcasecmp || defined __stub___strcasecmp
4161 choke me
4162 #endif
4163
4164 int
4165 main ()
4166 {
4167 return strcasecmp ();
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext conftest$ac_exeext
4173 if { (ac_try="$ac_link"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_link") 2>conftest.er1
4180   ac_status=$?
4181   grep -v '^ *+' conftest.er1 >conftest.err
4182   rm -f conftest.er1
4183   cat conftest.err >&5
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); } && {
4186          test -z "$ac_c_werror_flag" ||
4187          test ! -s conftest.err
4188        } && test -s conftest$ac_exeext &&
4189        $as_test_x conftest$ac_exeext; then
4190   ac_cv_func_strcasecmp=yes
4191 else
4192   echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195         ac_cv_func_strcasecmp=no
4196 fi
4197
4198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4199       conftest$ac_exeext conftest.$ac_ext
4200 fi
4201 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
4202 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
4203 if test $ac_cv_func_strcasecmp = yes; then
4204   cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_STRCASECMP 1
4206 _ACEOF
4207
4208 fi
4209
4210 { echo "$as_me:$LINENO: checking for socket" >&5
4211 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
4212 if test "${ac_cv_func_socket+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
4222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4223 #define socket innocuous_socket
4224
4225 /* System header to define __stub macros and hopefully few prototypes,
4226     which can conflict with char socket (); below.
4227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228     <limits.h> exists even on freestanding compilers.  */
4229
4230 #ifdef __STDC__
4231 # include <limits.h>
4232 #else
4233 # include <assert.h>
4234 #endif
4235
4236 #undef socket
4237
4238 /* Override any GCC internal prototype to avoid an error.
4239    Use char because int might match the return type of a GCC
4240    builtin and then its argument prototype would still apply.  */
4241 #ifdef __cplusplus
4242 extern "C"
4243 #endif
4244 char socket ();
4245 /* The GNU C library defines this for functions which it implements
4246     to always fail with ENOSYS.  Some functions are actually named
4247     something starting with __ and the normal name is an alias.  */
4248 #if defined __stub_socket || defined __stub___socket
4249 choke me
4250 #endif
4251
4252 int
4253 main ()
4254 {
4255 return socket ();
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext conftest$ac_exeext
4261 if { (ac_try="$ac_link"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_link") 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   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_exeext &&
4277        $as_test_x conftest$ac_exeext; then
4278   ac_cv_func_socket=yes
4279 else
4280   echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283         ac_cv_func_socket=no
4284 fi
4285
4286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4287       conftest$ac_exeext conftest.$ac_ext
4288 fi
4289 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4290 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4291 if test $ac_cv_func_socket = yes; then
4292   :
4293 else
4294
4295 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4296 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4297 if test "${ac_cv_lib_socket_socket+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   ac_check_lib_save_LIBS=$LIBS
4301 LIBS="-lsocket  $LIBS"
4302 cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h.  */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h.  */
4308
4309 /* Override any GCC internal prototype to avoid an error.
4310    Use char because int might match the return type of a GCC
4311    builtin and then its argument prototype would still apply.  */
4312 #ifdef __cplusplus
4313 extern "C"
4314 #endif
4315 char socket ();
4316 int
4317 main ()
4318 {
4319 return socket ();
4320   ;
4321   return 0;
4322 }
4323 _ACEOF
4324 rm -f conftest.$ac_objext conftest$ac_exeext
4325 if { (ac_try="$ac_link"
4326 case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331   (eval "$ac_link") 2>conftest.er1
4332   ac_status=$?
4333   grep -v '^ *+' conftest.er1 >conftest.err
4334   rm -f conftest.er1
4335   cat conftest.err >&5
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); } && {
4338          test -z "$ac_c_werror_flag" ||
4339          test ! -s conftest.err
4340        } && test -s conftest$ac_exeext &&
4341        $as_test_x conftest$ac_exeext; then
4342   ac_cv_lib_socket_socket=yes
4343 else
4344   echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347         ac_cv_lib_socket_socket=no
4348 fi
4349
4350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4351       conftest$ac_exeext conftest.$ac_ext
4352 LIBS=$ac_check_lib_save_LIBS
4353 fi
4354 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4355 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4356 if test $ac_cv_lib_socket_socket = yes; then
4357   cat >>confdefs.h <<_ACEOF
4358 #define HAVE_LIBSOCKET 1
4359 _ACEOF
4360
4361   LIBS="-lsocket $LIBS"
4362
4363 else
4364
4365 { echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
4366 echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6; }
4367 if test "${ac_cv_lib_nsl_socket+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   ac_check_lib_save_LIBS=$LIBS
4371 LIBS="-lnsl  $LIBS"
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378
4379 /* Override any GCC internal prototype to avoid an error.
4380    Use char because int might match the return type of a GCC
4381    builtin and then its argument prototype would still apply.  */
4382 #ifdef __cplusplus
4383 extern "C"
4384 #endif
4385 char socket ();
4386 int
4387 main ()
4388 {
4389 return socket ();
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_link") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } && {
4408          test -z "$ac_c_werror_flag" ||
4409          test ! -s conftest.err
4410        } && test -s conftest$ac_exeext &&
4411        $as_test_x conftest$ac_exeext; then
4412   ac_cv_lib_nsl_socket=yes
4413 else
4414   echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417         ac_cv_lib_nsl_socket=no
4418 fi
4419
4420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4421       conftest$ac_exeext conftest.$ac_ext
4422 LIBS=$ac_check_lib_save_LIBS
4423 fi
4424 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
4425 echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6; }
4426 if test $ac_cv_lib_nsl_socket = yes; then
4427   cat >>confdefs.h <<_ACEOF
4428 #define HAVE_LIBNSL 1
4429 _ACEOF
4430
4431   LIBS="-lnsl $LIBS"
4432
4433 fi
4434
4435 fi
4436
4437 fi
4438
4439 { echo "$as_me:$LINENO: checking for inet_aton" >&5
4440 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
4441 if test "${ac_cv_func_inet_aton+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
4451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4452 #define inet_aton innocuous_inet_aton
4453
4454 /* System header to define __stub macros and hopefully few prototypes,
4455     which can conflict with char inet_aton (); below.
4456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4457     <limits.h> exists even on freestanding compilers.  */
4458
4459 #ifdef __STDC__
4460 # include <limits.h>
4461 #else
4462 # include <assert.h>
4463 #endif
4464
4465 #undef inet_aton
4466
4467 /* Override any GCC internal prototype to avoid an error.
4468    Use char because int might match the return type of a GCC
4469    builtin and then its argument prototype would still apply.  */
4470 #ifdef __cplusplus
4471 extern "C"
4472 #endif
4473 char inet_aton ();
4474 /* The GNU C library defines this for functions which it implements
4475     to always fail with ENOSYS.  Some functions are actually named
4476     something starting with __ and the normal name is an alias.  */
4477 #if defined __stub_inet_aton || defined __stub___inet_aton
4478 choke me
4479 #endif
4480
4481 int
4482 main ()
4483 {
4484 return inet_aton ();
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (ac_try="$ac_link"
4491 case "(($ac_try" in
4492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493   *) ac_try_echo=$ac_try;;
4494 esac
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496   (eval "$ac_link") 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } && {
4503          test -z "$ac_c_werror_flag" ||
4504          test ! -s conftest.err
4505        } && test -s conftest$ac_exeext &&
4506        $as_test_x conftest$ac_exeext; then
4507   ac_cv_func_inet_aton=yes
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512         ac_cv_func_inet_aton=no
4513 fi
4514
4515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4516       conftest$ac_exeext conftest.$ac_ext
4517 fi
4518 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
4519 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
4520 if test $ac_cv_func_inet_aton = yes; then
4521   :
4522 else
4523
4524 { echo "$as_me:$LINENO: checking for inet_aton in -lnsl" >&5
4525 echo $ECHO_N "checking for inet_aton in -lnsl... $ECHO_C" >&6; }
4526 if test "${ac_cv_lib_nsl_inet_aton+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   ac_check_lib_save_LIBS=$LIBS
4530 LIBS="-lnsl  $LIBS"
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537
4538 /* Override any GCC internal prototype to avoid an error.
4539    Use char because int might match the return type of a GCC
4540    builtin and then its argument prototype would still apply.  */
4541 #ifdef __cplusplus
4542 extern "C"
4543 #endif
4544 char inet_aton ();
4545 int
4546 main ()
4547 {
4548 return inet_aton ();
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.$ac_objext conftest$ac_exeext
4554 if { (ac_try="$ac_link"
4555 case "(($ac_try" in
4556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557   *) ac_try_echo=$ac_try;;
4558 esac
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560   (eval "$ac_link") 2>conftest.er1
4561   ac_status=$?
4562   grep -v '^ *+' conftest.er1 >conftest.err
4563   rm -f conftest.er1
4564   cat conftest.err >&5
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); } && {
4567          test -z "$ac_c_werror_flag" ||
4568          test ! -s conftest.err
4569        } && test -s conftest$ac_exeext &&
4570        $as_test_x conftest$ac_exeext; then
4571   ac_cv_lib_nsl_inet_aton=yes
4572 else
4573   echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576         ac_cv_lib_nsl_inet_aton=no
4577 fi
4578
4579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4580       conftest$ac_exeext conftest.$ac_ext
4581 LIBS=$ac_check_lib_save_LIBS
4582 fi
4583 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_aton" >&5
4584 echo "${ECHO_T}$ac_cv_lib_nsl_inet_aton" >&6; }
4585 if test $ac_cv_lib_nsl_inet_aton = yes; then
4586   cat >>confdefs.h <<_ACEOF
4587 #define HAVE_LIBNSL 1
4588 _ACEOF
4589
4590   LIBS="-lnsl $LIBS"
4591
4592 else
4593
4594 { echo "$as_me:$LINENO: checking for inet_aton in -lsocket" >&5
4595 echo $ECHO_N "checking for inet_aton in -lsocket... $ECHO_C" >&6; }
4596 if test "${ac_cv_lib_socket_inet_aton+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   ac_check_lib_save_LIBS=$LIBS
4600 LIBS="-lsocket  $LIBS"
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h.  */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h.  */
4607
4608 /* Override any GCC internal prototype to avoid an error.
4609    Use char because int might match the return type of a GCC
4610    builtin and then its argument prototype would still apply.  */
4611 #ifdef __cplusplus
4612 extern "C"
4613 #endif
4614 char inet_aton ();
4615 int
4616 main ()
4617 {
4618 return inet_aton ();
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 rm -f conftest.$ac_objext conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4625 case "(($ac_try" in
4626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627   *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630   (eval "$ac_link") 2>conftest.er1
4631   ac_status=$?
4632   grep -v '^ *+' conftest.er1 >conftest.err
4633   rm -f conftest.er1
4634   cat conftest.err >&5
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); } && {
4637          test -z "$ac_c_werror_flag" ||
4638          test ! -s conftest.err
4639        } && test -s conftest$ac_exeext &&
4640        $as_test_x conftest$ac_exeext; then
4641   ac_cv_lib_socket_inet_aton=yes
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646         ac_cv_lib_socket_inet_aton=no
4647 fi
4648
4649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4650       conftest$ac_exeext conftest.$ac_ext
4651 LIBS=$ac_check_lib_save_LIBS
4652 fi
4653 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_aton" >&5
4654 echo "${ECHO_T}$ac_cv_lib_socket_inet_aton" >&6; }
4655 if test $ac_cv_lib_socket_inet_aton = yes; then
4656   cat >>confdefs.h <<_ACEOF
4657 #define HAVE_LIBSOCKET 1
4658 _ACEOF
4659
4660   LIBS="-lsocket $LIBS"
4661
4662 else
4663
4664 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4665 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
4666 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   ac_check_lib_save_LIBS=$LIBS
4670 LIBS="-lresolv  $LIBS"
4671 cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677
4678 /* Override any GCC internal prototype to avoid an error.
4679    Use char because int might match the return type of a GCC
4680    builtin and then its argument prototype would still apply.  */
4681 #ifdef __cplusplus
4682 extern "C"
4683 #endif
4684 char inet_aton ();
4685 int
4686 main ()
4687 {
4688 return inet_aton ();
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext conftest$ac_exeext
4694 if { (ac_try="$ac_link"
4695 case "(($ac_try" in
4696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697   *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700   (eval "$ac_link") 2>conftest.er1
4701   ac_status=$?
4702   grep -v '^ *+' conftest.er1 >conftest.err
4703   rm -f conftest.er1
4704   cat conftest.err >&5
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); } && {
4707          test -z "$ac_c_werror_flag" ||
4708          test ! -s conftest.err
4709        } && test -s conftest$ac_exeext &&
4710        $as_test_x conftest$ac_exeext; then
4711   ac_cv_lib_resolv_inet_aton=yes
4712 else
4713   echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716         ac_cv_lib_resolv_inet_aton=no
4717 fi
4718
4719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4720       conftest$ac_exeext conftest.$ac_ext
4721 LIBS=$ac_check_lib_save_LIBS
4722 fi
4723 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4724 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
4725 if test $ac_cv_lib_resolv_inet_aton = yes; then
4726   cat >>confdefs.h <<_ACEOF
4727 #define HAVE_LIBRESOLV 1
4728 _ACEOF
4729
4730   LIBS="-lresolv $LIBS"
4731
4732 else
4733   cat >>confdefs.h <<\_ACEOF
4734 #define NO_INET_ATON 1
4735 _ACEOF
4736
4737 fi
4738
4739 fi
4740
4741 fi
4742
4743 fi
4744
4745 { echo "$as_me:$LINENO: checking for setenv" >&5
4746 echo $ECHO_N "checking for setenv... $ECHO_C" >&6; }
4747 if test "${ac_cv_func_setenv+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h.  */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h.  */
4756 /* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
4757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4758 #define setenv innocuous_setenv
4759
4760 /* System header to define __stub macros and hopefully few prototypes,
4761     which can conflict with char setenv (); below.
4762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763     <limits.h> exists even on freestanding compilers.  */
4764
4765 #ifdef __STDC__
4766 # include <limits.h>
4767 #else
4768 # include <assert.h>
4769 #endif
4770
4771 #undef setenv
4772
4773 /* Override any GCC internal prototype to avoid an error.
4774    Use char because int might match the return type of a GCC
4775    builtin and then its argument prototype would still apply.  */
4776 #ifdef __cplusplus
4777 extern "C"
4778 #endif
4779 char setenv ();
4780 /* The GNU C library defines this for functions which it implements
4781     to always fail with ENOSYS.  Some functions are actually named
4782     something starting with __ and the normal name is an alias.  */
4783 #if defined __stub_setenv || defined __stub___setenv
4784 choke me
4785 #endif
4786
4787 int
4788 main ()
4789 {
4790 return setenv ();
4791   ;
4792   return 0;
4793 }
4794 _ACEOF
4795 rm -f conftest.$ac_objext conftest$ac_exeext
4796 if { (ac_try="$ac_link"
4797 case "(($ac_try" in
4798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799   *) ac_try_echo=$ac_try;;
4800 esac
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802   (eval "$ac_link") 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } && {
4809          test -z "$ac_c_werror_flag" ||
4810          test ! -s conftest.err
4811        } && test -s conftest$ac_exeext &&
4812        $as_test_x conftest$ac_exeext; then
4813   ac_cv_func_setenv=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818         ac_cv_func_setenv=no
4819 fi
4820
4821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4822       conftest$ac_exeext conftest.$ac_ext
4823 fi
4824 { echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
4825 echo "${ECHO_T}$ac_cv_func_setenv" >&6; }
4826 if test $ac_cv_func_setenv = yes; then
4827   cat >>confdefs.h <<\_ACEOF
4828 #define HAVE_SETENV 1
4829 _ACEOF
4830
4831 fi
4832
4833 { echo "$as_me:$LINENO: checking for strsignal" >&5
4834 echo $ECHO_N "checking for strsignal... $ECHO_C" >&6; }
4835 if test "${ac_cv_func_strsignal+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844 /* Define strsignal to an innocuous variant, in case <limits.h> declares strsignal.
4845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4846 #define strsignal innocuous_strsignal
4847
4848 /* System header to define __stub macros and hopefully few prototypes,
4849     which can conflict with char strsignal (); below.
4850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851     <limits.h> exists even on freestanding compilers.  */
4852
4853 #ifdef __STDC__
4854 # include <limits.h>
4855 #else
4856 # include <assert.h>
4857 #endif
4858
4859 #undef strsignal
4860
4861 /* Override any GCC internal prototype to avoid an error.
4862    Use char because int might match the return type of a GCC
4863    builtin and then its argument prototype would still apply.  */
4864 #ifdef __cplusplus
4865 extern "C"
4866 #endif
4867 char strsignal ();
4868 /* The GNU C library defines this for functions which it implements
4869     to always fail with ENOSYS.  Some functions are actually named
4870     something starting with __ and the normal name is an alias.  */
4871 #if defined __stub_strsignal || defined __stub___strsignal
4872 choke me
4873 #endif
4874
4875 int
4876 main ()
4877 {
4878 return strsignal ();
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext conftest$ac_exeext
4884 if { (ac_try="$ac_link"
4885 case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890   (eval "$ac_link") 2>conftest.er1
4891   ac_status=$?
4892   grep -v '^ *+' conftest.er1 >conftest.err
4893   rm -f conftest.er1
4894   cat conftest.err >&5
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } && {
4897          test -z "$ac_c_werror_flag" ||
4898          test ! -s conftest.err
4899        } && test -s conftest$ac_exeext &&
4900        $as_test_x conftest$ac_exeext; then
4901   ac_cv_func_strsignal=yes
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906         ac_cv_func_strsignal=no
4907 fi
4908
4909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4910       conftest$ac_exeext conftest.$ac_ext
4911 fi
4912 { echo "$as_me:$LINENO: result: $ac_cv_func_strsignal" >&5
4913 echo "${ECHO_T}$ac_cv_func_strsignal" >&6; }
4914 if test $ac_cv_func_strsignal = yes; then
4915   cat >>confdefs.h <<\_ACEOF
4916 #define HAVE_STRSIGNAL 1
4917 _ACEOF
4918
4919 fi
4920
4921 { echo "$as_me:$LINENO: checking for sys_siglist in -lc" >&5
4922 echo $ECHO_N "checking for sys_siglist in -lc... $ECHO_C" >&6; }
4923 if test "${ac_cv_lib_c_sys_siglist+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   ac_check_lib_save_LIBS=$LIBS
4927 LIBS="-lc  $LIBS"
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934
4935 /* Override any GCC internal prototype to avoid an error.
4936    Use char because int might match the return type of a GCC
4937    builtin and then its argument prototype would still apply.  */
4938 #ifdef __cplusplus
4939 extern "C"
4940 #endif
4941 char sys_siglist ();
4942 int
4943 main ()
4944 {
4945 return sys_siglist ();
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (ac_try="$ac_link"
4952 case "(($ac_try" in
4953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954   *) ac_try_echo=$ac_try;;
4955 esac
4956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957   (eval "$ac_link") 2>conftest.er1
4958   ac_status=$?
4959   grep -v '^ *+' conftest.er1 >conftest.err
4960   rm -f conftest.er1
4961   cat conftest.err >&5
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); } && {
4964          test -z "$ac_c_werror_flag" ||
4965          test ! -s conftest.err
4966        } && test -s conftest$ac_exeext &&
4967        $as_test_x conftest$ac_exeext; then
4968   ac_cv_lib_c_sys_siglist=yes
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973         ac_cv_lib_c_sys_siglist=no
4974 fi
4975
4976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4977       conftest$ac_exeext conftest.$ac_ext
4978 LIBS=$ac_check_lib_save_LIBS
4979 fi
4980 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_sys_siglist" >&5
4981 echo "${ECHO_T}$ac_cv_lib_c_sys_siglist" >&6; }
4982 if test $ac_cv_lib_c_sys_siglist = yes; then
4983   cat >>confdefs.h <<\_ACEOF
4984 #define HAVE_SYS_SIGLIST 1
4985 _ACEOF
4986
4987 fi
4988
4989 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
4990 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
4991 if test "${ac_cv_func_gai_strerror+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
5001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5002 #define gai_strerror innocuous_gai_strerror
5003
5004 /* System header to define __stub macros and hopefully few prototypes,
5005     which can conflict with char gai_strerror (); below.
5006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5007     <limits.h> exists even on freestanding compilers.  */
5008
5009 #ifdef __STDC__
5010 # include <limits.h>
5011 #else
5012 # include <assert.h>
5013 #endif
5014
5015 #undef gai_strerror
5016
5017 /* Override any GCC internal prototype to avoid an error.
5018    Use char because int might match the return type of a GCC
5019    builtin and then its argument prototype would still apply.  */
5020 #ifdef __cplusplus
5021 extern "C"
5022 #endif
5023 char gai_strerror ();
5024 /* The GNU C library defines this for functions which it implements
5025     to always fail with ENOSYS.  Some functions are actually named
5026     something starting with __ and the normal name is an alias.  */
5027 #if defined __stub_gai_strerror || defined __stub___gai_strerror
5028 choke me
5029 #endif
5030
5031 int
5032 main ()
5033 {
5034 return gai_strerror ();
5035   ;
5036   return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5041 case "(($ac_try" in
5042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043   *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046   (eval "$ac_link") 2>conftest.er1
5047   ac_status=$?
5048   grep -v '^ *+' conftest.er1 >conftest.err
5049   rm -f conftest.er1
5050   cat conftest.err >&5
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } && {
5053          test -z "$ac_c_werror_flag" ||
5054          test ! -s conftest.err
5055        } && test -s conftest$ac_exeext &&
5056        $as_test_x conftest$ac_exeext; then
5057   ac_cv_func_gai_strerror=yes
5058 else
5059   echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062         ac_cv_func_gai_strerror=no
5063 fi
5064
5065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5066       conftest$ac_exeext conftest.$ac_ext
5067 fi
5068 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
5069 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
5070 if test $ac_cv_func_gai_strerror = yes; then
5071   cat >>confdefs.h <<\_ACEOF
5072 #define HAVE_GAI_STRERROR 1
5073 _ACEOF
5074
5075 fi
5076
5077 { echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
5078 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6; }
5079 if test "${ac_cv_func_freeaddrinfo+set}" = set; then
5080   echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082   cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h.  */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h.  */
5088 /* Define freeaddrinfo to an innocuous variant, in case <limits.h> declares freeaddrinfo.
5089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5090 #define freeaddrinfo innocuous_freeaddrinfo
5091
5092 /* System header to define __stub macros and hopefully few prototypes,
5093     which can conflict with char freeaddrinfo (); below.
5094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5095     <limits.h> exists even on freestanding compilers.  */
5096
5097 #ifdef __STDC__
5098 # include <limits.h>
5099 #else
5100 # include <assert.h>
5101 #endif
5102
5103 #undef freeaddrinfo
5104
5105 /* Override any GCC internal prototype to avoid an error.
5106    Use char because int might match the return type of a GCC
5107    builtin and then its argument prototype would still apply.  */
5108 #ifdef __cplusplus
5109 extern "C"
5110 #endif
5111 char freeaddrinfo ();
5112 /* The GNU C library defines this for functions which it implements
5113     to always fail with ENOSYS.  Some functions are actually named
5114     something starting with __ and the normal name is an alias.  */
5115 #if defined __stub_freeaddrinfo || defined __stub___freeaddrinfo
5116 choke me
5117 #endif
5118
5119 int
5120 main ()
5121 {
5122 return freeaddrinfo ();
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (ac_try="$ac_link"
5129 case "(($ac_try" in
5130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131   *) ac_try_echo=$ac_try;;
5132 esac
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134   (eval "$ac_link") 2>conftest.er1
5135   ac_status=$?
5136   grep -v '^ *+' conftest.er1 >conftest.err
5137   rm -f conftest.er1
5138   cat conftest.err >&5
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); } && {
5141          test -z "$ac_c_werror_flag" ||
5142          test ! -s conftest.err
5143        } && test -s conftest$ac_exeext &&
5144        $as_test_x conftest$ac_exeext; then
5145   ac_cv_func_freeaddrinfo=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150         ac_cv_func_freeaddrinfo=no
5151 fi
5152
5153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5154       conftest$ac_exeext conftest.$ac_ext
5155 fi
5156 { echo "$as_me:$LINENO: result: $ac_cv_func_freeaddrinfo" >&5
5157 echo "${ECHO_T}$ac_cv_func_freeaddrinfo" >&6; }
5158 if test $ac_cv_func_freeaddrinfo = yes; then
5159   cat >>confdefs.h <<\_ACEOF
5160 #define HAVE_FREEADDRINFO 1
5161 _ACEOF
5162
5163 fi
5164
5165 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
5166 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
5167 if test "${ac_cv_func_getaddrinfo+set}" = set; then
5168   echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170   cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
5177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5178 #define getaddrinfo innocuous_getaddrinfo
5179
5180 /* System header to define __stub macros and hopefully few prototypes,
5181     which can conflict with char getaddrinfo (); below.
5182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5183     <limits.h> exists even on freestanding compilers.  */
5184
5185 #ifdef __STDC__
5186 # include <limits.h>
5187 #else
5188 # include <assert.h>
5189 #endif
5190
5191 #undef getaddrinfo
5192
5193 /* Override any GCC internal prototype to avoid an error.
5194    Use char because int might match the return type of a GCC
5195    builtin and then its argument prototype would still apply.  */
5196 #ifdef __cplusplus
5197 extern "C"
5198 #endif
5199 char getaddrinfo ();
5200 /* The GNU C library defines this for functions which it implements
5201     to always fail with ENOSYS.  Some functions are actually named
5202     something starting with __ and the normal name is an alias.  */
5203 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
5204 choke me
5205 #endif
5206
5207 int
5208 main ()
5209 {
5210 return getaddrinfo ();
5211   ;
5212   return 0;
5213 }
5214 _ACEOF
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (ac_try="$ac_link"
5217 case "(($ac_try" in
5218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219   *) ac_try_echo=$ac_try;;
5220 esac
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222   (eval "$ac_link") 2>conftest.er1
5223   ac_status=$?
5224   grep -v '^ *+' conftest.er1 >conftest.err
5225   rm -f conftest.er1
5226   cat conftest.err >&5
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); } && {
5229          test -z "$ac_c_werror_flag" ||
5230          test ! -s conftest.err
5231        } && test -s conftest$ac_exeext &&
5232        $as_test_x conftest$ac_exeext; then
5233   ac_cv_func_getaddrinfo=yes
5234 else
5235   echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238         ac_cv_func_getaddrinfo=no
5239 fi
5240
5241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5242       conftest$ac_exeext conftest.$ac_ext
5243 fi
5244 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
5245 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
5246 if test $ac_cv_func_getaddrinfo = yes; then
5247   cat >>confdefs.h <<\_ACEOF
5248 #define HAVE_GETADDRINFO 1
5249 _ACEOF
5250
5251 fi
5252
5253
5254 ac_ext=c
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5259 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5260 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5261 # On Suns, sometimes $CPP names a directory.
5262 if test -n "$CPP" && test -d "$CPP"; then
5263   CPP=
5264 fi
5265 if test -z "$CPP"; then
5266   if test "${ac_cv_prog_CPP+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269       # Double quotes because CPP needs to be expanded
5270     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5271     do
5272       ac_preproc_ok=false
5273 for ac_c_preproc_warn_flag in '' yes
5274 do
5275   # Use a header file that comes with gcc, so configuring glibc
5276   # with a fresh cross-compiler works.
5277   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5278   # <limits.h> exists even on freestanding compilers.
5279   # On the NeXT, cc -E runs the code through the compiler's parser,
5280   # not just through cpp. "Syntax error" is here to catch this case.
5281   cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 #ifdef __STDC__
5288 # include <limits.h>
5289 #else
5290 # include <assert.h>
5291 #endif
5292                      Syntax error
5293 _ACEOF
5294 if { (ac_try="$ac_cpp conftest.$ac_ext"
5295 case "(($ac_try" in
5296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297   *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } >/dev/null && {
5307          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5308          test ! -s conftest.err
5309        }; then
5310   :
5311 else
5312   echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315   # Broken: fails on valid input.
5316 continue
5317 fi
5318
5319 rm -f conftest.err conftest.$ac_ext
5320
5321   # OK, works on sane cases.  Now check whether nonexistent headers
5322   # can be detected and how.
5323   cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 #include <ac_nonexistent.h>
5330 _ACEOF
5331 if { (ac_try="$ac_cpp conftest.$ac_ext"
5332 case "(($ac_try" in
5333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334   *) ac_try_echo=$ac_try;;
5335 esac
5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5338   ac_status=$?
5339   grep -v '^ *+' conftest.er1 >conftest.err
5340   rm -f conftest.er1
5341   cat conftest.err >&5
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); } >/dev/null && {
5344          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5345          test ! -s conftest.err
5346        }; then
5347   # Broken: success on invalid input.
5348 continue
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353   # Passes both tests.
5354 ac_preproc_ok=:
5355 break
5356 fi
5357
5358 rm -f conftest.err conftest.$ac_ext
5359
5360 done
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.$ac_ext
5363 if $ac_preproc_ok; then
5364   break
5365 fi
5366
5367     done
5368     ac_cv_prog_CPP=$CPP
5369
5370 fi
5371   CPP=$ac_cv_prog_CPP
5372 else
5373   ac_cv_prog_CPP=$CPP
5374 fi
5375 { echo "$as_me:$LINENO: result: $CPP" >&5
5376 echo "${ECHO_T}$CPP" >&6; }
5377 ac_preproc_ok=false
5378 for ac_c_preproc_warn_flag in '' yes
5379 do
5380   # Use a header file that comes with gcc, so configuring glibc
5381   # with a fresh cross-compiler works.
5382   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383   # <limits.h> exists even on freestanding compilers.
5384   # On the NeXT, cc -E runs the code through the compiler's parser,
5385   # not just through cpp. "Syntax error" is here to catch this case.
5386   cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h.  */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h.  */
5392 #ifdef __STDC__
5393 # include <limits.h>
5394 #else
5395 # include <assert.h>
5396 #endif
5397                      Syntax error
5398 _ACEOF
5399 if { (ac_try="$ac_cpp conftest.$ac_ext"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } >/dev/null && {
5412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5413          test ! -s conftest.err
5414        }; then
5415   :
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420   # Broken: fails on valid input.
5421 continue
5422 fi
5423
5424 rm -f conftest.err conftest.$ac_ext
5425
5426   # OK, works on sane cases.  Now check whether nonexistent headers
5427   # can be detected and how.
5428   cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434 #include <ac_nonexistent.h>
5435 _ACEOF
5436 if { (ac_try="$ac_cpp conftest.$ac_ext"
5437 case "(($ac_try" in
5438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439   *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } >/dev/null && {
5449          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5450          test ! -s conftest.err
5451        }; then
5452   # Broken: success on invalid input.
5453 continue
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458   # Passes both tests.
5459 ac_preproc_ok=:
5460 break
5461 fi
5462
5463 rm -f conftest.err conftest.$ac_ext
5464
5465 done
5466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467 rm -f conftest.err conftest.$ac_ext
5468 if $ac_preproc_ok; then
5469   :
5470 else
5471   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5472 See \`config.log' for more details." >&5
5473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5474 See \`config.log' for more details." >&2;}
5475    { (exit 1); exit 1; }; }
5476 fi
5477
5478 ac_ext=c
5479 ac_cpp='$CPP $CPPFLAGS'
5480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5483
5484
5485 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5486 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5487 if test "${ac_cv_path_GREP+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   # Extract the first word of "grep ggrep" to use in msg output
5491 if test -z "$GREP"; then
5492 set dummy grep ggrep; ac_prog_name=$2
5493 if test "${ac_cv_path_GREP+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   ac_path_GREP_found=false
5497 # Loop through the user's path and test for each of PROGNAME-LIST
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503   for ac_prog in grep ggrep; do
5504   for ac_exec_ext in '' $ac_executable_extensions; do
5505     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5506     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5507     # Check for GNU ac_path_GREP and select it if it is found.
5508   # Check for GNU $ac_path_GREP
5509 case `"$ac_path_GREP" --version 2>&1` in
5510 *GNU*)
5511   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5512 *)
5513   ac_count=0
5514   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5515   while :
5516   do
5517     cat "conftest.in" "conftest.in" >"conftest.tmp"
5518     mv "conftest.tmp" "conftest.in"
5519     cp "conftest.in" "conftest.nl"
5520     echo 'GREP' >> "conftest.nl"
5521     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523     ac_count=`expr $ac_count + 1`
5524     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5525       # Best one so far, save it but keep looking for a better one
5526       ac_cv_path_GREP="$ac_path_GREP"
5527       ac_path_GREP_max=$ac_count
5528     fi
5529     # 10*(2^10) chars as input seems more than enough
5530     test $ac_count -gt 10 && break
5531   done
5532   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533 esac
5534
5535
5536     $ac_path_GREP_found && break 3
5537   done
5538 done
5539
5540 done
5541 IFS=$as_save_IFS
5542
5543
5544 fi
5545
5546 GREP="$ac_cv_path_GREP"
5547 if test -z "$GREP"; then
5548   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5549 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5550    { (exit 1); exit 1; }; }
5551 fi
5552
5553 else
5554   ac_cv_path_GREP=$GREP
5555 fi
5556
5557
5558 fi
5559 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5560 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5561  GREP="$ac_cv_path_GREP"
5562
5563
5564 { echo "$as_me:$LINENO: checking for egrep" >&5
5565 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5566 if test "${ac_cv_path_EGREP+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5570    then ac_cv_path_EGREP="$GREP -E"
5571    else
5572      # Extract the first word of "egrep" to use in msg output
5573 if test -z "$EGREP"; then
5574 set dummy egrep; ac_prog_name=$2
5575 if test "${ac_cv_path_EGREP+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   ac_path_EGREP_found=false
5579 # Loop through the user's path and test for each of PROGNAME-LIST
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585   for ac_prog in egrep; do
5586   for ac_exec_ext in '' $ac_executable_extensions; do
5587     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5588     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5589     # Check for GNU ac_path_EGREP and select it if it is found.
5590   # Check for GNU $ac_path_EGREP
5591 case `"$ac_path_EGREP" --version 2>&1` in
5592 *GNU*)
5593   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5594 *)
5595   ac_count=0
5596   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5597   while :
5598   do
5599     cat "conftest.in" "conftest.in" >"conftest.tmp"
5600     mv "conftest.tmp" "conftest.in"
5601     cp "conftest.in" "conftest.nl"
5602     echo 'EGREP' >> "conftest.nl"
5603     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5605     ac_count=`expr $ac_count + 1`
5606     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5607       # Best one so far, save it but keep looking for a better one
5608       ac_cv_path_EGREP="$ac_path_EGREP"
5609       ac_path_EGREP_max=$ac_count
5610     fi
5611     # 10*(2^10) chars as input seems more than enough
5612     test $ac_count -gt 10 && break
5613   done
5614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5615 esac
5616
5617
5618     $ac_path_EGREP_found && break 3
5619   done
5620 done
5621
5622 done
5623 IFS=$as_save_IFS
5624
5625
5626 fi
5627
5628 EGREP="$ac_cv_path_EGREP"
5629 if test -z "$EGREP"; then
5630   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5631 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5632    { (exit 1); exit 1; }; }
5633 fi
5634
5635 else
5636   ac_cv_path_EGREP=$EGREP
5637 fi
5638
5639
5640    fi
5641 fi
5642 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5643 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5644  EGREP="$ac_cv_path_EGREP"
5645
5646
5647 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5648 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5649 if test "${ac_cv_header_stdc+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 #include <stdlib.h>
5659 #include <stdarg.h>
5660 #include <string.h>
5661 #include <float.h>
5662
5663 int
5664 main ()
5665 {
5666
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5673 case "(($ac_try" in
5674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675   *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678   (eval "$ac_compile") 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } && {
5685          test -z "$ac_c_werror_flag" ||
5686          test ! -s conftest.err
5687        } && test -s conftest.$ac_objext; then
5688   ac_cv_header_stdc=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693         ac_cv_header_stdc=no
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697
5698 if test $ac_cv_header_stdc = yes; then
5699   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5700   cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 #include <string.h>
5707
5708 _ACEOF
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710   $EGREP "memchr" >/dev/null 2>&1; then
5711   :
5712 else
5713   ac_cv_header_stdc=no
5714 fi
5715 rm -f conftest*
5716
5717 fi
5718
5719 if test $ac_cv_header_stdc = yes; then
5720   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5721   cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h.  */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h.  */
5727 #include <stdlib.h>
5728
5729 _ACEOF
5730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5731   $EGREP "free" >/dev/null 2>&1; then
5732   :
5733 else
5734   ac_cv_header_stdc=no
5735 fi
5736 rm -f conftest*
5737
5738 fi
5739
5740 if test $ac_cv_header_stdc = yes; then
5741   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5742   if test "$cross_compiling" = yes; then
5743   :
5744 else
5745   cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 #include <ctype.h>
5752 #include <stdlib.h>
5753 #if ((' ' & 0x0FF) == 0x020)
5754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5756 #else
5757 # define ISLOWER(c) \
5758                    (('a' <= (c) && (c) <= 'i') \
5759                      || ('j' <= (c) && (c) <= 'r') \
5760                      || ('s' <= (c) && (c) <= 'z'))
5761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5762 #endif
5763
5764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5765 int
5766 main ()
5767 {
5768   int i;
5769   for (i = 0; i < 256; i++)
5770     if (XOR (islower (i), ISLOWER (i))
5771         || toupper (i) != TOUPPER (i))
5772       return 2;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest$ac_exeext
5777 if { (ac_try="$ac_link"
5778 case "(($ac_try" in
5779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780   *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783   (eval "$ac_link") 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5787   { (case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792   (eval "$ac_try") 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   :
5797 else
5798   echo "$as_me: program exited with status $ac_status" >&5
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ( exit $ac_status )
5803 ac_cv_header_stdc=no
5804 fi
5805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5806 fi
5807
5808
5809 fi
5810 fi
5811 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5812 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5813 if test $ac_cv_header_stdc = yes; then
5814
5815 cat >>confdefs.h <<\_ACEOF
5816 #define STDC_HEADERS 1
5817 _ACEOF
5818
5819 fi
5820
5821 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5832                   inttypes.h stdint.h unistd.h
5833 do
5834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h.  */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h.  */
5846 $ac_includes_default
5847
5848 #include <$ac_header>
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5852 case "(($ac_try" in
5853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854   *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857   (eval "$ac_compile") 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } && {
5864          test -z "$ac_c_werror_flag" ||
5865          test ! -s conftest.err
5866        } && test -s conftest.$ac_objext; then
5867   eval "$as_ac_Header=yes"
5868 else
5869   echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5871
5872         eval "$as_ac_Header=no"
5873 fi
5874
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 fi
5877 ac_res=`eval echo '${'$as_ac_Header'}'`
5878                { echo "$as_me:$LINENO: result: $ac_res" >&5
5879 echo "${ECHO_T}$ac_res" >&6; }
5880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5881   cat >>confdefs.h <<_ACEOF
5882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5883 _ACEOF
5884
5885 fi
5886
5887 done
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901 for ac_header in sys/types.h sys/termios.h termios.h sys/ioctl.h sys/select.h rpc/rpc.h rpc/rpcent.h sys/file.h ftw.h machine/reg.h netdb.h
5902 do
5903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 fi
5910 ac_res=`eval echo '${'$as_ac_Header'}'`
5911                { echo "$as_me:$LINENO: result: $ac_res" >&5
5912 echo "${ECHO_T}$ac_res" >&6; }
5913 else
5914   # Is the header compilable?
5915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923 $ac_includes_default
5924 #include <$ac_header>
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (ac_try="$ac_compile"
5928 case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_compile") 2>conftest.er1
5934   ac_status=$?
5935   grep -v '^ *+' conftest.er1 >conftest.err
5936   rm -f conftest.er1
5937   cat conftest.err >&5
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } && {
5940          test -z "$ac_c_werror_flag" ||
5941          test ! -s conftest.err
5942        } && test -s conftest.$ac_objext; then
5943   ac_header_compiler=yes
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948         ac_header_compiler=no
5949 fi
5950
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5953 echo "${ECHO_T}$ac_header_compiler" >&6; }
5954
5955 # Is the header present?
5956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964 #include <$ac_header>
5965 _ACEOF
5966 if { (ac_try="$ac_cpp conftest.$ac_ext"
5967 case "(($ac_try" in
5968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969   *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5973   ac_status=$?
5974   grep -v '^ *+' conftest.er1 >conftest.err
5975   rm -f conftest.er1
5976   cat conftest.err >&5
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); } >/dev/null && {
5979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5980          test ! -s conftest.err
5981        }; then
5982   ac_header_preproc=yes
5983 else
5984   echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5986
5987   ac_header_preproc=no
5988 fi
5989
5990 rm -f conftest.err conftest.$ac_ext
5991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5992 echo "${ECHO_T}$ac_header_preproc" >&6; }
5993
5994 # So?  What about this header?
5995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5996   yes:no: )
5997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6001     ac_header_preproc=yes
6002     ;;
6003   no:yes:* )
6004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6016
6017     ;;
6018 esac
6019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   eval "$as_ac_Header=\$ac_header_preproc"
6025 fi
6026 ac_res=`eval echo '${'$as_ac_Header'}'`
6027                { echo "$as_me:$LINENO: result: $ac_res" >&5
6028 echo "${ECHO_T}$ac_res" >&6; }
6029
6030 fi
6031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6032   cat >>confdefs.h <<_ACEOF
6033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6034 _ACEOF
6035
6036 fi
6037
6038 done
6039
6040 if test "${ac_cv_header_sys_resource_h+set}" = set; then
6041   { echo "$as_me:$LINENO: checking for sys/resource.h" >&5
6042 echo $ECHO_N "checking for sys/resource.h... $ECHO_C" >&6; }
6043 if test "${ac_cv_header_sys_resource_h+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 fi
6046 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_resource_h" >&5
6047 echo "${ECHO_T}$ac_cv_header_sys_resource_h" >&6; }
6048 else
6049   # Is the header compilable?
6050 { echo "$as_me:$LINENO: checking sys/resource.h usability" >&5
6051 echo $ECHO_N "checking sys/resource.h usability... $ECHO_C" >&6; }
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 $ac_includes_default
6059 #include <sys/resource.h>
6060 _ACEOF
6061 rm -f conftest.$ac_objext
6062 if { (ac_try="$ac_compile"
6063 case "(($ac_try" in
6064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065   *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068   (eval "$ac_compile") 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } && {
6075          test -z "$ac_c_werror_flag" ||
6076          test ! -s conftest.err
6077        } && test -s conftest.$ac_objext; then
6078   ac_header_compiler=yes
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083         ac_header_compiler=no
6084 fi
6085
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6088 echo "${ECHO_T}$ac_header_compiler" >&6; }
6089
6090 # Is the header present?
6091 { echo "$as_me:$LINENO: checking sys/resource.h presence" >&5
6092 echo $ECHO_N "checking sys/resource.h presence... $ECHO_C" >&6; }
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099 #include <sys/resource.h>
6100 _ACEOF
6101 if { (ac_try="$ac_cpp conftest.$ac_ext"
6102 case "(($ac_try" in
6103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104   *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6108   ac_status=$?
6109   grep -v '^ *+' conftest.er1 >conftest.err
6110   rm -f conftest.er1
6111   cat conftest.err >&5
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } >/dev/null && {
6114          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6115          test ! -s conftest.err
6116        }; then
6117   ac_header_preproc=yes
6118 else
6119   echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122   ac_header_preproc=no
6123 fi
6124
6125 rm -f conftest.err conftest.$ac_ext
6126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6127 echo "${ECHO_T}$ac_header_preproc" >&6; }
6128
6129 # So?  What about this header?
6130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6131   yes:no: )
6132     { echo "$as_me:$LINENO: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!" >&5
6133 echo "$as_me: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6134     { echo "$as_me:$LINENO: WARNING: sys/resource.h: proceeding with the compiler's result" >&5
6135 echo "$as_me: WARNING: sys/resource.h: proceeding with the compiler's result" >&2;}
6136     ac_header_preproc=yes
6137     ;;
6138   no:yes:* )
6139     { echo "$as_me:$LINENO: WARNING: sys/resource.h: present but cannot be compiled" >&5
6140 echo "$as_me: WARNING: sys/resource.h: present but cannot be compiled" >&2;}
6141     { echo "$as_me:$LINENO: WARNING: sys/resource.h:     check for missing prerequisite headers?" >&5
6142 echo "$as_me: WARNING: sys/resource.h:     check for missing prerequisite headers?" >&2;}
6143     { echo "$as_me:$LINENO: WARNING: sys/resource.h: see the Autoconf documentation" >&5
6144 echo "$as_me: WARNING: sys/resource.h: see the Autoconf documentation" >&2;}
6145     { echo "$as_me:$LINENO: WARNING: sys/resource.h:     section \"Present But Cannot Be Compiled\"" >&5
6146 echo "$as_me: WARNING: sys/resource.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6147     { echo "$as_me:$LINENO: WARNING: sys/resource.h: proceeding with the preprocessor's result" >&5
6148 echo "$as_me: WARNING: sys/resource.h: proceeding with the preprocessor's result" >&2;}
6149     { echo "$as_me:$LINENO: WARNING: sys/resource.h: in the future, the compiler will take precedence" >&5
6150 echo "$as_me: WARNING: sys/resource.h: in the future, the compiler will take precedence" >&2;}
6151
6152     ;;
6153 esac
6154 { echo "$as_me:$LINENO: checking for sys/resource.h" >&5
6155 echo $ECHO_N "checking for sys/resource.h... $ECHO_C" >&6; }
6156 if test "${ac_cv_header_sys_resource_h+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   ac_cv_header_sys_resource_h=$ac_header_preproc
6160 fi
6161 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_resource_h" >&5
6162 echo "${ECHO_T}$ac_cv_header_sys_resource_h" >&6; }
6163
6164 fi
6165 if test $ac_cv_header_sys_resource_h = yes; then
6166   cat >>confdefs.h <<\_ACEOF
6167 #define HAVE_SYS_RESOURCE_H 1
6168 _ACEOF
6169
6170 fi
6171
6172
6173 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
6174   { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
6175 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
6176 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 fi
6179 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
6181 else
6182   # Is the header compilable?
6183 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
6184 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191 $ac_includes_default
6192 #include <arpa/inet.h>
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (ac_try="$ac_compile"
6196 case "(($ac_try" in
6197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198   *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201   (eval "$ac_compile") 2>conftest.er1
6202   ac_status=$?
6203   grep -v '^ *+' conftest.er1 >conftest.err
6204   rm -f conftest.er1
6205   cat conftest.err >&5
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); } && {
6208          test -z "$ac_c_werror_flag" ||
6209          test ! -s conftest.err
6210        } && test -s conftest.$ac_objext; then
6211   ac_header_compiler=yes
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216         ac_header_compiler=no
6217 fi
6218
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 echo "${ECHO_T}$ac_header_compiler" >&6; }
6222
6223 # Is the header present?
6224 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
6225 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
6226 cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h.  */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h.  */
6232 #include <arpa/inet.h>
6233 _ACEOF
6234 if { (ac_try="$ac_cpp conftest.$ac_ext"
6235 case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } >/dev/null && {
6247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6248          test ! -s conftest.err
6249        }; then
6250   ac_header_preproc=yes
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255   ac_header_preproc=no
6256 fi
6257
6258 rm -f conftest.err conftest.$ac_ext
6259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6260 echo "${ECHO_T}$ac_header_preproc" >&6; }
6261
6262 # So?  What about this header?
6263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6264   yes:no: )
6265     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
6266 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6267     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
6268 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
6269     ac_header_preproc=yes
6270     ;;
6271   no:yes:* )
6272     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
6273 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
6274     { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&5
6275 echo "$as_me: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&2;}
6276     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
6277 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
6278     { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&5
6279 echo "$as_me: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6280     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
6281 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
6282     { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
6283 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
6284
6285     ;;
6286 esac
6287 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
6288 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
6289 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   ac_cv_header_arpa_inet_h=$ac_header_preproc
6293 fi
6294 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
6295 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
6296
6297 fi
6298 if test $ac_cv_header_arpa_inet_h = yes; then
6299   cat >>confdefs.h <<\_ACEOF
6300 #define HAVE_ARPA_INET_H 1
6301 _ACEOF
6302
6303 fi
6304
6305
6306 if test "${ac_cv_header_grp_h+set}" = set; then
6307   { echo "$as_me:$LINENO: checking for grp.h" >&5
6308 echo $ECHO_N "checking for grp.h... $ECHO_C" >&6; }
6309 if test "${ac_cv_header_grp_h+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 fi
6312 { echo "$as_me:$LINENO: result: $ac_cv_header_grp_h" >&5
6313 echo "${ECHO_T}$ac_cv_header_grp_h" >&6; }
6314 else
6315   # Is the header compilable?
6316 { echo "$as_me:$LINENO: checking grp.h usability" >&5
6317 echo $ECHO_N "checking grp.h usability... $ECHO_C" >&6; }
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h.  */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h.  */
6324 $ac_includes_default
6325 #include <grp.h>
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6329 case "(($ac_try" in
6330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331   *) ac_try_echo=$ac_try;;
6332 esac
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334   (eval "$ac_compile") 2>conftest.er1
6335   ac_status=$?
6336   grep -v '^ *+' conftest.er1 >conftest.err
6337   rm -f conftest.er1
6338   cat conftest.err >&5
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); } && {
6341          test -z "$ac_c_werror_flag" ||
6342          test ! -s conftest.err
6343        } && test -s conftest.$ac_objext; then
6344   ac_header_compiler=yes
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349         ac_header_compiler=no
6350 fi
6351
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6354 echo "${ECHO_T}$ac_header_compiler" >&6; }
6355
6356 # Is the header present?
6357 { echo "$as_me:$LINENO: checking grp.h presence" >&5
6358 echo $ECHO_N "checking grp.h presence... $ECHO_C" >&6; }
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365 #include <grp.h>
6366 _ACEOF
6367 if { (ac_try="$ac_cpp conftest.$ac_ext"
6368 case "(($ac_try" in
6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370   *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6374   ac_status=$?
6375   grep -v '^ *+' conftest.er1 >conftest.err
6376   rm -f conftest.er1
6377   cat conftest.err >&5
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } >/dev/null && {
6380          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6381          test ! -s conftest.err
6382        }; then
6383   ac_header_preproc=yes
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388   ac_header_preproc=no
6389 fi
6390
6391 rm -f conftest.err conftest.$ac_ext
6392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6393 echo "${ECHO_T}$ac_header_preproc" >&6; }
6394
6395 # So?  What about this header?
6396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6397   yes:no: )
6398     { echo "$as_me:$LINENO: WARNING: grp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6399 echo "$as_me: WARNING: grp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6400     { echo "$as_me:$LINENO: WARNING: grp.h: proceeding with the compiler's result" >&5
6401 echo "$as_me: WARNING: grp.h: proceeding with the compiler's result" >&2;}
6402     ac_header_preproc=yes
6403     ;;
6404   no:yes:* )
6405     { echo "$as_me:$LINENO: WARNING: grp.h: present but cannot be compiled" >&5
6406 echo "$as_me: WARNING: grp.h: present but cannot be compiled" >&2;}
6407     { echo "$as_me:$LINENO: WARNING: grp.h:     check for missing prerequisite headers?" >&5
6408 echo "$as_me: WARNING: grp.h:     check for missing prerequisite headers?" >&2;}
6409     { echo "$as_me:$LINENO: WARNING: grp.h: see the Autoconf documentation" >&5
6410 echo "$as_me: WARNING: grp.h: see the Autoconf documentation" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: grp.h:     section \"Present But Cannot Be Compiled\"" >&5
6412 echo "$as_me: WARNING: grp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6413     { echo "$as_me:$LINENO: WARNING: grp.h: proceeding with the preprocessor's result" >&5
6414 echo "$as_me: WARNING: grp.h: proceeding with the preprocessor's result" >&2;}
6415     { echo "$as_me:$LINENO: WARNING: grp.h: in the future, the compiler will take precedence" >&5
6416 echo "$as_me: WARNING: grp.h: in the future, the compiler will take precedence" >&2;}
6417
6418     ;;
6419 esac
6420 { echo "$as_me:$LINENO: checking for grp.h" >&5
6421 echo $ECHO_N "checking for grp.h... $ECHO_C" >&6; }
6422 if test "${ac_cv_header_grp_h+set}" = set; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425   ac_cv_header_grp_h=$ac_header_preproc
6426 fi
6427 { echo "$as_me:$LINENO: result: $ac_cv_header_grp_h" >&5
6428 echo "${ECHO_T}$ac_cv_header_grp_h" >&6; }
6429
6430 fi
6431 if test $ac_cv_header_grp_h = yes; then
6432   cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_GRP_H 1
6434 _ACEOF
6435
6436 fi
6437
6438
6439 if test "${ac_cv_header_rpc_pmap_clnt_h+set}" = set; then
6440   { echo "$as_me:$LINENO: checking for rpc/pmap_clnt.h" >&5
6441 echo $ECHO_N "checking for rpc/pmap_clnt.h... $ECHO_C" >&6; }
6442 if test "${ac_cv_header_rpc_pmap_clnt_h+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 fi
6445 { echo "$as_me:$LINENO: result: $ac_cv_header_rpc_pmap_clnt_h" >&5
6446 echo "${ECHO_T}$ac_cv_header_rpc_pmap_clnt_h" >&6; }
6447 else
6448   # Is the header compilable?
6449 { echo "$as_me:$LINENO: checking rpc/pmap_clnt.h usability" >&5
6450 echo $ECHO_N "checking rpc/pmap_clnt.h usability... $ECHO_C" >&6; }
6451 cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h.  */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h.  */
6457 $ac_includes_default
6458 #include <rpc/pmap_clnt.h>
6459 _ACEOF
6460 rm -f conftest.$ac_objext
6461 if { (ac_try="$ac_compile"
6462 case "(($ac_try" in
6463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464   *) ac_try_echo=$ac_try;;
6465 esac
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467   (eval "$ac_compile") 2>conftest.er1
6468   ac_status=$?
6469   grep -v '^ *+' conftest.er1 >conftest.err
6470   rm -f conftest.er1
6471   cat conftest.err >&5
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } && {
6474          test -z "$ac_c_werror_flag" ||
6475          test ! -s conftest.err
6476        } && test -s conftest.$ac_objext; then
6477   ac_header_compiler=yes
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482         ac_header_compiler=no
6483 fi
6484
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6487 echo "${ECHO_T}$ac_header_compiler" >&6; }
6488
6489 # Is the header present?
6490 { echo "$as_me:$LINENO: checking rpc/pmap_clnt.h presence" >&5
6491 echo $ECHO_N "checking rpc/pmap_clnt.h presence... $ECHO_C" >&6; }
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498 #include <rpc/pmap_clnt.h>
6499 _ACEOF
6500 if { (ac_try="$ac_cpp conftest.$ac_ext"
6501 case "(($ac_try" in
6502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503   *) ac_try_echo=$ac_try;;
6504 esac
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6507   ac_status=$?
6508   grep -v '^ *+' conftest.er1 >conftest.err
6509   rm -f conftest.er1
6510   cat conftest.err >&5
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } >/dev/null && {
6513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6514          test ! -s conftest.err
6515        }; then
6516   ac_header_preproc=yes
6517 else
6518   echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6520
6521   ac_header_preproc=no
6522 fi
6523
6524 rm -f conftest.err conftest.$ac_ext
6525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6526 echo "${ECHO_T}$ac_header_preproc" >&6; }
6527
6528 # So?  What about this header?
6529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6530   yes:no: )
6531     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: accepted by the compiler, rejected by the preprocessor!" >&5
6532 echo "$as_me: WARNING: rpc/pmap_clnt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6533     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: proceeding with the compiler's result" >&5
6534 echo "$as_me: WARNING: rpc/pmap_clnt.h: proceeding with the compiler's result" >&2;}
6535     ac_header_preproc=yes
6536     ;;
6537   no:yes:* )
6538     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: present but cannot be compiled" >&5
6539 echo "$as_me: WARNING: rpc/pmap_clnt.h: present but cannot be compiled" >&2;}
6540     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h:     check for missing prerequisite headers?" >&5
6541 echo "$as_me: WARNING: rpc/pmap_clnt.h:     check for missing prerequisite headers?" >&2;}
6542     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: see the Autoconf documentation" >&5
6543 echo "$as_me: WARNING: rpc/pmap_clnt.h: see the Autoconf documentation" >&2;}
6544     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h:     section \"Present But Cannot Be Compiled\"" >&5
6545 echo "$as_me: WARNING: rpc/pmap_clnt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6546     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: proceeding with the preprocessor's result" >&5
6547 echo "$as_me: WARNING: rpc/pmap_clnt.h: proceeding with the preprocessor's result" >&2;}
6548     { echo "$as_me:$LINENO: WARNING: rpc/pmap_clnt.h: in the future, the compiler will take precedence" >&5
6549 echo "$as_me: WARNING: rpc/pmap_clnt.h: in the future, the compiler will take precedence" >&2;}
6550
6551     ;;
6552 esac
6553 { echo "$as_me:$LINENO: checking for rpc/pmap_clnt.h" >&5
6554 echo $ECHO_N "checking for rpc/pmap_clnt.h... $ECHO_C" >&6; }
6555 if test "${ac_cv_header_rpc_pmap_clnt_h+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   ac_cv_header_rpc_pmap_clnt_h=$ac_header_preproc
6559 fi
6560 { echo "$as_me:$LINENO: result: $ac_cv_header_rpc_pmap_clnt_h" >&5
6561 echo "${ECHO_T}$ac_cv_header_rpc_pmap_clnt_h" >&6; }
6562
6563 fi
6564 if test $ac_cv_header_rpc_pmap_clnt_h = yes; then
6565   cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_RPC_PMAP_CLNT_H 1
6567 _ACEOF
6568
6569 fi
6570
6571
6572 if test "${ac_cv_header_sys_socket_h+set}" = set; then
6573   { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6574 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
6575 if test "${ac_cv_header_sys_socket_h+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 fi
6578 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6579 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
6580 else
6581   # Is the header compilable?
6582 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
6583 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 $ac_includes_default
6591 #include <sys/socket.h>
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (ac_try="$ac_compile"
6595 case "(($ac_try" in
6596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597   *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600   (eval "$ac_compile") 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } && {
6607          test -z "$ac_c_werror_flag" ||
6608          test ! -s conftest.err
6609        } && test -s conftest.$ac_objext; then
6610   ac_header_compiler=yes
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615         ac_header_compiler=no
6616 fi
6617
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6620 echo "${ECHO_T}$ac_header_compiler" >&6; }
6621
6622 # Is the header present?
6623 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
6624 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631 #include <sys/socket.h>
6632 _ACEOF
6633 if { (ac_try="$ac_cpp conftest.$ac_ext"
6634 case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6640   ac_status=$?
6641   grep -v '^ *+' conftest.er1 >conftest.err
6642   rm -f conftest.er1
6643   cat conftest.err >&5
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } >/dev/null && {
6646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6647          test ! -s conftest.err
6648        }; then
6649   ac_header_preproc=yes
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654   ac_header_preproc=no
6655 fi
6656
6657 rm -f conftest.err conftest.$ac_ext
6658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6659 echo "${ECHO_T}$ac_header_preproc" >&6; }
6660
6661 # So?  What about this header?
6662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6663   yes:no: )
6664     { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6665 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6666     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6667 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6668     ac_header_preproc=yes
6669     ;;
6670   no:yes:* )
6671     { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6672 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6673     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&5
6674 echo "$as_me: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&2;}
6675     { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6676 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6677     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&5
6678 echo "$as_me: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6679     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6680 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6681     { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6682 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
6683
6684     ;;
6685 esac
6686 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6687 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
6688 if test "${ac_cv_header_sys_socket_h+set}" = set; then
6689   echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691   ac_cv_header_sys_socket_h=$ac_header_preproc
6692 fi
6693 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6694 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
6695
6696 fi
6697 if test $ac_cv_header_sys_socket_h = yes; then
6698   cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_SYS_SOCKET_H 1
6700 _ACEOF
6701
6702 fi
6703
6704
6705 if test "${ac_cv_header_sys_signal_h+set}" = set; then
6706   { echo "$as_me:$LINENO: checking for sys/signal.h" >&5
6707 echo $ECHO_N "checking for sys/signal.h... $ECHO_C" >&6; }
6708 if test "${ac_cv_header_sys_signal_h+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 fi
6711 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_signal_h" >&5
6712 echo "${ECHO_T}$ac_cv_header_sys_signal_h" >&6; }
6713 else
6714   # Is the header compilable?
6715 { echo "$as_me:$LINENO: checking sys/signal.h usability" >&5
6716 echo $ECHO_N "checking sys/signal.h usability... $ECHO_C" >&6; }
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h.  */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h.  */
6723 $ac_includes_default
6724 #include <sys/signal.h>
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6728 case "(($ac_try" in
6729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730   *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733   (eval "$ac_compile") 2>conftest.er1
6734   ac_status=$?
6735   grep -v '^ *+' conftest.er1 >conftest.err
6736   rm -f conftest.er1
6737   cat conftest.err >&5
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); } && {
6740          test -z "$ac_c_werror_flag" ||
6741          test ! -s conftest.err
6742        } && test -s conftest.$ac_objext; then
6743   ac_header_compiler=yes
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748         ac_header_compiler=no
6749 fi
6750
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6753 echo "${ECHO_T}$ac_header_compiler" >&6; }
6754
6755 # Is the header present?
6756 { echo "$as_me:$LINENO: checking sys/signal.h presence" >&5
6757 echo $ECHO_N "checking sys/signal.h presence... $ECHO_C" >&6; }
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h.  */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h.  */
6764 #include <sys/signal.h>
6765 _ACEOF
6766 if { (ac_try="$ac_cpp conftest.$ac_ext"
6767 case "(($ac_try" in
6768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769   *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6773   ac_status=$?
6774   grep -v '^ *+' conftest.er1 >conftest.err
6775   rm -f conftest.er1
6776   cat conftest.err >&5
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); } >/dev/null && {
6779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6780          test ! -s conftest.err
6781        }; then
6782   ac_header_preproc=yes
6783 else
6784   echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787   ac_header_preproc=no
6788 fi
6789
6790 rm -f conftest.err conftest.$ac_ext
6791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6792 echo "${ECHO_T}$ac_header_preproc" >&6; }
6793
6794 # So?  What about this header?
6795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6796   yes:no: )
6797     { echo "$as_me:$LINENO: WARNING: sys/signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
6798 echo "$as_me: WARNING: sys/signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6799     { echo "$as_me:$LINENO: WARNING: sys/signal.h: proceeding with the compiler's result" >&5
6800 echo "$as_me: WARNING: sys/signal.h: proceeding with the compiler's result" >&2;}
6801     ac_header_preproc=yes
6802     ;;
6803   no:yes:* )
6804     { echo "$as_me:$LINENO: WARNING: sys/signal.h: present but cannot be compiled" >&5
6805 echo "$as_me: WARNING: sys/signal.h: present but cannot be compiled" >&2;}
6806     { echo "$as_me:$LINENO: WARNING: sys/signal.h:     check for missing prerequisite headers?" >&5
6807 echo "$as_me: WARNING: sys/signal.h:     check for missing prerequisite headers?" >&2;}
6808     { echo "$as_me:$LINENO: WARNING: sys/signal.h: see the Autoconf documentation" >&5
6809 echo "$as_me: WARNING: sys/signal.h: see the Autoconf documentation" >&2;}
6810     { echo "$as_me:$LINENO: WARNING: sys/signal.h:     section \"Present But Cannot Be Compiled\"" >&5
6811 echo "$as_me: WARNING: sys/signal.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6812     { echo "$as_me:$LINENO: WARNING: sys/signal.h: proceeding with the preprocessor's result" >&5
6813 echo "$as_me: WARNING: sys/signal.h: proceeding with the preprocessor's result" >&2;}
6814     { echo "$as_me:$LINENO: WARNING: sys/signal.h: in the future, the compiler will take precedence" >&5
6815 echo "$as_me: WARNING: sys/signal.h: in the future, the compiler will take precedence" >&2;}
6816
6817     ;;
6818 esac
6819 { echo "$as_me:$LINENO: checking for sys/signal.h" >&5
6820 echo $ECHO_N "checking for sys/signal.h... $ECHO_C" >&6; }
6821 if test "${ac_cv_header_sys_signal_h+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   ac_cv_header_sys_signal_h=$ac_header_preproc
6825 fi
6826 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_signal_h" >&5
6827 echo "${ECHO_T}$ac_cv_header_sys_signal_h" >&6; }
6828
6829 fi
6830 if test $ac_cv_header_sys_signal_h = yes; then
6831   cat >>confdefs.h <<\_ACEOF
6832 #define HAVE_SYS_SIGNAL_H 1
6833 _ACEOF
6834
6835 fi
6836
6837
6838 if test "${ac_cv_header_crypt_h+set}" = set; then
6839   { echo "$as_me:$LINENO: checking for crypt.h" >&5
6840 echo $ECHO_N "checking for crypt.h... $ECHO_C" >&6; }
6841 if test "${ac_cv_header_crypt_h+set}" = set; then
6842   echo $ECHO_N "(cached) $ECHO_C" >&6
6843 fi
6844 { echo "$as_me:$LINENO: result: $ac_cv_header_crypt_h" >&5
6845 echo "${ECHO_T}$ac_cv_header_crypt_h" >&6; }
6846 else
6847   # Is the header compilable?
6848 { echo "$as_me:$LINENO: checking crypt.h usability" >&5
6849 echo $ECHO_N "checking crypt.h usability... $ECHO_C" >&6; }
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h.  */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h.  */
6856 $ac_includes_default
6857 #include <crypt.h>
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (ac_try="$ac_compile"
6861 case "(($ac_try" in
6862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863   *) ac_try_echo=$ac_try;;
6864 esac
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866   (eval "$ac_compile") 2>conftest.er1
6867   ac_status=$?
6868   grep -v '^ *+' conftest.er1 >conftest.err
6869   rm -f conftest.er1
6870   cat conftest.err >&5
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); } && {
6873          test -z "$ac_c_werror_flag" ||
6874          test ! -s conftest.err
6875        } && test -s conftest.$ac_objext; then
6876   ac_header_compiler=yes
6877 else
6878   echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881         ac_header_compiler=no
6882 fi
6883
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6886 echo "${ECHO_T}$ac_header_compiler" >&6; }
6887
6888 # Is the header present?
6889 { echo "$as_me:$LINENO: checking crypt.h presence" >&5
6890 echo $ECHO_N "checking crypt.h presence... $ECHO_C" >&6; }
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #include <crypt.h>
6898 _ACEOF
6899 if { (ac_try="$ac_cpp conftest.$ac_ext"
6900 case "(($ac_try" in
6901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902   *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6906   ac_status=$?
6907   grep -v '^ *+' conftest.er1 >conftest.err
6908   rm -f conftest.er1
6909   cat conftest.err >&5
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } >/dev/null && {
6912          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6913          test ! -s conftest.err
6914        }; then
6915   ac_header_preproc=yes
6916 else
6917   echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920   ac_header_preproc=no
6921 fi
6922
6923 rm -f conftest.err conftest.$ac_ext
6924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6925 echo "${ECHO_T}$ac_header_preproc" >&6; }
6926
6927 # So?  What about this header?
6928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6929   yes:no: )
6930     { echo "$as_me:$LINENO: WARNING: crypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
6931 echo "$as_me: WARNING: crypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6932     { echo "$as_me:$LINENO: WARNING: crypt.h: proceeding with the compiler's result" >&5
6933 echo "$as_me: WARNING: crypt.h: proceeding with the compiler's result" >&2;}
6934     ac_header_preproc=yes
6935     ;;
6936   no:yes:* )
6937     { echo "$as_me:$LINENO: WARNING: crypt.h: present but cannot be compiled" >&5
6938 echo "$as_me: WARNING: crypt.h: present but cannot be compiled" >&2;}
6939     { echo "$as_me:$LINENO: WARNING: crypt.h:     check for missing prerequisite headers?" >&5
6940 echo "$as_me: WARNING: crypt.h:     check for missing prerequisite headers?" >&2;}
6941     { echo "$as_me:$LINENO: WARNING: crypt.h: see the Autoconf documentation" >&5
6942 echo "$as_me: WARNING: crypt.h: see the Autoconf documentation" >&2;}
6943     { echo "$as_me:$LINENO: WARNING: crypt.h:     section \"Present But Cannot Be Compiled\"" >&5
6944 echo "$as_me: WARNING: crypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6945     { echo "$as_me:$LINENO: WARNING: crypt.h: proceeding with the preprocessor's result" >&5
6946 echo "$as_me: WARNING: crypt.h: proceeding with the preprocessor's result" >&2;}
6947     { echo "$as_me:$LINENO: WARNING: crypt.h: in the future, the compiler will take precedence" >&5
6948 echo "$as_me: WARNING: crypt.h: in the future, the compiler will take precedence" >&2;}
6949
6950     ;;
6951 esac
6952 { echo "$as_me:$LINENO: checking for crypt.h" >&5
6953 echo $ECHO_N "checking for crypt.h... $ECHO_C" >&6; }
6954 if test "${ac_cv_header_crypt_h+set}" = set; then
6955   echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957   ac_cv_header_crypt_h=$ac_header_preproc
6958 fi
6959 { echo "$as_me:$LINENO: result: $ac_cv_header_crypt_h" >&5
6960 echo "${ECHO_T}$ac_cv_header_crypt_h" >&6; }
6961
6962 fi
6963 if test $ac_cv_header_crypt_h = yes; then
6964   cat >>confdefs.h <<\_ACEOF
6965 #define HAVE_CRYPT_H 1
6966 _ACEOF
6967
6968 fi
6969
6970
6971 if test "${ac_cv_header_stdint_h+set}" = set; then
6972   { echo "$as_me:$LINENO: checking for stdint.h" >&5
6973 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
6974 if test "${ac_cv_header_stdint_h+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 fi
6977 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6978 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
6979 else
6980   # Is the header compilable?
6981 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
6982 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 $ac_includes_default
6990 #include <stdint.h>
6991 _ACEOF
6992 rm -f conftest.$ac_objext
6993 if { (ac_try="$ac_compile"
6994 case "(($ac_try" in
6995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996   *) ac_try_echo=$ac_try;;
6997 esac
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999   (eval "$ac_compile") 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } && {
7006          test -z "$ac_c_werror_flag" ||
7007          test ! -s conftest.err
7008        } && test -s conftest.$ac_objext; then
7009   ac_header_compiler=yes
7010 else
7011   echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014         ac_header_compiler=no
7015 fi
7016
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7019 echo "${ECHO_T}$ac_header_compiler" >&6; }
7020
7021 # Is the header present?
7022 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
7023 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h.  */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h.  */
7030 #include <stdint.h>
7031 _ACEOF
7032 if { (ac_try="$ac_cpp conftest.$ac_ext"
7033 case "(($ac_try" in
7034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035   *) ac_try_echo=$ac_try;;
7036 esac
7037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7039   ac_status=$?
7040   grep -v '^ *+' conftest.er1 >conftest.err
7041   rm -f conftest.er1
7042   cat conftest.err >&5
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } >/dev/null && {
7045          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7046          test ! -s conftest.err
7047        }; then
7048   ac_header_preproc=yes
7049 else
7050   echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7052
7053   ac_header_preproc=no
7054 fi
7055
7056 rm -f conftest.err conftest.$ac_ext
7057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7058 echo "${ECHO_T}$ac_header_preproc" >&6; }
7059
7060 # So?  What about this header?
7061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7062   yes:no: )
7063     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
7064 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7065     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
7066 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
7067     ac_header_preproc=yes
7068     ;;
7069   no:yes:* )
7070     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
7071 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
7072     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
7073 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
7074     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
7075 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
7076     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
7077 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7078     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
7079 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
7080     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
7081 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
7082
7083     ;;
7084 esac
7085 { echo "$as_me:$LINENO: checking for stdint.h" >&5
7086 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7087 if test "${ac_cv_header_stdint_h+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   ac_cv_header_stdint_h=$ac_header_preproc
7091 fi
7092 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7093 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7094
7095 fi
7096 if test $ac_cv_header_stdint_h = yes; then
7097   cat >>confdefs.h <<\_ACEOF
7098 #define HAVE_STDINT_H 1
7099 _ACEOF
7100
7101 fi
7102
7103
7104 if test "${ac_cv_header_stdbool_h+set}" = set; then
7105   { echo "$as_me:$LINENO: checking for stdbool.h" >&5
7106 echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6; }
7107 if test "${ac_cv_header_stdbool_h+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 fi
7110 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7111 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
7112 else
7113   # Is the header compilable?
7114 { echo "$as_me:$LINENO: checking stdbool.h usability" >&5
7115 echo $ECHO_N "checking stdbool.h usability... $ECHO_C" >&6; }
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h.  */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h.  */
7122 $ac_includes_default
7123 #include <stdbool.h>
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (ac_try="$ac_compile"
7127 case "(($ac_try" in
7128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129   *) ac_try_echo=$ac_try;;
7130 esac
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132   (eval "$ac_compile") 2>conftest.er1
7133   ac_status=$?
7134   grep -v '^ *+' conftest.er1 >conftest.err
7135   rm -f conftest.er1
7136   cat conftest.err >&5
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); } && {
7139          test -z "$ac_c_werror_flag" ||
7140          test ! -s conftest.err
7141        } && test -s conftest.$ac_objext; then
7142   ac_header_compiler=yes
7143 else
7144   echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7146
7147         ac_header_compiler=no
7148 fi
7149
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7152 echo "${ECHO_T}$ac_header_compiler" >&6; }
7153
7154 # Is the header present?
7155 { echo "$as_me:$LINENO: checking stdbool.h presence" >&5
7156 echo $ECHO_N "checking stdbool.h presence... $ECHO_C" >&6; }
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h.  */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h.  */
7163 #include <stdbool.h>
7164 _ACEOF
7165 if { (ac_try="$ac_cpp conftest.$ac_ext"
7166 case "(($ac_try" in
7167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168   *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7172   ac_status=$?
7173   grep -v '^ *+' conftest.er1 >conftest.err
7174   rm -f conftest.er1
7175   cat conftest.err >&5
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); } >/dev/null && {
7178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7179          test ! -s conftest.err
7180        }; then
7181   ac_header_preproc=yes
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186   ac_header_preproc=no
7187 fi
7188
7189 rm -f conftest.err conftest.$ac_ext
7190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7191 echo "${ECHO_T}$ac_header_preproc" >&6; }
7192
7193 # So?  What about this header?
7194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7195   yes:no: )
7196     { echo "$as_me:$LINENO: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&5
7197 echo "$as_me: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7198     { echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the compiler's result" >&5
7199 echo "$as_me: WARNING: stdbool.h: proceeding with the compiler's result" >&2;}
7200     ac_header_preproc=yes
7201     ;;
7202   no:yes:* )
7203     { echo "$as_me:$LINENO: WARNING: stdbool.h: present but cannot be compiled" >&5
7204 echo "$as_me: WARNING: stdbool.h: present but cannot be compiled" >&2;}
7205     { echo "$as_me:$LINENO: WARNING: stdbool.h:     check for missing prerequisite headers?" >&5
7206 echo "$as_me: WARNING: stdbool.h:     check for missing prerequisite headers?" >&2;}
7207     { echo "$as_me:$LINENO: WARNING: stdbool.h: see the Autoconf documentation" >&5
7208 echo "$as_me: WARNING: stdbool.h: see the Autoconf documentation" >&2;}
7209     { echo "$as_me:$LINENO: WARNING: stdbool.h:     section \"Present But Cannot Be Compiled\"" >&5
7210 echo "$as_me: WARNING: stdbool.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7211     { echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the preprocessor's result" >&5
7212 echo "$as_me: WARNING: stdbool.h: proceeding with the preprocessor's result" >&2;}
7213     { echo "$as_me:$LINENO: WARNING: stdbool.h: in the future, the compiler will take precedence" >&5
7214 echo "$as_me: WARNING: stdbool.h: in the future, the compiler will take precedence" >&2;}
7215
7216     ;;
7217 esac
7218 { echo "$as_me:$LINENO: checking for stdbool.h" >&5
7219 echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6; }
7220 if test "${ac_cv_header_stdbool_h+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   ac_cv_header_stdbool_h=$ac_header_preproc
7224 fi
7225 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7226 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
7227
7228 fi
7229 if test $ac_cv_header_stdbool_h = yes; then
7230   cat >>confdefs.h <<\_ACEOF
7231 #define HAVE_STDBOOL_H 1
7232 _ACEOF
7233
7234 fi
7235
7236
7237 if test "${ac_cv_header_sys_filio_h+set}" = set; then
7238   { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
7239 echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
7240 if test "${ac_cv_header_sys_filio_h+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 fi
7243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
7244 echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
7245 else
7246   # Is the header compilable?
7247 { echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
7248 echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; }
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255 $ac_includes_default
7256 #include <sys/filio.h>
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262   *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265   (eval "$ac_compile") 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } && {
7272          test -z "$ac_c_werror_flag" ||
7273          test ! -s conftest.err
7274        } && test -s conftest.$ac_objext; then
7275   ac_header_compiler=yes
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280         ac_header_compiler=no
7281 fi
7282
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7285 echo "${ECHO_T}$ac_header_compiler" >&6; }
7286
7287 # Is the header present?
7288 { echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
7289 echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; }
7290 cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 #include <sys/filio.h>
7297 _ACEOF
7298 if { (ac_try="$ac_cpp conftest.$ac_ext"
7299 case "(($ac_try" in
7300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301   *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7305   ac_status=$?
7306   grep -v '^ *+' conftest.er1 >conftest.err
7307   rm -f conftest.er1
7308   cat conftest.err >&5
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); } >/dev/null && {
7311          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7312          test ! -s conftest.err
7313        }; then
7314   ac_header_preproc=yes
7315 else
7316   echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319   ac_header_preproc=no
7320 fi
7321
7322 rm -f conftest.err conftest.$ac_ext
7323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7324 echo "${ECHO_T}$ac_header_preproc" >&6; }
7325
7326 # So?  What about this header?
7327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7328   yes:no: )
7329     { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7330 echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7331     { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
7332 echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
7333     ac_header_preproc=yes
7334     ;;
7335   no:yes:* )
7336     { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
7337 echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
7338     { echo "$as_me:$LINENO: WARNING: sys/filio.h:     check for missing prerequisite headers?" >&5
7339 echo "$as_me: WARNING: sys/filio.h:     check for missing prerequisite headers?" >&2;}
7340     { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
7341 echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
7342     { echo "$as_me:$LINENO: WARNING: sys/filio.h:     section \"Present But Cannot Be Compiled\"" >&5
7343 echo "$as_me: WARNING: sys/filio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7344     { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
7345 echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
7346     { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
7347 echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
7348
7349     ;;
7350 esac
7351 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
7352 echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
7353 if test "${ac_cv_header_sys_filio_h+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   ac_cv_header_sys_filio_h=$ac_header_preproc
7357 fi
7358 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
7359 echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
7360
7361 fi
7362 if test $ac_cv_header_sys_filio_h = yes; then
7363   cat >>confdefs.h <<\_ACEOF
7364 #define HAVE_SYS_FILIO_H 1
7365 _ACEOF
7366
7367 fi
7368
7369
7370 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
7371   { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
7372 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
7373 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
7374   echo $ECHO_N "(cached) $ECHO_C" >&6
7375 fi
7376 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
7377 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
7378 else
7379   # Is the header compilable?
7380 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
7381 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 $ac_includes_default
7389 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (ac_try="$ac_compile"
7393 case "(($ac_try" in
7394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395   *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398   (eval "$ac_compile") 2>conftest.er1
7399   ac_status=$?
7400   grep -v '^ *+' conftest.er1 >conftest.err
7401   rm -f conftest.er1
7402   cat conftest.err >&5
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); } && {
7405          test -z "$ac_c_werror_flag" ||
7406          test ! -s conftest.err
7407        } && test -s conftest.$ac_objext; then
7408   ac_header_compiler=yes
7409 else
7410   echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7412
7413         ac_header_compiler=no
7414 fi
7415
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7418 echo "${ECHO_T}$ac_header_compiler" >&6; }
7419
7420 # Is the header present?
7421 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
7422 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
7430 _ACEOF
7431 if { (ac_try="$ac_cpp conftest.$ac_ext"
7432 case "(($ac_try" in
7433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434   *) ac_try_echo=$ac_try;;
7435 esac
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7438   ac_status=$?
7439   grep -v '^ *+' conftest.er1 >conftest.err
7440   rm -f conftest.er1
7441   cat conftest.err >&5
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); } >/dev/null && {
7444          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7445          test ! -s conftest.err
7446        }; then
7447   ac_header_preproc=yes
7448 else
7449   echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452   ac_header_preproc=no
7453 fi
7454
7455 rm -f conftest.err conftest.$ac_ext
7456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7457 echo "${ECHO_T}$ac_header_preproc" >&6; }
7458
7459 # So?  What about this header?
7460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7461   yes:no: )
7462     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
7463 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7464     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
7465 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
7466     ac_header_preproc=yes
7467     ;;
7468   no:yes:* )
7469     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
7470 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
7471     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
7472 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
7473     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
7474 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
7475     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
7476 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7477     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
7478 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
7479     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
7480 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
7481
7482     ;;
7483 esac
7484 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
7485 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
7486 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
7490 fi
7491 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
7492 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
7493
7494 fi
7495 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
7496   cat >>confdefs.h <<\_ACEOF
7497 #define HAVE_DNSREGISTRATION 1
7498 _ACEOF
7499  cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_MDNS 1
7501 _ACEOF
7502
7503 fi
7504
7505
7506
7507
7508 # Check whether --with-howl was given.
7509 if test "${with_howl+set}" = set; then
7510   withval=$with_howl;  OLDCFLAGS=$CFLAGS; CFLAGS="-I$withval/include/howl/ $CFLAGS";
7511      OLDLDFLAGS=$LDFLAGS; LDFLAGS="-L$withval/lib/ $LDFLAGS";
7512      OLDCPPFLAGS=$CPPFLAGS; CPPFLAGS="-I$withval/include/howl/ $CPPFLAGS";
7513      as_ac_Header=`echo "ac_cv_header_$withval/include/howl/howl.h" | $as_tr_sh`
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515   { echo "$as_me:$LINENO: checking for $withval/include/howl/howl.h" >&5
7516 echo $ECHO_N "checking for $withval/include/howl/howl.h... $ECHO_C" >&6; }
7517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 fi
7520 ac_res=`eval echo '${'$as_ac_Header'}'`
7521                { echo "$as_me:$LINENO: result: $ac_res" >&5
7522 echo "${ECHO_T}$ac_res" >&6; }
7523 else
7524   # Is the header compilable?
7525 { echo "$as_me:$LINENO: checking $withval/include/howl/howl.h usability" >&5
7526 echo $ECHO_N "checking $withval/include/howl/howl.h usability... $ECHO_C" >&6; }
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h.  */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h.  */
7533 $ac_includes_default
7534 #include <$withval/include/howl/howl.h>
7535 _ACEOF
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7538 case "(($ac_try" in
7539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540   *) ac_try_echo=$ac_try;;
7541 esac
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543   (eval "$ac_compile") 2>conftest.er1
7544   ac_status=$?
7545   grep -v '^ *+' conftest.er1 >conftest.err
7546   rm -f conftest.er1
7547   cat conftest.err >&5
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); } && {
7550          test -z "$ac_c_werror_flag" ||
7551          test ! -s conftest.err
7552        } && test -s conftest.$ac_objext; then
7553   ac_header_compiler=yes
7554 else
7555   echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558         ac_header_compiler=no
7559 fi
7560
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7563 echo "${ECHO_T}$ac_header_compiler" >&6; }
7564
7565 # Is the header present?
7566 { echo "$as_me:$LINENO: checking $withval/include/howl/howl.h presence" >&5
7567 echo $ECHO_N "checking $withval/include/howl/howl.h presence... $ECHO_C" >&6; }
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h.  */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h.  */
7574 #include <$withval/include/howl/howl.h>
7575 _ACEOF
7576 if { (ac_try="$ac_cpp conftest.$ac_ext"
7577 case "(($ac_try" in
7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579   *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7583   ac_status=$?
7584   grep -v '^ *+' conftest.er1 >conftest.err
7585   rm -f conftest.er1
7586   cat conftest.err >&5
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } >/dev/null && {
7589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7590          test ! -s conftest.err
7591        }; then
7592   ac_header_preproc=yes
7593 else
7594   echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597   ac_header_preproc=no
7598 fi
7599
7600 rm -f conftest.err conftest.$ac_ext
7601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7602 echo "${ECHO_T}$ac_header_preproc" >&6; }
7603
7604 # So?  What about this header?
7605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7606   yes:no: )
7607     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7608 echo "$as_me: WARNING: $withval/include/howl/howl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7609     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: proceeding with the compiler's result" >&5
7610 echo "$as_me: WARNING: $withval/include/howl/howl.h: proceeding with the compiler's result" >&2;}
7611     ac_header_preproc=yes
7612     ;;
7613   no:yes:* )
7614     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: present but cannot be compiled" >&5
7615 echo "$as_me: WARNING: $withval/include/howl/howl.h: present but cannot be compiled" >&2;}
7616     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h:     check for missing prerequisite headers?" >&5
7617 echo "$as_me: WARNING: $withval/include/howl/howl.h:     check for missing prerequisite headers?" >&2;}
7618     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: see the Autoconf documentation" >&5
7619 echo "$as_me: WARNING: $withval/include/howl/howl.h: see the Autoconf documentation" >&2;}
7620     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h:     section \"Present But Cannot Be Compiled\"" >&5
7621 echo "$as_me: WARNING: $withval/include/howl/howl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7622     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: proceeding with the preprocessor's result" >&5
7623 echo "$as_me: WARNING: $withval/include/howl/howl.h: proceeding with the preprocessor's result" >&2;}
7624     { echo "$as_me:$LINENO: WARNING: $withval/include/howl/howl.h: in the future, the compiler will take precedence" >&5
7625 echo "$as_me: WARNING: $withval/include/howl/howl.h: in the future, the compiler will take precedence" >&2;}
7626
7627     ;;
7628 esac
7629 { echo "$as_me:$LINENO: checking for $withval/include/howl/howl.h" >&5
7630 echo $ECHO_N "checking for $withval/include/howl/howl.h... $ECHO_C" >&6; }
7631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   eval "$as_ac_Header=\$ac_header_preproc"
7635 fi
7636 ac_res=`eval echo '${'$as_ac_Header'}'`
7637                { echo "$as_me:$LINENO: result: $ac_res" >&5
7638 echo "${ECHO_T}$ac_res" >&6; }
7639
7640 fi
7641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7642   cat >>confdefs.h <<\_ACEOF
7643 #define HAVE_HOWL 1
7644 _ACEOF
7645  cat >>confdefs.h <<\_ACEOF
7646 #define HAVE_MDNS 1
7647 _ACEOF
7648
7649 else
7650   CFLAGS=$OLDCFLAGS; LDFLAGS=$OLDLDFLAGS; CPPFLAGS=$OLDCPPFLAGS;
7651 fi
7652
7653
7654      { echo "$as_me:$LINENO: checking for sw_discovery_publish in -lhowl" >&5
7655 echo $ECHO_N "checking for sw_discovery_publish in -lhowl... $ECHO_C" >&6; }
7656 if test "${ac_cv_lib_howl_sw_discovery_publish+set}" = set; then
7657   echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659   ac_check_lib_save_LIBS=$LIBS
7660 LIBS="-lhowl  $LIBS"
7661 cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h.  */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h.  */
7667
7668 /* Override any GCC internal prototype to avoid an error.
7669    Use char because int might match the return type of a GCC
7670    builtin and then its argument prototype would still apply.  */
7671 #ifdef __cplusplus
7672 extern "C"
7673 #endif
7674 char sw_discovery_publish ();
7675 int
7676 main ()
7677 {
7678 return sw_discovery_publish ();
7679   ;
7680   return 0;
7681 }
7682 _ACEOF
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (ac_try="$ac_link"
7685 case "(($ac_try" in
7686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687   *) ac_try_echo=$ac_try;;
7688 esac
7689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7690   (eval "$ac_link") 2>conftest.er1
7691   ac_status=$?
7692   grep -v '^ *+' conftest.er1 >conftest.err
7693   rm -f conftest.er1
7694   cat conftest.err >&5
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); } && {
7697          test -z "$ac_c_werror_flag" ||
7698          test ! -s conftest.err
7699        } && test -s conftest$ac_exeext &&
7700        $as_test_x conftest$ac_exeext; then
7701   ac_cv_lib_howl_sw_discovery_publish=yes
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706         ac_cv_lib_howl_sw_discovery_publish=no
7707 fi
7708
7709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7710       conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7712 fi
7713 { echo "$as_me:$LINENO: result: $ac_cv_lib_howl_sw_discovery_publish" >&5
7714 echo "${ECHO_T}$ac_cv_lib_howl_sw_discovery_publish" >&6; }
7715 if test $ac_cv_lib_howl_sw_discovery_publish = yes; then
7716   LIBS="-lhowl $LIBS"
7717 else
7718
7719         OLDLIBS=$LIBS; LIBS="-lpthread $LIBS";
7720         { echo "$as_me:$LINENO: checking for main in -lhowl" >&5
7721 echo $ECHO_N "checking for main in -lhowl... $ECHO_C" >&6; }
7722 if test "${ac_cv_lib_howl_main+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   ac_check_lib_save_LIBS=$LIBS
7726 LIBS="-lhowl  $LIBS"
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h.  */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h.  */
7733
7734
7735 int
7736 main ()
7737 {
7738 return main ();
7739   ;
7740   return 0;
7741 }
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (ac_try="$ac_link"
7745 case "(($ac_try" in
7746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747   *) ac_try_echo=$ac_try;;
7748 esac
7749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750   (eval "$ac_link") 2>conftest.er1
7751   ac_status=$?
7752   grep -v '^ *+' conftest.er1 >conftest.err
7753   rm -f conftest.er1
7754   cat conftest.err >&5
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); } && {
7757          test -z "$ac_c_werror_flag" ||
7758          test ! -s conftest.err
7759        } && test -s conftest$ac_exeext &&
7760        $as_test_x conftest$ac_exeext; then
7761   ac_cv_lib_howl_main=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766         ac_cv_lib_howl_main=no
7767 fi
7768
7769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7770       conftest$ac_exeext conftest.$ac_ext
7771 LIBS=$ac_check_lib_save_LIBS
7772 fi
7773 { echo "$as_me:$LINENO: result: $ac_cv_lib_howl_main" >&5
7774 echo "${ECHO_T}$ac_cv_lib_howl_main" >&6; }
7775 if test $ac_cv_lib_howl_main = yes; then
7776   LIBS="-lhowl $LIBS"
7777 else
7778   LIBS=$OLDLIBS
7779 fi
7780
7781
7782 fi
7783
7784
7785 fi
7786
7787
7788 { echo "$as_me:$LINENO: checking for uint16_t" >&5
7789 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7790 if test "${xinetd_cv_type_uint16_t+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
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 #include <sys/types.h>
7800 #if STDC_HEADERS
7801 #include <stdlib.h>
7802 #endif
7803 #if HAVE_NETDB_H
7804 #include <netdb.h>
7805 #endif
7806 #if HAVE_RLIM_T
7807 #include <sys/resource.h>
7808 #endif
7809 #if HAVE_STDINT_H
7810 #include <stdint.h>
7811 #endif
7812 #if HAVE_UNISTD_H
7813 #include <unistd.h>
7814 #endif
7815 _ACEOF
7816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7817   $EGREP "uint16_t" >/dev/null 2>&1; then
7818   xinetd_cv_type_uint16_t=yes
7819 else
7820   xinetd_cv_type_uint16_t=no
7821 fi
7822 rm -f conftest*
7823
7824 fi
7825 { echo "$as_me:$LINENO: result: $xinetd_cv_type_uint16_t" >&5
7826 echo "${ECHO_T}$xinetd_cv_type_uint16_t" >&6; }
7827 if test $xinetd_cv_type_uint16_t = no; then
7828    cat >>confdefs.h <<\_ACEOF
7829 #define uint16_t unsigned short
7830 _ACEOF
7831
7832 fi
7833
7834 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7835 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7836 if test "${xinetd_cv_type_uint32_t+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h.  */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h.  */
7845 #include <sys/types.h>
7846 #if STDC_HEADERS
7847 #include <stdlib.h>
7848 #endif
7849 #if HAVE_NETDB_H
7850 #include <netdb.h>
7851 #endif
7852 #if HAVE_RLIM_T
7853 #include <sys/resource.h>
7854 #endif
7855 #if HAVE_STDINT_H
7856 #include <stdint.h>
7857 #endif
7858 #if HAVE_UNISTD_H
7859 #include <unistd.h>
7860 #endif
7861 _ACEOF
7862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7863   $EGREP "uint32_t" >/dev/null 2>&1; then
7864   xinetd_cv_type_uint32_t=yes
7865 else
7866   xinetd_cv_type_uint32_t=no
7867 fi
7868 rm -f conftest*
7869
7870 fi
7871 { echo "$as_me:$LINENO: result: $xinetd_cv_type_uint32_t" >&5
7872 echo "${ECHO_T}$xinetd_cv_type_uint32_t" >&6; }
7873 if test $xinetd_cv_type_uint32_t = no; then
7874    cat >>confdefs.h <<\_ACEOF
7875 #define uint32_t unsigned int
7876 _ACEOF
7877
7878 fi
7879
7880 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7881 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7882 if test "${xinetd_cv_type_uint64_t+set}" = set; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <sys/types.h>
7892 #if STDC_HEADERS
7893 #include <stdlib.h>
7894 #endif
7895 #if HAVE_NETDB_H
7896 #include <netdb.h>
7897 #endif
7898 #if HAVE_RLIM_T
7899 #include <sys/resource.h>
7900 #endif
7901 #if HAVE_STDINT_H
7902 #include <stdint.h>
7903 #endif
7904 #if HAVE_UNISTD_H
7905 #include <unistd.h>
7906 #endif
7907 _ACEOF
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909   $EGREP "uint64_t" >/dev/null 2>&1; then
7910   xinetd_cv_type_uint64_t=yes
7911 else
7912   xinetd_cv_type_uint64_t=no
7913 fi
7914 rm -f conftest*
7915
7916 fi
7917 { echo "$as_me:$LINENO: result: $xinetd_cv_type_uint64_t" >&5
7918 echo "${ECHO_T}$xinetd_cv_type_uint64_t" >&6; }
7919 if test $xinetd_cv_type_uint64_t = no; then
7920    cat >>confdefs.h <<\_ACEOF
7921 #define uint64_t unsigned long long
7922 _ACEOF
7923
7924 fi
7925
7926 { echo "$as_me:$LINENO: checking for uid_t" >&5
7927 echo $ECHO_N "checking for uid_t... $ECHO_C" >&6; }
7928 if test "${xinetd_cv_type_uid_t+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931   cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h.  */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h.  */
7937 #include <sys/types.h>
7938 #if STDC_HEADERS
7939 #include <stdlib.h>
7940 #endif
7941 #if HAVE_NETDB_H
7942 #include <netdb.h>
7943 #endif
7944 #if HAVE_RLIM_T
7945 #include <sys/resource.h>
7946 #endif
7947 #if HAVE_STDINT_H
7948 #include <stdint.h>
7949 #endif
7950 #if HAVE_UNISTD_H
7951 #include <unistd.h>
7952 #endif
7953 _ACEOF
7954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7955   $EGREP "uid_t" >/dev/null 2>&1; then
7956   xinetd_cv_type_uid_t=yes
7957 else
7958   xinetd_cv_type_uid_t=no
7959 fi
7960 rm -f conftest*
7961
7962 fi
7963 { echo "$as_me:$LINENO: result: $xinetd_cv_type_uid_t" >&5
7964 echo "${ECHO_T}$xinetd_cv_type_uid_t" >&6; }
7965 if test $xinetd_cv_type_uid_t = no; then
7966    cat >>confdefs.h <<\_ACEOF
7967 #define uid_t unsigned int
7968 _ACEOF
7969
7970 fi
7971
7972 { echo "$as_me:$LINENO: checking for gid_t" >&5
7973 echo $ECHO_N "checking for gid_t... $ECHO_C" >&6; }
7974 if test "${xinetd_cv_type_gid_t+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h.  */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h.  */
7983 #include <sys/types.h>
7984 #if STDC_HEADERS
7985 #include <stdlib.h>
7986 #endif
7987 #if HAVE_NETDB_H
7988 #include <netdb.h>
7989 #endif
7990 #if HAVE_RLIM_T
7991 #include <sys/resource.h>
7992 #endif
7993 #if HAVE_STDINT_H
7994 #include <stdint.h>
7995 #endif
7996 #if HAVE_UNISTD_H
7997 #include <unistd.h>
7998 #endif
7999 _ACEOF
8000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8001   $EGREP "gid_t" >/dev/null 2>&1; then
8002   xinetd_cv_type_gid_t=yes
8003 else
8004   xinetd_cv_type_gid_t=no
8005 fi
8006 rm -f conftest*
8007
8008 fi
8009 { echo "$as_me:$LINENO: result: $xinetd_cv_type_gid_t" >&5
8010 echo "${ECHO_T}$xinetd_cv_type_gid_t" >&6; }
8011 if test $xinetd_cv_type_gid_t = no; then
8012    cat >>confdefs.h <<\_ACEOF
8013 #define gid_t unsigned int
8014 _ACEOF
8015
8016 fi
8017
8018 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8019 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8020 if test "${xinetd_cv_type_socklen_t+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h.  */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h.  */
8029 #include <sys/types.h>
8030 #if STDC_HEADERS
8031 #include <stdlib.h>
8032 #endif
8033 #if HAVE_NETDB_H
8034 #include <netdb.h>
8035 #endif
8036 #if HAVE_RLIM_T
8037 #include <sys/resource.h>
8038 #endif
8039 #if HAVE_STDINT_H
8040 #include <stdint.h>
8041 #endif
8042 #if HAVE_UNISTD_H
8043 #include <unistd.h>
8044 #endif
8045 _ACEOF
8046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047   $EGREP "socklen_t" >/dev/null 2>&1; then
8048   xinetd_cv_type_socklen_t=yes
8049 else
8050   xinetd_cv_type_socklen_t=no
8051 fi
8052 rm -f conftest*
8053
8054 fi
8055 { echo "$as_me:$LINENO: result: $xinetd_cv_type_socklen_t" >&5
8056 echo "${ECHO_T}$xinetd_cv_type_socklen_t" >&6; }
8057 if test $xinetd_cv_type_socklen_t = no; then
8058    cat >>confdefs.h <<\_ACEOF
8059 #define socklen_t unsigned int
8060 _ACEOF
8061
8062 fi
8063
8064 { echo "$as_me:$LINENO: checking for rlim_t" >&5
8065 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
8066 if test "${xinetd_cv_type_rlim_t+set}" = set; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069   cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075 #include <sys/types.h>
8076 #if STDC_HEADERS
8077 #include <stdlib.h>
8078 #endif
8079 #if HAVE_NETDB_H
8080 #include <netdb.h>
8081 #endif
8082 #if HAVE_RLIM_T
8083 #include <sys/resource.h>
8084 #endif
8085 #if HAVE_STDINT_H
8086 #include <stdint.h>
8087 #endif
8088 #if HAVE_UNISTD_H
8089 #include <unistd.h>
8090 #endif
8091 _ACEOF
8092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093   $EGREP "rlim_t" >/dev/null 2>&1; then
8094   xinetd_cv_type_rlim_t=yes
8095 else
8096   xinetd_cv_type_rlim_t=no
8097 fi
8098 rm -f conftest*
8099
8100 fi
8101 { echo "$as_me:$LINENO: result: $xinetd_cv_type_rlim_t" >&5
8102 echo "${ECHO_T}$xinetd_cv_type_rlim_t" >&6; }
8103 if test $xinetd_cv_type_rlim_t = no; then
8104    cat >>confdefs.h <<\_ACEOF
8105 #define rlim_t long long
8106 _ACEOF
8107
8108 fi
8109
8110
8111 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
8112 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
8113 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116
8117         cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123
8124 #include <sys/types.h>
8125 #include <sys/socket.h>
8126 #ifdef HAVE_NETDB_H
8127 #include <netdb.h>
8128 #endif
8129
8130 int
8131 main ()
8132 {
8133  struct addrinfo s; s.ai_flags = AI_PASSIVE;
8134   ;
8135   return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8140 case "(($ac_try" in
8141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142   *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145   (eval "$ac_compile") 2>conftest.er1
8146   ac_status=$?
8147   grep -v '^ *+' conftest.er1 >conftest.err
8148   rm -f conftest.er1
8149   cat conftest.err >&5
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); } && {
8152          test -z "$ac_c_werror_flag" ||
8153          test ! -s conftest.err
8154        } && test -s conftest.$ac_objext; then
8155    ac_cv_have_struct_addrinfo="yes"
8156 else
8157   echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160          ac_cv_have_struct_addrinfo="no"
8161
8162 fi
8163
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165
8166 fi
8167 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
8168 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
8169 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
8170         cat >>confdefs.h <<\_ACEOF
8171 #define HAVE_STRUCT_ADDRINFO 1
8172 _ACEOF
8173
8174 fi
8175
8176 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
8177 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
8178 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181
8182         cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h.  */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h.  */
8188
8189 #include <sys/types.h>
8190 #include <netinet/in.h>
8191
8192 int
8193 main ()
8194 {
8195  struct in6_addr s; s.s6_addr[0] = 0;
8196   ;
8197   return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204   *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207   (eval "$ac_compile") 2>conftest.er1
8208   ac_status=$?
8209   grep -v '^ *+' conftest.er1 >conftest.err
8210   rm -f conftest.er1
8211   cat conftest.err >&5
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } && {
8214          test -z "$ac_c_werror_flag" ||
8215          test ! -s conftest.err
8216        } && test -s conftest.$ac_objext; then
8217    ac_cv_have_struct_in6_addr="yes"
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222          ac_cv_have_struct_in6_addr="no"
8223
8224 fi
8225
8226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227
8228 fi
8229 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
8230 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
8231 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
8232         cat >>confdefs.h <<\_ACEOF
8233 #define HAVE_STRUCT_IN6_ADDR 1
8234 _ACEOF
8235
8236 fi
8237
8238 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8239 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
8240 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243
8244         cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h.  */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h.  */
8250
8251 #include <sys/types.h>
8252 #include <netinet/in.h>
8253
8254 int
8255 main ()
8256 {
8257  struct sockaddr_in6 s; s.sin6_family = 0;
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_compile") 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } && {
8276          test -z "$ac_c_werror_flag" ||
8277          test ! -s conftest.err
8278        } && test -s conftest.$ac_objext; then
8279    ac_cv_have_struct_sockaddr_in6="yes"
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284          ac_cv_have_struct_sockaddr_in6="no"
8285
8286 fi
8287
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289
8290 fi
8291 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
8292 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
8293 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
8294         cat >>confdefs.h <<\_ACEOF
8295 #define HAVE_STRUCT_SOCKADDR_IN6 1
8296 _ACEOF
8297
8298 fi
8299
8300 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
8301 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
8302 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305
8306         cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312
8313 #include <sys/types.h>
8314 #include <sys/socket.h>
8315
8316 int
8317 main ()
8318 {
8319  struct sockaddr_storage s;
8320   ;
8321   return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8326 case "(($ac_try" in
8327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328   *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331   (eval "$ac_compile") 2>conftest.er1
8332   ac_status=$?
8333   grep -v '^ *+' conftest.er1 >conftest.err
8334   rm -f conftest.er1
8335   cat conftest.err >&5
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } && {
8338          test -z "$ac_c_werror_flag" ||
8339          test ! -s conftest.err
8340        } && test -s conftest.$ac_objext; then
8341    ac_cv_have_struct_sockaddr_storage="yes"
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346          ac_cv_have_struct_sockaddr_storage="no"
8347
8348 fi
8349
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351
8352 fi
8353 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
8354 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
8355 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
8356         cat >>confdefs.h <<\_ACEOF
8357 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
8358 _ACEOF
8359
8360 fi
8361
8362
8363 case "$target_os" in
8364
8365 solaris*)
8366         cat >>confdefs.h <<\_ACEOF
8367 #define N0_SIGLIST 1
8368 _ACEOF
8369
8370         cat >>confdefs.h <<\_ACEOF
8371 #define solaris 1
8372 _ACEOF
8373
8374
8375         { echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8376 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6; }
8377
8378 # Check whether --with-loadavg was given.
8379 if test "${with_loadavg+set}" = set; then
8380   withval=$with_loadavg;  case "$withval" in
8381                 no)
8382                         { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8384                         ;;
8385                 yes)
8386                         { echo "$as_me:$LINENO: result: yes" >&5
8387 echo "${ECHO_T}yes" >&6; }
8388
8389 { echo "$as_me:$LINENO: checking for main in -lkstat" >&5
8390 echo $ECHO_N "checking for main in -lkstat... $ECHO_C" >&6; }
8391 if test "${ac_cv_lib_kstat_main+set}" = set; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394   ac_check_lib_save_LIBS=$LIBS
8395 LIBS="-lkstat  $LIBS"
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402
8403
8404 int
8405 main ()
8406 {
8407 return main ();
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (ac_try="$ac_link"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_link") 2>conftest.er1
8420   ac_status=$?
8421   grep -v '^ *+' conftest.er1 >conftest.err
8422   rm -f conftest.er1
8423   cat conftest.err >&5
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); } && {
8426          test -z "$ac_c_werror_flag" ||
8427          test ! -s conftest.err
8428        } && test -s conftest$ac_exeext &&
8429        $as_test_x conftest$ac_exeext; then
8430   ac_cv_lib_kstat_main=yes
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435         ac_cv_lib_kstat_main=no
8436 fi
8437
8438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8439       conftest$ac_exeext conftest.$ac_ext
8440 LIBS=$ac_check_lib_save_LIBS
8441 fi
8442 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_main" >&5
8443 echo "${ECHO_T}$ac_cv_lib_kstat_main" >&6; }
8444 if test $ac_cv_lib_kstat_main = yes; then
8445   cat >>confdefs.h <<_ACEOF
8446 #define HAVE_LIBKSTAT 1
8447 _ACEOF
8448
8449   LIBS="-lkstat $LIBS"
8450
8451 fi
8452
8453                         if test "${ac_cv_header_kstat_h+set}" = set; then
8454   { echo "$as_me:$LINENO: checking for kstat.h" >&5
8455 echo $ECHO_N "checking for kstat.h... $ECHO_C" >&6; }
8456 if test "${ac_cv_header_kstat_h+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 fi
8459 { echo "$as_me:$LINENO: result: $ac_cv_header_kstat_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_kstat_h" >&6; }
8461 else
8462   # Is the header compilable?
8463 { echo "$as_me:$LINENO: checking kstat.h usability" >&5
8464 echo $ECHO_N "checking kstat.h usability... $ECHO_C" >&6; }
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471 $ac_includes_default
8472 #include <kstat.h>
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (ac_try="$ac_compile"
8476 case "(($ac_try" in
8477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478   *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481   (eval "$ac_compile") 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } && {
8488          test -z "$ac_c_werror_flag" ||
8489          test ! -s conftest.err
8490        } && test -s conftest.$ac_objext; then
8491   ac_header_compiler=yes
8492 else
8493   echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496         ac_header_compiler=no
8497 fi
8498
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8501 echo "${ECHO_T}$ac_header_compiler" >&6; }
8502
8503 # Is the header present?
8504 { echo "$as_me:$LINENO: checking kstat.h presence" >&5
8505 echo $ECHO_N "checking kstat.h presence... $ECHO_C" >&6; }
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h.  */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h.  */
8512 #include <kstat.h>
8513 _ACEOF
8514 if { (ac_try="$ac_cpp conftest.$ac_ext"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } >/dev/null && {
8527          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8528          test ! -s conftest.err
8529        }; then
8530   ac_header_preproc=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535   ac_header_preproc=no
8536 fi
8537
8538 rm -f conftest.err conftest.$ac_ext
8539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8540 echo "${ECHO_T}$ac_header_preproc" >&6; }
8541
8542 # So?  What about this header?
8543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8544   yes:no: )
8545     { echo "$as_me:$LINENO: WARNING: kstat.h: accepted by the compiler, rejected by the preprocessor!" >&5
8546 echo "$as_me: WARNING: kstat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8547     { echo "$as_me:$LINENO: WARNING: kstat.h: proceeding with the compiler's result" >&5
8548 echo "$as_me: WARNING: kstat.h: proceeding with the compiler's result" >&2;}
8549     ac_header_preproc=yes
8550     ;;
8551   no:yes:* )
8552     { echo "$as_me:$LINENO: WARNING: kstat.h: present but cannot be compiled" >&5
8553 echo "$as_me: WARNING: kstat.h: present but cannot be compiled" >&2;}
8554     { echo "$as_me:$LINENO: WARNING: kstat.h:     check for missing prerequisite headers?" >&5
8555 echo "$as_me: WARNING: kstat.h:     check for missing prerequisite headers?" >&2;}
8556     { echo "$as_me:$LINENO: WARNING: kstat.h: see the Autoconf documentation" >&5
8557 echo "$as_me: WARNING: kstat.h: see the Autoconf documentation" >&2;}
8558     { echo "$as_me:$LINENO: WARNING: kstat.h:     section \"Present But Cannot Be Compiled\"" >&5
8559 echo "$as_me: WARNING: kstat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8560     { echo "$as_me:$LINENO: WARNING: kstat.h: proceeding with the preprocessor's result" >&5
8561 echo "$as_me: WARNING: kstat.h: proceeding with the preprocessor's result" >&2;}
8562     { echo "$as_me:$LINENO: WARNING: kstat.h: in the future, the compiler will take precedence" >&5
8563 echo "$as_me: WARNING: kstat.h: in the future, the compiler will take precedence" >&2;}
8564
8565     ;;
8566 esac
8567 { echo "$as_me:$LINENO: checking for kstat.h" >&5
8568 echo $ECHO_N "checking for kstat.h... $ECHO_C" >&6; }
8569 if test "${ac_cv_header_kstat_h+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   ac_cv_header_kstat_h=$ac_header_preproc
8573 fi
8574 { echo "$as_me:$LINENO: result: $ac_cv_header_kstat_h" >&5
8575 echo "${ECHO_T}$ac_cv_header_kstat_h" >&6; }
8576
8577 fi
8578 if test $ac_cv_header_kstat_h = yes; then
8579   cat >>confdefs.h <<\_ACEOF
8580 #define HAVE_KSTAT_H 1
8581 _ACEOF
8582
8583 fi
8584
8585
8586                         cat >>confdefs.h <<\_ACEOF
8587 #define HAVE_LOADAVG 1
8588 _ACEOF
8589
8590                         ;;
8591                 *)
8592                         { echo "$as_me:$LINENO: result: yes" >&5
8593 echo "${ECHO_T}yes" >&6; }
8594                         cat >>confdefs.h <<\_ACEOF
8595 #define HAVE_LOADAVG 1
8596 _ACEOF
8597
8598                         ;;
8599         esac
8600 else
8601   { echo "$as_me:$LINENO: result: no" >&5
8602 echo "${ECHO_T}no" >&6; }
8603 fi
8604
8605         ;;
8606 osf*)
8607         LDFLAGS=-oldstyle_liblookup
8608         { echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8609 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6; }
8610
8611 # Check whether --with-loadavg was given.
8612 if test "${with_loadavg+set}" = set; then
8613   withval=$with_loadavg;  case "$withval" in
8614                 no)
8615                         { echo "$as_me:$LINENO: result: no" >&5
8616 echo "${ECHO_T}no" >&6; }
8617                         ;;
8618                 yes)
8619                         { echo "$as_me:$LINENO: result: yes" >&5
8620 echo "${ECHO_T}yes" >&6; }
8621                         cat >>confdefs.h <<\_ACEOF
8622 #define HAVE_LOADAVG 1
8623 _ACEOF
8624
8625                         ;;
8626                 *)
8627                         { echo "$as_me:$LINENO: result: yes" >&5
8628 echo "${ECHO_T}yes" >&6; }
8629                         cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_LOADAVG 1
8631 _ACEOF
8632
8633                         ;;
8634         esac
8635 else
8636   { echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6; }
8638 fi
8639
8640         ;;
8641 linux*|freebsd*)
8642
8643 { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
8644 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
8645 if test "${ac_cv_lib_crypt_main+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   ac_check_lib_save_LIBS=$LIBS
8649 LIBS="-lcrypt  $LIBS"
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656
8657
8658 int
8659 main ()
8660 {
8661 return main ();
8662   ;
8663   return 0;
8664 }
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673   (eval "$ac_link") 2>conftest.er1
8674   ac_status=$?
8675   grep -v '^ *+' conftest.er1 >conftest.err
8676   rm -f conftest.er1
8677   cat conftest.err >&5
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); } && {
8680          test -z "$ac_c_werror_flag" ||
8681          test ! -s conftest.err
8682        } && test -s conftest$ac_exeext &&
8683        $as_test_x conftest$ac_exeext; then
8684   ac_cv_lib_crypt_main=yes
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689         ac_cv_lib_crypt_main=no
8690 fi
8691
8692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8693       conftest$ac_exeext conftest.$ac_ext
8694 LIBS=$ac_check_lib_save_LIBS
8695 fi
8696 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
8697 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
8698 if test $ac_cv_lib_crypt_main = yes; then
8699   cat >>confdefs.h <<_ACEOF
8700 #define HAVE_LIBCRYPT 1
8701 _ACEOF
8702
8703   LIBS="-lcrypt $LIBS"
8704
8705 fi
8706
8707
8708         { echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8709 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6; }
8710
8711 # Check whether --with-loadavg was given.
8712 if test "${with_loadavg+set}" = set; then
8713   withval=$with_loadavg;  case "$withval" in
8714                 no)
8715                         { echo "$as_me:$LINENO: result: no" >&5
8716 echo "${ECHO_T}no" >&6; }
8717                         ;;
8718                 yes)
8719                         { echo "$as_me:$LINENO: result: yes" >&5
8720 echo "${ECHO_T}yes" >&6; }
8721                         cat >>confdefs.h <<\_ACEOF
8722 #define HAVE_LOADAVG 1
8723 _ACEOF
8724
8725                         ;;
8726                 *)
8727                         { echo "$as_me:$LINENO: result: yes" >&5
8728 echo "${ECHO_T}yes" >&6; }
8729                         cat >>confdefs.h <<\_ACEOF
8730 #define HAVE_LOADAVG 1
8731 _ACEOF
8732
8733                         ;;
8734         esac
8735 else
8736   { echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6; }
8738 fi
8739
8740         ;;
8741 darwin* | "Mac OS"*)
8742         ac_cv_prog_RANLIB="ranlib"
8743         # AC_CHECK_FUNCS doesn't look in the proper header file...
8744         cat >>confdefs.h <<\_ACEOF
8745 #define HAVE_ISATTY 1
8746 _ACEOF
8747
8748         CFLAGS="$CFLAGS -no-cpp-precomp"
8749         { echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8750 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6; }
8751
8752 # Check whether --with-loadavg was given.
8753 if test "${with_loadavg+set}" = set; then
8754   withval=$with_loadavg;  case "$withval" in
8755                 no)
8756                         { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8758                         ;;
8759                 yes)
8760                         { echo "$as_me:$LINENO: result: yes" >&5
8761 echo "${ECHO_T}yes" >&6; }
8762                         cat >>confdefs.h <<\_ACEOF
8763 #define HAVE_LOADAVG 1
8764 _ACEOF
8765
8766                         ;;
8767                 *)
8768                         { echo "$as_me:$LINENO: result: yes" >&5
8769 echo "${ECHO_T}yes" >&6; }
8770                         cat >>confdefs.h <<\_ACEOF
8771 #define HAVE_LOADAVG 1
8772 _ACEOF
8773
8774                         ;;
8775         esac
8776 else
8777   { echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6; }
8779 fi
8780
8781         ;;
8782 *bsdi*)
8783        { echo "$as_me:$LINENO: checking whether to compile in loadavg" >&5
8784 echo $ECHO_N "checking whether to compile in loadavg... $ECHO_C" >&6; }
8785
8786 # Check whether --with-loadavg was given.
8787 if test "${with_loadavg+set}" = set; then
8788   withval=$with_loadavg;  case "$withval" in
8789                no)
8790                        { echo "$as_me:$LINENO: result: no" >&5
8791 echo "${ECHO_T}no" >&6; }
8792                        ;;
8793                yes)
8794                        { echo "$as_me:$LINENO: result: yes" >&5
8795 echo "${ECHO_T}yes" >&6; }
8796                        cat >>confdefs.h <<\_ACEOF
8797 #define bsdi 1
8798 _ACEOF
8799
8800                        cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_LOADAVG 1
8802 _ACEOF
8803
8804                        ;;
8805                *)
8806                        { echo "$as_me:$LINENO: result: yes" >&5
8807 echo "${ECHO_T}yes" >&6; }
8808                        cat >>confdefs.h <<\_ACEOF
8809 #define bsdi 1
8810 _ACEOF
8811
8812                        cat >>confdefs.h <<\_ACEOF
8813 #define HAVE_LOADAVG 1
8814 _ACEOF
8815
8816                        ;;
8817        esac
8818 else
8819   { echo "$as_me:$LINENO: result: no" >&5
8820 echo "${ECHO_T}no" >&6; }
8821 fi
8822
8823        ;;
8824 esac
8825
8826
8827 { echo "$as_me:$LINENO: checking for crypt in -lc" >&5
8828 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
8829 if test "${ac_cv_lib_c_crypt+set}" = set; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832   ac_check_lib_save_LIBS=$LIBS
8833 LIBS="-lc  $LIBS"
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h.  */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h.  */
8840
8841 /* Override any GCC internal prototype to avoid an error.
8842    Use char because int might match the return type of a GCC
8843    builtin and then its argument prototype would still apply.  */
8844 #ifdef __cplusplus
8845 extern "C"
8846 #endif
8847 char crypt ();
8848 int
8849 main ()
8850 {
8851 return crypt ();
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 rm -f conftest.$ac_objext conftest$ac_exeext
8857 if { (ac_try="$ac_link"
8858 case "(($ac_try" in
8859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860   *) ac_try_echo=$ac_try;;
8861 esac
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863   (eval "$ac_link") 2>conftest.er1
8864   ac_status=$?
8865   grep -v '^ *+' conftest.er1 >conftest.err
8866   rm -f conftest.er1
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } && {
8870          test -z "$ac_c_werror_flag" ||
8871          test ! -s conftest.err
8872        } && test -s conftest$ac_exeext &&
8873        $as_test_x conftest$ac_exeext; then
8874   ac_cv_lib_c_crypt=yes
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879         ac_cv_lib_c_crypt=no
8880 fi
8881
8882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8883       conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8885 fi
8886 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
8887 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
8888 if test $ac_cv_lib_c_crypt = yes; then
8889   :
8890 else
8891
8892  { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8893 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
8894 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   ac_check_lib_save_LIBS=$LIBS
8898 LIBS="-lcrypt  $LIBS"
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905
8906 /* Override any GCC internal prototype to avoid an error.
8907    Use char because int might match the return type of a GCC
8908    builtin and then its argument prototype would still apply.  */
8909 #ifdef __cplusplus
8910 extern "C"
8911 #endif
8912 char crypt ();
8913 int
8914 main ()
8915 {
8916 return crypt ();
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (ac_try="$ac_link"
8923 case "(($ac_try" in
8924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925   *) ac_try_echo=$ac_try;;
8926 esac
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928   (eval "$ac_link") 2>conftest.er1
8929   ac_status=$?
8930   grep -v '^ *+' conftest.er1 >conftest.err
8931   rm -f conftest.er1
8932   cat conftest.err >&5
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } && {
8935          test -z "$ac_c_werror_flag" ||
8936          test ! -s conftest.err
8937        } && test -s conftest$ac_exeext &&
8938        $as_test_x conftest$ac_exeext; then
8939   ac_cv_lib_crypt_crypt=yes
8940 else
8941   echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944         ac_cv_lib_crypt_crypt=no
8945 fi
8946
8947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8948       conftest$ac_exeext conftest.$ac_ext
8949 LIBS=$ac_check_lib_save_LIBS
8950 fi
8951 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8952 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
8953 if test $ac_cv_lib_crypt_crypt = yes; then
8954
8955   LIBS="-lcrypt $LIBS"
8956   cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_LIBCRYPT 1
8958 _ACEOF
8959
8960 fi
8961
8962 fi
8963
8964
8965 { echo "$as_me:$LINENO: checking for log10 in -lm" >&5
8966 echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6; }
8967 if test "${ac_cv_lib_m_log10+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970   ac_check_lib_save_LIBS=$LIBS
8971 LIBS="-lm  $LIBS"
8972 cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978
8979 /* Override any GCC internal prototype to avoid an error.
8980    Use char because int might match the return type of a GCC
8981    builtin and then its argument prototype would still apply.  */
8982 #ifdef __cplusplus
8983 extern "C"
8984 #endif
8985 char log10 ();
8986 int
8987 main ()
8988 {
8989 return log10 ();
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (ac_try="$ac_link"
8996 case "(($ac_try" in
8997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998   *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001   (eval "$ac_link") 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } && {
9008          test -z "$ac_c_werror_flag" ||
9009          test ! -s conftest.err
9010        } && test -s conftest$ac_exeext &&
9011        $as_test_x conftest$ac_exeext; then
9012   ac_cv_lib_m_log10=yes
9013 else
9014   echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9016
9017         ac_cv_lib_m_log10=no
9018 fi
9019
9020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9021       conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9023 fi
9024 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5
9025 echo "${ECHO_T}$ac_cv_lib_m_log10" >&6; }
9026 if test $ac_cv_lib_m_log10 = yes; then
9027    LIBS="-lm $LIBS"
9028 fi
9029
9030
9031 { echo "$as_me:$LINENO: checking whether to default to ipv6" >&5
9032 echo $ECHO_N "checking whether to default to ipv6... $ECHO_C" >&6; }
9033
9034 # Check whether --with-inet6 was given.
9035 if test "${with_inet6+set}" = set; then
9036   withval=$with_inet6; { echo "$as_me:$LINENO: result: ignored" >&5
9037 echo "${ECHO_T}ignored" >&6; }
9038 else
9039   { echo "$as_me:$LINENO: result: ignored" >&5
9040 echo "${ECHO_T}ignored" >&6; }
9041 fi
9042
9043
9044 { echo "$as_me:$LINENO: checking whether to use libwrap" >&5
9045 echo $ECHO_N "checking whether to use libwrap... $ECHO_C" >&6; }
9046
9047 # Check whether --with-libwrap was given.
9048 if test "${with_libwrap+set}" = set; then
9049   withval=$with_libwrap;  case "$withval" in
9050         no)
9051                 { echo "$as_me:$LINENO: result: no" >&5
9052 echo "${ECHO_T}no" >&6; }
9053                 ;;
9054         yes)
9055                 { echo "$as_me:$LINENO: result: yes" >&5
9056 echo "${ECHO_T}yes" >&6; }
9057                 { echo "$as_me:$LINENO: checking for request_init in -lwrap" >&5
9058 echo $ECHO_N "checking for request_init in -lwrap... $ECHO_C" >&6; }
9059 if test "${ac_cv_lib_wrap_request_init+set}" = set; then
9060   echo $ECHO_N "(cached) $ECHO_C" >&6
9061 else
9062   ac_check_lib_save_LIBS=$LIBS
9063 LIBS="-lwrap  $LIBS"
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h.  */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h.  */
9070
9071 /* Override any GCC internal prototype to avoid an error.
9072    Use char because int might match the return type of a GCC
9073    builtin and then its argument prototype would still apply.  */
9074 #ifdef __cplusplus
9075 extern "C"
9076 #endif
9077 char request_init ();
9078 int
9079 main ()
9080 {
9081 return request_init ();
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 rm -f conftest.$ac_objext conftest$ac_exeext
9087 if { (ac_try="$ac_link"
9088 case "(($ac_try" in
9089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090   *) ac_try_echo=$ac_try;;
9091 esac
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093   (eval "$ac_link") 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } && {
9100          test -z "$ac_c_werror_flag" ||
9101          test ! -s conftest.err
9102        } && test -s conftest$ac_exeext &&
9103        $as_test_x conftest$ac_exeext; then
9104   ac_cv_lib_wrap_request_init=yes
9105 else
9106   echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109         ac_cv_lib_wrap_request_init=no
9110 fi
9111
9112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9113       conftest$ac_exeext conftest.$ac_ext
9114 LIBS=$ac_check_lib_save_LIBS
9115 fi
9116 { echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_request_init" >&5
9117 echo "${ECHO_T}$ac_cv_lib_wrap_request_init" >&6; }
9118 if test $ac_cv_lib_wrap_request_init = yes; then
9119
9120                         cat >>confdefs.h <<\_ACEOF
9121 #define LIBWRAP 1
9122 _ACEOF
9123
9124                         WRAPLIBS="-lwrap"
9125                         cat >>confdefs.h <<\_ACEOF
9126 #define HAVE_LIBWRAP 1
9127 _ACEOF
9128
9129 fi
9130
9131                 { echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
9132 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6; }
9133 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
9134   echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136   ac_check_lib_save_LIBS=$LIBS
9137 LIBS="-lnsl  $LIBS"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144
9145 /* Override any GCC internal prototype to avoid an error.
9146    Use char because int might match the return type of a GCC
9147    builtin and then its argument prototype would still apply.  */
9148 #ifdef __cplusplus
9149 extern "C"
9150 #endif
9151 char yp_get_default_domain ();
9152 int
9153 main ()
9154 {
9155 return yp_get_default_domain ();
9156   ;
9157   return 0;
9158 }
9159 _ACEOF
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (ac_try="$ac_link"
9162 case "(($ac_try" in
9163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164   *) ac_try_echo=$ac_try;;
9165 esac
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167   (eval "$ac_link") 2>conftest.er1
9168   ac_status=$?
9169   grep -v '^ *+' conftest.er1 >conftest.err
9170   rm -f conftest.er1
9171   cat conftest.err >&5
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); } && {
9174          test -z "$ac_c_werror_flag" ||
9175          test ! -s conftest.err
9176        } && test -s conftest$ac_exeext &&
9177        $as_test_x conftest$ac_exeext; then
9178   ac_cv_lib_nsl_yp_get_default_domain=yes
9179 else
9180   echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183         ac_cv_lib_nsl_yp_get_default_domain=no
9184 fi
9185
9186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9187       conftest$ac_exeext conftest.$ac_ext
9188 LIBS=$ac_check_lib_save_LIBS
9189 fi
9190 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
9191 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
9192 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
9193
9194                         WRAPLIBS="$WRAPLIBS -lnsl"
9195 fi
9196
9197                 LIBS="$WRAPLIBS $LIBS"
9198                 ;;
9199         *)
9200                 { echo "$as_me:$LINENO: result: yes" >&5
9201 echo "${ECHO_T}yes" >&6; }
9202                 cat >>confdefs.h <<\_ACEOF
9203 #define LIBWRAP 1
9204 _ACEOF
9205
9206                 if test -d "$withval"; then
9207                         WRAPLIBS="-L$withval -lwrap"
9208                 else
9209                         WRAPLIBS="$withval"
9210                 fi
9211                 { echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
9212 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6; }
9213 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
9214   echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216   ac_check_lib_save_LIBS=$LIBS
9217 LIBS="-lnsl  $LIBS"
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224
9225 /* Override any GCC internal prototype to avoid an error.
9226    Use char because int might match the return type of a GCC
9227    builtin and then its argument prototype would still apply.  */
9228 #ifdef __cplusplus
9229 extern "C"
9230 #endif
9231 char yp_get_default_domain ();
9232 int
9233 main ()
9234 {
9235 return yp_get_default_domain ();
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9242 case "(($ac_try" in
9243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244   *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247   (eval "$ac_link") 2>conftest.er1
9248   ac_status=$?
9249   grep -v '^ *+' conftest.er1 >conftest.err
9250   rm -f conftest.er1
9251   cat conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } && {
9254          test -z "$ac_c_werror_flag" ||
9255          test ! -s conftest.err
9256        } && test -s conftest$ac_exeext &&
9257        $as_test_x conftest$ac_exeext; then
9258   ac_cv_lib_nsl_yp_get_default_domain=yes
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263         ac_cv_lib_nsl_yp_get_default_domain=no
9264 fi
9265
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267       conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9269 fi
9270 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
9271 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
9272 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
9273
9274                         WRAPLIBS="$WRAPLIBS -lnsl"
9275 fi
9276
9277                 OLDLIBS="$LIBS"
9278                 LIBS="$WRAPLIBS $LIBS"
9279                 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285  int allow_severity; int deny_severity;
9286 int
9287 main ()
9288 {
9289  hosts_access();
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (ac_try="$ac_link"
9296 case "(($ac_try" in
9297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298   *) ac_try_echo=$ac_try;;
9299 esac
9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301   (eval "$ac_link") 2>conftest.er1
9302   ac_status=$?
9303   grep -v '^ *+' conftest.er1 >conftest.err
9304   rm -f conftest.er1
9305   cat conftest.err >&5
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); } && {
9308          test -z "$ac_c_werror_flag" ||
9309          test ! -s conftest.err
9310        } && test -s conftest$ac_exeext &&
9311        $as_test_x conftest$ac_exeext; then
9312   :
9313 else
9314   echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317          { { echo "$as_me:$LINENO: error: Could not find the $withval library.  You must first install tcp_wrappers." >&5
9318 echo "$as_me: error: Could not find the $withval library.  You must first install tcp_wrappers." >&2;}
9319    { (exit 1); exit 1; }; }
9320 fi
9321
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323       conftest$ac_exeext conftest.$ac_ext
9324                 ;;
9325         esac
9326 else
9327   { echo "$as_me:$LINENO: result: no" >&5
9328 echo "${ECHO_T}no" >&6; }
9329
9330 fi
9331
9332
9333
9334
9335 for ac_header in stdlib.h unistd.h
9336 do
9337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9342   echo $ECHO_N "(cached) $ECHO_C" >&6
9343 fi
9344 ac_res=`eval echo '${'$as_ac_Header'}'`
9345                { echo "$as_me:$LINENO: result: $ac_res" >&5
9346 echo "${ECHO_T}$ac_res" >&6; }
9347 else
9348   # Is the header compilable?
9349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9351 cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h.  */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h.  */
9357 $ac_includes_default
9358 #include <$ac_header>
9359 _ACEOF
9360 rm -f conftest.$ac_objext
9361 if { (ac_try="$ac_compile"
9362 case "(($ac_try" in
9363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364   *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367   (eval "$ac_compile") 2>conftest.er1
9368   ac_status=$?
9369   grep -v '^ *+' conftest.er1 >conftest.err
9370   rm -f conftest.er1
9371   cat conftest.err >&5
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); } && {
9374          test -z "$ac_c_werror_flag" ||
9375          test ! -s conftest.err
9376        } && test -s conftest.$ac_objext; then
9377   ac_header_compiler=yes
9378 else
9379   echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382         ac_header_compiler=no
9383 fi
9384
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9387 echo "${ECHO_T}$ac_header_compiler" >&6; }
9388
9389 # Is the header present?
9390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9392 cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398 #include <$ac_header>
9399 _ACEOF
9400 if { (ac_try="$ac_cpp conftest.$ac_ext"
9401 case "(($ac_try" in
9402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403   *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9407   ac_status=$?
9408   grep -v '^ *+' conftest.er1 >conftest.err
9409   rm -f conftest.er1
9410   cat conftest.err >&5
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } >/dev/null && {
9413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9414          test ! -s conftest.err
9415        }; then
9416   ac_header_preproc=yes
9417 else
9418   echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421   ac_header_preproc=no
9422 fi
9423
9424 rm -f conftest.err conftest.$ac_ext
9425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9426 echo "${ECHO_T}$ac_header_preproc" >&6; }
9427
9428 # So?  What about this header?
9429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9430   yes:no: )
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9435     ac_header_preproc=yes
9436     ;;
9437   no:yes:* )
9438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9450
9451     ;;
9452 esac
9453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458   eval "$as_ac_Header=\$ac_header_preproc"
9459 fi
9460 ac_res=`eval echo '${'$as_ac_Header'}'`
9461                { echo "$as_me:$LINENO: result: $ac_res" >&5
9462 echo "${ECHO_T}$ac_res" >&6; }
9463
9464 fi
9465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9466   cat >>confdefs.h <<_ACEOF
9467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 _ACEOF
9469
9470 fi
9471
9472 done
9473
9474
9475 for ac_func in getpagesize
9476 do
9477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h.  */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h.  */
9489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9491 #define $ac_func innocuous_$ac_func
9492
9493 /* System header to define __stub macros and hopefully few prototypes,
9494     which can conflict with char $ac_func (); below.
9495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9496     <limits.h> exists even on freestanding compilers.  */
9497
9498 #ifdef __STDC__
9499 # include <limits.h>
9500 #else
9501 # include <assert.h>
9502 #endif
9503
9504 #undef $ac_func
9505
9506 /* Override any GCC internal prototype to avoid an error.
9507    Use char because int might match the return type of a GCC
9508    builtin and then its argument prototype would still apply.  */
9509 #ifdef __cplusplus
9510 extern "C"
9511 #endif
9512 char $ac_func ();
9513 /* The GNU C library defines this for functions which it implements
9514     to always fail with ENOSYS.  Some functions are actually named
9515     something starting with __ and the normal name is an alias.  */
9516 #if defined __stub_$ac_func || defined __stub___$ac_func
9517 choke me
9518 #endif
9519
9520 int
9521 main ()
9522 {
9523 return $ac_func ();
9524   ;
9525   return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (ac_try="$ac_link"
9530 case "(($ac_try" in
9531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532   *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535   (eval "$ac_link") 2>conftest.er1
9536   ac_status=$?
9537   grep -v '^ *+' conftest.er1 >conftest.err
9538   rm -f conftest.er1
9539   cat conftest.err >&5
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); } && {
9542          test -z "$ac_c_werror_flag" ||
9543          test ! -s conftest.err
9544        } && test -s conftest$ac_exeext &&
9545        $as_test_x conftest$ac_exeext; then
9546   eval "$as_ac_var=yes"
9547 else
9548   echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551         eval "$as_ac_var=no"
9552 fi
9553
9554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9555       conftest$ac_exeext conftest.$ac_ext
9556 fi
9557 ac_res=`eval echo '${'$as_ac_var'}'`
9558                { echo "$as_me:$LINENO: result: $ac_res" >&5
9559 echo "${ECHO_T}$ac_res" >&6; }
9560 if test `eval echo '${'$as_ac_var'}'` = yes; then
9561   cat >>confdefs.h <<_ACEOF
9562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9563 _ACEOF
9564
9565 fi
9566 done
9567
9568 { echo "$as_me:$LINENO: checking for working mmap" >&5
9569 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9570 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   if test "$cross_compiling" = yes; then
9574   ac_cv_func_mmap_fixed_mapped=no
9575 else
9576   cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h.  */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h.  */
9582 $ac_includes_default
9583 /* malloc might have been renamed as rpl_malloc. */
9584 #undef malloc
9585
9586 /* Thanks to Mike Haertel and Jim Avera for this test.
9587    Here is a matrix of mmap possibilities:
9588         mmap private not fixed
9589         mmap private fixed at somewhere currently unmapped
9590         mmap private fixed at somewhere already mapped
9591         mmap shared not fixed
9592         mmap shared fixed at somewhere currently unmapped
9593         mmap shared fixed at somewhere already mapped
9594    For private mappings, we should verify that changes cannot be read()
9595    back from the file, nor mmap's back from the file at a different
9596    address.  (There have been systems where private was not correctly
9597    implemented like the infamous i386 svr4.0, and systems where the
9598    VM page cache was not coherent with the file system buffer cache
9599    like early versions of FreeBSD and possibly contemporary NetBSD.)
9600    For shared mappings, we should conversely verify that changes get
9601    propagated back to all the places they're supposed to be.
9602
9603    Grep wants private fixed already mapped.
9604    The main things grep needs to know about mmap are:
9605    * does it exist and is it safe to write into the mmap'd area
9606    * how to use it (BSD variants)  */
9607
9608 #include <fcntl.h>
9609 #include <sys/mman.h>
9610
9611 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9612 char *malloc ();
9613 #endif
9614
9615 /* This mess was copied from the GNU getpagesize.h.  */
9616 #ifndef HAVE_GETPAGESIZE
9617 /* Assume that all systems that can run configure have sys/param.h.  */
9618 # ifndef HAVE_SYS_PARAM_H
9619 #  define HAVE_SYS_PARAM_H 1
9620 # endif
9621
9622 # ifdef _SC_PAGESIZE
9623 #  define getpagesize() sysconf(_SC_PAGESIZE)
9624 # else /* no _SC_PAGESIZE */
9625 #  ifdef HAVE_SYS_PARAM_H
9626 #   include <sys/param.h>
9627 #   ifdef EXEC_PAGESIZE
9628 #    define getpagesize() EXEC_PAGESIZE
9629 #   else /* no EXEC_PAGESIZE */
9630 #    ifdef NBPG
9631 #     define getpagesize() NBPG * CLSIZE
9632 #     ifndef CLSIZE
9633 #      define CLSIZE 1
9634 #     endif /* no CLSIZE */
9635 #    else /* no NBPG */
9636 #     ifdef NBPC
9637 #      define getpagesize() NBPC
9638 #     else /* no NBPC */
9639 #      ifdef PAGESIZE
9640 #       define getpagesize() PAGESIZE
9641 #      endif /* PAGESIZE */
9642 #     endif /* no NBPC */
9643 #    endif /* no NBPG */
9644 #   endif /* no EXEC_PAGESIZE */
9645 #  else /* no HAVE_SYS_PARAM_H */
9646 #   define getpagesize() 8192   /* punt totally */
9647 #  endif /* no HAVE_SYS_PARAM_H */
9648 # endif /* no _SC_PAGESIZE */
9649
9650 #endif /* no HAVE_GETPAGESIZE */
9651
9652 int
9653 main ()
9654 {
9655   char *data, *data2, *data3;
9656   int i, pagesize;
9657   int fd;
9658
9659   pagesize = getpagesize ();
9660
9661   /* First, make a file with some known garbage in it. */
9662   data = (char *) malloc (pagesize);
9663   if (!data)
9664     return 1;
9665   for (i = 0; i < pagesize; ++i)
9666     *(data + i) = rand ();
9667   umask (0);
9668   fd = creat ("conftest.mmap", 0600);
9669   if (fd < 0)
9670     return 1;
9671   if (write (fd, data, pagesize) != pagesize)
9672     return 1;
9673   close (fd);
9674
9675   /* Next, try to mmap the file at a fixed address which already has
9676      something else allocated at it.  If we can, also make sure that
9677      we see the same garbage.  */
9678   fd = open ("conftest.mmap", O_RDWR);
9679   if (fd < 0)
9680     return 1;
9681   data2 = (char *) malloc (2 * pagesize);
9682   if (!data2)
9683     return 1;
9684   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9685   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9686                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9687     return 1;
9688   for (i = 0; i < pagesize; ++i)
9689     if (*(data + i) != *(data2 + i))
9690       return 1;
9691
9692   /* Finally, make sure that changes to the mapped area do not
9693      percolate back to the file as seen by read().  (This is a bug on
9694      some variants of i386 svr4.0.)  */
9695   for (i = 0; i < pagesize; ++i)
9696     *(data2 + i) = *(data2 + i) + 1;
9697   data3 = (char *) malloc (pagesize);
9698   if (!data3)
9699     return 1;
9700   if (read (fd, data3, pagesize) != pagesize)
9701     return 1;
9702   for (i = 0; i < pagesize; ++i)
9703     if (*(data + i) != *(data3 + i))
9704       return 1;
9705   close (fd);
9706   return 0;
9707 }
9708 _ACEOF
9709 rm -f conftest$ac_exeext
9710 if { (ac_try="$ac_link"
9711 case "(($ac_try" in
9712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713   *) ac_try_echo=$ac_try;;
9714 esac
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716   (eval "$ac_link") 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9720   { (case "(($ac_try" in
9721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722   *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725   (eval "$ac_try") 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; }; then
9729   ac_cv_func_mmap_fixed_mapped=yes
9730 else
9731   echo "$as_me: program exited with status $ac_status" >&5
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 ( exit $ac_status )
9736 ac_cv_func_mmap_fixed_mapped=no
9737 fi
9738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9739 fi
9740
9741
9742 fi
9743 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9744 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9745 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9746
9747 cat >>confdefs.h <<\_ACEOF
9748 #define HAVE_MMAP 1
9749 _ACEOF
9750
9751 fi
9752 rm -f conftest.mmap
9753
9754
9755
9756 for ac_func in isatty
9757 do
9758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9762   echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764   cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h.  */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h.  */
9770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9772 #define $ac_func innocuous_$ac_func
9773
9774 /* System header to define __stub macros and hopefully few prototypes,
9775     which can conflict with char $ac_func (); below.
9776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9777     <limits.h> exists even on freestanding compilers.  */
9778
9779 #ifdef __STDC__
9780 # include <limits.h>
9781 #else
9782 # include <assert.h>
9783 #endif
9784
9785 #undef $ac_func
9786
9787 /* Override any GCC internal prototype to avoid an error.
9788    Use char because int might match the return type of a GCC
9789    builtin and then its argument prototype would still apply.  */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 char $ac_func ();
9794 /* The GNU C library defines this for functions which it implements
9795     to always fail with ENOSYS.  Some functions are actually named
9796     something starting with __ and the normal name is an alias.  */
9797 #if defined __stub_$ac_func || defined __stub___$ac_func
9798 choke me
9799 #endif
9800
9801 int
9802 main ()
9803 {
9804 return $ac_func ();
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_link") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } && {
9823          test -z "$ac_c_werror_flag" ||
9824          test ! -s conftest.err
9825        } && test -s conftest$ac_exeext &&
9826        $as_test_x conftest$ac_exeext; then
9827   eval "$as_ac_var=yes"
9828 else
9829   echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9831
9832         eval "$as_ac_var=no"
9833 fi
9834
9835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9836       conftest$ac_exeext conftest.$ac_ext
9837 fi
9838 ac_res=`eval echo '${'$as_ac_var'}'`
9839                { echo "$as_me:$LINENO: result: $ac_res" >&5
9840 echo "${ECHO_T}$ac_res" >&6; }
9841 if test `eval echo '${'$as_ac_var'}'` = yes; then
9842   cat >>confdefs.h <<_ACEOF
9843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9844 _ACEOF
9845
9846 fi
9847 done
9848
9849
9850 for ac_func in memcpy
9851 do
9852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858   cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h.  */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h.  */
9864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9866 #define $ac_func innocuous_$ac_func
9867
9868 /* System header to define __stub macros and hopefully few prototypes,
9869     which can conflict with char $ac_func (); below.
9870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9871     <limits.h> exists even on freestanding compilers.  */
9872
9873 #ifdef __STDC__
9874 # include <limits.h>
9875 #else
9876 # include <assert.h>
9877 #endif
9878
9879 #undef $ac_func
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882    Use char because int might match the return type of a GCC
9883    builtin and then its argument prototype would still apply.  */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char $ac_func ();
9888 /* The GNU C library defines this for functions which it implements
9889     to always fail with ENOSYS.  Some functions are actually named
9890     something starting with __ and the normal name is an alias.  */
9891 #if defined __stub_$ac_func || defined __stub___$ac_func
9892 choke me
9893 #endif
9894
9895 int
9896 main ()
9897 {
9898 return $ac_func ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910   (eval "$ac_link") 2>conftest.er1
9911   ac_status=$?
9912   grep -v '^ *+' conftest.er1 >conftest.err
9913   rm -f conftest.er1
9914   cat conftest.err >&5
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } && {
9917          test -z "$ac_c_werror_flag" ||
9918          test ! -s conftest.err
9919        } && test -s conftest$ac_exeext &&
9920        $as_test_x conftest$ac_exeext; then
9921   eval "$as_ac_var=yes"
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         eval "$as_ac_var=no"
9927 fi
9928
9929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9930       conftest$ac_exeext conftest.$ac_ext
9931 fi
9932 ac_res=`eval echo '${'$as_ac_var'}'`
9933                { echo "$as_me:$LINENO: result: $ac_res" >&5
9934 echo "${ECHO_T}$ac_res" >&6; }
9935 if test `eval echo '${'$as_ac_var'}'` = yes; then
9936   cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9938 _ACEOF
9939
9940 fi
9941 done
9942
9943
9944 for ac_func in waitpid
9945 do
9946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9950   echo $ECHO_N "(cached) $ECHO_C" >&6
9951 else
9952   cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h.  */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h.  */
9958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9960 #define $ac_func innocuous_$ac_func
9961
9962 /* System header to define __stub macros and hopefully few prototypes,
9963     which can conflict with char $ac_func (); below.
9964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9965     <limits.h> exists even on freestanding compilers.  */
9966
9967 #ifdef __STDC__
9968 # include <limits.h>
9969 #else
9970 # include <assert.h>
9971 #endif
9972
9973 #undef $ac_func
9974
9975 /* Override any GCC internal prototype to avoid an error.
9976    Use char because int might match the return type of a GCC
9977    builtin and then its argument prototype would still apply.  */
9978 #ifdef __cplusplus
9979 extern "C"
9980 #endif
9981 char $ac_func ();
9982 /* The GNU C library defines this for functions which it implements
9983     to always fail with ENOSYS.  Some functions are actually named
9984     something starting with __ and the normal name is an alias.  */
9985 #if defined __stub_$ac_func || defined __stub___$ac_func
9986 choke me
9987 #endif
9988
9989 int
9990 main ()
9991 {
9992 return $ac_func ();
9993   ;
9994   return 0;
9995 }
9996 _ACEOF
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (ac_try="$ac_link"
9999 case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_link") 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } && {
10011          test -z "$ac_c_werror_flag" ||
10012          test ! -s conftest.err
10013        } && test -s conftest$ac_exeext &&
10014        $as_test_x conftest$ac_exeext; then
10015   eval "$as_ac_var=yes"
10016 else
10017   echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10019
10020         eval "$as_ac_var=no"
10021 fi
10022
10023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10024       conftest$ac_exeext conftest.$ac_ext
10025 fi
10026 ac_res=`eval echo '${'$as_ac_var'}'`
10027                { echo "$as_me:$LINENO: result: $ac_res" >&5
10028 echo "${ECHO_T}$ac_res" >&6; }
10029 if test `eval echo '${'$as_ac_var'}'` = yes; then
10030   cat >>confdefs.h <<_ACEOF
10031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10032 _ACEOF
10033
10034 fi
10035 done
10036
10037
10038 for ac_func in sigvec
10039 do
10040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046   cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h.  */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h.  */
10052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10054 #define $ac_func innocuous_$ac_func
10055
10056 /* System header to define __stub macros and hopefully few prototypes,
10057     which can conflict with char $ac_func (); below.
10058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059     <limits.h> exists even on freestanding compilers.  */
10060
10061 #ifdef __STDC__
10062 # include <limits.h>
10063 #else
10064 # include <assert.h>
10065 #endif
10066
10067 #undef $ac_func
10068
10069 /* Override any GCC internal prototype to avoid an error.
10070    Use char because int might match the return type of a GCC
10071    builtin and then its argument prototype would still apply.  */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char $ac_func ();
10076 /* The GNU C library defines this for functions which it implements
10077     to always fail with ENOSYS.  Some functions are actually named
10078     something starting with __ and the normal name is an alias.  */
10079 #if defined __stub_$ac_func || defined __stub___$ac_func
10080 choke me
10081 #endif
10082
10083 int
10084 main ()
10085 {
10086 return $ac_func ();
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (ac_try="$ac_link"
10093 case "(($ac_try" in
10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095   *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098   (eval "$ac_link") 2>conftest.er1
10099   ac_status=$?
10100   grep -v '^ *+' conftest.er1 >conftest.err
10101   rm -f conftest.er1
10102   cat conftest.err >&5
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } && {
10105          test -z "$ac_c_werror_flag" ||
10106          test ! -s conftest.err
10107        } && test -s conftest$ac_exeext &&
10108        $as_test_x conftest$ac_exeext; then
10109   eval "$as_ac_var=yes"
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114         eval "$as_ac_var=no"
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118       conftest$ac_exeext conftest.$ac_ext
10119 fi
10120 ac_res=`eval echo '${'$as_ac_var'}'`
10121                { echo "$as_me:$LINENO: result: $ac_res" >&5
10122 echo "${ECHO_T}$ac_res" >&6; }
10123 if test `eval echo '${'$as_ac_var'}'` = yes; then
10124   cat >>confdefs.h <<_ACEOF
10125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10126 _ACEOF
10127
10128 fi
10129 done
10130
10131
10132 for ac_func in setsid
10133 do
10134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10138   echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140   cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h.  */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h.  */
10146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10148 #define $ac_func innocuous_$ac_func
10149
10150 /* System header to define __stub macros and hopefully few prototypes,
10151     which can conflict with char $ac_func (); below.
10152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10153     <limits.h> exists even on freestanding compilers.  */
10154
10155 #ifdef __STDC__
10156 # include <limits.h>
10157 #else
10158 # include <assert.h>
10159 #endif
10160
10161 #undef $ac_func
10162
10163 /* Override any GCC internal prototype to avoid an error.
10164    Use char because int might match the return type of a GCC
10165    builtin and then its argument prototype would still apply.  */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 char $ac_func ();
10170 /* The GNU C library defines this for functions which it implements
10171     to always fail with ENOSYS.  Some functions are actually named
10172     something starting with __ and the normal name is an alias.  */
10173 #if defined __stub_$ac_func || defined __stub___$ac_func
10174 choke me
10175 #endif
10176
10177 int
10178 main ()
10179 {
10180 return $ac_func ();
10181   ;
10182   return 0;
10183 }
10184 _ACEOF
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (ac_try="$ac_link"
10187 case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_link") 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } && {
10199          test -z "$ac_c_werror_flag" ||
10200          test ! -s conftest.err
10201        } && test -s conftest$ac_exeext &&
10202        $as_test_x conftest$ac_exeext; then
10203   eval "$as_ac_var=yes"
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208         eval "$as_ac_var=no"
10209 fi
10210
10211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212       conftest$ac_exeext conftest.$ac_ext
10213 fi
10214 ac_res=`eval echo '${'$as_ac_var'}'`
10215                { echo "$as_me:$LINENO: result: $ac_res" >&5
10216 echo "${ECHO_T}$ac_res" >&6; }
10217 if test `eval echo '${'$as_ac_var'}'` = yes; then
10218   cat >>confdefs.h <<_ACEOF
10219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10220 _ACEOF
10221
10222 fi
10223 done
10224
10225
10226 for ac_func in strftime
10227 do
10228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10242 #define $ac_func innocuous_$ac_func
10243
10244 /* System header to define __stub macros and hopefully few prototypes,
10245     which can conflict with char $ac_func (); below.
10246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10247     <limits.h> exists even on freestanding compilers.  */
10248
10249 #ifdef __STDC__
10250 # include <limits.h>
10251 #else
10252 # include <assert.h>
10253 #endif
10254
10255 #undef $ac_func
10256
10257 /* Override any GCC internal prototype to avoid an error.
10258    Use char because int might match the return type of a GCC
10259    builtin and then its argument prototype would still apply.  */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char $ac_func ();
10264 /* The GNU C library defines this for functions which it implements
10265     to always fail with ENOSYS.  Some functions are actually named
10266     something starting with __ and the normal name is an alias.  */
10267 #if defined __stub_$ac_func || defined __stub___$ac_func
10268 choke me
10269 #endif
10270
10271 int
10272 main ()
10273 {
10274 return $ac_func ();
10275   ;
10276   return 0;
10277 }
10278 _ACEOF
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (ac_try="$ac_link"
10281 case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286   (eval "$ac_link") 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } && {
10293          test -z "$ac_c_werror_flag" ||
10294          test ! -s conftest.err
10295        } && test -s conftest$ac_exeext &&
10296        $as_test_x conftest$ac_exeext; then
10297   eval "$as_ac_var=yes"
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302         eval "$as_ac_var=no"
10303 fi
10304
10305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10306       conftest$ac_exeext conftest.$ac_ext
10307 fi
10308 ac_res=`eval echo '${'$as_ac_var'}'`
10309                { echo "$as_me:$LINENO: result: $ac_res" >&5
10310 echo "${ECHO_T}$ac_res" >&6; }
10311 if test `eval echo '${'$as_ac_var'}'` = yes; then
10312   cat >>confdefs.h <<_ACEOF
10313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10314 _ACEOF
10315
10316 fi
10317 done
10318
10319
10320 # AC_CHECK_TYPE(R_OK,4)
10321
10322
10323 mkdir -p libs/src/misc
10324 mkdir -p libs/src/pset
10325 mkdir -p libs/src/sio
10326 mkdir -p libs/src/str
10327 mkdir -p libs/src/xlog
10328 mkdir -p libs/include
10329 mkdir -p libs/lib
10330 mkdir -p libs/man
10331
10332 ac_config_headers="$ac_config_headers config.h"
10333
10334 ac_config_files="$ac_config_files Makefile libs/src/misc/Makefile libs/src/pset/Makefile libs/src/sio/Makefile libs/src/str/Makefile libs/src/xlog/Makefile libs/src/portable/Makefile xinetd/Makefile"
10335
10336 cat >confcache <<\_ACEOF
10337 # This file is a shell script that caches the results of configure
10338 # tests run on this system so they can be shared between configure
10339 # scripts and configure runs, see configure's option --config-cache.
10340 # It is not useful on other systems.  If it contains results you don't
10341 # want to keep, you may remove or edit it.
10342 #
10343 # config.status only pays attention to the cache file if you give it
10344 # the --recheck option to rerun configure.
10345 #
10346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10348 # following values.
10349
10350 _ACEOF
10351
10352 # The following way of writing the cache mishandles newlines in values,
10353 # but we know of no workaround that is simple, portable, and efficient.
10354 # So, we kill variables containing newlines.
10355 # Ultrix sh set writes to stderr and can't be redirected directly,
10356 # and sets the high bit in the cache file unless we assign to the vars.
10357 (
10358   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10359     eval ac_val=\$$ac_var
10360     case $ac_val in #(
10361     *${as_nl}*)
10362       case $ac_var in #(
10363       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10364 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10365       esac
10366       case $ac_var in #(
10367       _ | IFS | as_nl) ;; #(
10368       *) $as_unset $ac_var ;;
10369       esac ;;
10370     esac
10371   done
10372
10373   (set) 2>&1 |
10374     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10375     *${as_nl}ac_space=\ *)
10376       # `set' does not quote correctly, so add quotes (double-quote
10377       # substitution turns \\\\ into \\, and sed turns \\ into \).
10378       sed -n \
10379         "s/'/'\\\\''/g;
10380           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10381       ;; #(
10382     *)
10383       # `set' quotes correctly as required by POSIX, so do not add quotes.
10384       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10385       ;;
10386     esac |
10387     sort
10388 ) |
10389   sed '
10390      /^ac_cv_env_/b end
10391      t clear
10392      :clear
10393      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10394      t end
10395      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10396      :end' >>confcache
10397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10398   if test -w "$cache_file"; then
10399     test "x$cache_file" != "x/dev/null" &&
10400       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10401 echo "$as_me: updating cache $cache_file" >&6;}
10402     cat confcache >$cache_file
10403   else
10404     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10405 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10406   fi
10407 fi
10408 rm -f confcache
10409
10410 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10411 # Let make expand exec_prefix.
10412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10413
10414 DEFS=-DHAVE_CONFIG_H
10415
10416 ac_libobjs=
10417 ac_ltlibobjs=
10418 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10419   # 1. Remove the extension, and $U if already installed.
10420   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10421   ac_i=`echo "$ac_i" | sed "$ac_script"`
10422   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10423   #    will be set to the directory where LIBOBJS objects are built.
10424   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10425   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10426 done
10427 LIBOBJS=$ac_libobjs
10428
10429 LTLIBOBJS=$ac_ltlibobjs
10430
10431
10432
10433 : ${CONFIG_STATUS=./config.status}
10434 ac_clean_files_save=$ac_clean_files
10435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10436 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10437 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10438 cat >$CONFIG_STATUS <<_ACEOF
10439 #! $SHELL
10440 # Generated by $as_me.
10441 # Run this file to recreate the current configuration.
10442 # Compiler output produced by configure, useful for debugging
10443 # configure, is in config.log if it exists.
10444
10445 debug=false
10446 ac_cs_recheck=false
10447 ac_cs_silent=false
10448 SHELL=\${CONFIG_SHELL-$SHELL}
10449 _ACEOF
10450
10451 cat >>$CONFIG_STATUS <<\_ACEOF
10452 ## --------------------- ##
10453 ## M4sh Initialization.  ##
10454 ## --------------------- ##
10455
10456 # Be more Bourne compatible
10457 DUALCASE=1; export DUALCASE # for MKS sh
10458 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10459   emulate sh
10460   NULLCMD=:
10461   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10462   # is contrary to our usage.  Disable this feature.
10463   alias -g '${1+"$@"}'='"$@"'
10464   setopt NO_GLOB_SUBST
10465 else
10466   case `(set -o) 2>/dev/null` in
10467   *posix*) set -o posix ;;
10468 esac
10469
10470 fi
10471
10472
10473
10474
10475 # PATH needs CR
10476 # Avoid depending upon Character Ranges.
10477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10480 as_cr_digits='0123456789'
10481 as_cr_alnum=$as_cr_Letters$as_cr_digits
10482
10483 # The user is always right.
10484 if test "${PATH_SEPARATOR+set}" != set; then
10485   echo "#! /bin/sh" >conf$$.sh
10486   echo  "exit 0"   >>conf$$.sh
10487   chmod +x conf$$.sh
10488   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10489     PATH_SEPARATOR=';'
10490   else
10491     PATH_SEPARATOR=:
10492   fi
10493   rm -f conf$$.sh
10494 fi
10495
10496 # Support unset when possible.
10497 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10498   as_unset=unset
10499 else
10500   as_unset=false
10501 fi
10502
10503
10504 # IFS
10505 # We need space, tab and new line, in precisely that order.  Quoting is
10506 # there to prevent editors from complaining about space-tab.
10507 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10508 # splitting by setting IFS to empty value.)
10509 as_nl='
10510 '
10511 IFS=" ""        $as_nl"
10512
10513 # Find who we are.  Look in the path if we contain no directory separator.
10514 case $0 in
10515   *[\\/]* ) as_myself=$0 ;;
10516   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517 for as_dir in $PATH
10518 do
10519   IFS=$as_save_IFS
10520   test -z "$as_dir" && as_dir=.
10521   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10522 done
10523 IFS=$as_save_IFS
10524
10525      ;;
10526 esac
10527 # We did not find ourselves, most probably we were run as `sh COMMAND'
10528 # in which case we are not to be found in the path.
10529 if test "x$as_myself" = x; then
10530   as_myself=$0
10531 fi
10532 if test ! -f "$as_myself"; then
10533   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10534   { (exit 1); exit 1; }
10535 fi
10536
10537 # Work around bugs in pre-3.0 UWIN ksh.
10538 for as_var in ENV MAIL MAILPATH
10539 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10540 done
10541 PS1='$ '
10542 PS2='> '
10543 PS4='+ '
10544
10545 # NLS nuisances.
10546 for as_var in \
10547   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10548   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10549   LC_TELEPHONE LC_TIME
10550 do
10551   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10552     eval $as_var=C; export $as_var
10553   else
10554     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10555   fi
10556 done
10557
10558 # Required to use basename.
10559 if expr a : '\(a\)' >/dev/null 2>&1 &&
10560    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10561   as_expr=expr
10562 else
10563   as_expr=false
10564 fi
10565
10566 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10567   as_basename=basename
10568 else
10569   as_basename=false
10570 fi
10571
10572
10573 # Name of the executable.
10574 as_me=`$as_basename -- "$0" ||
10575 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10576          X"$0" : 'X\(//\)$' \| \
10577          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10578 echo X/"$0" |
10579     sed '/^.*\/\([^/][^/]*\)\/*$/{
10580             s//\1/
10581             q
10582           }
10583           /^X\/\(\/\/\)$/{
10584             s//\1/
10585             q
10586           }
10587           /^X\/\(\/\).*/{
10588             s//\1/
10589             q
10590           }
10591           s/.*/./; q'`
10592
10593 # CDPATH.
10594 $as_unset CDPATH
10595
10596
10597
10598   as_lineno_1=$LINENO
10599   as_lineno_2=$LINENO
10600   test "x$as_lineno_1" != "x$as_lineno_2" &&
10601   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10602
10603   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10604   # uniformly replaced by the line number.  The first 'sed' inserts a
10605   # line-number line after each line using $LINENO; the second 'sed'
10606   # does the real work.  The second script uses 'N' to pair each
10607   # line-number line with the line containing $LINENO, and appends
10608   # trailing '-' during substitution so that $LINENO is not a special
10609   # case at line end.
10610   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10611   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10612   # E. McMahon (1931-1989) for sed's syntax.  :-)
10613   sed -n '
10614     p
10615     /[$]LINENO/=
10616   ' <$as_myself |
10617     sed '
10618       s/[$]LINENO.*/&-/
10619       t lineno
10620       b
10621       :lineno
10622       N
10623       :loop
10624       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10625       t loop
10626       s/-\n.*//
10627     ' >$as_me.lineno &&
10628   chmod +x "$as_me.lineno" ||
10629     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10630    { (exit 1); exit 1; }; }
10631
10632   # Don't try to exec as it changes $[0], causing all sort of problems
10633   # (the dirname of $[0] is not the place where we might find the
10634   # original and so on.  Autoconf is especially sensitive to this).
10635   . "./$as_me.lineno"
10636   # Exit status is that of the last command.
10637   exit
10638 }
10639
10640
10641 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10642   as_dirname=dirname
10643 else
10644   as_dirname=false
10645 fi
10646
10647 ECHO_C= ECHO_N= ECHO_T=
10648 case `echo -n x` in
10649 -n*)
10650   case `echo 'x\c'` in
10651   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10652   *)   ECHO_C='\c';;
10653   esac;;
10654 *)
10655   ECHO_N='-n';;
10656 esac
10657
10658 if expr a : '\(a\)' >/dev/null 2>&1 &&
10659    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10660   as_expr=expr
10661 else
10662   as_expr=false
10663 fi
10664
10665 rm -f conf$$ conf$$.exe conf$$.file
10666 if test -d conf$$.dir; then
10667   rm -f conf$$.dir/conf$$.file
10668 else
10669   rm -f conf$$.dir
10670   mkdir conf$$.dir
10671 fi
10672 echo >conf$$.file
10673 if ln -s conf$$.file conf$$ 2>/dev/null; then
10674   as_ln_s='ln -s'
10675   # ... but there are two gotchas:
10676   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10677   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10678   # In both cases, we have to default to `cp -p'.
10679   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10680     as_ln_s='cp -p'
10681 elif ln conf$$.file conf$$ 2>/dev/null; then
10682   as_ln_s=ln
10683 else
10684   as_ln_s='cp -p'
10685 fi
10686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10687 rmdir conf$$.dir 2>/dev/null
10688
10689 if mkdir -p . 2>/dev/null; then
10690   as_mkdir_p=:
10691 else
10692   test -d ./-p && rmdir ./-p
10693   as_mkdir_p=false
10694 fi
10695
10696 if test -x / >/dev/null 2>&1; then
10697   as_test_x='test -x'
10698 else
10699   if ls -dL / >/dev/null 2>&1; then
10700     as_ls_L_option=L
10701   else
10702     as_ls_L_option=
10703   fi
10704   as_test_x='
10705     eval sh -c '\''
10706       if test -d "$1"; then
10707         test -d "$1/.";
10708       else
10709         case $1 in
10710         -*)set "./$1";;
10711         esac;
10712         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10713         ???[sx]*):;;*)false;;esac;fi
10714     '\'' sh
10715   '
10716 fi
10717 as_executable_p=$as_test_x
10718
10719 # Sed expression to map a string onto a valid CPP name.
10720 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10721
10722 # Sed expression to map a string onto a valid variable name.
10723 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10724
10725
10726 exec 6>&1
10727
10728 # Save the log message, to keep $[0] and so on meaningful, and to
10729 # report actual input values of CONFIG_FILES etc. instead of their
10730 # values after options handling.
10731 ac_log="
10732 This file was extended by $as_me, which was
10733 generated by GNU Autoconf 2.61.  Invocation command line was
10734
10735   CONFIG_FILES    = $CONFIG_FILES
10736   CONFIG_HEADERS  = $CONFIG_HEADERS
10737   CONFIG_LINKS    = $CONFIG_LINKS
10738   CONFIG_COMMANDS = $CONFIG_COMMANDS
10739   $ $0 $@
10740
10741 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10742 "
10743
10744 _ACEOF
10745
10746 cat >>$CONFIG_STATUS <<_ACEOF
10747 # Files that config.status was made for.
10748 config_files="$ac_config_files"
10749 config_headers="$ac_config_headers"
10750
10751 _ACEOF
10752
10753 cat >>$CONFIG_STATUS <<\_ACEOF
10754 ac_cs_usage="\
10755 \`$as_me' instantiates files from templates according to the
10756 current configuration.
10757
10758 Usage: $0 [OPTIONS] [FILE]...
10759
10760   -h, --help       print this help, then exit
10761   -V, --version    print version number and configuration settings, then exit
10762   -q, --quiet      do not print progress messages
10763   -d, --debug      don't remove temporary files
10764       --recheck    update $as_me by reconfiguring in the same conditions
10765   --file=FILE[:TEMPLATE]
10766                    instantiate the configuration file FILE
10767   --header=FILE[:TEMPLATE]
10768                    instantiate the configuration header FILE
10769
10770 Configuration files:
10771 $config_files
10772
10773 Configuration headers:
10774 $config_headers
10775
10776 Report bugs to <bug-autoconf@gnu.org>."
10777
10778 _ACEOF
10779 cat >>$CONFIG_STATUS <<_ACEOF
10780 ac_cs_version="\\
10781 config.status
10782 configured by $0, generated by GNU Autoconf 2.61,
10783   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10784
10785 Copyright (C) 2006 Free Software Foundation, Inc.
10786 This config.status script is free software; the Free Software Foundation
10787 gives unlimited permission to copy, distribute and modify it."
10788
10789 ac_pwd='$ac_pwd'
10790 srcdir='$srcdir'
10791 INSTALL='$INSTALL'
10792 _ACEOF
10793
10794 cat >>$CONFIG_STATUS <<\_ACEOF
10795 # If no file are specified by the user, then we need to provide default
10796 # value.  By we need to know if files were specified by the user.
10797 ac_need_defaults=:
10798 while test $# != 0
10799 do
10800   case $1 in
10801   --*=*)
10802     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10803     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10804     ac_shift=:
10805     ;;
10806   *)
10807     ac_option=$1
10808     ac_optarg=$2
10809     ac_shift=shift
10810     ;;
10811   esac
10812
10813   case $ac_option in
10814   # Handling of the options.
10815   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10816     ac_cs_recheck=: ;;
10817   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10818     echo "$ac_cs_version"; exit ;;
10819   --debug | --debu | --deb | --de | --d | -d )
10820     debug=: ;;
10821   --file | --fil | --fi | --f )
10822     $ac_shift
10823     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10824     ac_need_defaults=false;;
10825   --header | --heade | --head | --hea )
10826     $ac_shift
10827     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10828     ac_need_defaults=false;;
10829   --he | --h)
10830     # Conflict between --help and --header
10831     { echo "$as_me: error: ambiguous option: $1
10832 Try \`$0 --help' for more information." >&2
10833    { (exit 1); exit 1; }; };;
10834   --help | --hel | -h )
10835     echo "$ac_cs_usage"; exit ;;
10836   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10837   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10838     ac_cs_silent=: ;;
10839
10840   # This is an error.
10841   -*) { echo "$as_me: error: unrecognized option: $1
10842 Try \`$0 --help' for more information." >&2
10843    { (exit 1); exit 1; }; } ;;
10844
10845   *) ac_config_targets="$ac_config_targets $1"
10846      ac_need_defaults=false ;;
10847
10848   esac
10849   shift
10850 done
10851
10852 ac_configure_extra_args=
10853
10854 if $ac_cs_silent; then
10855   exec 6>/dev/null
10856   ac_configure_extra_args="$ac_configure_extra_args --silent"
10857 fi
10858
10859 _ACEOF
10860 cat >>$CONFIG_STATUS <<_ACEOF
10861 if \$ac_cs_recheck; then
10862   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10863   CONFIG_SHELL=$SHELL
10864   export CONFIG_SHELL
10865   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10866 fi
10867
10868 _ACEOF
10869 cat >>$CONFIG_STATUS <<\_ACEOF
10870 exec 5>>config.log
10871 {
10872   echo
10873   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10874 ## Running $as_me. ##
10875 _ASBOX
10876   echo "$ac_log"
10877 } >&5
10878
10879 _ACEOF
10880 cat >>$CONFIG_STATUS <<_ACEOF
10881 _ACEOF
10882
10883 cat >>$CONFIG_STATUS <<\_ACEOF
10884
10885 # Handling of arguments.
10886 for ac_config_target in $ac_config_targets
10887 do
10888   case $ac_config_target in
10889     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10890     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10891     "libs/src/misc/Makefile") CONFIG_FILES="$CONFIG_FILES libs/src/misc/Makefile" ;;
10892     "libs/src/pset/Makefile") CONFIG_FILES="$CONFIG_FILES libs/src/pset/Makefile" ;;
10893     "libs/src/sio/Makefile") CONFIG_FILES="$CONFIG_FILES libs/src/sio/Makefile" ;;
10894     "libs/src/str/Makefile") CONFIG_FILES="$CONFIG_FILES libs/src/str/Makefile" ;;
10895     "libs/src/xlog/Makefile") CONFIG_FILES="$CONFIG_FILES libs/src/xlog/Makefile" ;;
10896     "libs/src/portable/Makefile") CONFIG_FILES="$CONFIG_FILES libs/src/portable/Makefile" ;;
10897     "xinetd/Makefile") CONFIG_FILES="$CONFIG_FILES xinetd/Makefile" ;;
10898
10899   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10900 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10901    { (exit 1); exit 1; }; };;
10902   esac
10903 done
10904
10905
10906 # If the user did not use the arguments to specify the items to instantiate,
10907 # then the envvar interface is used.  Set only those that are not.
10908 # We use the long form for the default assignment because of an extremely
10909 # bizarre bug on SunOS 4.1.3.
10910 if $ac_need_defaults; then
10911   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10912   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10913 fi
10914
10915 # Have a temporary directory for convenience.  Make it in the build tree
10916 # simply because there is no reason against having it here, and in addition,
10917 # creating and moving files from /tmp can sometimes cause problems.
10918 # Hook for its removal unless debugging.
10919 # Note that there is a small window in which the directory will not be cleaned:
10920 # after its creation but before its name has been assigned to `$tmp'.
10921 $debug ||
10922 {
10923   tmp=
10924   trap 'exit_status=$?
10925   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10926 ' 0
10927   trap '{ (exit 1); exit 1; }' 1 2 13 15
10928 }
10929 # Create a (secure) tmp directory for tmp files.
10930
10931 {
10932   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10933   test -n "$tmp" && test -d "$tmp"
10934 }  ||
10935 {
10936   tmp=./conf$$-$RANDOM
10937   (umask 077 && mkdir "$tmp")
10938 } ||
10939 {
10940    echo "$me: cannot create a temporary directory in ." >&2
10941    { (exit 1); exit 1; }
10942 }
10943
10944 #
10945 # Set up the sed scripts for CONFIG_FILES section.
10946 #
10947
10948 # No need to generate the scripts if there are no CONFIG_FILES.
10949 # This happens for instance when ./config.status config.h
10950 if test -n "$CONFIG_FILES"; then
10951
10952 _ACEOF
10953
10954
10955
10956 ac_delim='%!_!# '
10957 for ac_last_try in false false false false false :; do
10958   cat >conf$$subs.sed <<_ACEOF
10959 SHELL!$SHELL$ac_delim
10960 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10961 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10962 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10963 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10964 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10965 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10966 exec_prefix!$exec_prefix$ac_delim
10967 prefix!$prefix$ac_delim
10968 program_transform_name!$program_transform_name$ac_delim
10969 bindir!$bindir$ac_delim
10970 sbindir!$sbindir$ac_delim
10971 libexecdir!$libexecdir$ac_delim
10972 datarootdir!$datarootdir$ac_delim
10973 datadir!$datadir$ac_delim
10974 sysconfdir!$sysconfdir$ac_delim
10975 sharedstatedir!$sharedstatedir$ac_delim
10976 localstatedir!$localstatedir$ac_delim
10977 includedir!$includedir$ac_delim
10978 oldincludedir!$oldincludedir$ac_delim
10979 docdir!$docdir$ac_delim
10980 infodir!$infodir$ac_delim
10981 htmldir!$htmldir$ac_delim
10982 dvidir!$dvidir$ac_delim
10983 pdfdir!$pdfdir$ac_delim
10984 psdir!$psdir$ac_delim
10985 libdir!$libdir$ac_delim
10986 localedir!$localedir$ac_delim
10987 mandir!$mandir$ac_delim
10988 DEFS!$DEFS$ac_delim
10989 ECHO_C!$ECHO_C$ac_delim
10990 ECHO_N!$ECHO_N$ac_delim
10991 ECHO_T!$ECHO_T$ac_delim
10992 LIBS!$LIBS$ac_delim
10993 build_alias!$build_alias$ac_delim
10994 host_alias!$host_alias$ac_delim
10995 target_alias!$target_alias$ac_delim
10996 build!$build$ac_delim
10997 build_cpu!$build_cpu$ac_delim
10998 build_vendor!$build_vendor$ac_delim
10999 build_os!$build_os$ac_delim
11000 host!$host$ac_delim
11001 host_cpu!$host_cpu$ac_delim
11002 host_vendor!$host_vendor$ac_delim
11003 host_os!$host_os$ac_delim
11004 target!$target$ac_delim
11005 target_cpu!$target_cpu$ac_delim
11006 target_vendor!$target_vendor$ac_delim
11007 target_os!$target_os$ac_delim
11008 CC!$CC$ac_delim
11009 CFLAGS!$CFLAGS$ac_delim
11010 LDFLAGS!$LDFLAGS$ac_delim
11011 CPPFLAGS!$CPPFLAGS$ac_delim
11012 ac_ct_CC!$ac_ct_CC$ac_delim
11013 EXEEXT!$EXEEXT$ac_delim
11014 OBJEXT!$OBJEXT$ac_delim
11015 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11016 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11017 INSTALL_DATA!$INSTALL_DATA$ac_delim
11018 RANLIB!$RANLIB$ac_delim
11019 CPP!$CPP$ac_delim
11020 GREP!$GREP$ac_delim
11021 EGREP!$EGREP$ac_delim
11022 LIBOBJS!$LIBOBJS$ac_delim
11023 LTLIBOBJS!$LTLIBOBJS$ac_delim
11024 _ACEOF
11025
11026   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
11027     break
11028   elif $ac_last_try; then
11029     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11030 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11031    { (exit 1); exit 1; }; }
11032   else
11033     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11034   fi
11035 done
11036
11037 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11038 if test -n "$ac_eof"; then
11039   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11040   ac_eof=`expr $ac_eof + 1`
11041 fi
11042
11043 cat >>$CONFIG_STATUS <<_ACEOF
11044 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11046 _ACEOF
11047 sed '
11048 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11049 s/^/s,@/; s/!/@,|#_!!_#|/
11050 :n
11051 t n
11052 s/'"$ac_delim"'$/,g/; t
11053 s/$/\\/; p
11054 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11055 ' >>$CONFIG_STATUS <conf$$subs.sed
11056 rm -f conf$$subs.sed
11057 cat >>$CONFIG_STATUS <<_ACEOF
11058 :end
11059 s/|#_!!_#|//g
11060 CEOF$ac_eof
11061 _ACEOF
11062
11063
11064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11066 # trailing colons and then remove the whole line if VPATH becomes empty
11067 # (actually we leave an empty line to preserve line numbers).
11068 if test "x$srcdir" = x.; then
11069   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11070 s/:*\$(srcdir):*/:/
11071 s/:*\${srcdir}:*/:/
11072 s/:*@srcdir@:*/:/
11073 s/^\([^=]*=[     ]*\):*/\1/
11074 s/:*$//
11075 s/^[^=]*=[       ]*$//
11076 }'
11077 fi
11078
11079 cat >>$CONFIG_STATUS <<\_ACEOF
11080 fi # test -n "$CONFIG_FILES"
11081
11082
11083 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
11084 do
11085   case $ac_tag in
11086   :[FHLC]) ac_mode=$ac_tag; continue;;
11087   esac
11088   case $ac_mode$ac_tag in
11089   :[FHL]*:*);;
11090   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11091 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11092    { (exit 1); exit 1; }; };;
11093   :[FH]-) ac_tag=-:-;;
11094   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11095   esac
11096   ac_save_IFS=$IFS
11097   IFS=:
11098   set x $ac_tag
11099   IFS=$ac_save_IFS
11100   shift
11101   ac_file=$1
11102   shift
11103
11104   case $ac_mode in
11105   :L) ac_source=$1;;
11106   :[FH])
11107     ac_file_inputs=
11108     for ac_f
11109     do
11110       case $ac_f in
11111       -) ac_f="$tmp/stdin";;
11112       *) # Look for the file first in the build tree, then in the source tree
11113          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11114          # because $ac_f cannot contain `:'.
11115          test -f "$ac_f" ||
11116            case $ac_f in
11117            [\\/$]*) false;;
11118            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11119            esac ||
11120            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11121 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11122    { (exit 1); exit 1; }; };;
11123       esac
11124       ac_file_inputs="$ac_file_inputs $ac_f"
11125     done
11126
11127     # Let's still pretend it is `configure' which instantiates (i.e., don't
11128     # use $as_me), people would be surprised to read:
11129     #    /* config.h.  Generated by config.status.  */
11130     configure_input="Generated from "`IFS=:
11131           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11132     if test x"$ac_file" != x-; then
11133       configure_input="$ac_file.  $configure_input"
11134       { echo "$as_me:$LINENO: creating $ac_file" >&5
11135 echo "$as_me: creating $ac_file" >&6;}
11136     fi
11137
11138     case $ac_tag in
11139     *:-:* | *:-) cat >"$tmp/stdin";;
11140     esac
11141     ;;
11142   esac
11143
11144   ac_dir=`$as_dirname -- "$ac_file" ||
11145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11146          X"$ac_file" : 'X\(//\)[^/]' \| \
11147          X"$ac_file" : 'X\(//\)$' \| \
11148          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11149 echo X"$ac_file" |
11150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11151             s//\1/
11152             q
11153           }
11154           /^X\(\/\/\)[^/].*/{
11155             s//\1/
11156             q
11157           }
11158           /^X\(\/\/\)$/{
11159             s//\1/
11160             q
11161           }
11162           /^X\(\/\).*/{
11163             s//\1/
11164             q
11165           }
11166           s/.*/./; q'`
11167   { as_dir="$ac_dir"
11168   case $as_dir in #(
11169   -*) as_dir=./$as_dir;;
11170   esac
11171   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11172     as_dirs=
11173     while :; do
11174       case $as_dir in #(
11175       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11176       *) as_qdir=$as_dir;;
11177       esac
11178       as_dirs="'$as_qdir' $as_dirs"
11179       as_dir=`$as_dirname -- "$as_dir" ||
11180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11181          X"$as_dir" : 'X\(//\)[^/]' \| \
11182          X"$as_dir" : 'X\(//\)$' \| \
11183          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11184 echo X"$as_dir" |
11185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11186             s//\1/
11187             q
11188           }
11189           /^X\(\/\/\)[^/].*/{
11190             s//\1/
11191             q
11192           }
11193           /^X\(\/\/\)$/{
11194             s//\1/
11195             q
11196           }
11197           /^X\(\/\).*/{
11198             s//\1/
11199             q
11200           }
11201           s/.*/./; q'`
11202       test -d "$as_dir" && break
11203     done
11204     test -z "$as_dirs" || eval "mkdir $as_dirs"
11205   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11206 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11207    { (exit 1); exit 1; }; }; }
11208   ac_builddir=.
11209
11210 case "$ac_dir" in
11211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11212 *)
11213   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11214   # A ".." for each directory in $ac_dir_suffix.
11215   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11216   case $ac_top_builddir_sub in
11217   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11218   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11219   esac ;;
11220 esac
11221 ac_abs_top_builddir=$ac_pwd
11222 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11223 # for backward compatibility:
11224 ac_top_builddir=$ac_top_build_prefix
11225
11226 case $srcdir in
11227   .)  # We are building in place.
11228     ac_srcdir=.
11229     ac_top_srcdir=$ac_top_builddir_sub
11230     ac_abs_top_srcdir=$ac_pwd ;;
11231   [\\/]* | ?:[\\/]* )  # Absolute name.
11232     ac_srcdir=$srcdir$ac_dir_suffix;
11233     ac_top_srcdir=$srcdir
11234     ac_abs_top_srcdir=$srcdir ;;
11235   *) # Relative name.
11236     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11237     ac_top_srcdir=$ac_top_build_prefix$srcdir
11238     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11239 esac
11240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11241
11242
11243   case $ac_mode in
11244   :F)
11245   #
11246   # CONFIG_FILE
11247   #
11248
11249   case $INSTALL in
11250   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11251   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11252   esac
11253 _ACEOF
11254
11255 cat >>$CONFIG_STATUS <<\_ACEOF
11256 # If the template does not know about datarootdir, expand it.
11257 # FIXME: This hack should be removed a few years after 2.60.
11258 ac_datarootdir_hack=; ac_datarootdir_seen=
11259
11260 case `sed -n '/datarootdir/ {
11261   p
11262   q
11263 }
11264 /@datadir@/p
11265 /@docdir@/p
11266 /@infodir@/p
11267 /@localedir@/p
11268 /@mandir@/p
11269 ' $ac_file_inputs` in
11270 *datarootdir*) ac_datarootdir_seen=yes;;
11271 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11272   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11273 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11274 _ACEOF
11275 cat >>$CONFIG_STATUS <<_ACEOF
11276   ac_datarootdir_hack='
11277   s&@datadir@&$datadir&g
11278   s&@docdir@&$docdir&g
11279   s&@infodir@&$infodir&g
11280   s&@localedir@&$localedir&g
11281   s&@mandir@&$mandir&g
11282     s&\\\${datarootdir}&$datarootdir&g' ;;
11283 esac
11284 _ACEOF
11285
11286 # Neutralize VPATH when `$srcdir' = `.'.
11287 # Shell code in configure.ac might set extrasub.
11288 # FIXME: do we really want to maintain this feature?
11289 cat >>$CONFIG_STATUS <<_ACEOF
11290   sed "$ac_vpsub
11291 $extrasub
11292 _ACEOF
11293 cat >>$CONFIG_STATUS <<\_ACEOF
11294 :t
11295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11296 s&@configure_input@&$configure_input&;t t
11297 s&@top_builddir@&$ac_top_builddir_sub&;t t
11298 s&@srcdir@&$ac_srcdir&;t t
11299 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11300 s&@top_srcdir@&$ac_top_srcdir&;t t
11301 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11302 s&@builddir@&$ac_builddir&;t t
11303 s&@abs_builddir@&$ac_abs_builddir&;t t
11304 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11305 s&@INSTALL@&$ac_INSTALL&;t t
11306 $ac_datarootdir_hack
11307 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
11308
11309 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11310   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11311   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11312   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11313 which seems to be undefined.  Please make sure it is defined." >&5
11314 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11315 which seems to be undefined.  Please make sure it is defined." >&2;}
11316
11317   rm -f "$tmp/stdin"
11318   case $ac_file in
11319   -) cat "$tmp/out"; rm -f "$tmp/out";;
11320   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11321   esac
11322  ;;
11323   :H)
11324   #
11325   # CONFIG_HEADER
11326   #
11327 _ACEOF
11328
11329 # Transform confdefs.h into a sed script `conftest.defines', that
11330 # substitutes the proper values into config.h.in to produce config.h.
11331 rm -f conftest.defines conftest.tail
11332 # First, append a space to every undef/define line, to ease matching.
11333 echo 's/$/ /' >conftest.defines
11334 # Then, protect against being on the right side of a sed subst, or in
11335 # an unquoted here document, in config.status.  If some macros were
11336 # called several times there might be several #defines for the same
11337 # symbol, which is useless.  But do not sort them, since the last
11338 # AC_DEFINE must be honored.
11339 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11340 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11341 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11342 # PARAMS is the parameter list in the macro definition--in most cases, it's
11343 # just an empty string.
11344 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11345 ac_dB='\\)[      (].*,\\1define\\2'
11346 ac_dC=' '
11347 ac_dD=' ,'
11348
11349 uniq confdefs.h |
11350   sed -n '
11351         t rset
11352         :rset
11353         s/^[     ]*#[    ]*define[       ][      ]*//
11354         t ok
11355         d
11356         :ok
11357         s/[\\&,]/\\&/g
11358         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11359         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11360   ' >>conftest.defines
11361
11362 # Remove the space that was appended to ease matching.
11363 # Then replace #undef with comments.  This is necessary, for
11364 # example, in the case of _POSIX_SOURCE, which is predefined and required
11365 # on some systems where configure will not decide to define it.
11366 # (The regexp can be short, since the line contains either #define or #undef.)
11367 echo 's/ $//
11368 s,^[     #]*u.*,/* & */,' >>conftest.defines
11369
11370 # Break up conftest.defines:
11371 ac_max_sed_lines=50
11372
11373 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11374 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11375 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11376 # et cetera.
11377 ac_in='$ac_file_inputs'
11378 ac_out='"$tmp/out1"'
11379 ac_nxt='"$tmp/out2"'
11380
11381 while :
11382 do
11383   # Write a here document:
11384     cat >>$CONFIG_STATUS <<_ACEOF
11385     # First, check the format of the line:
11386     cat >"\$tmp/defines.sed" <<\\CEOF
11387 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
11388 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
11389 b
11390 :def
11391 _ACEOF
11392   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11393   echo 'CEOF
11394     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11395   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11396   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11397   grep . conftest.tail >/dev/null || break
11398   rm -f conftest.defines
11399   mv conftest.tail conftest.defines
11400 done
11401 rm -f conftest.defines conftest.tail
11402
11403 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11404 cat >>$CONFIG_STATUS <<\_ACEOF
11405   if test x"$ac_file" != x-; then
11406     echo "/* $configure_input  */" >"$tmp/config.h"
11407     cat "$ac_result" >>"$tmp/config.h"
11408     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11409       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11410 echo "$as_me: $ac_file is unchanged" >&6;}
11411     else
11412       rm -f $ac_file
11413       mv "$tmp/config.h" $ac_file
11414     fi
11415   else
11416     echo "/* $configure_input  */"
11417     cat "$ac_result"
11418   fi
11419   rm -f "$tmp/out12"
11420  ;;
11421
11422
11423   esac
11424
11425 done # for ac_tag
11426
11427
11428 { (exit 0); exit 0; }
11429 _ACEOF
11430 chmod +x $CONFIG_STATUS
11431 ac_clean_files=$ac_clean_files_save
11432
11433
11434 # configure is writing to config.log, and then calls config.status.
11435 # config.status does its own redirection, appending to config.log.
11436 # Unfortunately, on DOS this fails, as config.log is still kept open
11437 # by configure, so config.status won't be able to write to it; its
11438 # output is simply discarded.  So we exec the FD to /dev/null,
11439 # effectively closing config.log, so it can be properly (re)opened and
11440 # appended to by config.status.  When coming back to configure, we
11441 # need to make the FD available again.
11442 if test "$no_create" != yes; then
11443   ac_cs_success=:
11444   ac_config_status_args=
11445   test "$silent" = yes &&
11446     ac_config_status_args="$ac_config_status_args --quiet"
11447   exec 5>/dev/null
11448   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11449   exec 5>>config.log
11450   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11451   # would make configure fail if this is the last instruction.
11452   $ac_cs_success || { (exit 1); exit 1; }
11453 fi
11454
11455
11456 cp config.h libs/include