OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / squid / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.251.2.92 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="src/main.c"
581 ac_default_prefix=/usr/local/squid
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 INSTALL_PROGRAM
656 INSTALL_SCRIPT
657 INSTALL_DATA
658 PACKAGE
659 VERSION
660 ACLOCAL
661 AUTOCONF
662 AUTOMAKE
663 AUTOHEADER
664 MAKEINFO
665 AMTAR
666 install_sh
667 STRIP
668 INSTALL_STRIP_PROGRAM
669 AWK
670 SET_MAKE
671 MAINTAINER_MODE_TRUE
672 MAINTAINER_MODE_FALSE
673 MAINT
674 CC
675 CFLAGS
676 LDFLAGS
677 CPPFLAGS
678 ac_ct_CC
679 EXEEXT
680 OBJEXT
681 DEPDIR
682 am__include
683 am__quote
684 AMDEP_TRUE
685 AMDEP_FALSE
686 AMDEPBACKSLASH
687 CCDEPMODE
688 build
689 build_cpu
690 build_vendor
691 build_os
692 host
693 host_cpu
694 host_vendor
695 host_os
696 PKGCONFIG
697 CPP
698 GREP
699 EGREP
700 CGIEXT
701 ENABLE_WIN32SPECIFIC_TRUE
702 ENABLE_WIN32SPECIFIC_FALSE
703 LIBDLMALLOC
704 LIB_MALLOC
705 STORE_OBJS
706 STORE_LIBS
707 STORE_MODULES
708 STORE_MODULE_SUBDIRS
709 REPL_POLICIES
710 REPL_OBJS
711 REPL_LIBS
712 ENABLE_PINGER_TRUE
713 ENABLE_PINGER_FALSE
714 USE_DELAY_POOLS_TRUE
715 USE_DELAY_POOLS_FALSE
716 USE_ICAP_TRUE
717 USE_ICAP_FALSE
718 USE_SNMP_TRUE
719 USE_SNMP_FALSE
720 SNMPLIB
721 makesnmplib
722 ENABLE_HTCP_TRUE
723 ENABLE_HTCP_FALSE
724 ENABLE_SSL_TRUE
725 ENABLE_SSL_FALSE
726 NEED_OWN_MD5_TRUE
727 NEED_OWN_MD5_FALSE
728 SSLLIB
729 ERR_DEFAULT_LANGUAGE
730 ERR_LANGUAGES
731 MAKE_LEAKFINDER_TRUE
732 MAKE_LEAKFINDER_FALSE
733 USE_DNSSERVER_TRUE
734 USE_DNSSERVER_FALSE
735 AUTH_MODULES
736 AUTH_OBJS
737 AUTH_LIBS
738 BASIC_AUTH_HELPERS
739 NTLM_AUTH_HELPERS
740 DIGEST_AUTH_HELPERS
741 EXTERNAL_ACL_HELPERS
742 SAMBASOURCES
743 LIBSASL
744 ENABLE_UNLINKD_TRUE
745 ENABLE_UNLINKD_FALSE
746 RANLIB
747 LN_S
748 SH
749 FALSE
750 TRUE
751 RM
752 MV
753 MKDIR
754 LN
755 PERL
756 AR
757 AR_R
758 ALLOCA
759 CRYPTLIB
760 LIB_LBER
761 NEED_OWN_SNPRINTF_TRUE
762 NEED_OWN_SNPRINTF_FALSE
763 NEED_OWN_STRNSTR_TRUE
764 NEED_OWN_STRNSTR_FALSE
765 NEED_OWN_STRCASESTR_TRUE
766 NEED_OWN_STRCASESTR_FALSE
767 REGEXLIB
768 LIBREGEX
769 LIBOBJS
770 XTRA_OBJS
771 XTRA_LIBS
772 LTLIBOBJS'
773 ac_subst_files=''
774       ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890    { (exit 1); exit 1; }; }
891     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892     eval enable_$ac_feature=no ;;
893
894   -docdir | --docdir | --docdi | --doc | --do)
895     ac_prev=docdir ;;
896   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897     docdir=$ac_optarg ;;
898
899   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900     ac_prev=dvidir ;;
901   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902     dvidir=$ac_optarg ;;
903
904   -enable-* | --enable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911     eval enable_$ac_feature=\$ac_optarg ;;
912
913   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915   | --exec | --exe | --ex)
916     ac_prev=exec_prefix ;;
917   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919   | --exec=* | --exe=* | --ex=*)
920     exec_prefix=$ac_optarg ;;
921
922   -gas | --gas | --ga | --g)
923     # Obsolete; use --with-gas.
924     with_gas=yes ;;
925
926   -help | --help | --hel | --he | -h)
927     ac_init_help=long ;;
928   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929     ac_init_help=recursive ;;
930   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931     ac_init_help=short ;;
932
933   -host | --host | --hos | --ho)
934     ac_prev=host_alias ;;
935   -host=* | --host=* | --hos=* | --ho=*)
936     host_alias=$ac_optarg ;;
937
938   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939     ac_prev=htmldir ;;
940   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941   | --ht=*)
942     htmldir=$ac_optarg ;;
943
944   -includedir | --includedir | --includedi | --included | --include \
945   | --includ | --inclu | --incl | --inc)
946     ac_prev=includedir ;;
947   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948   | --includ=* | --inclu=* | --incl=* | --inc=*)
949     includedir=$ac_optarg ;;
950
951   -infodir | --infodir | --infodi | --infod | --info | --inf)
952     ac_prev=infodir ;;
953   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954     infodir=$ac_optarg ;;
955
956   -libdir | --libdir | --libdi | --libd)
957     ac_prev=libdir ;;
958   -libdir=* | --libdir=* | --libdi=* | --libd=*)
959     libdir=$ac_optarg ;;
960
961   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962   | --libexe | --libex | --libe)
963     ac_prev=libexecdir ;;
964   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965   | --libexe=* | --libex=* | --libe=*)
966     libexecdir=$ac_optarg ;;
967
968   -localedir | --localedir | --localedi | --localed | --locale)
969     ac_prev=localedir ;;
970   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971     localedir=$ac_optarg ;;
972
973   -localstatedir | --localstatedir | --localstatedi | --localstated \
974   | --localstate | --localstat | --localsta | --localst | --locals)
975     ac_prev=localstatedir ;;
976   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978     localstatedir=$ac_optarg ;;
979
980   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981     ac_prev=mandir ;;
982   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983     mandir=$ac_optarg ;;
984
985   -nfp | --nfp | --nf)
986     # Obsolete; use --without-fp.
987     with_fp=no ;;
988
989   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990   | --no-cr | --no-c | -n)
991     no_create=yes ;;
992
993   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995     no_recursion=yes ;;
996
997   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999   | --oldin | --oldi | --old | --ol | --o)
1000     ac_prev=oldincludedir ;;
1001   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004     oldincludedir=$ac_optarg ;;
1005
1006   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007     ac_prev=prefix ;;
1008   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009     prefix=$ac_optarg ;;
1010
1011   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012   | --program-pre | --program-pr | --program-p)
1013     ac_prev=program_prefix ;;
1014   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016     program_prefix=$ac_optarg ;;
1017
1018   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019   | --program-suf | --program-su | --program-s)
1020     ac_prev=program_suffix ;;
1021   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023     program_suffix=$ac_optarg ;;
1024
1025   -program-transform-name | --program-transform-name \
1026   | --program-transform-nam | --program-transform-na \
1027   | --program-transform-n | --program-transform- \
1028   | --program-transform | --program-transfor \
1029   | --program-transfo | --program-transf \
1030   | --program-trans | --program-tran \
1031   | --progr-tra | --program-tr | --program-t)
1032     ac_prev=program_transform_name ;;
1033   -program-transform-name=* | --program-transform-name=* \
1034   | --program-transform-nam=* | --program-transform-na=* \
1035   | --program-transform-n=* | --program-transform-=* \
1036   | --program-transform=* | --program-transfor=* \
1037   | --program-transfo=* | --program-transf=* \
1038   | --program-trans=* | --program-tran=* \
1039   | --progr-tra=* | --program-tr=* | --program-t=*)
1040     program_transform_name=$ac_optarg ;;
1041
1042   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043     ac_prev=pdfdir ;;
1044   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045     pdfdir=$ac_optarg ;;
1046
1047   -psdir | --psdir | --psdi | --psd | --ps)
1048     ac_prev=psdir ;;
1049   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050     psdir=$ac_optarg ;;
1051
1052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053   | -silent | --silent | --silen | --sile | --sil)
1054     silent=yes ;;
1055
1056   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057     ac_prev=sbindir ;;
1058   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059   | --sbi=* | --sb=*)
1060     sbindir=$ac_optarg ;;
1061
1062   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064   | --sharedst | --shareds | --shared | --share | --shar \
1065   | --sha | --sh)
1066     ac_prev=sharedstatedir ;;
1067   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070   | --sha=* | --sh=*)
1071     sharedstatedir=$ac_optarg ;;
1072
1073   -site | --site | --sit)
1074     ac_prev=site ;;
1075   -site=* | --site=* | --sit=*)
1076     site=$ac_optarg ;;
1077
1078   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079     ac_prev=srcdir ;;
1080   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081     srcdir=$ac_optarg ;;
1082
1083   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084   | --syscon | --sysco | --sysc | --sys | --sy)
1085     ac_prev=sysconfdir ;;
1086   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088     sysconfdir=$ac_optarg ;;
1089
1090   -target | --target | --targe | --targ | --tar | --ta | --t)
1091     ac_prev=target_alias ;;
1092   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093     target_alias=$ac_optarg ;;
1094
1095   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096     verbose=yes ;;
1097
1098   -version | --version | --versio | --versi | --vers | -V)
1099     ac_init_version=: ;;
1100
1101   -with-* | --with-*)
1102     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105       { echo "$as_me: error: invalid package name: $ac_package" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108     eval with_$ac_package=\$ac_optarg ;;
1109
1110   -without-* | --without-*)
1111     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       { echo "$as_me: error: invalid package name: $ac_package" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117     eval with_$ac_package=no ;;
1118
1119   --x)
1120     # Obsolete; use --with-x.
1121     with_x=yes ;;
1122
1123   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124   | --x-incl | --x-inc | --x-in | --x-i)
1125     ac_prev=x_includes ;;
1126   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128     x_includes=$ac_optarg ;;
1129
1130   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132     ac_prev=x_libraries ;;
1133   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135     x_libraries=$ac_optarg ;;
1136
1137   -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139    { (exit 1); exit 1; }; }
1140     ;;
1141
1142   *=*)
1143     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147    { (exit 1); exit 1; }; }
1148     eval $ac_envvar=\$ac_optarg
1149     export $ac_envvar ;;
1150
1151   *)
1152     # FIXME: should be removed in autoconf 3.0.
1153     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157     ;;
1158
1159   esac
1160 done
1161
1162 if test -n "$ac_prev"; then
1163   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164   { echo "$as_me: error: missing argument to $ac_option" >&2
1165    { (exit 1); exit 1; }; }
1166 fi
1167
1168 # Be sure to have absolute directory names.
1169 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170                 datadir sysconfdir sharedstatedir localstatedir includedir \
1171                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172                 libdir localedir mandir
1173 do
1174   eval ac_val=\$$ac_var
1175   case $ac_val in
1176     [\\/$]* | ?:[\\/]* )  continue;;
1177     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178   esac
1179   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180    { (exit 1); exit 1; }; }
1181 done
1182
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1186 build=$build_alias
1187 host=$host_alias
1188 target=$target_alias
1189
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192   if test "x$build_alias" = x; then
1193     cross_compiling=maybe
1194     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195     If a cross compiler is detected then cross compile mode will be used." >&2
1196   elif test "x$build_alias" != "x$host_alias"; then
1197     cross_compiling=yes
1198   fi
1199 fi
1200
1201 ac_tool_prefix=
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203
1204 test "$silent" = yes && exec 6>/dev/null
1205
1206
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210   { echo "$as_me: error: Working directory cannot be determined" >&2
1211    { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213   { echo "$as_me: error: pwd does not report name of working directory" >&2
1214    { (exit 1); exit 1; }; }
1215
1216
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219   ac_srcdir_defaulted=yes
1220   # Try the directory containing this script, then the parent directory.
1221   ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223          X"$0" : 'X\(//\)[^/]' \| \
1224          X"$0" : 'X\(//\)$' \| \
1225          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 echo X"$0" |
1227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228             s//\1/
1229             q
1230           }
1231           /^X\(\/\/\)[^/].*/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\/\)$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\).*/{
1240             s//\1/
1241             q
1242           }
1243           s/.*/./; q'`
1244   srcdir=$ac_confdir
1245   if test ! -r "$srcdir/$ac_unique_file"; then
1246     srcdir=..
1247   fi
1248 else
1249   ac_srcdir_defaulted=no
1250 fi
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254    { (exit 1); exit 1; }; }
1255 fi
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259    { (exit 1); exit 1; }; }
1260         pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263   srcdir=.
1264 fi
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273   eval ac_env_${ac_var}_value=\$${ac_var}
1274   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1277
1278 #
1279 # Report the --help message.
1280 #
1281 if test "$ac_init_help" = "long"; then
1282   # Omit some internal or obsolete options to make the list less imposing.
1283   # This message is too long to be a string in the A/UX 3.1 sh.
1284   cat <<_ACEOF
1285 \`configure' configures this package to adapt to many kinds of systems.
1286
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE.  See below for descriptions of some of the useful variables.
1291
1292 Defaults for the options are specified in brackets.
1293
1294 Configuration:
1295   -h, --help              display this help and exit
1296       --help=short        display options specific to this package
1297       --help=recursive    display the short help of all the included packages
1298   -V, --version           display version information and exit
1299   -q, --quiet, --silent   do not print \`checking...' messages
1300       --cache-file=FILE   cache test results in FILE [disabled]
1301   -C, --config-cache      alias for \`--cache-file=config.cache'
1302   -n, --no-create         do not create output files
1303       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304
1305 Installation directories:
1306   --prefix=PREFIX         install architecture-independent files in PREFIX
1307                           [$ac_default_prefix]
1308   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309                           [PREFIX]
1310
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1315
1316 For better control, use the options below.
1317
1318 Fine tuning of the installation directories:
1319   --bindir=DIR           user executables [EPREFIX/bin]
1320   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1321   --libexecdir=DIR       program executables [EPREFIX/libexec]
1322   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1323   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1324   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1325   --libdir=DIR           object code libraries [EPREFIX/lib]
1326   --includedir=DIR       C header files [PREFIX/include]
1327   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1328   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1329   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1330   --infodir=DIR          info documentation [DATAROOTDIR/info]
1331   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1332   --mandir=DIR           man documentation [DATAROOTDIR/man]
1333   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1334   --htmldir=DIR          html documentation [DOCDIR]
1335   --dvidir=DIR           dvi documentation [DOCDIR]
1336   --pdfdir=DIR           pdf documentation [DOCDIR]
1337   --psdir=DIR            ps documentation [DOCDIR]
1338 _ACEOF
1339
1340   cat <<\_ACEOF
1341
1342 Program names:
1343   --program-prefix=PREFIX            prepend PREFIX to installed program names
1344   --program-suffix=SUFFIX            append SUFFIX to installed program names
1345   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1346
1347 System types:
1348   --build=BUILD     configure for building on BUILD [guessed]
1349   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1350 _ACEOF
1351 fi
1352
1353 if test -n "$ac_init_help"; then
1354
1355   cat <<\_ACEOF
1356
1357 Optional Features:
1358   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1359   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1360   --enable-maintainer-mode enable make rules and dependencies not useful
1361                           (and sometimes confusing) to the casual installer
1362   --disable-dependency-tracking Speeds up one-time builds
1363   --enable-dependency-tracking  Do not reject slow dependency extractors
1364   --enable-dlmalloc=LIB Compile & use the malloc package by Doug Lea
1365   --enable-gnuregex       Compile GNUregex.  Unless you have reason to use this
1366                             option, you should not enable it.  This library file
1367                             is usually only required on Windows and very old
1368                             Unix boxes which do not have their own regex library
1369                             built in.
1370   --enable-xmalloc-statistics
1371                           Show malloc statistics in status page
1372   --enable-carp           Enable CARP support
1373   --enable-async-io=N_THREADS
1374                           Shorthand for
1375                           --with-aufs-threads=N_THREADS
1376                           --with-pthreads
1377                           --enable-storeio=ufs,aufs
1378   --enable-storeio=\"list of modules\"
1379                           Build support for the list of store I/O modules.
1380                           The default is only to build the "ufs" module.
1381                           See src/fs for a list of available modules, or
1382                           Programmers Guide section <not yet written>
1383                           for details on how to build your custom store module
1384   --enable-heap-replacement
1385                           Backwards compatibility option. Please use the
1386                           new --enable-removal-policies directive instead.
1387   --enable-removal-policies=\"list of policies\"
1388                           Build support for the list of removal policies.
1389                           The default is only to build the "lru" module.
1390                           See src/repl for a list of available modules, or
1391                           Programmers Guide section 9.9 for details on how
1392                           to build your custom policy
1393   --enable-icmp           Enable ICMP pinging
1394   --enable-delay-pools    Enable delay pools to limit bandwidth usage
1395   --enable-icap-support            Enable iCAP client capability
1396   --enable-useragent-log  Enable logging of User-Agent header
1397   --enable-referer-log    Enable logging of Referer header
1398   --disable-wccp          Disable Web Cache Coordination Protocol
1399   --enable-kill-parent-hack
1400                           Kill parent on shutdown
1401   --enable-snmp           Enable SNMP monitoring
1402   --enable-cachemgr-hostname=hostname
1403                           Make cachemgr.cgi default to this host
1404   --enable-arp-acl        Enable use of ARP ACL lists (ether address)
1405   --enable-htcp           Enable HTCP protocol
1406   --enable-ssl            Enable ssl gatewaying support using OpenSSL
1407   --enable-forw-via-db    Enable Forw/Via database
1408   --enable-cache-digests  Use Cache Digests
1409                           see http://www.squid-cache.org/FAQ/FAQ-16.html
1410   --enable-default-err-language=lang
1411                           Select default language for Error pages (see
1412                           errors directory)
1413   --enable-err-languages=\"lang1 lang2..\"
1414                           Select languages to be installed. (All will be
1415                           installed by default)
1416   --enable-poll           Enable poll() instead of select().  Normally poll
1417                           is preferred over select, but configure knows poll
1418                           is broken on some platforms.  If you think you are
1419                           smarter than the configure script, you may enable
1420                           poll with this option.
1421   --disable-poll          Disable the use of poll().
1422   --disable-http-violations
1423                           This allows you to remove code which is known to
1424                           violate the HTTP protocol specification.
1425   --enable-ipf-transparent
1426                           Enable Transparent Proxy support for systems
1427                           using IP-Filter network address redirection.
1428   --enable-pf-transparent
1429                           Enable Transparent Proxy support for systems
1430                           using PF network address redirection.
1431   --enable-linux-netfilter
1432                           Enable Transparent Proxy support for Linux 2.4.
1433   --enable-large-cache-files
1434                           Enable support for large cache files (>2GB).
1435                           WARNING: on-disk cache format is changed by this option
1436   --enable-leakfinder
1437                           Enable Leak Finding code.  Enabling this alone
1438                           does nothing; you also have to modify the source
1439                           code to use the leak finding functions.  Probably
1440                           Useful for hackers only.
1441   --disable-ident-lookups
1442                           This allows you to remove code that performs
1443                           Ident (RFC 931) lookups.
1444   --disable-internal-dns  This prevents Squid from directly sending and
1445                           receiving DNS messages, and instead enables the
1446                           old external 'dnsserver' processes.
1447   --enable-truncate       This uses truncate() instead of unlink() when
1448                           removing cache files.  Truncate gives a little
1449                           performance improvement, but may cause problems
1450                           when used with async I/O.  Truncate uses more
1451                           filesystem inodes than unlink..
1452   --disable-hostname-checks
1453                           Squid by default rejects any host names with
1454                           odd characters in their name to conform with
1455                           internet standards. If you disagree with this
1456                           you may use this switch to turn off any such
1457                           checks, provided that the resolver used by
1458                           Squid does not reject such host names.. This
1459                           may be required to participate in testbeds for
1460                           international domain names.
1461   --enable-underscores    Squid by default rejects any host names with _
1462                           in their name to conform with internet standards.
1463                           If you disagree with this you may allow _ in
1464                           hostnames by using this switch, provided that
1465                           the resolver library on the host where Squid runs
1466                           does not reject _ in hostnames...
1467   --enable-auth=\"list of auth scheme modules\"
1468                           Build support for the list of authentication schemes.
1469                           The default is to build support for the Basic scheme.
1470                           See src/auth for a list of available modules, or
1471                           Programmers Guide section authentication schemes
1472                           for details on how to build your custom auth scheme
1473                           module
1474   --enable-auth-modules=\"list of helpers\"
1475                           Backwards compatibility alias for
1476                           --enable-basic-auth-helpers
1477   --enable-basic-auth-helpers=\"list of helpers\"
1478                           This option selects which basic scheme proxy_auth
1479                           helpers to build and install as part of the normal
1480                           build process. For a list of available
1481                           helpers see the helpers/basic_auth directory.
1482   --enable-ntlm-auth-helpers=\"list of helpers\"
1483                           This option selects which proxy_auth ntlm helpers
1484                           to build and install as part of the normal build
1485                           process. For a list of available helpers see
1486                           the helpers/ntlm_auth directory.
1487   --enable-digest-auth-helpers=\"list of helpers\"
1488                           This option selects which digest scheme authentication
1489                           helpers to build and install as part of the normal build
1490                           process. For a list of available helpers see the
1491                           helpers/digest_auth directory.
1492   --enable-ntlm-fail-open Enable NTLM fail open, where a helper that fails one of the
1493                           Authentication steps can allow squid to still authenticate
1494                           the user.
1495   --enable-external-acl-helpers=\"list of helpers\"
1496                           This option selects which external_acl helpers to
1497                           build and install as part of the normal build
1498                           process. For a list of available helpers see the
1499                           helpers/external_acl directory.
1500   --disable-unlinkd       Do not use unlinkd
1501   --enable-stacktraces    Enable automatic call backtrace on fatal errors
1502   --enable-x-accelerator-vary
1503                           Enable support for the X-Accelerator-Vary
1504                           HTTP header. Can be used to indicate
1505                           variance within an accelerator setup.
1506                           Typically used together with other code
1507                           that adds custom HTTP headers to the requests.
1508
1509 Optional Packages:
1510   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512   --with-aufs-threads=N_THREADS
1513                           Tune the number of worker threads for the aufs object
1514                           store.
1515   --with-pthreads         Use POSIX Threads
1516   --with-aio              Use POSIX AIO
1517   --with-dl               Use dynamic linking
1518   --with-openssl=prefix
1519                           Compile with the OpenSSL libraries. The path to
1520                           the OpenSSL development libraries and headers
1521                           installation can be specified if outside of the
1522                           system standard directories
1523   --with-coss-membuf-size COSS membuf size (default 1048576 bytes)
1524   --with-large-files      Enable support for large files (logs etc).
1525   --with-build-environment=model
1526                           The build environment to use. Normally one of
1527                           POSIX_V6_ILP32_OFF32   32 bits
1528                           POSIX_V6_ILP32_OFFBIG  32 bits with large file support
1529                           POSIX_V6_LP64_OFF64    64 bits
1530                           POSIX_V6_LPBIG_OFFBIG  large pointers and files
1531                           XBS5_ILP32_OFF32       32 bits (legacy)
1532                           XBS5_ILP32_OFFBIG      32 bits with large file support (legacy)
1533                           XBS5_LP64_OFF64        64 bits (legacy)
1534                           XBS5_LPBIG_OFFBIG      large pointers and files (legacy)
1535                           default                The default for your OS
1536   --with-samba-sources=/path/to/samba-source-tree
1537                           Path where the correct Samba source files can be
1538                           found while building winbind helpers. (defaults to
1539                           use internal copies of the headers from Samba-2.2.7)
1540
1541   --with-maxfd=N          Override maximum number of filedescriptors. Useful
1542                           if you build as another user who is not privileged
1543                           to use the number of filedescriptors you want the
1544                           resulting binary to support
1545
1546 Some influential environment variables:
1547   CC          C compiler command
1548   CFLAGS      C compiler flags
1549   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1550               nonstandard directory <lib dir>
1551   LIBS        libraries to pass to the linker, e.g. -l<library>
1552   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553               you have headers in a nonstandard directory <include dir>
1554   CPP         C preprocessor
1555
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1558
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562
1563 if test "$ac_init_help" = "recursive"; then
1564   # If there are subdirs, report their specific --help.
1565   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566     test -d "$ac_dir" || continue
1567     ac_builddir=.
1568
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1573   # A ".." for each directory in $ac_dir_suffix.
1574   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1575   case $ac_top_builddir_sub in
1576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578   esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584
1585 case $srcdir in
1586   .)  # We are building in place.
1587     ac_srcdir=.
1588     ac_top_srcdir=$ac_top_builddir_sub
1589     ac_abs_top_srcdir=$ac_pwd ;;
1590   [\\/]* | ?:[\\/]* )  # Absolute name.
1591     ac_srcdir=$srcdir$ac_dir_suffix;
1592     ac_top_srcdir=$srcdir
1593     ac_abs_top_srcdir=$srcdir ;;
1594   *) # Relative name.
1595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596     ac_top_srcdir=$ac_top_build_prefix$srcdir
1597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601     cd "$ac_dir" || { ac_status=$?; continue; }
1602     # Check for guested configure.
1603     if test -f "$ac_srcdir/configure.gnu"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606     elif test -f "$ac_srcdir/configure"; then
1607       echo &&
1608       $SHELL "$ac_srcdir/configure" --help=recursive
1609     else
1610       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611     fi || ac_status=$?
1612     cd "$ac_pwd" || { ac_status=$?; break; }
1613   done
1614 fi
1615
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618   cat <<\_ACEOF
1619 configure
1620 generated by GNU Autoconf 2.61
1621
1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627   exit
1628 fi
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1632
1633 It was created by $as_me, which was
1634 generated by GNU Autoconf 2.61.  Invocation command line was
1635
1636   $ $0 $@
1637
1638 _ACEOF
1639 exec 5>>config.log
1640 {
1641 cat <<_ASUNAME
1642 ## --------- ##
1643 ## Platform. ##
1644 ## --------- ##
1645
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1651
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1654
1655 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1656 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1659 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1660 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1661 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1662
1663 _ASUNAME
1664
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   echo "PATH: $as_dir"
1671 done
1672 IFS=$as_save_IFS
1673
1674 } >&5
1675
1676 cat >&5 <<_ACEOF
1677
1678
1679 ## ----------- ##
1680 ## Core tests. ##
1681 ## ----------- ##
1682
1683 _ACEOF
1684
1685
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_configure_args=
1692 ac_configure_args0=
1693 ac_configure_args1=
1694 ac_must_keep_next=false
1695 for ac_pass in 1 2
1696 do
1697   for ac_arg
1698   do
1699     case $ac_arg in
1700     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702     | -silent | --silent | --silen | --sile | --sil)
1703       continue ;;
1704     *\'*)
1705       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1706     esac
1707     case $ac_pass in
1708     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1709     2)
1710       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711       if test $ac_must_keep_next = true; then
1712         ac_must_keep_next=false # Got value, back to normal.
1713       else
1714         case $ac_arg in
1715           *=* | --config-cache | -C | -disable-* | --disable-* \
1716           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718           | -with-* | --with-* | -without-* | --without-* | --x)
1719             case "$ac_configure_args0 " in
1720               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1721             esac
1722             ;;
1723           -* ) ac_must_keep_next=true ;;
1724         esac
1725       fi
1726       ac_configure_args="$ac_configure_args '$ac_arg'"
1727       ;;
1728     esac
1729   done
1730 done
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1733
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log.  We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740   # Save into config.log some information that might help in debugging.
1741   {
1742     echo
1743
1744     cat <<\_ASBOX
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1748 _ASBOX
1749     echo
1750     # The following way of writing the cache mishandles newlines in values,
1751 (
1752   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753     eval ac_val=\$$ac_var
1754     case $ac_val in #(
1755     *${as_nl}*)
1756       case $ac_var in #(
1757       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1759       esac
1760       case $ac_var in #(
1761       _ | IFS | as_nl) ;; #(
1762       *) $as_unset $ac_var ;;
1763       esac ;;
1764     esac
1765   done
1766   (set) 2>&1 |
1767     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1768     *${as_nl}ac_space=\ *)
1769       sed -n \
1770         "s/'\''/'\''\\\\'\'''\''/g;
1771           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1772       ;; #(
1773     *)
1774       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1775       ;;
1776     esac |
1777     sort
1778 )
1779     echo
1780
1781     cat <<\_ASBOX
1782 ## ----------------- ##
1783 ## Output variables. ##
1784 ## ----------------- ##
1785 _ASBOX
1786     echo
1787     for ac_var in $ac_subst_vars
1788     do
1789       eval ac_val=\$$ac_var
1790       case $ac_val in
1791       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792       esac
1793       echo "$ac_var='\''$ac_val'\''"
1794     done | sort
1795     echo
1796
1797     if test -n "$ac_subst_files"; then
1798       cat <<\_ASBOX
1799 ## ------------------- ##
1800 ## File substitutions. ##
1801 ## ------------------- ##
1802 _ASBOX
1803       echo
1804       for ac_var in $ac_subst_files
1805       do
1806         eval ac_val=\$$ac_var
1807         case $ac_val in
1808         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809         esac
1810         echo "$ac_var='\''$ac_val'\''"
1811       done | sort
1812       echo
1813     fi
1814
1815     if test -s confdefs.h; then
1816       cat <<\_ASBOX
1817 ## ----------- ##
1818 ## confdefs.h. ##
1819 ## ----------- ##
1820 _ASBOX
1821       echo
1822       cat confdefs.h
1823       echo
1824     fi
1825     test "$ac_signal" != 0 &&
1826       echo "$as_me: caught signal $ac_signal"
1827     echo "$as_me: exit $exit_status"
1828   } >&5
1829   rm -f core *.core core.conftest.* &&
1830     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1831     exit $exit_status
1832 ' 0
1833 for ac_signal in 1 2 13 15; do
1834   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 done
1836 ac_signal=0
1837
1838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1839 rm -f -r conftest* confdefs.h
1840
1841 # Predefined preprocessor variables.
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 _ACEOF
1846
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 _ACEOF
1866
1867
1868 # Let the site file select an alternate cache file if it wants to.
1869 # Prefer explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871   set x "$CONFIG_SITE"
1872 elif test "x$prefix" != xNONE; then
1873   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1874 else
1875   set x "$ac_default_prefix/share/config.site" \
1876         "$ac_default_prefix/etc/config.site"
1877 fi
1878 shift
1879 for ac_site_file
1880 do
1881   if test -r "$ac_site_file"; then
1882     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 echo "$as_me: loading site script $ac_site_file" >&6;}
1884     sed 's/^/| /' "$ac_site_file" >&5
1885     . "$ac_site_file"
1886   fi
1887 done
1888
1889 if test -r "$cache_file"; then
1890   # Some versions of bash will fail to source /dev/null (special
1891   # files actually), so we avoid doing that.
1892   if test -f "$cache_file"; then
1893     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 echo "$as_me: loading cache $cache_file" >&6;}
1895     case $cache_file in
1896       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897       *)                      . "./$cache_file";;
1898     esac
1899   fi
1900 else
1901   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 echo "$as_me: creating cache $cache_file" >&6;}
1903   >$cache_file
1904 fi
1905
1906 # Check that the precious variables saved in the cache have kept the same
1907 # value.
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911   eval ac_new_set=\$ac_env_${ac_var}_set
1912   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913   eval ac_new_val=\$ac_env_${ac_var}_value
1914   case $ac_old_set,$ac_new_set in
1915     set,)
1916       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918       ac_cache_corrupted=: ;;
1919     ,set)
1920       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1922       ac_cache_corrupted=: ;;
1923     ,);;
1924     *)
1925       if test "x$ac_old_val" != "x$ac_new_val"; then
1926         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1927 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1928         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1929 echo "$as_me:   former value:  $ac_old_val" >&2;}
1930         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1931 echo "$as_me:   current value: $ac_new_val" >&2;}
1932         ac_cache_corrupted=:
1933       fi;;
1934   esac
1935   # Pass precious variables to config.status.
1936   if test "$ac_new_set" = set; then
1937     case $ac_new_val in
1938     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1939     *) ac_arg=$ac_var=$ac_new_val ;;
1940     esac
1941     case " $ac_configure_args " in
1942       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1943       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1944     esac
1945   fi
1946 done
1947 if $ac_cache_corrupted; then
1948   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1950   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1952    { (exit 1); exit 1; }; }
1953 fi
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971 ac_ext=c
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976
1977
1978 ac_aux_dir=
1979 for ac_dir in cfgaux "$srcdir"/cfgaux; do
1980   if test -f "$ac_dir/install-sh"; then
1981     ac_aux_dir=$ac_dir
1982     ac_install_sh="$ac_aux_dir/install-sh -c"
1983     break
1984   elif test -f "$ac_dir/install.sh"; then
1985     ac_aux_dir=$ac_dir
1986     ac_install_sh="$ac_aux_dir/install.sh -c"
1987     break
1988   elif test -f "$ac_dir/shtool"; then
1989     ac_aux_dir=$ac_dir
1990     ac_install_sh="$ac_aux_dir/shtool install -c"
1991     break
1992   fi
1993 done
1994 if test -z "$ac_aux_dir"; then
1995   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&5
1996 echo "$as_me: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 # These three variables are undocumented and unsupported,
2001 # and are intended to be withdrawn in a future Autoconf release.
2002 # They can cause serious problems if a builder's source tree is in a directory
2003 # whose full name contains unusual characters.
2004 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2005 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2006 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2007
2008
2009 am__api_version="1.6"
2010 # Find a good install program.  We prefer a C program (faster),
2011 # so one script is as good as another.  But avoid the broken or
2012 # incompatible versions:
2013 # SysV /etc/install, /usr/sbin/install
2014 # SunOS /usr/etc/install
2015 # IRIX /sbin/install
2016 # AIX /bin/install
2017 # AmigaOS /C/install, which installs bootblocks on floppy discs
2018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2021 # OS/2's system install, which has a completely different semantic
2022 # ./install, which can be erroneously created by make from ./install.sh.
2023 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2024 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2025 if test -z "$INSTALL"; then
2026 if test "${ac_cv_path_install+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032   IFS=$as_save_IFS
2033   test -z "$as_dir" && as_dir=.
2034   # Account for people who put trailing slashes in PATH elements.
2035 case $as_dir/ in
2036   ./ | .// | /cC/* | \
2037   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2038   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2039   /usr/ucb/* ) ;;
2040   *)
2041     # OSF1 and SCO ODT 3.0 have their own names for install.
2042     # Don't use installbsd from OSF since it installs stuff as root
2043     # by default.
2044     for ac_prog in ginstall scoinst install; do
2045       for ac_exec_ext in '' $ac_executable_extensions; do
2046         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2047           if test $ac_prog = install &&
2048             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2049             # AIX install.  It has an incompatible calling convention.
2050             :
2051           elif test $ac_prog = install &&
2052             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2053             # program-specific install script used by HP pwplus--don't use.
2054             :
2055           else
2056             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2057             break 3
2058           fi
2059         fi
2060       done
2061     done
2062     ;;
2063 esac
2064 done
2065 IFS=$as_save_IFS
2066
2067
2068 fi
2069   if test "${ac_cv_path_install+set}" = set; then
2070     INSTALL=$ac_cv_path_install
2071   else
2072     # As a last resort, use the slow shell script.  Don't cache a
2073     # value for INSTALL within a source directory, because that will
2074     # break other packages using the cache if that directory is
2075     # removed, or if the value is a relative name.
2076     INSTALL=$ac_install_sh
2077   fi
2078 fi
2079 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2080 echo "${ECHO_T}$INSTALL" >&6; }
2081
2082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2083 # It thinks the first close brace ends the variable substitution.
2084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2085
2086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2087
2088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2089
2090 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2091 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2092 # Just in case
2093 sleep 1
2094 echo timestamp > conftest.file
2095 # Do `set' in a subshell so we don't clobber the current shell's
2096 # arguments.  Must try -L first in case configure is actually a
2097 # symlink; some systems play weird games with the mod time of symlinks
2098 # (eg FreeBSD returns the mod time of the symlink's containing
2099 # directory).
2100 if (
2101    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2102    if test "$*" = "X"; then
2103       # -L didn't work.
2104       set X `ls -t $srcdir/configure conftest.file`
2105    fi
2106    rm -f conftest.file
2107    if test "$*" != "X $srcdir/configure conftest.file" \
2108       && test "$*" != "X conftest.file $srcdir/configure"; then
2109
2110       # If neither matched, then we have a broken ls.  This can happen
2111       # if, for instance, CONFIG_SHELL is bash and it inherits a
2112       # broken ls alias from the environment.  This has actually
2113       # happened.  Such a system could not be considered "sane".
2114       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2115 alias in your environment" >&5
2116 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2117 alias in your environment" >&2;}
2118    { (exit 1); exit 1; }; }
2119    fi
2120
2121    test "$2" = conftest.file
2122    )
2123 then
2124    # Ok.
2125    :
2126 else
2127    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2128 Check your system clock" >&5
2129 echo "$as_me: error: newly created file is older than distributed files!
2130 Check your system clock" >&2;}
2131    { (exit 1); exit 1; }; }
2132 fi
2133 { echo "$as_me:$LINENO: result: yes" >&5
2134 echo "${ECHO_T}yes" >&6; }
2135 test "$program_prefix" != NONE &&
2136   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2137 # Use a double $ so make ignores it.
2138 test "$program_suffix" != NONE &&
2139   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2140 # Double any \ or $.  echo might interpret backslashes.
2141 # By default was `s,x,x', remove it if useless.
2142 cat <<\_ACEOF >conftest.sed
2143 s/[\\$]/&&/g;s/;s,x,x,$//
2144 _ACEOF
2145 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2146 rm -f conftest.sed
2147
2148
2149 # expand $ac_aux_dir to an absolute path
2150 am_aux_dir=`cd $ac_aux_dir && pwd`
2151
2152 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2153 # Use eval to expand $SHELL
2154 if eval "$MISSING --run true"; then
2155   am_missing_run="$MISSING --run "
2156 else
2157   am_missing_run=
2158   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2159 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2160 fi
2161
2162 for ac_prog in gawk mawk nawk awk
2163 do
2164   # Extract the first word of "$ac_prog", so it can be a program name with args.
2165 set dummy $ac_prog; ac_word=$2
2166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168 if test "${ac_cv_prog_AWK+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   if test -n "$AWK"; then
2172   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177   IFS=$as_save_IFS
2178   test -z "$as_dir" && as_dir=.
2179   for ac_exec_ext in '' $ac_executable_extensions; do
2180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181     ac_cv_prog_AWK="$ac_prog"
2182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183     break 2
2184   fi
2185 done
2186 done
2187 IFS=$as_save_IFS
2188
2189 fi
2190 fi
2191 AWK=$ac_cv_prog_AWK
2192 if test -n "$AWK"; then
2193   { echo "$as_me:$LINENO: result: $AWK" >&5
2194 echo "${ECHO_T}$AWK" >&6; }
2195 else
2196   { echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6; }
2198 fi
2199
2200
2201   test -n "$AWK" && break
2202 done
2203
2204 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2205 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2206 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2207 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   cat >conftest.make <<\_ACEOF
2211 SHELL = /bin/sh
2212 all:
2213         @echo '@@@%%%=$(MAKE)=@@@%%%'
2214 _ACEOF
2215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2216 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2217   *@@@%%%=?*=@@@%%%*)
2218     eval ac_cv_prog_make_${ac_make}_set=yes;;
2219   *)
2220     eval ac_cv_prog_make_${ac_make}_set=no;;
2221 esac
2222 rm -f conftest.make
2223 fi
2224 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2225   { echo "$as_me:$LINENO: result: yes" >&5
2226 echo "${ECHO_T}yes" >&6; }
2227   SET_MAKE=
2228 else
2229   { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2231   SET_MAKE="MAKE=${MAKE-make}"
2232 fi
2233
2234  # test to see if srcdir already configured
2235 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2236    test -f $srcdir/config.status; then
2237   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2238 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2239    { (exit 1); exit 1; }; }
2240 fi
2241
2242 # Define the identity of the package.
2243  PACKAGE=squid
2244  VERSION=2.5.STABLE10
2245
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE "$PACKAGE"
2249 _ACEOF
2250
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define VERSION "$VERSION"
2254 _ACEOF
2255
2256 # Some tools Automake needs.
2257
2258 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2259
2260
2261 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2262
2263
2264 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2265
2266
2267 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2268
2269
2270 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2271
2272
2273 AMTAR=${AMTAR-"${am_missing_run}tar"}
2274
2275 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2276
2277 # Installed binaries are usually stripped using `strip' when the user
2278 # run `make install-strip'.  However `strip' might not be the right
2279 # tool to use in cross-compilation environments, therefore Automake
2280 # will honor the `STRIP' environment variable to overrule this program.
2281 if test "$cross_compiling" != no; then
2282   if test -n "$ac_tool_prefix"; then
2283   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}strip; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_STRIP+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$STRIP"; then
2291   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309 fi
2310 STRIP=$ac_cv_prog_STRIP
2311 if test -n "$STRIP"; then
2312   { echo "$as_me:$LINENO: result: $STRIP" >&5
2313 echo "${ECHO_T}$STRIP" >&6; }
2314 else
2315   { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2317 fi
2318
2319
2320 fi
2321 if test -z "$ac_cv_prog_STRIP"; then
2322   ac_ct_STRIP=$STRIP
2323   # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$ac_ct_STRIP"; then
2331   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_ac_ct_STRIP="strip"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2351 if test -n "$ac_ct_STRIP"; then
2352   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2353 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359   if test "x$ac_ct_STRIP" = x; then
2360     STRIP=":"
2361   else
2362     case $cross_compiling:$ac_tool_warned in
2363 yes:)
2364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet.  If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&5
2367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet.  If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2370 ac_tool_warned=yes ;;
2371 esac
2372     STRIP=$ac_ct_STRIP
2373   fi
2374 else
2375   STRIP="$ac_cv_prog_STRIP"
2376 fi
2377
2378 fi
2379 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2380
2381 # We need awk for the "check" target.  The system "awk" is bad on
2382 # some platforms.
2383
2384
2385
2386 # Add the stamp file to the list of files AC keeps track of,
2387 # along with our hook.
2388 ac_config_headers="$ac_config_headers include/autoconf.h"
2389
2390
2391
2392
2393 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2394 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2395     # Check whether --enable-maintainer-mode was given.
2396 if test "${enable_maintainer_mode+set}" = set; then
2397   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2398 else
2399   USE_MAINTAINER_MODE=no
2400 fi
2401
2402   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2403 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2404
2405
2406 if test $USE_MAINTAINER_MODE = yes; then
2407   MAINTAINER_MODE_TRUE=
2408   MAINTAINER_MODE_FALSE='#'
2409 else
2410   MAINTAINER_MODE_TRUE='#'
2411   MAINTAINER_MODE_FALSE=
2412 fi
2413
2414   MAINT=$MAINTAINER_MODE_TRUE
2415
2416
2417
2418 if test -z "$LDFLAGS"; then
2419         LDFLAGS="-g"
2420 fi
2421
2422 PRESET_CFLAGS="$CFLAGS"
2423
2424 ac_ext=c
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 if test -n "$ac_tool_prefix"; then
2430   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$CC"; then
2438   ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453 IFS=$as_save_IFS
2454
2455 fi
2456 fi
2457 CC=$ac_cv_prog_CC
2458 if test -n "$CC"; then
2459   { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2461 else
2462   { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2464 fi
2465
2466
2467 fi
2468 if test -z "$ac_cv_prog_CC"; then
2469   ac_ct_CC=$CC
2470   # Extract the first word of "gcc", so it can be a program name with args.
2471 set dummy gcc; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   if test -n "$ac_ct_CC"; then
2478   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483   IFS=$as_save_IFS
2484   test -z "$as_dir" && as_dir=.
2485   for ac_exec_ext in '' $ac_executable_extensions; do
2486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487     ac_cv_prog_ac_ct_CC="gcc"
2488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489     break 2
2490   fi
2491 done
2492 done
2493 IFS=$as_save_IFS
2494
2495 fi
2496 fi
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2501 else
2502   { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2504 fi
2505
2506   if test "x$ac_ct_CC" = x; then
2507     CC=""
2508   else
2509     case $cross_compiling:$ac_tool_warned in
2510 yes:)
2511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2512 whose name does not start with the host triplet.  If you think this
2513 configuration is useful to you, please write to autoconf@gnu.org." >&5
2514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet.  If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2517 ac_tool_warned=yes ;;
2518 esac
2519     CC=$ac_ct_CC
2520   fi
2521 else
2522   CC="$ac_cv_prog_CC"
2523 fi
2524
2525 if test -z "$CC"; then
2526           if test -n "$ac_tool_prefix"; then
2527     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}cc; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   if test -n "$CC"; then
2535   ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540   IFS=$as_save_IFS
2541   test -z "$as_dir" && as_dir=.
2542   for ac_exec_ext in '' $ac_executable_extensions; do
2543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544     ac_cv_prog_CC="${ac_tool_prefix}cc"
2545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546     break 2
2547   fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556   { echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6; }
2558 else
2559   { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2561 fi
2562
2563
2564   fi
2565 fi
2566 if test -z "$CC"; then
2567   # Extract the first word of "cc", so it can be a program name with args.
2568 set dummy cc; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   if test -n "$CC"; then
2575   ac_cv_prog_CC="$CC" # Let the user override the test.
2576 else
2577   ac_prog_rejected=no
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581   IFS=$as_save_IFS
2582   test -z "$as_dir" && as_dir=.
2583   for ac_exec_ext in '' $ac_executable_extensions; do
2584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586        ac_prog_rejected=yes
2587        continue
2588      fi
2589     ac_cv_prog_CC="cc"
2590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591     break 2
2592   fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 if test $ac_prog_rejected = yes; then
2598   # We found a bogon in the path, so make sure we never use it.
2599   set dummy $ac_cv_prog_CC
2600   shift
2601   if test $# != 0; then
2602     # We chose a different compiler from the bogus one.
2603     # However, it has the same basename, so the bogon will be chosen
2604     # first if we set CC to just the basename; use the full file name.
2605     shift
2606     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2607   fi
2608 fi
2609 fi
2610 fi
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613   { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2615 else
2616   { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2618 fi
2619
2620
2621 fi
2622 if test -z "$CC"; then
2623   if test -n "$ac_tool_prefix"; then
2624   for ac_prog in cl.exe
2625   do
2626     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   if test -n "$CC"; then
2634   ac_cv_prog_CC="$CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641   for ac_exec_ext in '' $ac_executable_extensions; do
2642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645     break 2
2646   fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 CC=$ac_cv_prog_CC
2654 if test -n "$CC"; then
2655   { echo "$as_me:$LINENO: result: $CC" >&5
2656 echo "${ECHO_T}$CC" >&6; }
2657 else
2658   { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2660 fi
2661
2662
2663     test -n "$CC" && break
2664   done
2665 fi
2666 if test -z "$CC"; then
2667   ac_ct_CC=$CC
2668   for ac_prog in cl.exe
2669 do
2670   # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   if test -n "$ac_ct_CC"; then
2678   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685   for ac_exec_ext in '' $ac_executable_extensions; do
2686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687     ac_cv_prog_ac_ct_CC="$ac_prog"
2688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692 done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6; }
2701 else
2702   { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2704 fi
2705
2706
2707   test -n "$ac_ct_CC" && break
2708 done
2709
2710   if test "x$ac_ct_CC" = x; then
2711     CC=""
2712   else
2713     case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet.  If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&5
2718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet.  If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723     CC=$ac_ct_CC
2724   fi
2725 fi
2726
2727 fi
2728
2729
2730 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details." >&2;}
2734    { (exit 1); exit 1; }; }
2735
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO: checking for C compiler version" >&5
2738 ac_compiler=`set X $ac_compile; echo $2`
2739 { (ac_try="$ac_compiler --version >&5"
2740 case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_compiler --version >&5") 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }
2749 { (ac_try="$ac_compiler -v >&5"
2750 case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755   (eval "$ac_compiler -v >&5") 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }
2759 { (ac_try="$ac_compiler -V >&5"
2760 case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765   (eval "$ac_compiler -V >&5") 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }
2769
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h.  */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h.  */
2776
2777 int
2778 main ()
2779 {
2780
2781   ;
2782   return 0;
2783 }
2784 _ACEOF
2785 ac_clean_files_save=$ac_clean_files
2786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2787 # Try to create an executable without -o first, disregard a.out.
2788 # It will help us diagnose broken compilers, and finding out an intuition
2789 # of exeext.
2790 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2793 #
2794 # List of possible output files, starting from the most likely.
2795 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2796 # only as a last resort.  b.out is created by i960 compilers.
2797 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2798 #
2799 # The IRIX 6 linker writes into existing files which may not be
2800 # executable, retaining their permissions.  Remove them first so a
2801 # subsequent execution test works.
2802 ac_rmfiles=
2803 for ac_file in $ac_files
2804 do
2805   case $ac_file in
2806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2807     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2808   esac
2809 done
2810 rm -f $ac_rmfiles
2811
2812 if { (ac_try="$ac_link_default"
2813 case "(($ac_try" in
2814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815   *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818   (eval "$ac_link_default") 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; then
2822   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2825 # so that the user can short-circuit this test for compilers unknown to
2826 # Autoconf.
2827 for ac_file in $ac_files ''
2828 do
2829   test -f "$ac_file" || continue
2830   case $ac_file in
2831     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2832         ;;
2833     [ab].out )
2834         # We found the default executable, but exeext='' is most
2835         # certainly right.
2836         break;;
2837     *.* )
2838         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839         then :; else
2840            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841         fi
2842         # We set ac_cv_exeext here because the later test for it is not
2843         # safe: cross compilers may not add the suffix if given an `-o'
2844         # argument, so we may need to know it at that point already.
2845         # Even if this section looks crufty: it has the advantage of
2846         # actually working.
2847         break;;
2848     * )
2849         break;;
2850   esac
2851 done
2852 test "$ac_cv_exeext" = no && ac_cv_exeext=
2853
2854 else
2855   ac_file=''
2856 fi
2857
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2860 if test -z "$ac_file"; then
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868    { (exit 77); exit 77; }; }
2869 fi
2870
2871 ac_exeext=$ac_cv_exeext
2872
2873 # Check that the compiler produces executables we can run.  If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2876 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2877 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2878 # If not cross compiling, check that we can run a simple program.
2879 if test "$cross_compiling" != yes; then
2880   if { ac_try='./$ac_file'
2881   { (case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886   (eval "$ac_try") 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; }; then
2890     cross_compiling=no
2891   else
2892     if test "$cross_compiling" = maybe; then
2893         cross_compiling=yes
2894     else
2895         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: cannot run C compiled programs.
2899 If you meant to cross compile, use \`--host'.
2900 See \`config.log' for more details." >&2;}
2901    { (exit 1); exit 1; }; }
2902     fi
2903   fi
2904 fi
2905 { echo "$as_me:$LINENO: result: yes" >&5
2906 echo "${ECHO_T}yes" >&6; }
2907
2908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2909 ac_clean_files=$ac_clean_files_save
2910 # Check that the compiler produces executables we can run.  If not, either
2911 # the compiler is broken, or we cross compile.
2912 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2914 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2915 echo "${ECHO_T}$cross_compiling" >&6; }
2916
2917 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2919 if { (ac_try="$ac_link"
2920 case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925   (eval "$ac_link") 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); }; then
2929   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2931 # work properly (i.e., refer to `conftest.exe'), while it won't with
2932 # `rm'.
2933 for ac_file in conftest.exe conftest conftest.*; do
2934   test -f "$ac_file" || continue
2935   case $ac_file in
2936     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2937     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938           break;;
2939     * ) break;;
2940   esac
2941 done
2942 else
2943   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&2;}
2947    { (exit 1); exit 1; }; }
2948 fi
2949
2950 rm -f conftest$ac_cv_exeext
2951 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2952 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2953
2954 rm -f conftest.$ac_ext
2955 EXEEXT=$ac_cv_exeext
2956 ac_exeext=$EXEEXT
2957 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2958 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2959 if test "${ac_cv_objext+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h.  */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h.  */
2968
2969 int
2970 main ()
2971 {
2972
2973   ;
2974   return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.o conftest.obj
2978 if { (ac_try="$ac_compile"
2979 case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984   (eval "$ac_compile") 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; then
2988   for ac_file in conftest.o conftest.obj conftest.*; do
2989   test -f "$ac_file" || continue;
2990   case $ac_file in
2991     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2992     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2993        break;;
2994   esac
2995 done
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&2;}
3004    { (exit 1); exit 1; }; }
3005 fi
3006
3007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3008 fi
3009 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3010 echo "${ECHO_T}$ac_cv_objext" >&6; }
3011 OBJEXT=$ac_cv_objext
3012 ac_objext=$OBJEXT
3013 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3014 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3015 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024
3025 int
3026 main ()
3027 {
3028 #ifndef __GNUC__
3029        choke me
3030 #endif
3031
3032   ;
3033   return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3038 case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_compile") 2>conftest.er1
3044   ac_status=$?
3045   grep -v '^ *+' conftest.er1 >conftest.err
3046   rm -f conftest.er1
3047   cat conftest.err >&5
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } && {
3050          test -z "$ac_c_werror_flag" ||
3051          test ! -s conftest.err
3052        } && test -s conftest.$ac_objext; then
3053   ac_compiler_gnu=yes
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058         ac_compiler_gnu=no
3059 fi
3060
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3063
3064 fi
3065 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067 GCC=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_g+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   ac_save_c_werror_flag=$ac_c_werror_flag
3076    ac_c_werror_flag=yes
3077    ac_cv_prog_cc_g=no
3078    CFLAGS="-g"
3079    cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compile") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } && {
3108          test -z "$ac_c_werror_flag" ||
3109          test ! -s conftest.err
3110        } && test -s conftest.$ac_objext; then
3111   ac_cv_prog_cc_g=yes
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116         CFLAGS=""
3117       cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } && {
3146          test -z "$ac_c_werror_flag" ||
3147          test ! -s conftest.err
3148        } && test -s conftest.$ac_objext; then
3149   :
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154         ac_c_werror_flag=$ac_save_c_werror_flag
3155          CFLAGS="-g"
3156          cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162
3163 int
3164 main ()
3165 {
3166
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3173 case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_compile") 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } && {
3185          test -z "$ac_c_werror_flag" ||
3186          test ! -s conftest.err
3187        } && test -s conftest.$ac_objext; then
3188   ac_cv_prog_cc_g=yes
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203    ac_c_werror_flag=$ac_save_c_werror_flag
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208   CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210   if test "$GCC" = yes; then
3211     CFLAGS="-g -O2"
3212   else
3213     CFLAGS="-g"
3214   fi
3215 else
3216   if test "$GCC" = yes; then
3217     CFLAGS="-O2"
3218   else
3219     CFLAGS=
3220   fi
3221 fi
3222 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then
3225   echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227   ac_cv_prog_cc_c89=no
3228 ac_save_CC=$CC
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #include <stdarg.h>
3236 #include <stdio.h>
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3243      char **p;
3244      int i;
3245 {
3246   return p[i];
3247 }
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3249 {
3250   char *s;
3251   va_list v;
3252   va_start (v,p);
3253   s = g (p, va_arg (v,int));
3254   va_end (v);
3255   return s;
3256 }
3257
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3259    function prototypes and stuff, but not '\xHH' hex character constants.
3260    These don't provoke an error unfortunately, instead are silently treated
3261    as 'x'.  The following induces an error, until -std is added to get
3262    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3263    array size at least.  It's necessary to write '\x00'==0 to get something
3264    that's true only with -std.  */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268    inside strings and character constants.  */
3269 #define FOO(x) 'x'
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 int argc;
3277 char **argv;
3278 int
3279 main ()
3280 {
3281 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 do
3289   CC="$ac_save_CC $ac_arg"
3290   rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_compile") 2>conftest.er1
3298   ac_status=$?
3299   grep -v '^ *+' conftest.er1 >conftest.err
3300   rm -f conftest.er1
3301   cat conftest.err >&5
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } && {
3304          test -z "$ac_c_werror_flag" ||
3305          test ! -s conftest.err
3306        } && test -s conftest.$ac_objext; then
3307   ac_cv_prog_cc_c89=$ac_arg
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312
3313 fi
3314
3315 rm -f core conftest.err conftest.$ac_objext
3316   test "x$ac_cv_prog_cc_c89" != "xno" && break
3317 done
3318 rm -f conftest.$ac_ext
3319 CC=$ac_save_CC
3320
3321 fi
3322 # AC_CACHE_VAL
3323 case "x$ac_cv_prog_cc_c89" in
3324   x)
3325     { echo "$as_me:$LINENO: result: none needed" >&5
3326 echo "${ECHO_T}none needed" >&6; } ;;
3327   xno)
3328     { echo "$as_me:$LINENO: result: unsupported" >&5
3329 echo "${ECHO_T}unsupported" >&6; } ;;
3330   *)
3331     CC="$CC $ac_cv_prog_cc_c89"
3332     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3334 esac
3335
3336
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 rm -f .deps 2>/dev/null
3343 mkdir .deps 2>/dev/null
3344 if test -d .deps; then
3345   DEPDIR=.deps
3346 else
3347   # MS-DOS does not allow filenames that begin with a dot.
3348   DEPDIR=_deps
3349 fi
3350 rmdir .deps 2>/dev/null
3351
3352
3353 ac_config_commands="$ac_config_commands depfiles"
3354
3355
3356 am_make=${MAKE-make}
3357 cat > confinc << 'END'
3358 doit:
3359         @echo done
3360 END
3361 # If we don't find an include directive, just comment out the code.
3362 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3363 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3364 am__include="#"
3365 am__quote=
3366 _am_result=none
3367 # First try GNU make style include.
3368 echo "include confinc" > confmf
3369 # We grep out `Entering directory' and `Leaving directory'
3370 # messages which can occur if `w' ends up in MAKEFLAGS.
3371 # In particular we don't look at `^make:' because GNU make might
3372 # be invoked under some other name (usually "gmake"), in which
3373 # case it prints its new name instead of `make'.
3374 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3375    am__include=include
3376    am__quote=
3377    _am_result=GNU
3378 fi
3379 # Now try BSD make style include.
3380 if test "$am__include" = "#"; then
3381    echo '.include "confinc"' > confmf
3382    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3383       am__include=.include
3384       am__quote="\""
3385       _am_result=BSD
3386    fi
3387 fi
3388
3389
3390 { echo "$as_me:$LINENO: result: $_am_result" >&5
3391 echo "${ECHO_T}$_am_result" >&6; }
3392 rm -f confinc confmf
3393
3394 # Check whether --enable-dependency-tracking was given.
3395 if test "${enable_dependency_tracking+set}" = set; then
3396   enableval=$enable_dependency_tracking;
3397 fi
3398
3399 if test "x$enable_dependency_tracking" != xno; then
3400   am_depcomp="$ac_aux_dir/depcomp"
3401   AMDEPBACKSLASH='\'
3402 fi
3403
3404
3405 if test "x$enable_dependency_tracking" != xno; then
3406   AMDEP_TRUE=
3407   AMDEP_FALSE='#'
3408 else
3409   AMDEP_TRUE='#'
3410   AMDEP_FALSE=
3411 fi
3412
3413
3414
3415
3416 depcc="$CC"   am_compiler_list=
3417
3418 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3419 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3420 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3424   # We make a subdir and do the tests there.  Otherwise we can end up
3425   # making bogus files that we don't know about and never remove.  For
3426   # instance it was reported that on HP-UX the gcc test will end up
3427   # making a dummy file named `D' -- because `-MD' means `put the output
3428   # in D'.
3429   mkdir conftest.dir
3430   # Copy depcomp to subdir because otherwise we won't find it if we're
3431   # using a relative directory.
3432   cp "$am_depcomp" conftest.dir
3433   cd conftest.dir
3434
3435   am_cv_CC_dependencies_compiler_type=none
3436   if test "$am_compiler_list" = ""; then
3437      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3438   fi
3439   for depmode in $am_compiler_list; do
3440     # We need to recreate these files for each test, as the compiler may
3441     # overwrite some of them when testing with obscure command lines.
3442     # This happens at least with the AIX C compiler.
3443     echo '#include "conftest.h"' > conftest.c
3444     echo 'int i;' > conftest.h
3445     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3446
3447     case $depmode in
3448     nosideeffect)
3449       # after this tag, mechanisms are not by side-effect, so they'll
3450       # only be used when explicitly requested
3451       if test "x$enable_dependency_tracking" = xyes; then
3452         continue
3453       else
3454         break
3455       fi
3456       ;;
3457     none) break ;;
3458     esac
3459     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3460     # mode.  It turns out that the SunPro C++ compiler does not properly
3461     # handle `-M -o', and we need to detect this.
3462     if depmode=$depmode \
3463        source=conftest.c object=conftest.o \
3464        depfile=conftest.Po tmpdepfile=conftest.TPo \
3465        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3466        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3467        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3468       am_cv_CC_dependencies_compiler_type=$depmode
3469       break
3470     fi
3471   done
3472
3473   cd ..
3474   rm -rf conftest.dir
3475 else
3476   am_cv_CC_dependencies_compiler_type=none
3477 fi
3478
3479 fi
3480 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3481 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3482 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3483
3484
3485 if test "x$CC" != xcc; then
3486   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3487 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3488 else
3489   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3490 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3491 fi
3492 set dummy $CC; ac_cc=`echo $2 |
3493                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3494 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 # Make sure it works both with $CC and with simple cc.
3513 # We do the test twice because some compilers refuse to overwrite an
3514 # existing .o file with -o, though they will create one.
3515 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3516 rm -f conftest2.*
3517 if { (case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522   (eval "$ac_try") 2>&5
3523   ac_status=$?
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } &&
3526    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_try") 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); };
3535 then
3536   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3537   if test "x$CC" != xcc; then
3538     # Test first that cc exists at all.
3539     if { ac_try='cc -c conftest.$ac_ext >&5'
3540   { (case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_try") 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; }; then
3549       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3550       rm -f conftest2.*
3551       if { (case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556   (eval "$ac_try") 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } &&
3560          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_try") 2>&5
3566   ac_status=$?
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); };
3569       then
3570         # cc works too.
3571         :
3572       else
3573         # cc exists but doesn't like -o.
3574         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3575       fi
3576     fi
3577   fi
3578 else
3579   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3580 fi
3581 rm -f core conftest*
3582
3583 fi
3584 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3585   { echo "$as_me:$LINENO: result: yes" >&5
3586 echo "${ECHO_T}yes" >&6; }
3587 else
3588   { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3590
3591 cat >>confdefs.h <<\_ACEOF
3592 #define NO_MINUS_C_MINUS_O 1
3593 _ACEOF
3594
3595 fi
3596
3597 # FIXME: we rely on the cache variable name because
3598 # there is no other way.
3599 set dummy $CC
3600 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3601 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3602    # Losing compiler, so override with the script.
3603    # FIXME: It is wrong to rewrite CC.
3604    # But if we don't then we get into trouble of one sort or another.
3605    # A longer-term fix would be to have automake use am__CC in this case,
3606    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3607    CC="$am_aux_dir/compile $CC"
3608 fi
3609
3610 # Make sure we can run config.sub.
3611 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3612   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3613 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3614    { (exit 1); exit 1; }; }
3615
3616 { echo "$as_me:$LINENO: checking build system type" >&5
3617 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3618 if test "${ac_cv_build+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   ac_build_alias=$build_alias
3622 test "x$ac_build_alias" = x &&
3623   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3624 test "x$ac_build_alias" = x &&
3625   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3627    { (exit 1); exit 1; }; }
3628 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3629   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3630 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3631    { (exit 1); exit 1; }; }
3632
3633 fi
3634 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3635 echo "${ECHO_T}$ac_cv_build" >&6; }
3636 case $ac_cv_build in
3637 *-*-*) ;;
3638 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3639 echo "$as_me: error: invalid value of canonical build" >&2;}
3640    { (exit 1); exit 1; }; };;
3641 esac
3642 build=$ac_cv_build
3643 ac_save_IFS=$IFS; IFS='-'
3644 set x $ac_cv_build
3645 shift
3646 build_cpu=$1
3647 build_vendor=$2
3648 shift; shift
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3651 build_os=$*
3652 IFS=$ac_save_IFS
3653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3654
3655
3656 { echo "$as_me:$LINENO: checking host system type" >&5
3657 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3658 if test "${ac_cv_host+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   if test "x$host_alias" = x; then
3662   ac_cv_host=$ac_cv_build
3663 else
3664   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3665     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3666 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3667    { (exit 1); exit 1; }; }
3668 fi
3669
3670 fi
3671 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3672 echo "${ECHO_T}$ac_cv_host" >&6; }
3673 case $ac_cv_host in
3674 *-*-*) ;;
3675 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3676 echo "$as_me: error: invalid value of canonical host" >&2;}
3677    { (exit 1); exit 1; }; };;
3678 esac
3679 host=$ac_cv_host
3680 ac_save_IFS=$IFS; IFS='-'
3681 set x $ac_cv_host
3682 shift
3683 host_cpu=$1
3684 host_vendor=$2
3685 shift; shift
3686 # Remember, the first character of IFS is used to create $*,
3687 # except with old shells:
3688 host_os=$*
3689 IFS=$ac_save_IFS
3690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3691
3692
3693
3694
3695 CRYPTLIB=''
3696 REGEXLIB=''     # -lregex
3697 LIBREGEX=''     # libregex.a
3698
3699 # Extract the first word of "pkg-config", so it can be a program name with args.
3700 set dummy pkg-config; ac_word=$2
3701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3703 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   case $PKGCONFIG in
3707   [\\/]* | ?:[\\/]*)
3708   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3709   ;;
3710   *)
3711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for ac_exec_ext in '' $ac_executable_extensions; do
3717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720     break 2
3721   fi
3722 done
3723 done
3724 IFS=$as_save_IFS
3725
3726   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="false"
3727   ;;
3728 esac
3729 fi
3730 PKGCONFIG=$ac_cv_path_PKGCONFIG
3731 if test -n "$PKGCONFIG"; then
3732   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3733 echo "${ECHO_T}$PKGCONFIG" >&6; }
3734 else
3735   { echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6; }
3737 fi
3738
3739
3740
3741
3742
3743
3744
3745 ac_ext=c
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3754   CPP=
3755 fi
3756 if test -z "$CPP"; then
3757   if test "${ac_cv_prog_CPP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760       # Double quotes because CPP needs to be expanded
3761     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762     do
3763       ac_preproc_ok=false
3764 for ac_c_preproc_warn_flag in '' yes
3765 do
3766   # Use a header file that comes with gcc, so configuring glibc
3767   # with a fresh cross-compiler works.
3768   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769   # <limits.h> exists even on freestanding compilers.
3770   # On the NeXT, cc -E runs the code through the compiler's parser,
3771   # not just through cpp. "Syntax error" is here to catch this case.
3772   cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h.  */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h.  */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783                      Syntax error
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792   ac_status=$?
3793   grep -v '^ *+' conftest.er1 >conftest.err
3794   rm -f conftest.er1
3795   cat conftest.err >&5
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } >/dev/null && {
3798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799          test ! -s conftest.err
3800        }; then
3801   :
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806   # Broken: fails on valid input.
3807 continue
3808 fi
3809
3810 rm -f conftest.err conftest.$ac_ext
3811
3812   # OK, works on sane cases.  Now check whether nonexistent headers
3813   # can be detected and how.
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } >/dev/null && {
3835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836          test ! -s conftest.err
3837        }; then
3838   # Broken: success on invalid input.
3839 continue
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844   # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3847 fi
3848
3849 rm -f conftest.err conftest.$ac_ext
3850
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3855   break
3856 fi
3857
3858     done
3859     ac_cv_prog_CPP=$CPP
3860
3861 fi
3862   CPP=$ac_cv_prog_CPP
3863 else
3864   ac_cv_prog_CPP=$CPP
3865 fi
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871   # Use a header file that comes with gcc, so configuring glibc
3872   # with a fresh cross-compiler works.
3873   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874   # <limits.h> exists even on freestanding compilers.
3875   # On the NeXT, cc -E runs the code through the compiler's parser,
3876   # not just through cpp. "Syntax error" is here to catch this case.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883 #ifdef __STDC__
3884 # include <limits.h>
3885 #else
3886 # include <assert.h>
3887 #endif
3888                      Syntax error
3889 _ACEOF
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } >/dev/null && {
3903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        }; then
3906   :
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911   # Broken: fails on valid input.
3912 continue
3913 fi
3914
3915 rm -f conftest.err conftest.$ac_ext
3916
3917   # OK, works on sane cases.  Now check whether nonexistent headers
3918   # can be detected and how.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <ac_nonexistent.h>
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } >/dev/null && {
3940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941          test ! -s conftest.err
3942        }; then
3943   # Broken: success on invalid input.
3944 continue
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949   # Passes both tests.
3950 ac_preproc_ok=:
3951 break
3952 fi
3953
3954 rm -f conftest.err conftest.$ac_ext
3955
3956 done
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3960   :
3961 else
3962   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966    { (exit 1); exit 1; }; }
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_prog in grep ggrep; do
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998     # Check for GNU ac_path_GREP and select it if it is found.
3999   # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4001 *GNU*)
4002   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4003 *)
4004   ac_count=0
4005   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006   while :
4007   do
4008     cat "conftest.in" "conftest.in" >"conftest.tmp"
4009     mv "conftest.tmp" "conftest.in"
4010     cp "conftest.in" "conftest.nl"
4011     echo 'GREP' >> "conftest.nl"
4012     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014     ac_count=`expr $ac_count + 1`
4015     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016       # Best one so far, save it but keep looking for a better one
4017       ac_cv_path_GREP="$ac_path_GREP"
4018       ac_path_GREP_max=$ac_count
4019     fi
4020     # 10*(2^10) chars as input seems more than enough
4021     test $ac_count -gt 10 && break
4022   done
4023   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024 esac
4025
4026
4027     $ac_path_GREP_found && break 3
4028   done
4029 done
4030
4031 done
4032 IFS=$as_save_IFS
4033
4034
4035 fi
4036
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041    { (exit 1); exit 1; }; }
4042 fi
4043
4044 else
4045   ac_cv_path_GREP=$GREP
4046 fi
4047
4048
4049 fi
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052  GREP="$ac_cv_path_GREP"
4053
4054
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061    then ac_cv_path_EGREP="$GREP -E"
4062    else
4063      # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_prog in egrep; do
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080     # Check for GNU ac_path_EGREP and select it if it is found.
4081   # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4083 *GNU*)
4084   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085 *)
4086   ac_count=0
4087   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4088   while :
4089   do
4090     cat "conftest.in" "conftest.in" >"conftest.tmp"
4091     mv "conftest.tmp" "conftest.in"
4092     cp "conftest.in" "conftest.nl"
4093     echo 'EGREP' >> "conftest.nl"
4094     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096     ac_count=`expr $ac_count + 1`
4097     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098       # Best one so far, save it but keep looking for a better one
4099       ac_cv_path_EGREP="$ac_path_EGREP"
4100       ac_path_EGREP_max=$ac_count
4101     fi
4102     # 10*(2^10) chars as input seems more than enough
4103     test $ac_count -gt 10 && break
4104   done
4105   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 esac
4107
4108
4109     $ac_path_EGREP_found && break 3
4110   done
4111 done
4112
4113 done
4114 IFS=$as_save_IFS
4115
4116
4117 fi
4118
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123    { (exit 1); exit 1; }; }
4124 fi
4125
4126 else
4127   ac_cv_path_EGREP=$EGREP
4128 fi
4129
4130
4131    fi
4132 fi
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135  EGREP="$ac_cv_path_EGREP"
4136
4137
4138 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4139 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4140 if test "${ac_cv_header_stdc+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #include <stdlib.h>
4150 #include <stdarg.h>
4151 #include <string.h>
4152 #include <float.h>
4153
4154 int
4155 main ()
4156 {
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext
4163 if { (ac_try="$ac_compile"
4164 case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169   (eval "$ac_compile") 2>conftest.er1
4170   ac_status=$?
4171   grep -v '^ *+' conftest.er1 >conftest.err
4172   rm -f conftest.er1
4173   cat conftest.err >&5
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); } && {
4176          test -z "$ac_c_werror_flag" ||
4177          test ! -s conftest.err
4178        } && test -s conftest.$ac_objext; then
4179   ac_cv_header_stdc=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184         ac_cv_header_stdc=no
4185 fi
4186
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188
4189 if test $ac_cv_header_stdc = yes; then
4190   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4191   cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 #include <string.h>
4198
4199 _ACEOF
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201   $EGREP "memchr" >/dev/null 2>&1; then
4202   :
4203 else
4204   ac_cv_header_stdc=no
4205 fi
4206 rm -f conftest*
4207
4208 fi
4209
4210 if test $ac_cv_header_stdc = yes; then
4211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <stdlib.h>
4219
4220 _ACEOF
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222   $EGREP "free" >/dev/null 2>&1; then
4223   :
4224 else
4225   ac_cv_header_stdc=no
4226 fi
4227 rm -f conftest*
4228
4229 fi
4230
4231 if test $ac_cv_header_stdc = yes; then
4232   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233   if test "$cross_compiling" = yes; then
4234   :
4235 else
4236   cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242 #include <ctype.h>
4243 #include <stdlib.h>
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 #else
4248 # define ISLOWER(c) \
4249                    (('a' <= (c) && (c) <= 'i') \
4250                      || ('j' <= (c) && (c) <= 'r') \
4251                      || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #endif
4254
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256 int
4257 main ()
4258 {
4259   int i;
4260   for (i = 0; i < 256; i++)
4261     if (XOR (islower (i), ISLOWER (i))
4262         || toupper (i) != TOUPPER (i))
4263       return 2;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest$ac_exeext
4268 if { (ac_try="$ac_link"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_link") 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278   { (case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283   (eval "$ac_try") 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; }; then
4287   :
4288 else
4289   echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 ( exit $ac_status )
4294 ac_cv_header_stdc=no
4295 fi
4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4297 fi
4298
4299
4300 fi
4301 fi
4302 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4304 if test $ac_cv_header_stdc = yes; then
4305
4306 cat >>confdefs.h <<\_ACEOF
4307 #define STDC_HEADERS 1
4308 _ACEOF
4309
4310 fi
4311
4312
4313 if test -z "$EXEEXT"; then
4314         CGIEXT=".cgi"
4315 else
4316         # automake automatically adds .exe when installing binaries
4317         CGIEXT=""
4318 fi
4319
4320
4321 case "$host_os" in
4322 cygwin|cygwin32)
4323
4324
4325 if true; then
4326   ENABLE_WIN32SPECIFIC_TRUE=
4327   ENABLE_WIN32SPECIFIC_FALSE='#'
4328 else
4329   ENABLE_WIN32SPECIFIC_TRUE='#'
4330   ENABLE_WIN32SPECIFIC_FALSE=
4331 fi
4332
4333         ;;
4334 *)
4335
4336
4337 if false; then
4338   ENABLE_WIN32SPECIFIC_TRUE=
4339   ENABLE_WIN32SPECIFIC_FALSE='#'
4340 else
4341   ENABLE_WIN32SPECIFIC_TRUE='#'
4342   ENABLE_WIN32SPECIFIC_FALSE=
4343 fi
4344
4345         ;;
4346 esac
4347
4348 if test -z "$CACHE_HTTP_PORT"; then
4349         CACHE_HTTP_PORT="3128"
4350 fi
4351 if test -z "$CACHE_ICP_PORT"; then
4352         CACHE_ICP_PORT="3130"
4353 fi
4354
4355 cat >>confdefs.h <<_ACEOF
4356 #define CACHE_HTTP_PORT $CACHE_HTTP_PORT
4357 _ACEOF
4358
4359 cat >>confdefs.h <<_ACEOF
4360 #define CACHE_ICP_PORT $CACHE_ICP_PORT
4361 _ACEOF
4362
4363
4364 cat >>confdefs.h <<_ACEOF
4365 #define CONFIG_HOST_TYPE "$host"
4366 _ACEOF
4367
4368
4369 cat >>confdefs.h <<_ACEOF
4370 #define SQUID_CONFIGURE_OPTIONS "$ac_configure_args"
4371 _ACEOF
4372
4373
4374 case "$host" in
4375     mab-next-nextstep3)
4376         CC="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
4377         ;;
4378 esac
4379
4380 if test -z "$PRESET_CFLAGS"; then
4381     if test "$GCC" = "yes"; then
4382         case "$host" in
4383         *-sun-sunos*)
4384             # sunos has too many warnings for this to be useful
4385             # motorola too
4386             ;;
4387         *m88k*-openbsd*)
4388             ;;
4389         *m88k*)
4390             # Motorola cc/ld does not like -02 but is ok on -O
4391             CFLAGS=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
4392             ;;
4393         *)
4394             CFLAGS="$CFLAGS -Wall"
4395             ;;
4396         esac
4397     else
4398         case "$host" in
4399         *mips-sgi-irix6.*)
4400             # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
4401             CFLAGS="$CFLAGS -n32 -mips3 -O3 -OPT:Olimit=0:space=OFF \
4402                 -woff 1009,1014,1110,1116,1185,1188,1204,1230,1233 \
4403                 -Wl,-woff,85,-woff,84,-woff,134 \
4404                 -nostdinc -I/usr/include -D_BSD_SIGNALS"
4405             ;;
4406         alpha-dec-osf4.*)
4407             # Mogul says DEC compilers take both -g and -O2
4408             CFLAGS=`echo $CFLAGS | sed -e 's/-g/-g3/'`
4409             CFLAGS="$CFLAGS -O2"
4410             ;;
4411         *)
4412             ;;
4413         esac
4414     fi
4415 fi
4416
4417 if test -z "$PRESET_LDFLAGS"; then
4418     if test "$GCC" = "yes"; then
4419         case "$host" in
4420         *)
4421             # nothing
4422             ;;
4423         esac
4424     else
4425         case "$host" in
4426         *mips-sgi-irix6.*)
4427             # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
4428             LDFLAGS="-n32 -mips3 -nostdlib -L/usr/lib32"
4429             ;;
4430         esac
4431     fi
4432 fi
4433
4434 # Check whether --enable-dlmalloc was given.
4435 if test "${enable_dlmalloc+set}" = set; then
4436   enableval=$enable_dlmalloc;
4437  case "$enableval" in
4438  'yes')
4439     use_dlmalloc="yes"
4440     LIBDLMALLOC="libdlmalloc.a"
4441     LIB_MALLOC="-L../lib -ldlmalloc"
4442     echo "dlmalloc enabled"
4443     ;;
4444  'no')
4445     use_dlmalloc="no"
4446     echo "dlmalloc disabled"
4447     ;;
4448  *) use_dlmalloc="yes"
4449     LIB_MALLOC="$enableval"
4450     echo "dlmalloc enabled with $LIB_MALLOC"
4451  esac
4452
4453 fi
4454
4455 if test "${use_dlmalloc-unset}" = unset; then
4456     case "$host" in
4457         i386-*-solaris2.*)
4458                 echo "Enabling dlmalloc for $host"
4459                 use_dlmalloc="yes"
4460                 LIBDLMALLOC="libdlmalloc.a"
4461                 LIB_MALLOC="-L../lib -ldlmalloc"
4462                 ;;
4463         *-sgi-irix*)
4464                 echo "Enabling dlmalloc for $host"
4465                 use_dlmalloc="yes"
4466                 LIBDLMALLOC="libdlmalloc.a"
4467                 LIB_MALLOC="-L../lib -ldlmalloc"
4468                 ;;
4469     esac
4470 fi
4471 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
4472     # Ok. dlmalloc was enabled before, but state may be changed.
4473     # we have to test these again
4474     unset ac_cv_func_mallinfo
4475     unset ac_cv_func_mallocblksize
4476     unset ac_cv_func_free
4477     unset ac_cv_func_realloc
4478     unset ac_cv_func_memalign
4479     unset ac_cv_func_valloc
4480     unset ac_cv_func_pvalloc
4481     unset ac_cv_func_calloc
4482     unset ac_cv_func_cfree
4483     unset ac_cv_func_malloc_trim
4484     unset ac_cv_func_malloc_usable_size
4485     unset ac_cv_func_malloc_stats
4486     unset ac_cv_func_mallinfo
4487     unset ac_cv_func_mallopt
4488     unset ac_cv_lib_gnumalloc
4489     unset ac_cv_header_gnumalloc_h
4490     unset ac_cv_lib_malloc
4491     unset ac_cv_enabled_dlmalloc
4492 fi
4493 if test "$use_dlmalloc" = yes; then
4494     ac_cv_func_mallinfo="yes"
4495     ac_cv_func_mallocblksize="no"
4496     ac_cv_func_free="yes"
4497     ac_cv_func_realloc="yes"
4498     ac_cv_func_memalign="yes"
4499     ac_cv_func_valloc="yes"
4500     ac_cv_func_pvalloc="yes"
4501     ac_cv_func_calloc="yes"
4502     ac_cv_func_cfree="yes"
4503     ac_cv_func_malloc_trim="yes"
4504     ac_cv_func_malloc_usable_size="yes"
4505     ac_cv_func_malloc_stats="yes"
4506     ac_cv_func_mallopt="yes"
4507     ac_cv_lib_gnumalloc="no"
4508     ac_cv_header_gnumalloc_h="no"
4509     ac_cv_lib_malloc="no"
4510     ac_cv_enabled_dlmalloc="yes"
4511 fi
4512
4513
4514
4515
4516 # Check whether --enable-gnuregex was given.
4517 if test "${enable_gnuregex+set}" = set; then
4518   enableval=$enable_gnuregex; USE_GNUREGEX=$enableval
4519 fi
4520
4521
4522
4523
4524 # Check whether --enable-xmalloc-statistics was given.
4525 if test "${enable_xmalloc_statistics+set}" = set; then
4526   enableval=$enable_xmalloc_statistics;  if test "$enableval" = "yes" ; then
4527     echo "Malloc statistics enabled"
4528     cat >>confdefs.h <<\_ACEOF
4529 #define XMALLOC_STATISTICS 1
4530 _ACEOF
4531
4532   fi
4533
4534 fi
4535
4536
4537 # Check whether --enable-carp was given.
4538 if test "${enable_carp+set}" = set; then
4539   enableval=$enable_carp;  if test "$enableval" = "yes" ; then
4540     echo "CARP support enabled"
4541     cat >>confdefs.h <<\_ACEOF
4542 #define USE_CARP 1
4543 _ACEOF
4544
4545   fi
4546
4547 fi
4548
4549
4550 # Check whether --enable-async-io was given.
4551 if test "${enable_async_io+set}" = set; then
4552   enableval=$enable_async_io;  case $enableval in
4553   yes)
4554         with_pthreads="yes"
4555         STORE_MODULES="ufs aufs"
4556     ;;
4557   no)
4558     ;;
4559   *)
4560         aufs_io_threads=$enableval
4561         with_pthreads="yes"
4562         STORE_MODULES="ufs aufs"
4563     ;;
4564   esac
4565
4566 fi
4567
4568
4569
4570 # Check whether --with-aufs-threads was given.
4571 if test "${with_aufs_threads+set}" = set; then
4572   withval=$with_aufs_threads;  case $withval in
4573   [0-9]*)
4574     aufs_io_threads=$withval
4575     ;;
4576   *)
4577     echo "ERROR: Invalid --with-aufs-threads argument"
4578     exit 1
4579     ;;
4580   esac
4581
4582 fi
4583
4584 if test "$aufs_io_threads"; then
4585     echo "With $aufs_io_threads aufs threads"
4586     cat >>confdefs.h <<_ACEOF
4587 #define AUFS_IO_THREADS $aufs_io_threads
4588 _ACEOF
4589
4590 fi
4591
4592
4593 # Check whether --with-pthreads was given.
4594 if test "${with_pthreads+set}" = set; then
4595   withval=$with_pthreads;
4596 fi
4597
4598 if test "$with_pthreads" = "yes"; then
4599     echo "With pthreads"
4600 fi
4601
4602
4603 # Check whether --with-aio was given.
4604 if test "${with_aio+set}" = set; then
4605   withval=$with_aio;
4606 fi
4607
4608 if test "$with_aio" = "yes"; then
4609     echo "With aio"
4610 fi
4611
4612
4613 # Check whether --with-dl was given.
4614 if test "${with_dl+set}" = set; then
4615   withval=$with_dl;
4616 fi
4617
4618 if test "$with_dl" = "yes"; then
4619     echo "With dl"
4620 fi
4621
4622 # Check whether --enable-storeio was given.
4623 if test "${enable_storeio+set}" = set; then
4624   enableval=$enable_storeio;  case $enableval in
4625   yes)
4626         for module in $srcdir/src/fs/*; do
4627             if test -f $module/Makefile.in; then
4628                 STORE_MODULES="$STORE_MODULES `basename $module`"
4629             fi
4630         done
4631         ;;
4632   no)
4633         ;;
4634   *)    STORE_MODULES="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
4635         ;;
4636   esac
4637
4638 else
4639    if test -z "$STORE_MODULES"; then
4640     STORE_MODULES="ufs"
4641   fi
4642
4643 fi
4644
4645 echo "Store modules built: $STORE_MODULES"
4646 STORE_OBJS="fs/lib`echo $STORE_MODULES|sed -e 's% %.a fs/lib%g'`.a"
4647
4648 STORE_LIBS="`echo $STORE_OBJS|sed -e 's%fs/%%g'`"
4649
4650 STORE_MODULE_SUBDIRS=
4651 for fs in $STORE_MODULES none; do
4652     case "$fs" in
4653     diskd)
4654         STORE_MODULE_SUBDIRS="$STORE_MODULE_SUBDIRS $fs"
4655         ;;
4656     aufs)
4657         if test -z "$with_pthreads"; then
4658             echo "aufs store used, pthreads support automatically enabled"
4659             with_pthreads=yes
4660         fi
4661         ;;
4662     coss)
4663         if test -z "$with_aio"; then
4664             echo "coss store used, aio support automatically enabled"
4665             with_aio=yes
4666         fi
4667         ;;
4668     esac
4669 done
4670
4671
4672
4673 # Check whether --enable-heap-replacement was given.
4674 if test "${enable_heap_replacement+set}" = set; then
4675   enableval=$enable_heap_replacement;  if test "$enableval" = "yes" ; then
4676     echo "--enable-heap-replacement is obsolete. please use the new"
4677     echo "--enable-removal-policies directive instead"
4678     sleep 5
4679     REPL_POLICIES="heap"
4680   fi
4681
4682 fi
4683
4684
4685 # Check whether --enable-removal-policies was given.
4686 if test "${enable_removal_policies+set}" = set; then
4687   enableval=$enable_removal_policies;  case $enableval in
4688   yes)
4689         for module in $srcdir/src/repl/*; do
4690             if test -f $module/Makefile.in; then
4691                 REPL_POLICIES="$REPL_POLICIES `basename $module`"
4692             fi
4693         done
4694         ;;
4695   no)
4696         ;;
4697   *)    REPL_POLICIES="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
4698         ;;
4699   esac
4700
4701 else
4702    if test -z "$REPL_POLICIES"; then
4703     REPL_POLICIES="lru"
4704   fi
4705
4706 fi
4707
4708 echo "Removal policies built: $REPL_POLICIES"
4709
4710 REPL_OBJS="repl/lib`echo $REPL_POLICIES|sed -e 's% %.a repl/lib%g'`.a"
4711
4712 REPL_LIBS="`echo $REPL_OBJS|sed -e 's%repl/%%g'`"
4713
4714
4715
4716
4717 if false; then
4718   ENABLE_PINGER_TRUE=
4719   ENABLE_PINGER_FALSE='#'
4720 else
4721   ENABLE_PINGER_TRUE='#'
4722   ENABLE_PINGER_FALSE=
4723 fi
4724
4725 # Check whether --enable-icmp was given.
4726 if test "${enable_icmp+set}" = set; then
4727   enableval=$enable_icmp;  if test "$enableval" = "yes" ; then
4728     echo "ICMP enabled"
4729     cat >>confdefs.h <<\_ACEOF
4730 #define USE_ICMP 1
4731 _ACEOF
4732
4733
4734
4735 if true; then
4736   ENABLE_PINGER_TRUE=
4737   ENABLE_PINGER_FALSE='#'
4738 else
4739   ENABLE_PINGER_TRUE='#'
4740   ENABLE_PINGER_FALSE=
4741 fi
4742
4743   fi
4744
4745 fi
4746
4747
4748
4749
4750 if false; then
4751   USE_DELAY_POOLS_TRUE=
4752   USE_DELAY_POOLS_FALSE='#'
4753 else
4754   USE_DELAY_POOLS_TRUE='#'
4755   USE_DELAY_POOLS_FALSE=
4756 fi
4757
4758 # Check whether --enable-delay-pools was given.
4759 if test "${enable_delay_pools+set}" = set; then
4760   enableval=$enable_delay_pools;  if test "$enableval" = "yes" ; then
4761     echo "Delay pools enabled"
4762     cat >>confdefs.h <<\_ACEOF
4763 #define DELAY_POOLS 1
4764 _ACEOF
4765
4766
4767
4768 if true; then
4769   USE_DELAY_POOLS_TRUE=
4770   USE_DELAY_POOLS_FALSE='#'
4771 else
4772   USE_DELAY_POOLS_TRUE='#'
4773   USE_DELAY_POOLS_FALSE=
4774 fi
4775
4776   fi
4777
4778 fi
4779
4780
4781
4782
4783 if false; then
4784   USE_ICAP_TRUE=
4785   USE_ICAP_FALSE='#'
4786 else
4787   USE_ICAP_TRUE='#'
4788   USE_ICAP_FALSE=
4789 fi
4790
4791 # Check whether --enable-icap-support was given.
4792 if test "${enable_icap_support+set}" = set; then
4793   enableval=$enable_icap_support;  if test "$enableval" = "yes" ; then
4794     echo "ICAP support enabled"
4795     cat >>confdefs.h <<\_ACEOF
4796 #define HS_FEAT_ICAP 1
4797 _ACEOF
4798
4799
4800
4801 if true; then
4802   USE_ICAP_TRUE=
4803   USE_ICAP_FALSE='#'
4804 else
4805   USE_ICAP_TRUE='#'
4806   USE_ICAP_FALSE=
4807 fi
4808
4809   fi
4810
4811 fi
4812
4813
4814
4815 # Check whether --enable-useragent-log was given.
4816 if test "${enable_useragent_log+set}" = set; then
4817   enableval=$enable_useragent_log;  if test "$enableval" = "yes" ; then
4818     echo "User-Agent logging enabled"
4819     cat >>confdefs.h <<\_ACEOF
4820 #define USE_USERAGENT_LOG 1
4821 _ACEOF
4822
4823   fi
4824
4825 fi
4826
4827
4828 # Check whether --enable-referer-log was given.
4829 if test "${enable_referer_log+set}" = set; then
4830   enableval=$enable_referer_log;  if test "$enableval" = "yes" ; then
4831     echo "Referer logging enabled"
4832     cat >>confdefs.h <<\_ACEOF
4833 #define USE_REFERER_LOG 1
4834 _ACEOF
4835
4836   fi
4837
4838 fi
4839
4840
4841 # Check whether --enable-wccp was given.
4842 if test "${enable_wccp+set}" = set; then
4843   enableval=$enable_wccp;  if test "$enableval" = "no" ; then
4844     echo "Web Cache Coordination Protocol disabled"
4845     cat >>confdefs.h <<\_ACEOF
4846 #define USE_WCCP 0
4847 _ACEOF
4848
4849   else
4850     cat >>confdefs.h <<\_ACEOF
4851 #define USE_WCCP 1
4852 _ACEOF
4853
4854   fi
4855
4856 fi
4857
4858
4859 # Check whether --enable-kill-parent-hack was given.
4860 if test "${enable_kill_parent_hack+set}" = set; then
4861   enableval=$enable_kill_parent_hack;  if test "$enableval" = "yes" ; then
4862     echo "Kill parent on shutdown"
4863     cat >>confdefs.h <<\_ACEOF
4864 #define KILL_PARENT_OPT 1
4865 _ACEOF
4866
4867   fi
4868
4869 fi
4870
4871
4872
4873
4874 if false; then
4875   USE_SNMP_TRUE=
4876   USE_SNMP_FALSE='#'
4877 else
4878   USE_SNMP_TRUE='#'
4879   USE_SNMP_FALSE=
4880 fi
4881
4882 # Check whether --enable-snmp was given.
4883 if test "${enable_snmp+set}" = set; then
4884   enableval=$enable_snmp;  if test "$enableval" = "yes" ; then
4885     echo "SNMP monitoring enabled"
4886     cat >>confdefs.h <<\_ACEOF
4887 #define SQUID_SNMP 1
4888 _ACEOF
4889
4890     SNMPLIB='-L../snmplib -lsnmp'
4891
4892
4893 if true; then
4894   USE_SNMP_TRUE=
4895   USE_SNMP_FALSE='#'
4896 else
4897   USE_SNMP_TRUE='#'
4898   USE_SNMP_FALSE=
4899 fi
4900
4901     SNMP_MAKEFILE=./snmplib/Makefile
4902     makesnmplib=snmplib
4903   fi
4904
4905 fi
4906
4907
4908
4909
4910
4911 # Check whether --enable-cachemgr-hostname was given.
4912 if test "${enable_cachemgr_hostname+set}" = set; then
4913   enableval=$enable_cachemgr_hostname;   case $enableval in
4914    yes)
4915        cat >>confdefs.h <<\_ACEOF
4916 #define CACHEMGR_HOSTNAME getfullhostname()
4917 _ACEOF
4918
4919        echo "Cachemgr default hostname == host where cachemgr runs"
4920        ;;
4921    no)
4922        : # Nothing to do..
4923        ;;
4924    *)
4925        cat >>confdefs.h <<_ACEOF
4926 #define CACHEMGR_HOSTNAME "${enableval}"
4927 _ACEOF
4928
4929        echo "Cachemgr default hostname set to ${enableval}"
4930        ;;
4931    esac
4932
4933 fi
4934
4935
4936 # Check whether --enable-arp-acl was given.
4937 if test "${enable_arp_acl+set}" = set; then
4938   enableval=$enable_arp_acl;   if test "$enableval" = "yes" ; then
4939      echo "ARP ACL lists enabled (ether address)"
4940      case "$host" in
4941         *-linux-*)
4942             ;;
4943         *-solaris*)
4944             ;;
4945         *-freebsd*)
4946             ;;
4947         *)
4948             echo "WARNING: ARP ACL support probably won't work on $host."
4949             sleep 10
4950             ;;
4951      esac
4952      cat >>confdefs.h <<\_ACEOF
4953 #define USE_ARP_ACL 1
4954 _ACEOF
4955
4956    fi
4957
4958 fi
4959
4960
4961
4962
4963 if false; then
4964   ENABLE_HTCP_TRUE=
4965   ENABLE_HTCP_FALSE='#'
4966 else
4967   ENABLE_HTCP_TRUE='#'
4968   ENABLE_HTCP_FALSE=
4969 fi
4970
4971 # Check whether --enable-htcp was given.
4972 if test "${enable_htcp+set}" = set; then
4973   enableval=$enable_htcp;  if test "$enableval" = "yes" ; then
4974     echo "HTCP enabled"
4975     cat >>confdefs.h <<\_ACEOF
4976 #define USE_HTCP 1
4977 _ACEOF
4978
4979
4980
4981 if true; then
4982   ENABLE_HTCP_TRUE=
4983   ENABLE_HTCP_FALSE='#'
4984 else
4985   ENABLE_HTCP_TRUE='#'
4986   ENABLE_HTCP_FALSE=
4987 fi
4988
4989   fi
4990
4991 fi
4992
4993
4994
4995
4996 if false; then
4997   ENABLE_SSL_TRUE=
4998   ENABLE_SSL_FALSE='#'
4999 else
5000   ENABLE_SSL_TRUE='#'
5001   ENABLE_SSL_FALSE=
5002 fi
5003
5004
5005 SSLLIB=''
5006 SSLFLAGS=''
5007
5008 # Check whether --enable-ssl was given.
5009 if test "${enable_ssl+set}" = set; then
5010   enableval=$enable_ssl;  if test "$enableval" != "no"; then
5011     echo "SSL gatewaying using OpenSSL enabled"
5012     cat >>confdefs.h <<\_ACEOF
5013 #define USE_SSL 1
5014 _ACEOF
5015
5016
5017
5018 if true; then
5019   ENABLE_SSL_TRUE=
5020   ENABLE_SSL_FALSE='#'
5021 else
5022   ENABLE_SSL_TRUE='#'
5023   ENABLE_SSL_FALSE=
5024 fi
5025
5026     SSLLIB='-lssl -lcrypto'
5027     USE_OPENSSL=1
5028   fi
5029
5030 fi
5031
5032
5033
5034
5035 if true; then
5036   NEED_OWN_MD5_TRUE=
5037   NEED_OWN_MD5_FALSE='#'
5038 else
5039   NEED_OWN_MD5_TRUE='#'
5040   NEED_OWN_MD5_FALSE=
5041 fi
5042
5043
5044
5045 # Check whether --with-openssl was given.
5046 if test "${with_openssl+set}" = set; then
5047   withval=$with_openssl;
5048   case "$with_openssl" in
5049   yes)
5050     USE_OPENSSL=1
5051     ;;
5052   no)
5053     USE_OPENSSL=
5054     ;;
5055   *)
5056     PKG_CONFIG_PATH="$with_openssl/lib/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}"
5057     export PKG_CONFIG_PATH
5058     SSLLIB="-L$with_openssl/lib -lssl -lcrypto"
5059     SSLFLAGS="-I$with_openssl/include"
5060     USE_OPENSSL=1
5061   esac
5062
5063 fi
5064
5065
5066 if test -n "$USE_OPENSSL"; then
5067   echo "Using OpenSSL MD5 implementation"
5068   cat >>confdefs.h <<\_ACEOF
5069 #define USE_OPENSSL 1
5070 _ACEOF
5071
5072
5073
5074 if false; then
5075   NEED_OWN_MD5_TRUE=
5076   NEED_OWN_MD5_FALSE='#'
5077 else
5078   NEED_OWN_MD5_TRUE='#'
5079   NEED_OWN_MD5_FALSE=
5080 fi
5081
5082   if test -z "$SSLLIB"; then
5083     SSLLIB="-lcrypto" # for MD5 routines
5084   fi
5085   if $PKGCONFIG --exists openssl; then
5086     SSLLIB="`$PKGCONFIG --libs openssl`"
5087     SSLFLAGS="`$PKGCONFIG --cflags openssl`"
5088   fi
5089   CPPFLAGS="${SSLFLAGS} $CPPFLAGS"
5090 fi
5091
5092
5093 # Check whether --enable-forw-via-db was given.
5094 if test "${enable_forw_via_db+set}" = set; then
5095   enableval=$enable_forw_via_db;  if test "$enableval" = "yes" ; then
5096     echo "FORW-VIA enabled"
5097     cat >>confdefs.h <<\_ACEOF
5098 #define FORW_VIA_DB 1
5099 _ACEOF
5100
5101   fi
5102
5103 fi
5104
5105
5106 # Check whether --enable-cache-digests was given.
5107 if test "${enable_cache_digests+set}" = set; then
5108   enableval=$enable_cache_digests;  if test "$enableval" = "yes" ; then
5109     echo "USE_CACHE_DIGESTS enabled"
5110     cat >>confdefs.h <<\_ACEOF
5111 #define USE_CACHE_DIGESTS 1
5112 _ACEOF
5113
5114   fi
5115
5116 fi
5117
5118
5119 # Check whether --enable-default-err-language was given.
5120 if test "${enable_default_err_language+set}" = set; then
5121   enableval=$enable_default_err_language;
5122     if test -d $srcdir/errors/$enableval; then
5123         ERR_DEFAULT_LANGUAGE=$enableval
5124     else
5125         echo "ERROR! Unknown language $enableval, see errors/ directory"
5126         exit 1
5127     fi
5128
5129 else
5130   ERR_DEFAULT_LANGUAGE="English"
5131 fi
5132
5133
5134
5135 # Check whether --enable-err-languages was given.
5136 if test "${enable_err_languages+set}" = set; then
5137   enableval=$enable_err_languages;
5138     for l in $enableval; do
5139         if test -d $srcdir/errors/$l; then :; else
5140             echo "ERROR! Unknown language $$l, see errors/"
5141             exit 1
5142         fi
5143     done
5144     ERR_LANGUAGES=$enableval
5145
5146 else
5147
5148     ERR_LANGUAGES=
5149     for l in $srcdir/errors/*; do
5150         if test -f $l/ERR_ACCESS_DENIED; then
5151             ERR_LANGUAGES="$ERR_LANGUAGES `basename $l`"
5152         fi
5153     done
5154
5155 fi
5156
5157
5158
5159
5160 # Check whether --with-coss-membuf-size was given.
5161 if test "${with_coss_membuf_size+set}" = set; then
5162   withval=$with_coss_membuf_size;   if test "$with_coss_membuf_size"; then
5163       echo "Setting COSS membuf size to $with_coss_membuf_size bytes"
5164       cat >>confdefs.h <<_ACEOF
5165 #define COSS_MEMBUF_SZ $with_coss_membuf_size
5166 _ACEOF
5167
5168    fi
5169
5170 fi
5171
5172
5173 # Check whether --enable-poll was given.
5174 if test "${enable_poll+set}" = set; then
5175   enableval=$enable_poll;
5176   case "$enableval" in
5177   yes)
5178     echo "Forcing poll() to be enabled"
5179     ac_cv_func_poll='yes'
5180     ;;
5181   no)
5182     echo "Forcing poll() to be disabled"
5183     ac_cv_func_poll='no'
5184     ;;
5185   esac
5186
5187 fi
5188
5189
5190 # Check whether --enable-http-violations was given.
5191 if test "${enable_http_violations+set}" = set; then
5192   enableval=$enable_http_violations;  if test "$enableval" = "no" ; then
5193     echo "Disabling HTTP Violations"
5194     cat >>confdefs.h <<\_ACEOF
5195 #define HTTP_VIOLATIONS 0
5196 _ACEOF
5197
5198   else
5199     cat >>confdefs.h <<\_ACEOF
5200 #define HTTP_VIOLATIONS 1
5201 _ACEOF
5202
5203   fi
5204
5205 fi
5206
5207
5208 # Check whether --enable-ipf-transparent was given.
5209 if test "${enable_ipf_transparent+set}" = set; then
5210   enableval=$enable_ipf_transparent;  if test "$enableval" = "yes" ; then
5211         echo "IP-Filter Transparent Proxy enabled"
5212         cat >>confdefs.h <<\_ACEOF
5213 #define IPF_TRANSPARENT 1
5214 _ACEOF
5215
5216         IPF_TRANSPARENT="yes"
5217   fi
5218
5219 fi
5220
5221
5222 # Check whether --enable-pf-transparent was given.
5223 if test "${enable_pf_transparent+set}" = set; then
5224   enableval=$enable_pf_transparent;  if test "$enableval" = "yes" ; then
5225         echo "PF Transparent Proxy enabled"
5226         cat >>confdefs.h <<\_ACEOF
5227 #define PF_TRANSPARENT 1
5228 _ACEOF
5229
5230         PF_TRANSPARENT="yes"
5231   fi
5232
5233 fi
5234
5235
5236 # Check whether --enable-linux-netfilter was given.
5237 if test "${enable_linux_netfilter+set}" = set; then
5238   enableval=$enable_linux_netfilter;  if test "$enableval" = "yes" ; then
5239         echo "Linux-Netfilter Transparent Proxy enabled"
5240         cat >>confdefs.h <<\_ACEOF
5241 #define LINUX_NETFILTER 1
5242 _ACEOF
5243
5244         LINUX_NETFILTER="yes"
5245   fi
5246
5247 fi
5248
5249
5250 buildmodel=""
5251 needlargefiles=
5252
5253
5254 # Check whether --with-large-files was given.
5255 if test "${with_large_files+set}" = set; then
5256   withval=$with_large_files;  if test "$withval" = yes; then
5257         needlargefiles=1
5258   fi
5259
5260 fi
5261
5262
5263 # Check whether --enable-large-cache-files was given.
5264 if test "${enable_large_cache_files+set}" = set; then
5265   enableval=$enable_large_cache_files;  if test "$enableval" = "yes" ; then
5266         echo "Large cache file support enabled"
5267
5268 cat >>confdefs.h <<\_ACEOF
5269 #define LARGE_CACHE_FILES 1
5270 _ACEOF
5271
5272   fi
5273
5274 fi
5275
5276
5277
5278 # Check whether --with-build-environment was given.
5279 if test "${with_build_environment+set}" = set; then
5280   withval=$with_build_environment;  case "$enableval" in
5281   yes|no)
5282         echo "--with-build-environment expects a build environment string as used by getconf"
5283         exit 1
5284         ;;
5285   _*)
5286         buildmodel="$enableval"
5287         ;;
5288   *)
5289         buildmodel="_$enableval"
5290         ;;
5291   esac
5292
5293 fi
5294
5295
5296 if test $needlargefiles && test -z "$buildmodel"; then
5297         for model in POSIX_V6_ILP32_OFFBIG XBS5_ILP32_OFFBIG POSIX_V6_LP64_OFF64 XBS5_LP64_OFF64 POSIX_V6_LPBIG_OFFBIG XBS5_LPBIG_OFFBIG; do
5298                 if test "`getconf _$model 2>/dev/null || true`" = 1 || test "`getconf $model 2>/dev/null || true`" ; then
5299                         buildmodel=$model
5300                         break
5301                 fi
5302         done
5303         if test -z "$buildmodel"; then
5304                 echo "WARNING: No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64"
5305                 sleep 1
5306                 CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS"
5307         fi
5308 fi
5309 if test -n "$buildmodel" && test "$buildmodel" != "_default"; then
5310         echo "Using $buildmodel build environment"
5311         CFLAGS="`getconf ${buildmodel}_CFLAGS` $CFLAGS"
5312         LIBS="`getconf ${buildmodel}_LIBS` $LIBS"
5313         LDFLAGS="`getconf ${buildmodel}_LDFLAGS` $LDFLAGS"
5314 fi
5315
5316
5317
5318 if false; then
5319   MAKE_LEAKFINDER_TRUE=
5320   MAKE_LEAKFINDER_FALSE='#'
5321 else
5322   MAKE_LEAKFINDER_TRUE='#'
5323   MAKE_LEAKFINDER_FALSE=
5324 fi
5325
5326 # Check whether --enable-leakfinder was given.
5327 if test "${enable_leakfinder+set}" = set; then
5328   enableval=$enable_leakfinder;  if test "$enableval" = "yes" ; then
5329         echo "Leak-Finding enabled"
5330         cat >>confdefs.h <<\_ACEOF
5331 #define USE_LEAKFINDER 1
5332 _ACEOF
5333
5334         USE_LEAKFINDER="yes"
5335
5336
5337 if true; then
5338   MAKE_LEAKFINDER_TRUE=
5339   MAKE_LEAKFINDER_FALSE='#'
5340 else
5341   MAKE_LEAKFINDER_TRUE='#'
5342   MAKE_LEAKFINDER_FALSE=
5343 fi
5344
5345   fi
5346
5347 fi
5348
5349
5350 # Check whether --enable-ident-lookups was given.
5351 if test "${enable_ident_lookups+set}" = set; then
5352   enableval=$enable_ident_lookups;  if test "$enableval" = "no" ; then
5353     echo "Disabling Ident Lookups"
5354     cat >>confdefs.h <<\_ACEOF
5355 #define USE_IDENT 0
5356 _ACEOF
5357
5358   else
5359     cat >>confdefs.h <<\_ACEOF
5360 #define USE_IDENT 1
5361 _ACEOF
5362
5363   fi
5364
5365 fi
5366
5367
5368
5369
5370 if false; then
5371   USE_DNSSERVER_TRUE=
5372   USE_DNSSERVER_FALSE='#'
5373 else
5374   USE_DNSSERVER_TRUE='#'
5375   USE_DNSSERVER_FALSE=
5376 fi
5377
5378 use_dnsserver=
5379 # Check whether --enable-internal-dns was given.
5380 if test "${enable_internal_dns+set}" = set; then
5381   enableval=$enable_internal_dns;  if test "$enableval" = "no" ; then
5382     echo "Disabling Internal DNS queries"
5383     use_dnsserver="yes"
5384   fi
5385
5386 fi
5387
5388 if test "$use_dnsserver" = "yes"; then
5389     cat >>confdefs.h <<\_ACEOF
5390 #define USE_DNSSERVERS 1
5391 _ACEOF
5392
5393
5394
5395 if true; then
5396   USE_DNSSERVER_TRUE=
5397   USE_DNSSERVER_FALSE='#'
5398 else
5399   USE_DNSSERVER_TRUE='#'
5400   USE_DNSSERVER_FALSE=
5401 fi
5402
5403 fi
5404
5405 # Check whether --enable-truncate was given.
5406 if test "${enable_truncate+set}" = set; then
5407   enableval=$enable_truncate;  if test "$enableval" = "yes" ; then
5408     echo "Enabling truncate instead of unlink"
5409     cat >>confdefs.h <<\_ACEOF
5410 #define USE_TRUNCATE 1
5411 _ACEOF
5412
5413   fi
5414
5415 fi
5416
5417
5418 # Check whether --enable-hostname-checks was given.
5419 if test "${enable_hostname_checks+set}" = set; then
5420   enableval=$enable_hostname_checks;
5421 else
5422   enable_hostname_checks=yes
5423 fi
5424
5425 if test "$enable_hostname_checks" = "yes"; then
5426   echo "Hostname sanity checks enabled"
5427
5428 cat >>confdefs.h <<\_ACEOF
5429 #define CHECK_HOSTNAMES 1
5430 _ACEOF
5431
5432 else
5433   echo "Disabling hostname sanity checks"
5434 fi
5435
5436 # Check whether --enable-underscores was given.
5437 if test "${enable_underscores+set}" = set; then
5438   enableval=$enable_underscores;  if test "$enableval" = "yes" ; then
5439     echo "Enabling the use of underscores in host names"
5440     cat >>confdefs.h <<\_ACEOF
5441 #define ALLOW_HOSTNAME_UNDERSCORES 1
5442 _ACEOF
5443
5444   fi
5445
5446 fi
5447
5448
5449
5450 # Check whether --enable-auth was given.
5451 if test "${enable_auth+set}" = set; then
5452   enableval=$enable_auth;  case $enableval in
5453   yes)
5454         for module in $srcdir/src/auth/*; do
5455             if test -f $module/Makefile.in; then
5456                 AUTH_MODULES="$AUTH_MODULES `basename $module`"
5457             fi
5458         done
5459         ;;
5460   no)
5461         ;;
5462   *)    AUTH_MODULES="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
5463         ;;
5464   esac
5465
5466 else
5467    if test -z "$AUTH_MODULES"; then
5468     AUTH_MODULES="basic"
5469   fi
5470
5471 fi
5472
5473 echo "Auth scheme modules built: $AUTH_MODULES"
5474
5475 AUTH_OBJS="auth/lib`echo $AUTH_MODULES|sed -e 's% %.a auth/lib%g'`.a"
5476
5477 AUTH_LIBS="`echo $AUTH_OBJS|sed -e 's%auth/%%g'`"
5478
5479
5480 BASIC_AUTH_HELPERS=""
5481 # Check whether --enable-auth-modules was given.
5482 if test "${enable_auth_modules+set}" = set; then
5483   enableval=$enable_auth_modules;  echo "--enable-auth-modules is obsolete. Please use the new"
5484   echo "option --enable-basic-auth-helpers"
5485   sleep 5
5486   case "$enableval" in
5487   yes)
5488     for helper in $srcdir/helpers/basic_auth/*; do
5489         if test -f $helper/Makefile.in; then
5490             BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS `basename $helper`"
5491         fi
5492     done
5493     ;;
5494   no)
5495     ;;
5496   *)
5497     BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
5498   esac
5499
5500 fi
5501
5502 # Check whether --enable-basic-auth-helpers was given.
5503 if test "${enable_basic_auth_helpers+set}" = set; then
5504   enableval=$enable_basic_auth_helpers;  case "$enableval" in
5505   yes)
5506     BASIC_AUTH_HELPERS=""
5507     for helper in $srcdir/helpers/basic_auth/*; do
5508         if test -f $helper/Makefile.in; then
5509             BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS `basename $helper`"
5510         fi
5511     done
5512     ;;
5513   no)
5514     ;;
5515   *)
5516     BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
5517   esac
5518
5519 fi
5520
5521 if test -n "$BASIC_AUTH_HELPERS"; then
5522     for helper in $BASIC_AUTH_HELPERS; do
5523         if test -f $srcdir/helpers/basic_auth/$helper/Makefile.in; then
5524                 if test "$helper" = "SASL"; then
5525                         require_sasl=yes
5526                 fi
5527         else
5528                 echo "ERROR: Basic auth helper $helper does not exists"
5529                 exit 1
5530         fi
5531     done
5532     echo "Basic auth helpers built: $BASIC_AUTH_HELPERS"
5533 fi
5534
5535
5536 NTLM_AUTH_HELPERS=
5537 # Check whether --enable-ntlm-auth-helpers was given.
5538 if test "${enable_ntlm_auth_helpers+set}" = set; then
5539   enableval=$enable_ntlm_auth_helpers;  case "$enableval" in
5540   yes)
5541     for helper in $srcdir/helpers/ntlm_auth/*; do
5542         if test -f $helper/Makefile.in; then
5543             NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS `basename $helper`"
5544         fi
5545     done
5546     ;;
5547   no)
5548     ;;
5549   *)
5550     NTLM_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
5551   esac
5552
5553 fi
5554
5555 if test -n "$NTLM_AUTH_HELPERS"; then
5556     for helper in $NTLM_AUTH_HELPERS; do
5557         if test -f $srcdir/helpers/ntlm_auth/$helper/Makefile.in; then
5558                 :
5559         else
5560                 echo "ERROR: NTLM auth helper $helper does not exists"
5561                 exit 1
5562         fi
5563     done
5564     echo "NTLM auth helpers built: $NTLM_AUTH_HELPERS"
5565 fi
5566
5567
5568 DIGEST_AUTH_HELPERS=
5569 # Check whether --enable-digest-auth-helpers was given.
5570 if test "${enable_digest_auth_helpers+set}" = set; then
5571   enableval=$enable_digest_auth_helpers;  case "$enableval" in
5572   yes)
5573     for helper in $srcdir/helpers/digest_auth/*; do
5574         if test -f $helper/Makefile.in; then
5575             DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS `basename $helper`"
5576         fi
5577     done
5578     ;;
5579   no)
5580     ;;
5581   *)
5582     DIGEST_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
5583   esac
5584
5585 fi
5586
5587 if test -n "$DIGEST_AUTH_HELPERS"; then
5588     for helper in $DIGEST_AUTH_HELPERS; do
5589         if test -f $srcdir/helpers/digest_auth/$helper/Makefile.in; then
5590                 :
5591         else
5592                 echo "ERROR: digest auth helper $helper does not exists"
5593                 exit 1
5594         fi
5595     done
5596     echo "Digest auth helpers built: $DIGEST_AUTH_HELPERS"
5597 fi
5598
5599
5600 # Check whether --enable-ntlm-fail-open was given.
5601 if test "${enable_ntlm_fail_open+set}" = set; then
5602   enableval=$enable_ntlm_fail_open;  if test "$enableval" = "yes" ; then
5603     cat >>confdefs.h <<\_ACEOF
5604 #define NTLM_FAIL_OPEN 1
5605 _ACEOF
5606
5607   fi
5608
5609 fi
5610
5611
5612 EXTERNAL_ACL_HELPERS=
5613 # Check whether --enable-external-acl-helpers was given.
5614 if test "${enable_external_acl_helpers+set}" = set; then
5615   enableval=$enable_external_acl_helpers;  case "$enableval" in
5616   yes)
5617     for helper in $srcdir/helpers/external_acl/*; do
5618         if test -f $helper/Makefile.in; then
5619             EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS `basename $helper`"
5620         fi
5621     done
5622     ;;
5623   no)
5624     ;;
5625   *)
5626     EXTERNAL_ACL_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
5627   esac
5628
5629 fi
5630
5631 if test -n "$EXTERNAL_ACL_HELPERS"; then
5632     for helper in $EXTERNAL_ACL_HELPERS; do
5633         if test -f $srcdir/helpers/external_acl/$helper/Makefile.in; then
5634                 :
5635         else
5636                 echo "ERROR: external acl helper $helper does not exists"
5637                 exit 1
5638         fi
5639     done
5640     echo "External acl helpers built: $EXTERNAL_ACL_HELPERS"
5641 fi
5642
5643
5644
5645 SAMBASOURCES='$(top_srcdir)/include/samba'
5646
5647 # Check whether --with-samba-sources was given.
5648 if test "${with_samba_sources+set}" = set; then
5649   withval=$with_samba_sources;  if test -f $withval/source/nsswitch/winbind_nss_config.h; then
5650         echo "Using Samba sources from $withval"
5651         SAMBASOURCES="$withval/source"
5652     else
5653         echo "ERROR: Cannot find Samba sources at $withval"
5654         exit 1
5655     fi
5656
5657 fi
5658
5659
5660
5661 if test "$require_sasl" = "yes"; then
5662         # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5673                   inttypes.h stdint.h unistd.h
5674 do
5675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5679   echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681   cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h.  */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h.  */
5687 $ac_includes_default
5688
5689 #include <$ac_header>
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5693 case "(($ac_try" in
5694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695   *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698   (eval "$ac_compile") 2>conftest.er1
5699   ac_status=$?
5700   grep -v '^ *+' conftest.er1 >conftest.err
5701   rm -f conftest.er1
5702   cat conftest.err >&5
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } && {
5705          test -z "$ac_c_werror_flag" ||
5706          test ! -s conftest.err
5707        } && test -s conftest.$ac_objext; then
5708   eval "$as_ac_Header=yes"
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713         eval "$as_ac_Header=no"
5714 fi
5715
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718 ac_res=`eval echo '${'$as_ac_Header'}'`
5719                { echo "$as_me:$LINENO: result: $ac_res" >&5
5720 echo "${ECHO_T}$ac_res" >&6; }
5721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5722   cat >>confdefs.h <<_ACEOF
5723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5724 _ACEOF
5725
5726 fi
5727
5728 done
5729
5730
5731
5732
5733 for ac_header in sasl/sasl.h sasl.h
5734 do
5735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 fi
5742 ac_res=`eval echo '${'$as_ac_Header'}'`
5743                { echo "$as_me:$LINENO: result: $ac_res" >&5
5744 echo "${ECHO_T}$ac_res" >&6; }
5745 else
5746   # Is the header compilable?
5747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755 $ac_includes_default
5756 #include <$ac_header>
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_compile") 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } && {
5772          test -z "$ac_c_werror_flag" ||
5773          test ! -s conftest.err
5774        } && test -s conftest.$ac_objext; then
5775   ac_header_compiler=yes
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780         ac_header_compiler=no
5781 fi
5782
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5785 echo "${ECHO_T}$ac_header_compiler" >&6; }
5786
5787 # Is the header present?
5788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796 #include <$ac_header>
5797 _ACEOF
5798 if { (ac_try="$ac_cpp conftest.$ac_ext"
5799 case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } >/dev/null && {
5811          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5812          test ! -s conftest.err
5813        }; then
5814   ac_header_preproc=yes
5815 else
5816   echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819   ac_header_preproc=no
5820 fi
5821
5822 rm -f conftest.err conftest.$ac_ext
5823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5824 echo "${ECHO_T}$ac_header_preproc" >&6; }
5825
5826 # So?  What about this header?
5827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5828   yes:no: )
5829     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5833     ac_header_preproc=yes
5834     ;;
5835   no:yes:* )
5836     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5838     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5839 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5840     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5842     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5843 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5846     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5848
5849     ;;
5850 esac
5851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   eval "$as_ac_Header=\$ac_header_preproc"
5857 fi
5858 ac_res=`eval echo '${'$as_ac_Header'}'`
5859                { echo "$as_me:$LINENO: result: $ac_res" >&5
5860 echo "${ECHO_T}$ac_res" >&6; }
5861
5862 fi
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864   cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5866 _ACEOF
5867
5868 fi
5869
5870 done
5871
5872         if test "$ac_cv_header_sasl_sasl_h" = "yes"; then
5873                 echo "using SASL2"
5874                 LIBSASL="-lsasl2"
5875         else
5876                 if test "$ac_cv_header_sasl_h" = "yes"; then
5877                         echo "using SASL"
5878                         LIBSASL="-lsasl"
5879                 else
5880                         echo "ERROR: Neither SASL nor SASL2 found"
5881                         exit 1
5882                 fi
5883         fi
5884
5885 fi
5886
5887 # Check whether --enable-unlinkd was given.
5888 if test "${enable_unlinkd+set}" = set; then
5889   enableval=$enable_unlinkd;  if test "$enableval" = "no" ; then
5890     use_unlinkd=no
5891   else
5892     use_unlinkd=yes
5893   fi
5894
5895 else
5896
5897     # Here we should probably use some magic depending on the selected
5898     # storage models
5899     use_unlinkd=yes
5900
5901 fi
5902
5903 if test "$use_unlinkd" = "yes"; then
5904     echo "unlinkd enabled"
5905     cat >>confdefs.h <<\_ACEOF
5906 #define USE_UNLINKD 1
5907 _ACEOF
5908
5909
5910
5911 if true; then
5912   ENABLE_UNLINKD_TRUE=
5913   ENABLE_UNLINKD_FALSE='#'
5914 else
5915   ENABLE_UNLINKD_TRUE='#'
5916   ENABLE_UNLINKD_FALSE=
5917 fi
5918
5919 else
5920     echo "unlinkd disabled"
5921
5922
5923 if false; then
5924   ENABLE_UNLINKD_TRUE=
5925   ENABLE_UNLINKD_FALSE='#'
5926 else
5927   ENABLE_UNLINKD_TRUE='#'
5928   ENABLE_UNLINKD_FALSE=
5929 fi
5930
5931 fi
5932
5933 # Check whether --enable-stacktraces was given.
5934 if test "${enable_stacktraces+set}" = set; then
5935   enableval=$enable_stacktraces;  if test "$enableval" = "yes" ; then
5936     echo "Enabling automatic stack backtraces on fatal errors"
5937     cat >>confdefs.h <<\_ACEOF
5938 #define PRINT_STACK_TRACE 1
5939 _ACEOF
5940
5941   fi
5942
5943 fi
5944
5945
5946 # Check whether --enable-x_accelerator_vary was given.
5947 if test "${enable_x_accelerator_vary+set}" = set; then
5948   enableval=$enable_x_accelerator_vary;  if test "$enableval" = "yes" ; then
5949     echo "Enabling support for X-Accelerator-Vary"
5950     cat >>confdefs.h <<\_ACEOF
5951 #define X_ACCELERATOR_VARY 1
5952 _ACEOF
5953
5954   fi
5955
5956 fi
5957
5958
5959 # Force some compilers to use ANSI features
5960 #
5961 case "$host" in
5962     alpha-dec-osf*)
5963         if test "$ac_cv_prog_CC" = "cc" ; then
5964                 echo "adding '-std1' to cc args for $host"
5965                 CC="cc -std1";
5966                 ac_cv_prog_CC="$CC"
5967         fi
5968         ;;
5969     *-hp-hpux*)
5970         if test "$ac_cv_prog_CC" = "cc" ; then
5971                 echo "adding '-Ae' to cc args for $host"
5972                 CC="cc -Ae";
5973                 ac_cv_prog_CC="$CC"
5974         fi
5975         ;;
5976 esac
5977
5978 ac_ext=c
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5984 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5985 # On Suns, sometimes $CPP names a directory.
5986 if test -n "$CPP" && test -d "$CPP"; then
5987   CPP=
5988 fi
5989 if test -z "$CPP"; then
5990   if test "${ac_cv_prog_CPP+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993       # Double quotes because CPP needs to be expanded
5994     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5995     do
5996       ac_preproc_ok=false
5997 for ac_c_preproc_warn_flag in '' yes
5998 do
5999   # Use a header file that comes with gcc, so configuring glibc
6000   # with a fresh cross-compiler works.
6001   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6002   # <limits.h> exists even on freestanding compilers.
6003   # On the NeXT, cc -E runs the code through the compiler's parser,
6004   # not just through cpp. "Syntax error" is here to catch this case.
6005   cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h.  */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h.  */
6011 #ifdef __STDC__
6012 # include <limits.h>
6013 #else
6014 # include <assert.h>
6015 #endif
6016                      Syntax error
6017 _ACEOF
6018 if { (ac_try="$ac_cpp conftest.$ac_ext"
6019 case "(($ac_try" in
6020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021   *) ac_try_echo=$ac_try;;
6022 esac
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6025   ac_status=$?
6026   grep -v '^ *+' conftest.er1 >conftest.err
6027   rm -f conftest.er1
6028   cat conftest.err >&5
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); } >/dev/null && {
6031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6032          test ! -s conftest.err
6033        }; then
6034   :
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039   # Broken: fails on valid input.
6040 continue
6041 fi
6042
6043 rm -f conftest.err conftest.$ac_ext
6044
6045   # OK, works on sane cases.  Now check whether nonexistent headers
6046   # can be detected and how.
6047   cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053 #include <ac_nonexistent.h>
6054 _ACEOF
6055 if { (ac_try="$ac_cpp conftest.$ac_ext"
6056 case "(($ac_try" in
6057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058   *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } >/dev/null && {
6068          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6069          test ! -s conftest.err
6070        }; then
6071   # Broken: success on invalid input.
6072 continue
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077   # Passes both tests.
6078 ac_preproc_ok=:
6079 break
6080 fi
6081
6082 rm -f conftest.err conftest.$ac_ext
6083
6084 done
6085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6086 rm -f conftest.err conftest.$ac_ext
6087 if $ac_preproc_ok; then
6088   break
6089 fi
6090
6091     done
6092     ac_cv_prog_CPP=$CPP
6093
6094 fi
6095   CPP=$ac_cv_prog_CPP
6096 else
6097   ac_cv_prog_CPP=$CPP
6098 fi
6099 { echo "$as_me:$LINENO: result: $CPP" >&5
6100 echo "${ECHO_T}$CPP" >&6; }
6101 ac_preproc_ok=false
6102 for ac_c_preproc_warn_flag in '' yes
6103 do
6104   # Use a header file that comes with gcc, so configuring glibc
6105   # with a fresh cross-compiler works.
6106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107   # <limits.h> exists even on freestanding compilers.
6108   # On the NeXT, cc -E runs the code through the compiler's parser,
6109   # not just through cpp. "Syntax error" is here to catch this case.
6110   cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 #ifdef __STDC__
6117 # include <limits.h>
6118 #else
6119 # include <assert.h>
6120 #endif
6121                      Syntax error
6122 _ACEOF
6123 if { (ac_try="$ac_cpp conftest.$ac_ext"
6124 case "(($ac_try" in
6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126   *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6130   ac_status=$?
6131   grep -v '^ *+' conftest.er1 >conftest.err
6132   rm -f conftest.er1
6133   cat conftest.err >&5
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } >/dev/null && {
6136          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6137          test ! -s conftest.err
6138        }; then
6139   :
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144   # Broken: fails on valid input.
6145 continue
6146 fi
6147
6148 rm -f conftest.err conftest.$ac_ext
6149
6150   # OK, works on sane cases.  Now check whether nonexistent headers
6151   # can be detected and how.
6152   cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h.  */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h.  */
6158 #include <ac_nonexistent.h>
6159 _ACEOF
6160 if { (ac_try="$ac_cpp conftest.$ac_ext"
6161 case "(($ac_try" in
6162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163   *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6167   ac_status=$?
6168   grep -v '^ *+' conftest.er1 >conftest.err
6169   rm -f conftest.er1
6170   cat conftest.err >&5
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } >/dev/null && {
6173          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6174          test ! -s conftest.err
6175        }; then
6176   # Broken: success on invalid input.
6177 continue
6178 else
6179   echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182   # Passes both tests.
6183 ac_preproc_ok=:
6184 break
6185 fi
6186
6187 rm -f conftest.err conftest.$ac_ext
6188
6189 done
6190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6191 rm -f conftest.err conftest.$ac_ext
6192 if $ac_preproc_ok; then
6193   :
6194 else
6195   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6196 See \`config.log' for more details." >&5
6197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6198 See \`config.log' for more details." >&2;}
6199    { (exit 1); exit 1; }; }
6200 fi
6201
6202 ac_ext=c
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207
6208 # Find a good install program.  We prefer a C program (faster),
6209 # so one script is as good as another.  But avoid the broken or
6210 # incompatible versions:
6211 # SysV /etc/install, /usr/sbin/install
6212 # SunOS /usr/etc/install
6213 # IRIX /sbin/install
6214 # AIX /bin/install
6215 # AmigaOS /C/install, which installs bootblocks on floppy discs
6216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6219 # OS/2's system install, which has a completely different semantic
6220 # ./install, which can be erroneously created by make from ./install.sh.
6221 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6222 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6223 if test -z "$INSTALL"; then
6224 if test "${ac_cv_path_install+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232   # Account for people who put trailing slashes in PATH elements.
6233 case $as_dir/ in
6234   ./ | .// | /cC/* | \
6235   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6236   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6237   /usr/ucb/* ) ;;
6238   *)
6239     # OSF1 and SCO ODT 3.0 have their own names for install.
6240     # Don't use installbsd from OSF since it installs stuff as root
6241     # by default.
6242     for ac_prog in ginstall scoinst install; do
6243       for ac_exec_ext in '' $ac_executable_extensions; do
6244         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6245           if test $ac_prog = install &&
6246             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6247             # AIX install.  It has an incompatible calling convention.
6248             :
6249           elif test $ac_prog = install &&
6250             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6251             # program-specific install script used by HP pwplus--don't use.
6252             :
6253           else
6254             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6255             break 3
6256           fi
6257         fi
6258       done
6259     done
6260     ;;
6261 esac
6262 done
6263 IFS=$as_save_IFS
6264
6265
6266 fi
6267   if test "${ac_cv_path_install+set}" = set; then
6268     INSTALL=$ac_cv_path_install
6269   else
6270     # As a last resort, use the slow shell script.  Don't cache a
6271     # value for INSTALL within a source directory, because that will
6272     # break other packages using the cache if that directory is
6273     # removed, or if the value is a relative name.
6274     INSTALL=$ac_install_sh
6275   fi
6276 fi
6277 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6278 echo "${ECHO_T}$INSTALL" >&6; }
6279
6280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6281 # It thinks the first close brace ends the variable substitution.
6282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6283
6284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6285
6286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6287
6288 if test -n "$ac_tool_prefix"; then
6289   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_RANLIB+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   if test -n "$RANLIB"; then
6297   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304   for ac_exec_ext in '' $ac_executable_extensions; do
6305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308     break 2
6309   fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 RANLIB=$ac_cv_prog_RANLIB
6317 if test -n "$RANLIB"; then
6318   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6319 echo "${ECHO_T}$RANLIB" >&6; }
6320 else
6321   { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6323 fi
6324
6325
6326 fi
6327 if test -z "$ac_cv_prog_RANLIB"; then
6328   ac_ct_RANLIB=$RANLIB
6329   # Extract the first word of "ranlib", so it can be a program name with args.
6330 set dummy ranlib; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   if test -n "$ac_ct_RANLIB"; then
6337   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344   for ac_exec_ext in '' $ac_executable_extensions; do
6345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346     ac_cv_prog_ac_ct_RANLIB="ranlib"
6347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6357 if test -n "$ac_ct_RANLIB"; then
6358   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6359 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6360 else
6361   { echo "$as_me:$LINENO: result: no" >&5
6362 echo "${ECHO_T}no" >&6; }
6363 fi
6364
6365   if test "x$ac_ct_RANLIB" = x; then
6366     RANLIB=":"
6367   else
6368     case $cross_compiling:$ac_tool_warned in
6369 yes:)
6370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6371 whose name does not start with the host triplet.  If you think this
6372 configuration is useful to you, please write to autoconf@gnu.org." >&5
6373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6374 whose name does not start with the host triplet.  If you think this
6375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378     RANLIB=$ac_ct_RANLIB
6379   fi
6380 else
6381   RANLIB="$ac_cv_prog_RANLIB"
6382 fi
6383
6384 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6385 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6386 LN_S=$as_ln_s
6387 if test "$LN_S" = "ln -s"; then
6388   { echo "$as_me:$LINENO: result: yes" >&5
6389 echo "${ECHO_T}yes" >&6; }
6390 else
6391   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6392 echo "${ECHO_T}no, using $LN_S" >&6; }
6393 fi
6394
6395 # Extract the first word of "sh", so it can be a program name with args.
6396 set dummy sh; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_SH+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   case $SH in
6403   [\\/]* | ?:[\\/]*)
6404   ac_cv_path_SH="$SH" # Let the user override the test with a path.
6405   ;;
6406   *)
6407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412   for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
6415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422   test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh"
6423   ;;
6424 esac
6425 fi
6426 SH=$ac_cv_path_SH
6427 if test -n "$SH"; then
6428   { echo "$as_me:$LINENO: result: $SH" >&5
6429 echo "${ECHO_T}$SH" >&6; }
6430 else
6431   { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6433 fi
6434
6435
6436 # Extract the first word of "false", so it can be a program name with args.
6437 set dummy false; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_path_FALSE+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   case $FALSE in
6444   [\\/]* | ?:[\\/]*)
6445   ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path.
6446   ;;
6447   *)
6448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453   for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_path_FALSE="$as_dir/$ac_word$ac_exec_ext"
6456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463   test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="/usr/bin/false"
6464   ;;
6465 esac
6466 fi
6467 FALSE=$ac_cv_path_FALSE
6468 if test -n "$FALSE"; then
6469   { echo "$as_me:$LINENO: result: $FALSE" >&5
6470 echo "${ECHO_T}$FALSE" >&6; }
6471 else
6472   { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6474 fi
6475
6476
6477 # Extract the first word of "true", so it can be a program name with args.
6478 set dummy true; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_TRUE+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   case $TRUE in
6485   [\\/]* | ?:[\\/]*)
6486   ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
6487   ;;
6488   *)
6489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext"
6497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504   test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="/usr/bin/true"
6505   ;;
6506 esac
6507 fi
6508 TRUE=$ac_cv_path_TRUE
6509 if test -n "$TRUE"; then
6510   { echo "$as_me:$LINENO: result: $TRUE" >&5
6511 echo "${ECHO_T}$TRUE" >&6; }
6512 else
6513   { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6515 fi
6516
6517
6518 # Extract the first word of "rm", so it can be a program name with args.
6519 set dummy rm; ac_word=$2
6520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6522 if test "${ac_cv_path_RM+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   case $RM in
6526   [\\/]* | ?:[\\/]*)
6527   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6528   ;;
6529   *)
6530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535   for ac_exec_ext in '' $ac_executable_extensions; do
6536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545   test -z "$ac_cv_path_RM" && ac_cv_path_RM="$FALSE"
6546   ;;
6547 esac
6548 fi
6549 RM=$ac_cv_path_RM
6550 if test -n "$RM"; then
6551   { echo "$as_me:$LINENO: result: $RM" >&5
6552 echo "${ECHO_T}$RM" >&6; }
6553 else
6554   { echo "$as_me:$LINENO: result: no" >&5
6555 echo "${ECHO_T}no" >&6; }
6556 fi
6557
6558
6559 # Extract the first word of "mv", so it can be a program name with args.
6560 set dummy mv; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_path_MV+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   case $MV in
6567   [\\/]* | ?:[\\/]*)
6568   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6569   ;;
6570   *)
6571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576   for ac_exec_ext in '' $ac_executable_extensions; do
6577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586   test -z "$ac_cv_path_MV" && ac_cv_path_MV="$FALSE"
6587   ;;
6588 esac
6589 fi
6590 MV=$ac_cv_path_MV
6591 if test -n "$MV"; then
6592   { echo "$as_me:$LINENO: result: $MV" >&5
6593 echo "${ECHO_T}$MV" >&6; }
6594 else
6595   { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6597 fi
6598
6599
6600 # Extract the first word of "mkdir", so it can be a program name with args.
6601 set dummy mkdir; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_MKDIR+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   case $MKDIR in
6608   [\\/]* | ?:[\\/]*)
6609   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6610   ;;
6611   *)
6612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617   for ac_exec_ext in '' $ac_executable_extensions; do
6618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$FALSE"
6628   ;;
6629 esac
6630 fi
6631 MKDIR=$ac_cv_path_MKDIR
6632 if test -n "$MKDIR"; then
6633   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6634 echo "${ECHO_T}$MKDIR" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640
6641 # Extract the first word of "ln", so it can be a program name with args.
6642 set dummy ln; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_LN+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   case $LN in
6649   [\\/]* | ?:[\\/]*)
6650   ac_cv_path_LN="$LN" # Let the user override the test with a path.
6651   ;;
6652   *)
6653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668   test -z "$ac_cv_path_LN" && ac_cv_path_LN="cp"
6669   ;;
6670 esac
6671 fi
6672 LN=$ac_cv_path_LN
6673 if test -n "$LN"; then
6674   { echo "$as_me:$LINENO: result: $LN" >&5
6675 echo "${ECHO_T}$LN" >&6; }
6676 else
6677   { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6679 fi
6680
6681
6682 # Extract the first word of "perl", so it can be a program name with args.
6683 set dummy perl; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_PERL+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   case $PERL in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699   for ac_exec_ext in '' $ac_executable_extensions; do
6700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6710   ;;
6711 esac
6712 fi
6713 PERL=$ac_cv_path_PERL
6714 if test -n "$PERL"; then
6715   { echo "$as_me:$LINENO: result: $PERL" >&5
6716 echo "${ECHO_T}$PERL" >&6; }
6717 else
6718   { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722
6723 # Extract the first word of "ar", so it can be a program name with args.
6724 set dummy ar; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_AR+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   case $AR in
6731   [\\/]* | ?:[\\/]*)
6732   ac_cv_path_AR="$AR" # Let the user override the test with a path.
6733   ;;
6734   *)
6735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740   for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750   test -z "$ac_cv_path_AR" && ac_cv_path_AR="$FALSE"
6751   ;;
6752 esac
6753 fi
6754 AR=$ac_cv_path_AR
6755 if test -n "$AR"; then
6756   { echo "$as_me:$LINENO: result: $AR" >&5
6757 echo "${ECHO_T}$AR" >&6; }
6758 else
6759   { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764
6765 if test "$ac_cv_path_PERL" = "none"; then
6766         echo "Perl is required to compile Squid"
6767         echo "Please install Perl and then re-run configure"
6768         exit 1
6769 fi
6770
6771 case "$host" in
6772     *-hp-hpux*)
6773         echo "Disabling 'ranlib' for HP-UX..."
6774         RANLIB=":"
6775         ;;
6776 esac
6777
6778 AR_R="$AR r"
6779 case "$host" in
6780         *-next-nextstep3)
6781                 AR="libtool -o"
6782                 ;;
6783 esac
6784
6785
6786
6787
6788
6789
6790
6791 ac_header_dirent=no
6792 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6793   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6794 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6795 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805 #include <sys/types.h>
6806 #include <$ac_hdr>
6807
6808 int
6809 main ()
6810 {
6811 if ((DIR *) 0)
6812 return 0;
6813   ;
6814   return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6819 case "(($ac_try" in
6820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821   *) ac_try_echo=$ac_try;;
6822 esac
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824   (eval "$ac_compile") 2>conftest.er1
6825   ac_status=$?
6826   grep -v '^ *+' conftest.er1 >conftest.err
6827   rm -f conftest.er1
6828   cat conftest.err >&5
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } && {
6831          test -z "$ac_c_werror_flag" ||
6832          test ! -s conftest.err
6833        } && test -s conftest.$ac_objext; then
6834   eval "$as_ac_Header=yes"
6835 else
6836   echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839         eval "$as_ac_Header=no"
6840 fi
6841
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 fi
6844 ac_res=`eval echo '${'$as_ac_Header'}'`
6845                { echo "$as_me:$LINENO: result: $ac_res" >&5
6846 echo "${ECHO_T}$ac_res" >&6; }
6847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6848   cat >>confdefs.h <<_ACEOF
6849 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6850 _ACEOF
6851
6852 ac_header_dirent=$ac_hdr; break
6853 fi
6854
6855 done
6856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6857 if test $ac_header_dirent = dirent.h; then
6858   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6860 if test "${ac_cv_search_opendir+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   ac_func_search_save_LIBS=$LIBS
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870
6871 /* Override any GCC internal prototype to avoid an error.
6872    Use char because int might match the return type of a GCC
6873    builtin and then its argument prototype would still apply.  */
6874 #ifdef __cplusplus
6875 extern "C"
6876 #endif
6877 char opendir ();
6878 int
6879 main ()
6880 {
6881 return opendir ();
6882   ;
6883   return 0;
6884 }
6885 _ACEOF
6886 for ac_lib in '' dir; do
6887   if test -z "$ac_lib"; then
6888     ac_res="none required"
6889   else
6890     ac_res=-l$ac_lib
6891     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6892   fi
6893   rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (ac_try="$ac_link"
6895 case "(($ac_try" in
6896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6897   *) ac_try_echo=$ac_try;;
6898 esac
6899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6900   (eval "$ac_link") 2>conftest.er1
6901   ac_status=$?
6902   grep -v '^ *+' conftest.er1 >conftest.err
6903   rm -f conftest.er1
6904   cat conftest.err >&5
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } && {
6907          test -z "$ac_c_werror_flag" ||
6908          test ! -s conftest.err
6909        } && test -s conftest$ac_exeext &&
6910        $as_test_x conftest$ac_exeext; then
6911   ac_cv_search_opendir=$ac_res
6912 else
6913   echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916
6917 fi
6918
6919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6920       conftest$ac_exeext
6921   if test "${ac_cv_search_opendir+set}" = set; then
6922   break
6923 fi
6924 done
6925 if test "${ac_cv_search_opendir+set}" = set; then
6926   :
6927 else
6928   ac_cv_search_opendir=no
6929 fi
6930 rm conftest.$ac_ext
6931 LIBS=$ac_func_search_save_LIBS
6932 fi
6933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6935 ac_res=$ac_cv_search_opendir
6936 if test "$ac_res" != no; then
6937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6938
6939 fi
6940
6941 else
6942   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6944 if test "${ac_cv_search_opendir+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   ac_func_search_save_LIBS=$LIBS
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h.  */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h.  */
6954
6955 /* Override any GCC internal prototype to avoid an error.
6956    Use char because int might match the return type of a GCC
6957    builtin and then its argument prototype would still apply.  */
6958 #ifdef __cplusplus
6959 extern "C"
6960 #endif
6961 char opendir ();
6962 int
6963 main ()
6964 {
6965 return opendir ();
6966   ;
6967   return 0;
6968 }
6969 _ACEOF
6970 for ac_lib in '' x; do
6971   if test -z "$ac_lib"; then
6972     ac_res="none required"
6973   else
6974     ac_res=-l$ac_lib
6975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6976   fi
6977   rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (ac_try="$ac_link"
6979 case "(($ac_try" in
6980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981   *) ac_try_echo=$ac_try;;
6982 esac
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984   (eval "$ac_link") 2>conftest.er1
6985   ac_status=$?
6986   grep -v '^ *+' conftest.er1 >conftest.err
6987   rm -f conftest.er1
6988   cat conftest.err >&5
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); } && {
6991          test -z "$ac_c_werror_flag" ||
6992          test ! -s conftest.err
6993        } && test -s conftest$ac_exeext &&
6994        $as_test_x conftest$ac_exeext; then
6995   ac_cv_search_opendir=$ac_res
6996 else
6997   echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000
7001 fi
7002
7003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7004       conftest$ac_exeext
7005   if test "${ac_cv_search_opendir+set}" = set; then
7006   break
7007 fi
7008 done
7009 if test "${ac_cv_search_opendir+set}" = set; then
7010   :
7011 else
7012   ac_cv_search_opendir=no
7013 fi
7014 rm conftest.$ac_ext
7015 LIBS=$ac_func_search_save_LIBS
7016 fi
7017 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7018 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7019 ac_res=$ac_cv_search_opendir
7020 if test "$ac_res" != no; then
7021   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7022
7023 fi
7024
7025 fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107 for ac_header in \
7108         arpa/inet.h \
7109         arpa/nameser.h \
7110         assert.h \
7111         bstring.h \
7112         crypt.h \
7113         ctype.h \
7114         errno.h \
7115         execinfo.h \
7116         fcntl.h \
7117         fnmatch.h \
7118         getopt.h \
7119         gnumalloc.h \
7120         grp.h \
7121         ip_compat.h \
7122         ip_fil_compat.h \
7123         ip_fil.h \
7124         ip_nat.h \
7125         libc.h \
7126         limits.h \
7127         linux/netfilter_ipv4.h \
7128         malloc.h \
7129         math.h \
7130         memory.h \
7131         mount.h \
7132         net/if.h \
7133         net/pfvar.h \
7134         netdb.h \
7135         netinet/if_ether.h \
7136         netinet/in.h \
7137         netinet/tcp.h \
7138         netinet/ip_compat.h \
7139         netinet/ip_fil_compat.h \
7140         netinet/ip_fil.h \
7141         netinet/ip_nat.h \
7142         openssl/err.h \
7143         openssl/md5.h \
7144         openssl/ssl.h \
7145         poll.h \
7146         pwd.h \
7147         regex.h \
7148         resolv.h \
7149         sched.h \
7150         signal.h \
7151         stdarg.h \
7152         stddef.h \
7153         stdio.h \
7154         stdlib.h \
7155         string.h \
7156         strings.h \
7157         sys/bitypes.h \
7158         sys/file.h \
7159         sys/ioctl.h \
7160         sys/mount.h \
7161         sys/msg.h \
7162         sys/param.h \
7163         sys/resource.h \
7164         sys/select.h\
7165         sys/socket.h \
7166         sys/stat.h \
7167         sys/statvfs.h \
7168         syscall.h \
7169         sys/syscall.h \
7170         sys/time.h \
7171         sys/types.h \
7172         sys/un.h \
7173         sys/vfs.h \
7174         sys/wait.h \
7175         syslog.h \
7176         time.h \
7177         unistd.h \
7178         utime.h \
7179         varargs.h \
7180         byteswap.h \
7181         glib.h \
7182         stdint.h \
7183         inttypes.h \
7184         grp.h \
7185         nss_common.h \
7186         nss.h
7187
7188 do
7189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7191   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 fi
7196 ac_res=`eval echo '${'$as_ac_Header'}'`
7197                { echo "$as_me:$LINENO: result: $ac_res" >&5
7198 echo "${ECHO_T}$ac_res" >&6; }
7199 else
7200   # Is the header compilable?
7201 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h.  */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h.  */
7209 $ac_includes_default
7210 #include <$ac_header>
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216   *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219   (eval "$ac_compile") 2>conftest.er1
7220   ac_status=$?
7221   grep -v '^ *+' conftest.er1 >conftest.err
7222   rm -f conftest.er1
7223   cat conftest.err >&5
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); } && {
7226          test -z "$ac_c_werror_flag" ||
7227          test ! -s conftest.err
7228        } && test -s conftest.$ac_objext; then
7229   ac_header_compiler=yes
7230 else
7231   echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234         ac_header_compiler=no
7235 fi
7236
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7239 echo "${ECHO_T}$ac_header_compiler" >&6; }
7240
7241 # Is the header present?
7242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250 #include <$ac_header>
7251 _ACEOF
7252 if { (ac_try="$ac_cpp conftest.$ac_ext"
7253 case "(($ac_try" in
7254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255   *) ac_try_echo=$ac_try;;
7256 esac
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7259   ac_status=$?
7260   grep -v '^ *+' conftest.er1 >conftest.err
7261   rm -f conftest.er1
7262   cat conftest.err >&5
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); } >/dev/null && {
7265          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7266          test ! -s conftest.err
7267        }; then
7268   ac_header_preproc=yes
7269 else
7270   echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7272
7273   ac_header_preproc=no
7274 fi
7275
7276 rm -f conftest.err conftest.$ac_ext
7277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7278 echo "${ECHO_T}$ac_header_preproc" >&6; }
7279
7280 # So?  What about this header?
7281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7282   yes:no: )
7283     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7287     ac_header_preproc=yes
7288     ;;
7289   no:yes:* )
7290     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7292     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7293 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7294     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7296     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7297 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7300     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7302
7303     ;;
7304 esac
7305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   eval "$as_ac_Header=\$ac_header_preproc"
7311 fi
7312 ac_res=`eval echo '${'$as_ac_Header'}'`
7313                { echo "$as_me:$LINENO: result: $ac_res" >&5
7314 echo "${ECHO_T}$ac_res" >&6; }
7315
7316 fi
7317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7318   cat >>confdefs.h <<_ACEOF
7319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7320 _ACEOF
7321
7322 fi
7323
7324 done
7325
7326
7327 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7328 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7329 if test "${ac_cv_c_const+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h.  */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h.  */
7338
7339 int
7340 main ()
7341 {
7342 /* FIXME: Include the comments suggested by Paul. */
7343 #ifndef __cplusplus
7344   /* Ultrix mips cc rejects this.  */
7345   typedef int charset[2];
7346   const charset cs;
7347   /* SunOS 4.1.1 cc rejects this.  */
7348   char const *const *pcpcc;
7349   char **ppc;
7350   /* NEC SVR4.0.2 mips cc rejects this.  */
7351   struct point {int x, y;};
7352   static struct point const zero = {0,0};
7353   /* AIX XL C 1.02.0.0 rejects this.
7354      It does not let you subtract one const X* pointer from another in
7355      an arm of an if-expression whose if-part is not a constant
7356      expression */
7357   const char *g = "string";
7358   pcpcc = &g + (g ? g-g : 0);
7359   /* HPUX 7.0 cc rejects these. */
7360   ++pcpcc;
7361   ppc = (char**) pcpcc;
7362   pcpcc = (char const *const *) ppc;
7363   { /* SCO 3.2v4 cc rejects this.  */
7364     char *t;
7365     char const *s = 0 ? (char *) 0 : (char const *) 0;
7366
7367     *t++ = 0;
7368     if (s) return 0;
7369   }
7370   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7371     int x[] = {25, 17};
7372     const int *foo = &x[0];
7373     ++foo;
7374   }
7375   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7376     typedef const int *iptr;
7377     iptr p = 0;
7378     ++p;
7379   }
7380   { /* AIX XL C 1.02.0.0 rejects this saying
7381        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7382     struct s { int j; const int *ap[3]; };
7383     struct s *b; b->j = 5;
7384   }
7385   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7386     const int foo = 10;
7387     if (!foo) return 0;
7388   }
7389   return !cs[0] && !zero.x;
7390 #endif
7391
7392   ;
7393   return 0;
7394 }
7395 _ACEOF
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7398 case "(($ac_try" in
7399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400   *) ac_try_echo=$ac_try;;
7401 esac
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403   (eval "$ac_compile") 2>conftest.er1
7404   ac_status=$?
7405   grep -v '^ *+' conftest.er1 >conftest.err
7406   rm -f conftest.er1
7407   cat conftest.err >&5
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } && {
7410          test -z "$ac_c_werror_flag" ||
7411          test ! -s conftest.err
7412        } && test -s conftest.$ac_objext; then
7413   ac_cv_c_const=yes
7414 else
7415   echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7417
7418         ac_cv_c_const=no
7419 fi
7420
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 fi
7423 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7424 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7425 if test $ac_cv_c_const = no; then
7426
7427 cat >>confdefs.h <<\_ACEOF
7428 #define const
7429 _ACEOF
7430
7431 fi
7432
7433 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7434 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7435 if test "${ac_cv_c_bigendian+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438   # See if sys/param.h defines the BYTE_ORDER macro.
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 #include <sys/types.h>
7446 #include <sys/param.h>
7447
7448 int
7449 main ()
7450 {
7451 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7452         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7453  bogus endian macros
7454 #endif
7455
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (ac_try="$ac_compile"
7462 case "(($ac_try" in
7463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464   *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467   (eval "$ac_compile") 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } && {
7474          test -z "$ac_c_werror_flag" ||
7475          test ! -s conftest.err
7476        } && test -s conftest.$ac_objext; then
7477   # It does; now see whether it defined to BIG_ENDIAN or not.
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h.  */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h.  */
7484 #include <sys/types.h>
7485 #include <sys/param.h>
7486
7487 int
7488 main ()
7489 {
7490 #if BYTE_ORDER != BIG_ENDIAN
7491  not big endian
7492 #endif
7493
7494   ;
7495   return 0;
7496 }
7497 _ACEOF
7498 rm -f conftest.$ac_objext
7499 if { (ac_try="$ac_compile"
7500 case "(($ac_try" in
7501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502   *) ac_try_echo=$ac_try;;
7503 esac
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505   (eval "$ac_compile") 2>conftest.er1
7506   ac_status=$?
7507   grep -v '^ *+' conftest.er1 >conftest.err
7508   rm -f conftest.er1
7509   cat conftest.err >&5
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); } && {
7512          test -z "$ac_c_werror_flag" ||
7513          test ! -s conftest.err
7514        } && test -s conftest.$ac_objext; then
7515   ac_cv_c_bigendian=yes
7516 else
7517   echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7519
7520         ac_cv_c_bigendian=no
7521 fi
7522
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528         # It does not; compile a test program.
7529 if test "$cross_compiling" = yes; then
7530   # try to guess the endianness by grepping values into an object file
7531   ac_cv_c_bigendian=unknown
7532   cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7539 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7540 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7541 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7542 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7543 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7544 int
7545 main ()
7546 {
7547  _ascii (); _ebcdic ();
7548   ;
7549   return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556   *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559   (eval "$ac_compile") 2>conftest.er1
7560   ac_status=$?
7561   grep -v '^ *+' conftest.er1 >conftest.err
7562   rm -f conftest.er1
7563   cat conftest.err >&5
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } && {
7566          test -z "$ac_c_werror_flag" ||
7567          test ! -s conftest.err
7568        } && test -s conftest.$ac_objext; then
7569   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7570   ac_cv_c_bigendian=yes
7571 fi
7572 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7573   if test "$ac_cv_c_bigendian" = unknown; then
7574     ac_cv_c_bigendian=no
7575   else
7576     # finding both strings is unlikely to happen, but who knows?
7577     ac_cv_c_bigendian=unknown
7578   fi
7579 fi
7580 else
7581   echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584
7585 fi
7586
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 else
7589   cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595 $ac_includes_default
7596 int
7597 main ()
7598 {
7599
7600   /* Are we little or big endian?  From Harbison&Steele.  */
7601   union
7602   {
7603     long int l;
7604     char c[sizeof (long int)];
7605   } u;
7606   u.l = 1;
7607   return u.c[sizeof (long int) - 1] == 1;
7608
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest$ac_exeext
7614 if { (ac_try="$ac_link"
7615 case "(($ac_try" in
7616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617   *) ac_try_echo=$ac_try;;
7618 esac
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620   (eval "$ac_link") 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7624   { (case "(($ac_try" in
7625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626   *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629   (eval "$ac_try") 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; }; then
7633   ac_cv_c_bigendian=no
7634 else
7635   echo "$as_me: program exited with status $ac_status" >&5
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7638
7639 ( exit $ac_status )
7640 ac_cv_c_bigendian=yes
7641 fi
7642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7643 fi
7644
7645
7646 fi
7647
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 fi
7650 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7651 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7652 case $ac_cv_c_bigendian in
7653   yes)
7654
7655 cat >>confdefs.h <<\_ACEOF
7656 #define WORDS_BIGENDIAN 1
7657 _ACEOF
7658  ;;
7659   no)
7660      ;;
7661   *)
7662     { { echo "$as_me:$LINENO: error: unknown endianness
7663 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7664 echo "$as_me: error: unknown endianness
7665 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7666    { (exit 1); exit 1; }; } ;;
7667 esac
7668
7669
7670 { echo "$as_me:$LINENO: checking if ANSI prototypes work" >&5
7671 echo $ECHO_N "checking if ANSI prototypes work... $ECHO_C" >&6; }
7672 if test "${ac_cv_have_ansi_prototypes+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675
7676   cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h.  */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h.  */
7682 int foo(char *); int foo (char *bar) {return 1;}
7683 int
7684 main ()
7685 {
7686 foo("bar")
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698   (eval "$ac_compile") 2>conftest.er1
7699   ac_status=$?
7700   grep -v '^ *+' conftest.er1 >conftest.err
7701   rm -f conftest.er1
7702   cat conftest.err >&5
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); } && {
7705          test -z "$ac_c_werror_flag" ||
7706          test ! -s conftest.err
7707        } && test -s conftest.$ac_objext; then
7708   ac_cv_have_ansi_prototypes="yes"
7709 else
7710   echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7712
7713         ac_cv_have_ansi_prototypes="no"
7714 fi
7715
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717
7718 fi
7719 { echo "$as_me:$LINENO: result: $ac_cv_have_ansi_prototypes" >&5
7720 echo "${ECHO_T}$ac_cv_have_ansi_prototypes" >&6; }
7721 if test $ac_cv_have_ansi_prototypes = "yes" ; then
7722   cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_ANSI_PROTOTYPES 1
7724 _ACEOF
7725
7726 fi
7727
7728 { echo "$as_me:$LINENO: checking for tm->tm_gmtoff" >&5
7729 echo $ECHO_N "checking for tm->tm_gmtoff... $ECHO_C" >&6; }
7730 if test "${ac_cv_have_tm_gmoff+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733
7734   cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740 #include <time.h>
7741 #include <sys/time.h>
7742 int
7743 main ()
7744 {
7745 struct tm foo;
7746       foo.tm_gmtoff = 0;
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext
7752 if { (ac_try="$ac_compile"
7753 case "(($ac_try" in
7754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755   *) ac_try_echo=$ac_try;;
7756 esac
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758   (eval "$ac_compile") 2>conftest.er1
7759   ac_status=$?
7760   grep -v '^ *+' conftest.er1 >conftest.err
7761   rm -f conftest.er1
7762   cat conftest.err >&5
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } && {
7765          test -z "$ac_c_werror_flag" ||
7766          test ! -s conftest.err
7767        } && test -s conftest.$ac_objext; then
7768   ac_cv_have_tm_gmoff="yes"
7769 else
7770   echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773         ac_cv_have_tm_gmoff="no"
7774 fi
7775
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777
7778 fi
7779 { echo "$as_me:$LINENO: result: $ac_cv_have_tm_gmoff" >&5
7780 echo "${ECHO_T}$ac_cv_have_tm_gmoff" >&6; }
7781 if test $ac_cv_have_tm_gmoff = "yes" ; then
7782   cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_TM_GMTOFF 1
7784 _ACEOF
7785
7786 fi
7787
7788 { echo "$as_me:$LINENO: checking for struct mallinfo" >&5
7789 echo $ECHO_N "checking for struct mallinfo... $ECHO_C" >&6; }
7790 if test "${ac_cv_have_struct_mallinfo+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793
7794   cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800 #include <sys/types.h>
7801 #if HAVE_MALLOC_H
7802 #include <malloc.h>
7803 #endif
7804 int
7805 main ()
7806 {
7807 struct mallinfo foo;
7808     foo.arena = 0;
7809     foo.ordblks = 0;
7810     foo.smblks = 0;
7811     foo.hblks = 0;
7812     foo.hblkhd = 0;
7813     foo.uordblks = 0;
7814     foo.fordblks = 0;
7815     foo.keepcost = 0;
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824   *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827   (eval "$ac_compile") 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } && {
7834          test -z "$ac_c_werror_flag" ||
7835          test ! -s conftest.err
7836        } && test -s conftest.$ac_objext; then
7837   ac_cv_have_struct_mallinfo="yes"
7838 else
7839   echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842         ac_cv_have_struct_mallinfo="no"
7843 fi
7844
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846
7847 fi
7848 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_mallinfo" >&5
7849 echo "${ECHO_T}$ac_cv_have_struct_mallinfo" >&6; }
7850 if test $ac_cv_have_struct_mallinfo = "yes" ; then
7851   cat >>confdefs.h <<\_ACEOF
7852 #define HAVE_STRUCT_MALLINFO 1
7853 _ACEOF
7854
7855 fi
7856
7857 { echo "$as_me:$LINENO: checking for extended mallinfo" >&5
7858 echo $ECHO_N "checking for extended mallinfo... $ECHO_C" >&6; }
7859 if test "${ac_cv_have_ext_mallinfo+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862
7863   cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h.  */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h.  */
7869 #include <sys/types.h>
7870 #include <malloc.h>
7871 int
7872 main ()
7873 {
7874 struct mallinfo foo;
7875       foo.mxfast = 0;
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7882 case "(($ac_try" in
7883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884   *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887   (eval "$ac_compile") 2>conftest.er1
7888   ac_status=$?
7889   grep -v '^ *+' conftest.er1 >conftest.err
7890   rm -f conftest.er1
7891   cat conftest.err >&5
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); } && {
7894          test -z "$ac_c_werror_flag" ||
7895          test ! -s conftest.err
7896        } && test -s conftest.$ac_objext; then
7897   ac_cv_have_ext_mallinfo="yes"
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902         ac_cv_have_ext_mallinfo="no"
7903 fi
7904
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906
7907 fi
7908 { echo "$as_me:$LINENO: result: $ac_cv_have_ext_mallinfo" >&5
7909 echo "${ECHO_T}$ac_cv_have_ext_mallinfo" >&6; }
7910 if test $ac_cv_have_ext_mallinfo = "yes" ; then
7911   cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_EXT_MALLINFO 1
7913 _ACEOF
7914
7915 fi
7916
7917 { echo "$as_me:$LINENO: checking for struct rusage" >&5
7918 echo $ECHO_N "checking for struct rusage... $ECHO_C" >&6; }
7919 if test "${ac_cv_have_struct_rusage+set}" = set; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922
7923   cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h.  */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h.  */
7929
7930 #if HAVE_SYS_TIME_H
7931 #include <sys/time.h>
7932 #endif
7933 #if HAVE_SYS_RESOURCE_H
7934 #include <sys/resource.h>
7935 #endif
7936 int
7937 main ()
7938 {
7939 struct rusage R;
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7946 case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_compile") 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } && {
7958          test -z "$ac_c_werror_flag" ||
7959          test ! -s conftest.err
7960        } && test -s conftest.$ac_objext; then
7961   ac_cv_have_struct_rusage="yes"
7962 else
7963   echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966         ac_cv_have_struct_rusage="no"
7967 fi
7968
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970
7971 fi
7972 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_rusage" >&5
7973 echo "${ECHO_T}$ac_cv_have_struct_rusage" >&6; }
7974 if test $ac_cv_have_struct_rusage = "yes" ; then
7975   cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_STRUCT_RUSAGE 1
7977 _ACEOF
7978
7979 fi
7980
7981 { echo "$as_me:$LINENO: checking for ip->ip_hl" >&5
7982 echo $ECHO_N "checking for ip->ip_hl... $ECHO_C" >&6; }
7983 if test "${ac_cv_have_ip_hl+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986
7987   cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993 #include <sys/types.h>
7994 #include <netinet/in.h>
7995 #include <netinet/in_systm.h>
7996 #include <netinet/ip.h>
7997 #if defined (__linux__) || defined (__CYGWIN__)
7998 #define ip_hl ihl
7999 #endif
8000 #ifndef __linux__
8001 #ifndef __CYGWIN__
8002 #define iphdr ip
8003 #endif
8004 #endif
8005 int
8006 main ()
8007 {
8008 struct iphdr ip;
8009       ip.ip_hl= 0;
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (ac_try="$ac_compile"
8016 case "(($ac_try" in
8017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018   *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021   (eval "$ac_compile") 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } && {
8028          test -z "$ac_c_werror_flag" ||
8029          test ! -s conftest.err
8030        } && test -s conftest.$ac_objext; then
8031   ac_cv_have_ip_hl="yes"
8032 else
8033   echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036         ac_cv_have_ip_hl="no"
8037 fi
8038
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040
8041 fi
8042 { echo "$as_me:$LINENO: result: $ac_cv_have_ip_hl" >&5
8043 echo "${ECHO_T}$ac_cv_have_ip_hl" >&6; }
8044 if test $ac_cv_have_ip_hl = "yes" ; then
8045   cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_IP_HL 1
8047 _ACEOF
8048
8049 fi
8050
8051 { echo "$as_me:$LINENO: checking for void *" >&5
8052 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8053 if test "${ac_cv_type_void_p+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062 $ac_includes_default
8063 typedef void * ac__type_new_;
8064 int
8065 main ()
8066 {
8067 if ((ac__type_new_ *) 0)
8068   return 0;
8069 if (sizeof (ac__type_new_))
8070   return 0;
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079   *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082   (eval "$ac_compile") 2>conftest.er1
8083   ac_status=$?
8084   grep -v '^ *+' conftest.er1 >conftest.err
8085   rm -f conftest.er1
8086   cat conftest.err >&5
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); } && {
8089          test -z "$ac_c_werror_flag" ||
8090          test ! -s conftest.err
8091        } && test -s conftest.$ac_objext; then
8092   ac_cv_type_void_p=yes
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097         ac_cv_type_void_p=no
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8103 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8104
8105 # The cast to long int works around a bug in the HP C Compiler
8106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8108 # This bug is HP SR number 8606223364.
8109 { echo "$as_me:$LINENO: checking size of void *" >&5
8110 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8111 if test "${ac_cv_sizeof_void_p+set}" = set; then
8112   echo $ECHO_N "(cached) $ECHO_C" >&6
8113 else
8114   if test "$cross_compiling" = yes; then
8115   # Depending upon the size, compute the lo and hi bounds.
8116 cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 $ac_includes_default
8123    typedef void * ac__type_sizeof_;
8124 int
8125 main ()
8126 {
8127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8128 test_array [0] = 0
8129
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext
8135 if { (ac_try="$ac_compile"
8136 case "(($ac_try" in
8137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138   *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141   (eval "$ac_compile") 2>conftest.er1
8142   ac_status=$?
8143   grep -v '^ *+' conftest.er1 >conftest.err
8144   rm -f conftest.er1
8145   cat conftest.err >&5
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } && {
8148          test -z "$ac_c_werror_flag" ||
8149          test ! -s conftest.err
8150        } && test -s conftest.$ac_objext; then
8151   ac_lo=0 ac_mid=0
8152   while :; do
8153     cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h.  */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h.  */
8159 $ac_includes_default
8160    typedef void * ac__type_sizeof_;
8161 int
8162 main ()
8163 {
8164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8165 test_array [0] = 0
8166
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext
8172 if { (ac_try="$ac_compile"
8173 case "(($ac_try" in
8174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175   *) ac_try_echo=$ac_try;;
8176 esac
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178   (eval "$ac_compile") 2>conftest.er1
8179   ac_status=$?
8180   grep -v '^ *+' conftest.er1 >conftest.err
8181   rm -f conftest.er1
8182   cat conftest.err >&5
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } && {
8185          test -z "$ac_c_werror_flag" ||
8186          test ! -s conftest.err
8187        } && test -s conftest.$ac_objext; then
8188   ac_hi=$ac_mid; break
8189 else
8190   echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193         ac_lo=`expr $ac_mid + 1`
8194                         if test $ac_lo -le $ac_mid; then
8195                           ac_lo= ac_hi=
8196                           break
8197                         fi
8198                         ac_mid=`expr 2 '*' $ac_mid + 1`
8199 fi
8200
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202   done
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207         cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 $ac_includes_default
8214    typedef void * ac__type_sizeof_;
8215 int
8216 main ()
8217 {
8218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8219 test_array [0] = 0
8220
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8227 case "(($ac_try" in
8228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229   *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232   (eval "$ac_compile") 2>conftest.er1
8233   ac_status=$?
8234   grep -v '^ *+' conftest.er1 >conftest.err
8235   rm -f conftest.er1
8236   cat conftest.err >&5
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } && {
8239          test -z "$ac_c_werror_flag" ||
8240          test ! -s conftest.err
8241        } && test -s conftest.$ac_objext; then
8242   ac_hi=-1 ac_mid=-1
8243   while :; do
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 $ac_includes_default
8251    typedef void * ac__type_sizeof_;
8252 int
8253 main ()
8254 {
8255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8256 test_array [0] = 0
8257
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_lo=$ac_mid; break
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         ac_hi=`expr '(' $ac_mid ')' - 1`
8285                         if test $ac_mid -le $ac_hi; then
8286                           ac_lo= ac_hi=
8287                           break
8288                         fi
8289                         ac_mid=`expr 2 '*' $ac_mid`
8290 fi
8291
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293   done
8294 else
8295   echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298         ac_lo= ac_hi=
8299 fi
8300
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 # Binary search between lo and hi bounds.
8306 while test "x$ac_lo" != "x$ac_hi"; do
8307   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8308   cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 $ac_includes_default
8315    typedef void * ac__type_sizeof_;
8316 int
8317 main ()
8318 {
8319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8320 test_array [0] = 0
8321
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_compile") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } && {
8340          test -z "$ac_c_werror_flag" ||
8341          test ! -s conftest.err
8342        } && test -s conftest.$ac_objext; then
8343   ac_hi=$ac_mid
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348         ac_lo=`expr '(' $ac_mid ')' + 1`
8349 fi
8350
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 done
8353 case $ac_lo in
8354 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8355 '') if test "$ac_cv_type_void_p" = yes; then
8356      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8357 See \`config.log' for more details." >&5
8358 echo "$as_me: error: cannot compute sizeof (void *)
8359 See \`config.log' for more details." >&2;}
8360    { (exit 77); exit 77; }; }
8361    else
8362      ac_cv_sizeof_void_p=0
8363    fi ;;
8364 esac
8365 else
8366   cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372 $ac_includes_default
8373    typedef void * ac__type_sizeof_;
8374 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8375 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8376 #include <stdio.h>
8377 #include <stdlib.h>
8378 int
8379 main ()
8380 {
8381
8382   FILE *f = fopen ("conftest.val", "w");
8383   if (! f)
8384     return 1;
8385   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8386     {
8387       long int i = longval ();
8388       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8389         return 1;
8390       fprintf (f, "%ld\n", i);
8391     }
8392   else
8393     {
8394       unsigned long int i = ulongval ();
8395       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8396         return 1;
8397       fprintf (f, "%lu\n", i);
8398     }
8399   return ferror (f) || fclose (f) != 0;
8400
8401   ;
8402   return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest$ac_exeext
8406 if { (ac_try="$ac_link"
8407 case "(($ac_try" in
8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409   *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412   (eval "$ac_link") 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8416   { (case "(($ac_try" in
8417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418   *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421   (eval "$ac_try") 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   ac_cv_sizeof_void_p=`cat conftest.val`
8426 else
8427   echo "$as_me: program exited with status $ac_status" >&5
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ( exit $ac_status )
8432 if test "$ac_cv_type_void_p" = yes; then
8433      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8434 See \`config.log' for more details." >&5
8435 echo "$as_me: error: cannot compute sizeof (void *)
8436 See \`config.log' for more details." >&2;}
8437    { (exit 77); exit 77; }; }
8438    else
8439      ac_cv_sizeof_void_p=0
8440    fi
8441 fi
8442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8443 fi
8444 rm -f conftest.val
8445 fi
8446 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8447 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8448
8449
8450
8451 cat >>confdefs.h <<_ACEOF
8452 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8453 _ACEOF
8454
8455
8456 { echo "$as_me:$LINENO: checking for short" >&5
8457 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8458 if test "${ac_cv_type_short+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h.  */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h.  */
8467 $ac_includes_default
8468 typedef short ac__type_new_;
8469 int
8470 main ()
8471 {
8472 if ((ac__type_new_ *) 0)
8473   return 0;
8474 if (sizeof (ac__type_new_))
8475   return 0;
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext
8481 if { (ac_try="$ac_compile"
8482 case "(($ac_try" in
8483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484   *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487   (eval "$ac_compile") 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } && {
8494          test -z "$ac_c_werror_flag" ||
8495          test ! -s conftest.err
8496        } && test -s conftest.$ac_objext; then
8497   ac_cv_type_short=yes
8498 else
8499   echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502         ac_cv_type_short=no
8503 fi
8504
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 fi
8507 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8508 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8509
8510 # The cast to long int works around a bug in the HP C Compiler
8511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8513 # This bug is HP SR number 8606223364.
8514 { echo "$as_me:$LINENO: checking size of short" >&5
8515 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8516 if test "${ac_cv_sizeof_short+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   if test "$cross_compiling" = yes; then
8520   # Depending upon the size, compute the lo and hi bounds.
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h.  */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h.  */
8527 $ac_includes_default
8528    typedef short ac__type_sizeof_;
8529 int
8530 main ()
8531 {
8532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8533 test_array [0] = 0
8534
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8541 case "(($ac_try" in
8542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543   *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546   (eval "$ac_compile") 2>conftest.er1
8547   ac_status=$?
8548   grep -v '^ *+' conftest.er1 >conftest.err
8549   rm -f conftest.er1
8550   cat conftest.err >&5
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } && {
8553          test -z "$ac_c_werror_flag" ||
8554          test ! -s conftest.err
8555        } && test -s conftest.$ac_objext; then
8556   ac_lo=0 ac_mid=0
8557   while :; do
8558     cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564 $ac_includes_default
8565    typedef short ac__type_sizeof_;
8566 int
8567 main ()
8568 {
8569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8570 test_array [0] = 0
8571
8572   ;
8573   return 0;
8574 }
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (ac_try="$ac_compile"
8578 case "(($ac_try" in
8579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580   *) ac_try_echo=$ac_try;;
8581 esac
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583   (eval "$ac_compile") 2>conftest.er1
8584   ac_status=$?
8585   grep -v '^ *+' conftest.er1 >conftest.err
8586   rm -f conftest.er1
8587   cat conftest.err >&5
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); } && {
8590          test -z "$ac_c_werror_flag" ||
8591          test ! -s conftest.err
8592        } && test -s conftest.$ac_objext; then
8593   ac_hi=$ac_mid; break
8594 else
8595   echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8597
8598         ac_lo=`expr $ac_mid + 1`
8599                         if test $ac_lo -le $ac_mid; then
8600                           ac_lo= ac_hi=
8601                           break
8602                         fi
8603                         ac_mid=`expr 2 '*' $ac_mid + 1`
8604 fi
8605
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607   done
8608 else
8609   echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612         cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h.  */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h.  */
8618 $ac_includes_default
8619    typedef short ac__type_sizeof_;
8620 int
8621 main ()
8622 {
8623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8624 test_array [0] = 0
8625
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8632 case "(($ac_try" in
8633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634   *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637   (eval "$ac_compile") 2>conftest.er1
8638   ac_status=$?
8639   grep -v '^ *+' conftest.er1 >conftest.err
8640   rm -f conftest.er1
8641   cat conftest.err >&5
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); } && {
8644          test -z "$ac_c_werror_flag" ||
8645          test ! -s conftest.err
8646        } && test -s conftest.$ac_objext; then
8647   ac_hi=-1 ac_mid=-1
8648   while :; do
8649     cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h.  */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h.  */
8655 $ac_includes_default
8656    typedef short ac__type_sizeof_;
8657 int
8658 main ()
8659 {
8660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8661 test_array [0] = 0
8662
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8669 case "(($ac_try" in
8670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671   *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674   (eval "$ac_compile") 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } && {
8681          test -z "$ac_c_werror_flag" ||
8682          test ! -s conftest.err
8683        } && test -s conftest.$ac_objext; then
8684   ac_lo=$ac_mid; break
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689         ac_hi=`expr '(' $ac_mid ')' - 1`
8690                         if test $ac_mid -le $ac_hi; then
8691                           ac_lo= ac_hi=
8692                           break
8693                         fi
8694                         ac_mid=`expr 2 '*' $ac_mid`
8695 fi
8696
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698   done
8699 else
8700   echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703         ac_lo= ac_hi=
8704 fi
8705
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 fi
8708
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 # Binary search between lo and hi bounds.
8711 while test "x$ac_lo" != "x$ac_hi"; do
8712   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8713   cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h.  */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h.  */
8719 $ac_includes_default
8720    typedef short ac__type_sizeof_;
8721 int
8722 main ()
8723 {
8724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8725 test_array [0] = 0
8726
8727   ;
8728   return 0;
8729 }
8730 _ACEOF
8731 rm -f conftest.$ac_objext
8732 if { (ac_try="$ac_compile"
8733 case "(($ac_try" in
8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735   *) ac_try_echo=$ac_try;;
8736 esac
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738   (eval "$ac_compile") 2>conftest.er1
8739   ac_status=$?
8740   grep -v '^ *+' conftest.er1 >conftest.err
8741   rm -f conftest.er1
8742   cat conftest.err >&5
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); } && {
8745          test -z "$ac_c_werror_flag" ||
8746          test ! -s conftest.err
8747        } && test -s conftest.$ac_objext; then
8748   ac_hi=$ac_mid
8749 else
8750   echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753         ac_lo=`expr '(' $ac_mid ')' + 1`
8754 fi
8755
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 done
8758 case $ac_lo in
8759 ?*) ac_cv_sizeof_short=$ac_lo;;
8760 '') if test "$ac_cv_type_short" = yes; then
8761      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8762 See \`config.log' for more details." >&5
8763 echo "$as_me: error: cannot compute sizeof (short)
8764 See \`config.log' for more details." >&2;}
8765    { (exit 77); exit 77; }; }
8766    else
8767      ac_cv_sizeof_short=0
8768    fi ;;
8769 esac
8770 else
8771   cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h.  */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h.  */
8777 $ac_includes_default
8778    typedef short ac__type_sizeof_;
8779 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8780 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8781 #include <stdio.h>
8782 #include <stdlib.h>
8783 int
8784 main ()
8785 {
8786
8787   FILE *f = fopen ("conftest.val", "w");
8788   if (! f)
8789     return 1;
8790   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8791     {
8792       long int i = longval ();
8793       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8794         return 1;
8795       fprintf (f, "%ld\n", i);
8796     }
8797   else
8798     {
8799       unsigned long int i = ulongval ();
8800       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8801         return 1;
8802       fprintf (f, "%lu\n", i);
8803     }
8804   return ferror (f) || fclose (f) != 0;
8805
8806   ;
8807   return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8812 case "(($ac_try" in
8813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814   *) ac_try_echo=$ac_try;;
8815 esac
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817   (eval "$ac_link") 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8821   { (case "(($ac_try" in
8822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823   *) ac_try_echo=$ac_try;;
8824 esac
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826   (eval "$ac_try") 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_sizeof_short=`cat conftest.val`
8831 else
8832   echo "$as_me: program exited with status $ac_status" >&5
8833 echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836 ( exit $ac_status )
8837 if test "$ac_cv_type_short" = yes; then
8838      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8839 See \`config.log' for more details." >&5
8840 echo "$as_me: error: cannot compute sizeof (short)
8841 See \`config.log' for more details." >&2;}
8842    { (exit 77); exit 77; }; }
8843    else
8844      ac_cv_sizeof_short=0
8845    fi
8846 fi
8847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8848 fi
8849 rm -f conftest.val
8850 fi
8851 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8852 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8853
8854
8855
8856 cat >>confdefs.h <<_ACEOF
8857 #define SIZEOF_SHORT $ac_cv_sizeof_short
8858 _ACEOF
8859
8860
8861 { echo "$as_me:$LINENO: checking for int" >&5
8862 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8863 if test "${ac_cv_type_int+set}" = set; then
8864   echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866   cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872 $ac_includes_default
8873 typedef int ac__type_new_;
8874 int
8875 main ()
8876 {
8877 if ((ac__type_new_ *) 0)
8878   return 0;
8879 if (sizeof (ac__type_new_))
8880   return 0;
8881   ;
8882   return 0;
8883 }
8884 _ACEOF
8885 rm -f conftest.$ac_objext
8886 if { (ac_try="$ac_compile"
8887 case "(($ac_try" in
8888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889   *) ac_try_echo=$ac_try;;
8890 esac
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892   (eval "$ac_compile") 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } && {
8899          test -z "$ac_c_werror_flag" ||
8900          test ! -s conftest.err
8901        } && test -s conftest.$ac_objext; then
8902   ac_cv_type_int=yes
8903 else
8904   echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907         ac_cv_type_int=no
8908 fi
8909
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8913 echo "${ECHO_T}$ac_cv_type_int" >&6; }
8914
8915 # The cast to long int works around a bug in the HP C Compiler
8916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8918 # This bug is HP SR number 8606223364.
8919 { echo "$as_me:$LINENO: checking size of int" >&5
8920 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8921 if test "${ac_cv_sizeof_int+set}" = set; then
8922   echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924   if test "$cross_compiling" = yes; then
8925   # Depending upon the size, compute the lo and hi bounds.
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h.  */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h.  */
8932 $ac_includes_default
8933    typedef int ac__type_sizeof_;
8934 int
8935 main ()
8936 {
8937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8938 test_array [0] = 0
8939
8940   ;
8941   return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext
8945 if { (ac_try="$ac_compile"
8946 case "(($ac_try" in
8947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948   *) ac_try_echo=$ac_try;;
8949 esac
8950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951   (eval "$ac_compile") 2>conftest.er1
8952   ac_status=$?
8953   grep -v '^ *+' conftest.er1 >conftest.err
8954   rm -f conftest.er1
8955   cat conftest.err >&5
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); } && {
8958          test -z "$ac_c_werror_flag" ||
8959          test ! -s conftest.err
8960        } && test -s conftest.$ac_objext; then
8961   ac_lo=0 ac_mid=0
8962   while :; do
8963     cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h.  */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h.  */
8969 $ac_includes_default
8970    typedef int ac__type_sizeof_;
8971 int
8972 main ()
8973 {
8974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8975 test_array [0] = 0
8976
8977   ;
8978   return 0;
8979 }
8980 _ACEOF
8981 rm -f conftest.$ac_objext
8982 if { (ac_try="$ac_compile"
8983 case "(($ac_try" in
8984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985   *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988   (eval "$ac_compile") 2>conftest.er1
8989   ac_status=$?
8990   grep -v '^ *+' conftest.er1 >conftest.err
8991   rm -f conftest.er1
8992   cat conftest.err >&5
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); } && {
8995          test -z "$ac_c_werror_flag" ||
8996          test ! -s conftest.err
8997        } && test -s conftest.$ac_objext; then
8998   ac_hi=$ac_mid; break
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003         ac_lo=`expr $ac_mid + 1`
9004                         if test $ac_lo -le $ac_mid; then
9005                           ac_lo= ac_hi=
9006                           break
9007                         fi
9008                         ac_mid=`expr 2 '*' $ac_mid + 1`
9009 fi
9010
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012   done
9013 else
9014   echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9016
9017         cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h.  */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h.  */
9023 $ac_includes_default
9024    typedef int ac__type_sizeof_;
9025 int
9026 main ()
9027 {
9028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9029 test_array [0] = 0
9030
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (ac_try="$ac_compile"
9037 case "(($ac_try" in
9038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039   *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042   (eval "$ac_compile") 2>conftest.er1
9043   ac_status=$?
9044   grep -v '^ *+' conftest.er1 >conftest.err
9045   rm -f conftest.er1
9046   cat conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); } && {
9049          test -z "$ac_c_werror_flag" ||
9050          test ! -s conftest.err
9051        } && test -s conftest.$ac_objext; then
9052   ac_hi=-1 ac_mid=-1
9053   while :; do
9054     cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060 $ac_includes_default
9061    typedef int ac__type_sizeof_;
9062 int
9063 main ()
9064 {
9065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9066 test_array [0] = 0
9067
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext
9073 if { (ac_try="$ac_compile"
9074 case "(($ac_try" in
9075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076   *) ac_try_echo=$ac_try;;
9077 esac
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079   (eval "$ac_compile") 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } && {
9086          test -z "$ac_c_werror_flag" ||
9087          test ! -s conftest.err
9088        } && test -s conftest.$ac_objext; then
9089   ac_lo=$ac_mid; break
9090 else
9091   echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094         ac_hi=`expr '(' $ac_mid ')' - 1`
9095                         if test $ac_mid -le $ac_hi; then
9096                           ac_lo= ac_hi=
9097                           break
9098                         fi
9099                         ac_mid=`expr 2 '*' $ac_mid`
9100 fi
9101
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103   done
9104 else
9105   echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9107
9108         ac_lo= ac_hi=
9109 fi
9110
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 fi
9113
9114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9115 # Binary search between lo and hi bounds.
9116 while test "x$ac_lo" != "x$ac_hi"; do
9117   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9118   cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 $ac_includes_default
9125    typedef int ac__type_sizeof_;
9126 int
9127 main ()
9128 {
9129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9130 test_array [0] = 0
9131
9132   ;
9133   return 0;
9134 }
9135 _ACEOF
9136 rm -f conftest.$ac_objext
9137 if { (ac_try="$ac_compile"
9138 case "(($ac_try" in
9139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140   *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143   (eval "$ac_compile") 2>conftest.er1
9144   ac_status=$?
9145   grep -v '^ *+' conftest.er1 >conftest.err
9146   rm -f conftest.er1
9147   cat conftest.err >&5
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); } && {
9150          test -z "$ac_c_werror_flag" ||
9151          test ! -s conftest.err
9152        } && test -s conftest.$ac_objext; then
9153   ac_hi=$ac_mid
9154 else
9155   echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9157
9158         ac_lo=`expr '(' $ac_mid ')' + 1`
9159 fi
9160
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 done
9163 case $ac_lo in
9164 ?*) ac_cv_sizeof_int=$ac_lo;;
9165 '') if test "$ac_cv_type_int" = yes; then
9166      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9167 See \`config.log' for more details." >&5
9168 echo "$as_me: error: cannot compute sizeof (int)
9169 See \`config.log' for more details." >&2;}
9170    { (exit 77); exit 77; }; }
9171    else
9172      ac_cv_sizeof_int=0
9173    fi ;;
9174 esac
9175 else
9176   cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h.  */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h.  */
9182 $ac_includes_default
9183    typedef int ac__type_sizeof_;
9184 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9185 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9186 #include <stdio.h>
9187 #include <stdlib.h>
9188 int
9189 main ()
9190 {
9191
9192   FILE *f = fopen ("conftest.val", "w");
9193   if (! f)
9194     return 1;
9195   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9196     {
9197       long int i = longval ();
9198       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9199         return 1;
9200       fprintf (f, "%ld\n", i);
9201     }
9202   else
9203     {
9204       unsigned long int i = ulongval ();
9205       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9206         return 1;
9207       fprintf (f, "%lu\n", i);
9208     }
9209   return ferror (f) || fclose (f) != 0;
9210
9211   ;
9212   return 0;
9213 }
9214 _ACEOF
9215 rm -f conftest$ac_exeext
9216 if { (ac_try="$ac_link"
9217 case "(($ac_try" in
9218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219   *) ac_try_echo=$ac_try;;
9220 esac
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222   (eval "$ac_link") 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9226   { (case "(($ac_try" in
9227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228   *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231   (eval "$ac_try") 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); }; }; then
9235   ac_cv_sizeof_int=`cat conftest.val`
9236 else
9237   echo "$as_me: program exited with status $ac_status" >&5
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ( exit $ac_status )
9242 if test "$ac_cv_type_int" = yes; then
9243      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9244 See \`config.log' for more details." >&5
9245 echo "$as_me: error: cannot compute sizeof (int)
9246 See \`config.log' for more details." >&2;}
9247    { (exit 77); exit 77; }; }
9248    else
9249      ac_cv_sizeof_int=0
9250    fi
9251 fi
9252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9253 fi
9254 rm -f conftest.val
9255 fi
9256 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9257 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9258
9259
9260
9261 cat >>confdefs.h <<_ACEOF
9262 #define SIZEOF_INT $ac_cv_sizeof_int
9263 _ACEOF
9264
9265
9266 { echo "$as_me:$LINENO: checking for long" >&5
9267 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
9268 if test "${ac_cv_type_long+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h.  */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h.  */
9277 $ac_includes_default
9278 typedef long ac__type_new_;
9279 int
9280 main ()
9281 {
9282 if ((ac__type_new_ *) 0)
9283   return 0;
9284 if (sizeof (ac__type_new_))
9285   return 0;
9286   ;
9287   return 0;
9288 }
9289 _ACEOF
9290 rm -f conftest.$ac_objext
9291 if { (ac_try="$ac_compile"
9292 case "(($ac_try" in
9293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294   *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297   (eval "$ac_compile") 2>conftest.er1
9298   ac_status=$?
9299   grep -v '^ *+' conftest.er1 >conftest.err
9300   rm -f conftest.er1
9301   cat conftest.err >&5
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } && {
9304          test -z "$ac_c_werror_flag" ||
9305          test ! -s conftest.err
9306        } && test -s conftest.$ac_objext; then
9307   ac_cv_type_long=yes
9308 else
9309   echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312         ac_cv_type_long=no
9313 fi
9314
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 fi
9317 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9318 echo "${ECHO_T}$ac_cv_type_long" >&6; }
9319
9320 # The cast to long int works around a bug in the HP C Compiler
9321 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9322 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9323 # This bug is HP SR number 8606223364.
9324 { echo "$as_me:$LINENO: checking size of long" >&5
9325 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
9326 if test "${ac_cv_sizeof_long+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   if test "$cross_compiling" = yes; then
9330   # Depending upon the size, compute the lo and hi bounds.
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h.  */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h.  */
9337 $ac_includes_default
9338    typedef long ac__type_sizeof_;
9339 int
9340 main ()
9341 {
9342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9343 test_array [0] = 0
9344
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9351 case "(($ac_try" in
9352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353   *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356   (eval "$ac_compile") 2>conftest.er1
9357   ac_status=$?
9358   grep -v '^ *+' conftest.er1 >conftest.err
9359   rm -f conftest.er1
9360   cat conftest.err >&5
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } && {
9363          test -z "$ac_c_werror_flag" ||
9364          test ! -s conftest.err
9365        } && test -s conftest.$ac_objext; then
9366   ac_lo=0 ac_mid=0
9367   while :; do
9368     cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374 $ac_includes_default
9375    typedef long ac__type_sizeof_;
9376 int
9377 main ()
9378 {
9379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9380 test_array [0] = 0
9381
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (ac_try="$ac_compile"
9388 case "(($ac_try" in
9389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390   *) ac_try_echo=$ac_try;;
9391 esac
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393   (eval "$ac_compile") 2>conftest.er1
9394   ac_status=$?
9395   grep -v '^ *+' conftest.er1 >conftest.err
9396   rm -f conftest.er1
9397   cat conftest.err >&5
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); } && {
9400          test -z "$ac_c_werror_flag" ||
9401          test ! -s conftest.err
9402        } && test -s conftest.$ac_objext; then
9403   ac_hi=$ac_mid; break
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408         ac_lo=`expr $ac_mid + 1`
9409                         if test $ac_lo -le $ac_mid; then
9410                           ac_lo= ac_hi=
9411                           break
9412                         fi
9413                         ac_mid=`expr 2 '*' $ac_mid + 1`
9414 fi
9415
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417   done
9418 else
9419   echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9421
9422         cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9428 $ac_includes_default
9429    typedef long ac__type_sizeof_;
9430 int
9431 main ()
9432 {
9433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9434 test_array [0] = 0
9435
9436   ;
9437   return 0;
9438 }
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9442 case "(($ac_try" in
9443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444   *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447   (eval "$ac_compile") 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } && {
9454          test -z "$ac_c_werror_flag" ||
9455          test ! -s conftest.err
9456        } && test -s conftest.$ac_objext; then
9457   ac_hi=-1 ac_mid=-1
9458   while :; do
9459     cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h.  */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h.  */
9465 $ac_includes_default
9466    typedef long ac__type_sizeof_;
9467 int
9468 main ()
9469 {
9470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9471 test_array [0] = 0
9472
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext
9478 if { (ac_try="$ac_compile"
9479 case "(($ac_try" in
9480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481   *) ac_try_echo=$ac_try;;
9482 esac
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484   (eval "$ac_compile") 2>conftest.er1
9485   ac_status=$?
9486   grep -v '^ *+' conftest.er1 >conftest.err
9487   rm -f conftest.er1
9488   cat conftest.err >&5
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); } && {
9491          test -z "$ac_c_werror_flag" ||
9492          test ! -s conftest.err
9493        } && test -s conftest.$ac_objext; then
9494   ac_lo=$ac_mid; break
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499         ac_hi=`expr '(' $ac_mid ')' - 1`
9500                         if test $ac_mid -le $ac_hi; then
9501                           ac_lo= ac_hi=
9502                           break
9503                         fi
9504                         ac_mid=`expr 2 '*' $ac_mid`
9505 fi
9506
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508   done
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513         ac_lo= ac_hi=
9514 fi
9515
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 fi
9518
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 # Binary search between lo and hi bounds.
9521 while test "x$ac_lo" != "x$ac_hi"; do
9522   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9523   cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h.  */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h.  */
9529 $ac_includes_default
9530    typedef long ac__type_sizeof_;
9531 int
9532 main ()
9533 {
9534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9535 test_array [0] = 0
9536
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (ac_try="$ac_compile"
9543 case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548   (eval "$ac_compile") 2>conftest.er1
9549   ac_status=$?
9550   grep -v '^ *+' conftest.er1 >conftest.err
9551   rm -f conftest.er1
9552   cat conftest.err >&5
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } && {
9555          test -z "$ac_c_werror_flag" ||
9556          test ! -s conftest.err
9557        } && test -s conftest.$ac_objext; then
9558   ac_hi=$ac_mid
9559 else
9560   echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563         ac_lo=`expr '(' $ac_mid ')' + 1`
9564 fi
9565
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 done
9568 case $ac_lo in
9569 ?*) ac_cv_sizeof_long=$ac_lo;;
9570 '') if test "$ac_cv_type_long" = yes; then
9571      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9572 See \`config.log' for more details." >&5
9573 echo "$as_me: error: cannot compute sizeof (long)
9574 See \`config.log' for more details." >&2;}
9575    { (exit 77); exit 77; }; }
9576    else
9577      ac_cv_sizeof_long=0
9578    fi ;;
9579 esac
9580 else
9581   cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h.  */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h.  */
9587 $ac_includes_default
9588    typedef long ac__type_sizeof_;
9589 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9590 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9591 #include <stdio.h>
9592 #include <stdlib.h>
9593 int
9594 main ()
9595 {
9596
9597   FILE *f = fopen ("conftest.val", "w");
9598   if (! f)
9599     return 1;
9600   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9601     {
9602       long int i = longval ();
9603       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9604         return 1;
9605       fprintf (f, "%ld\n", i);
9606     }
9607   else
9608     {
9609       unsigned long int i = ulongval ();
9610       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9611         return 1;
9612       fprintf (f, "%lu\n", i);
9613     }
9614   return ferror (f) || fclose (f) != 0;
9615
9616   ;
9617   return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest$ac_exeext
9621 if { (ac_try="$ac_link"
9622 case "(($ac_try" in
9623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624   *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627   (eval "$ac_link") 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9631   { (case "(($ac_try" in
9632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633   *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636   (eval "$ac_try") 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; }; then
9640   ac_cv_sizeof_long=`cat conftest.val`
9641 else
9642   echo "$as_me: program exited with status $ac_status" >&5
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ( exit $ac_status )
9647 if test "$ac_cv_type_long" = yes; then
9648      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9649 See \`config.log' for more details." >&5
9650 echo "$as_me: error: cannot compute sizeof (long)
9651 See \`config.log' for more details." >&2;}
9652    { (exit 77); exit 77; }; }
9653    else
9654      ac_cv_sizeof_long=0
9655    fi
9656 fi
9657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9658 fi
9659 rm -f conftest.val
9660 fi
9661 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9662 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
9663
9664
9665
9666 cat >>confdefs.h <<_ACEOF
9667 #define SIZEOF_LONG $ac_cv_sizeof_long
9668 _ACEOF
9669
9670
9671 { echo "$as_me:$LINENO: checking for long long" >&5
9672 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9673 if test "${ac_cv_type_long_long+set}" = set; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676   cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h.  */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h.  */
9682 $ac_includes_default
9683 typedef long long ac__type_new_;
9684 int
9685 main ()
9686 {
9687 if ((ac__type_new_ *) 0)
9688   return 0;
9689 if (sizeof (ac__type_new_))
9690   return 0;
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest.$ac_objext
9696 if { (ac_try="$ac_compile"
9697 case "(($ac_try" in
9698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699   *) ac_try_echo=$ac_try;;
9700 esac
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702   (eval "$ac_compile") 2>conftest.er1
9703   ac_status=$?
9704   grep -v '^ *+' conftest.er1 >conftest.err
9705   rm -f conftest.er1
9706   cat conftest.err >&5
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); } && {
9709          test -z "$ac_c_werror_flag" ||
9710          test ! -s conftest.err
9711        } && test -s conftest.$ac_objext; then
9712   ac_cv_type_long_long=yes
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717         ac_cv_type_long_long=no
9718 fi
9719
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 fi
9722 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9723 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9724
9725 # The cast to long int works around a bug in the HP C Compiler
9726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9728 # This bug is HP SR number 8606223364.
9729 { echo "$as_me:$LINENO: checking size of long long" >&5
9730 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9731 if test "${ac_cv_sizeof_long_long+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   if test "$cross_compiling" = yes; then
9735   # Depending upon the size, compute the lo and hi bounds.
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742 $ac_includes_default
9743    typedef long long ac__type_sizeof_;
9744 int
9745 main ()
9746 {
9747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9748 test_array [0] = 0
9749
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (ac_try="$ac_compile"
9756 case "(($ac_try" in
9757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758   *) ac_try_echo=$ac_try;;
9759 esac
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761   (eval "$ac_compile") 2>conftest.er1
9762   ac_status=$?
9763   grep -v '^ *+' conftest.er1 >conftest.err
9764   rm -f conftest.er1
9765   cat conftest.err >&5
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } && {
9768          test -z "$ac_c_werror_flag" ||
9769          test ! -s conftest.err
9770        } && test -s conftest.$ac_objext; then
9771   ac_lo=0 ac_mid=0
9772   while :; do
9773     cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779 $ac_includes_default
9780    typedef long long ac__type_sizeof_;
9781 int
9782 main ()
9783 {
9784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9785 test_array [0] = 0
9786
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (ac_try="$ac_compile"
9793 case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_compile") 2>conftest.er1
9799   ac_status=$?
9800   grep -v '^ *+' conftest.er1 >conftest.err
9801   rm -f conftest.er1
9802   cat conftest.err >&5
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } && {
9805          test -z "$ac_c_werror_flag" ||
9806          test ! -s conftest.err
9807        } && test -s conftest.$ac_objext; then
9808   ac_hi=$ac_mid; break
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813         ac_lo=`expr $ac_mid + 1`
9814                         if test $ac_lo -le $ac_mid; then
9815                           ac_lo= ac_hi=
9816                           break
9817                         fi
9818                         ac_mid=`expr 2 '*' $ac_mid + 1`
9819 fi
9820
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822   done
9823 else
9824   echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827         cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833 $ac_includes_default
9834    typedef long long ac__type_sizeof_;
9835 int
9836 main ()
9837 {
9838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9839 test_array [0] = 0
9840
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext
9846 if { (ac_try="$ac_compile"
9847 case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_compile") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && {
9859          test -z "$ac_c_werror_flag" ||
9860          test ! -s conftest.err
9861        } && test -s conftest.$ac_objext; then
9862   ac_hi=-1 ac_mid=-1
9863   while :; do
9864     cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870 $ac_includes_default
9871    typedef long long ac__type_sizeof_;
9872 int
9873 main ()
9874 {
9875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9876 test_array [0] = 0
9877
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9884 case "(($ac_try" in
9885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886   *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889   (eval "$ac_compile") 2>conftest.er1
9890   ac_status=$?
9891   grep -v '^ *+' conftest.er1 >conftest.err
9892   rm -f conftest.er1
9893   cat conftest.err >&5
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } && {
9896          test -z "$ac_c_werror_flag" ||
9897          test ! -s conftest.err
9898        } && test -s conftest.$ac_objext; then
9899   ac_lo=$ac_mid; break
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904         ac_hi=`expr '(' $ac_mid ')' - 1`
9905                         if test $ac_mid -le $ac_hi; then
9906                           ac_lo= ac_hi=
9907                           break
9908                         fi
9909                         ac_mid=`expr 2 '*' $ac_mid`
9910 fi
9911
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913   done
9914 else
9915   echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918         ac_lo= ac_hi=
9919 fi
9920
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 fi
9923
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925 # Binary search between lo and hi bounds.
9926 while test "x$ac_lo" != "x$ac_hi"; do
9927   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9928   cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934 $ac_includes_default
9935    typedef long long ac__type_sizeof_;
9936 int
9937 main ()
9938 {
9939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9940 test_array [0] = 0
9941
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9948 case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953   (eval "$ac_compile") 2>conftest.er1
9954   ac_status=$?
9955   grep -v '^ *+' conftest.er1 >conftest.err
9956   rm -f conftest.er1
9957   cat conftest.err >&5
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); } && {
9960          test -z "$ac_c_werror_flag" ||
9961          test ! -s conftest.err
9962        } && test -s conftest.$ac_objext; then
9963   ac_hi=$ac_mid
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968         ac_lo=`expr '(' $ac_mid ')' + 1`
9969 fi
9970
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972 done
9973 case $ac_lo in
9974 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9975 '') if test "$ac_cv_type_long_long" = yes; then
9976      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9977 See \`config.log' for more details." >&5
9978 echo "$as_me: error: cannot compute sizeof (long long)
9979 See \`config.log' for more details." >&2;}
9980    { (exit 77); exit 77; }; }
9981    else
9982      ac_cv_sizeof_long_long=0
9983    fi ;;
9984 esac
9985 else
9986   cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h.  */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h.  */
9992 $ac_includes_default
9993    typedef long long ac__type_sizeof_;
9994 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9995 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9996 #include <stdio.h>
9997 #include <stdlib.h>
9998 int
9999 main ()
10000 {
10001
10002   FILE *f = fopen ("conftest.val", "w");
10003   if (! f)
10004     return 1;
10005   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10006     {
10007       long int i = longval ();
10008       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10009         return 1;
10010       fprintf (f, "%ld\n", i);
10011     }
10012   else
10013     {
10014       unsigned long int i = ulongval ();
10015       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10016         return 1;
10017       fprintf (f, "%lu\n", i);
10018     }
10019   return ferror (f) || fclose (f) != 0;
10020
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest$ac_exeext
10026 if { (ac_try="$ac_link"
10027 case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_link") 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10036   { (case "(($ac_try" in
10037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038   *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041   (eval "$ac_try") 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   ac_cv_sizeof_long_long=`cat conftest.val`
10046 else
10047   echo "$as_me: program exited with status $ac_status" >&5
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 ( exit $ac_status )
10052 if test "$ac_cv_type_long_long" = yes; then
10053      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10054 See \`config.log' for more details." >&5
10055 echo "$as_me: error: cannot compute sizeof (long long)
10056 See \`config.log' for more details." >&2;}
10057    { (exit 77); exit 77; }; }
10058    else
10059      ac_cv_sizeof_long_long=0
10060    fi
10061 fi
10062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10063 fi
10064 rm -f conftest.val
10065 fi
10066 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10067 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10068
10069
10070
10071 cat >>confdefs.h <<_ACEOF
10072 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10073 _ACEOF
10074
10075
10076 { echo "$as_me:$LINENO: checking size of __int64" >&5
10077 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
10078 if test "${ac_cv_sizeof___int64+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   if test "$cross_compiling" = yes; then
10082   ac_cv_sizeof___int64=8
10083 else
10084   cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h.  */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h.  */
10090
10091 #include <stdio.h>
10092 #if STDC_HEADERS
10093 #include <stdlib.h>
10094 #include <stddef.h>
10095 #endif
10096 #if HAVE_INTTYPES_H
10097 #include <inttypes.h>
10098 #endif
10099 #if HAVE_SYS_TYPES_H
10100 #include <sys/types.h>
10101 #endif
10102 #if HAVE_SYS_BITYPES_H
10103 #include <sys/bitypes.h>
10104 #endif
10105 int main()
10106 {
10107   FILE *f=fopen("conftestval", "w");
10108   if (!f) return(1);
10109   fprintf(f, "%d\n", sizeof(__int64));
10110   return(0);
10111 }
10112
10113 _ACEOF
10114 rm -f conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_link") 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10125   { (case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_try") 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   ac_cv_sizeof___int64=`cat conftestval`
10135 else
10136   echo "$as_me: program exited with status $ac_status" >&5
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140 ( exit $ac_status )
10141 ac_cv_sizeof___int64=0
10142 fi
10143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10144 fi
10145
10146
10147 fi
10148 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
10149 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
10150 cat >>confdefs.h <<_ACEOF
10151 #define SIZEOF___INT64 $ac_cv_sizeof___int64
10152 _ACEOF
10153
10154
10155 { echo "$as_me:$LINENO: checking size of int16_t" >&5
10156 echo $ECHO_N "checking size of int16_t... $ECHO_C" >&6; }
10157 if test "${ac_cv_sizeof_int16_t+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   if test "$cross_compiling" = yes; then
10161   ac_cv_sizeof_int16_t=2
10162 else
10163   cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h.  */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h.  */
10169
10170 #include <stdio.h>
10171 #if STDC_HEADERS
10172 #include <stdlib.h>
10173 #include <stddef.h>
10174 #endif
10175 #if HAVE_INTTYPES_H
10176 #include <inttypes.h>
10177 #endif
10178 #if HAVE_SYS_TYPES_H
10179 #include <sys/types.h>
10180 #endif
10181 #if HAVE_SYS_BITYPES_H
10182 #include <sys/bitypes.h>
10183 #endif
10184 int main()
10185 {
10186   FILE *f=fopen("conftestval", "w");
10187   if (!f) return(1);
10188   fprintf(f, "%d\n", sizeof(int16_t));
10189   return(0);
10190 }
10191
10192 _ACEOF
10193 rm -f conftest$ac_exeext
10194 if { (ac_try="$ac_link"
10195 case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200   (eval "$ac_link") 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10204   { (case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_try") 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_cv_sizeof_int16_t=`cat conftestval`
10214 else
10215   echo "$as_me: program exited with status $ac_status" >&5
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ( exit $ac_status )
10220 ac_cv_sizeof_int16_t=0
10221 fi
10222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10223 fi
10224
10225
10226 fi
10227 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int16_t" >&5
10228 echo "${ECHO_T}$ac_cv_sizeof_int16_t" >&6; }
10229 cat >>confdefs.h <<_ACEOF
10230 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
10231 _ACEOF
10232
10233
10234 { echo "$as_me:$LINENO: checking size of uint16_t" >&5
10235 echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6; }
10236 if test "${ac_cv_sizeof_uint16_t+set}" = set; then
10237   echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239   if test "$cross_compiling" = yes; then
10240   ac_cv_sizeof_uint16_t=2
10241 else
10242   cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248
10249 #include <stdio.h>
10250 #if STDC_HEADERS
10251 #include <stdlib.h>
10252 #include <stddef.h>
10253 #endif
10254 #if HAVE_INTTYPES_H
10255 #include <inttypes.h>
10256 #endif
10257 #if HAVE_SYS_TYPES_H
10258 #include <sys/types.h>
10259 #endif
10260 #if HAVE_SYS_BITYPES_H
10261 #include <sys/bitypes.h>
10262 #endif
10263 int main()
10264 {
10265   FILE *f=fopen("conftestval", "w");
10266   if (!f) return(1);
10267   fprintf(f, "%d\n", sizeof(uint16_t));
10268   return(0);
10269 }
10270
10271 _ACEOF
10272 rm -f conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276   *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279   (eval "$ac_link") 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   ac_cv_sizeof_uint16_t=`cat conftestval`
10293 else
10294   echo "$as_me: program exited with status $ac_status" >&5
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10297
10298 ( exit $ac_status )
10299 ac_cv_sizeof_uint16_t=0
10300 fi
10301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10302 fi
10303
10304
10305 fi
10306 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
10307 echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6; }
10308 cat >>confdefs.h <<_ACEOF
10309 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
10310 _ACEOF
10311
10312
10313 { echo "$as_me:$LINENO: checking size of u_int16_t" >&5
10314 echo $ECHO_N "checking size of u_int16_t... $ECHO_C" >&6; }
10315 if test "${ac_cv_sizeof_u_int16_t+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   if test "$cross_compiling" = yes; then
10319   ac_cv_sizeof_u_int16_t=2
10320 else
10321   cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327
10328 #include <stdio.h>
10329 #if STDC_HEADERS
10330 #include <stdlib.h>
10331 #include <stddef.h>
10332 #endif
10333 #if HAVE_INTTYPES_H
10334 #include <inttypes.h>
10335 #endif
10336 #if HAVE_SYS_TYPES_H
10337 #include <sys/types.h>
10338 #endif
10339 #if HAVE_SYS_BITYPES_H
10340 #include <sys/bitypes.h>
10341 #endif
10342 int main()
10343 {
10344   FILE *f=fopen("conftestval", "w");
10345   if (!f) return(1);
10346   fprintf(f, "%d\n", sizeof(u_int16_t));
10347   return(0);
10348 }
10349
10350 _ACEOF
10351 rm -f conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355   *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358   (eval "$ac_link") 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10362   { (case "(($ac_try" in
10363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364   *) ac_try_echo=$ac_try;;
10365 esac
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367   (eval "$ac_try") 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   ac_cv_sizeof_u_int16_t=`cat conftestval`
10372 else
10373   echo "$as_me: program exited with status $ac_status" >&5
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ( exit $ac_status )
10378 ac_cv_sizeof_u_int16_t=0
10379 fi
10380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10381 fi
10382
10383
10384 fi
10385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int16_t" >&5
10386 echo "${ECHO_T}$ac_cv_sizeof_u_int16_t" >&6; }
10387 cat >>confdefs.h <<_ACEOF
10388 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
10389 _ACEOF
10390
10391
10392 { echo "$as_me:$LINENO: checking size of int32_t" >&5
10393 echo $ECHO_N "checking size of int32_t... $ECHO_C" >&6; }
10394 if test "${ac_cv_sizeof_int32_t+set}" = set; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397   if test "$cross_compiling" = yes; then
10398   ac_cv_sizeof_int32_t=4
10399 else
10400   cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h.  */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h.  */
10406
10407 #include <stdio.h>
10408 #if STDC_HEADERS
10409 #include <stdlib.h>
10410 #include <stddef.h>
10411 #endif
10412 #if HAVE_INTTYPES_H
10413 #include <inttypes.h>
10414 #endif
10415 #if HAVE_SYS_TYPES_H
10416 #include <sys/types.h>
10417 #endif
10418 #if HAVE_SYS_BITYPES_H
10419 #include <sys/bitypes.h>
10420 #endif
10421 int main()
10422 {
10423   FILE *f=fopen("conftestval", "w");
10424   if (!f) return(1);
10425   fprintf(f, "%d\n", sizeof(int32_t));
10426   return(0);
10427 }
10428
10429 _ACEOF
10430 rm -f conftest$ac_exeext
10431 if { (ac_try="$ac_link"
10432 case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_link") 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10441   { (case "(($ac_try" in
10442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443   *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446   (eval "$ac_try") 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450   ac_cv_sizeof_int32_t=`cat conftestval`
10451 else
10452   echo "$as_me: program exited with status $ac_status" >&5
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10455
10456 ( exit $ac_status )
10457 ac_cv_sizeof_int32_t=0
10458 fi
10459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10460 fi
10461
10462
10463 fi
10464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5
10465 echo "${ECHO_T}$ac_cv_sizeof_int32_t" >&6; }
10466 cat >>confdefs.h <<_ACEOF
10467 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
10468 _ACEOF
10469
10470
10471 { echo "$as_me:$LINENO: checking size of uint32_t" >&5
10472 echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6; }
10473 if test "${ac_cv_sizeof_uint32_t+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   if test "$cross_compiling" = yes; then
10477   ac_cv_sizeof_uint32_t=4
10478 else
10479   cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h.  */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h.  */
10485
10486 #include <stdio.h>
10487 #if STDC_HEADERS
10488 #include <stdlib.h>
10489 #include <stddef.h>
10490 #endif
10491 #if HAVE_INTTYPES_H
10492 #include <inttypes.h>
10493 #endif
10494 #if HAVE_SYS_TYPES_H
10495 #include <sys/types.h>
10496 #endif
10497 #if HAVE_SYS_BITYPES_H
10498 #include <sys/bitypes.h>
10499 #endif
10500 int main()
10501 {
10502   FILE *f=fopen("conftestval", "w");
10503   if (!f) return(1);
10504   fprintf(f, "%d\n", sizeof(uint32_t));
10505   return(0);
10506 }
10507
10508 _ACEOF
10509 rm -f conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_link") 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10520   { (case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525   (eval "$ac_try") 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); }; }; then
10529   ac_cv_sizeof_uint32_t=`cat conftestval`
10530 else
10531   echo "$as_me: program exited with status $ac_status" >&5
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 ( exit $ac_status )
10536 ac_cv_sizeof_uint32_t=0
10537 fi
10538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10539 fi
10540
10541
10542 fi
10543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
10544 echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6; }
10545 cat >>confdefs.h <<_ACEOF
10546 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
10547 _ACEOF
10548
10549
10550 { echo "$as_me:$LINENO: checking size of u_int32_t" >&5
10551 echo $ECHO_N "checking size of u_int32_t... $ECHO_C" >&6; }
10552 if test "${ac_cv_sizeof_u_int32_t+set}" = set; then
10553   echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555   if test "$cross_compiling" = yes; then
10556   ac_cv_sizeof_u_int32_t=4
10557 else
10558   cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h.  */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h.  */
10564
10565 #include <stdio.h>
10566 #if STDC_HEADERS
10567 #include <stdlib.h>
10568 #include <stddef.h>
10569 #endif
10570 #if HAVE_INTTYPES_H
10571 #include <inttypes.h>
10572 #endif
10573 #if HAVE_SYS_TYPES_H
10574 #include <sys/types.h>
10575 #endif
10576 #if HAVE_SYS_BITYPES_H
10577 #include <sys/bitypes.h>
10578 #endif
10579 int main()
10580 {
10581   FILE *f=fopen("conftestval", "w");
10582   if (!f) return(1);
10583   fprintf(f, "%d\n", sizeof(u_int32_t));
10584   return(0);
10585 }
10586
10587 _ACEOF
10588 rm -f conftest$ac_exeext
10589 if { (ac_try="$ac_link"
10590 case "(($ac_try" in
10591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592   *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595   (eval "$ac_link") 2>&5
10596   ac_status=$?
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10599   { (case "(($ac_try" in
10600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601   *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604   (eval "$ac_try") 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; }; then
10608   ac_cv_sizeof_u_int32_t=`cat conftestval`
10609 else
10610   echo "$as_me: program exited with status $ac_status" >&5
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ( exit $ac_status )
10615 ac_cv_sizeof_u_int32_t=0
10616 fi
10617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10618 fi
10619
10620
10621 fi
10622 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int32_t" >&5
10623 echo "${ECHO_T}$ac_cv_sizeof_u_int32_t" >&6; }
10624 cat >>confdefs.h <<_ACEOF
10625 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
10626 _ACEOF
10627
10628
10629 { echo "$as_me:$LINENO: checking size of int64_t" >&5
10630 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
10631 if test "${ac_cv_sizeof_int64_t+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634   if test "$cross_compiling" = yes; then
10635   ac_cv_sizeof_int64_t=8
10636 else
10637   cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643
10644 #include <stdio.h>
10645 #if STDC_HEADERS
10646 #include <stdlib.h>
10647 #include <stddef.h>
10648 #endif
10649 #if HAVE_INTTYPES_H
10650 #include <inttypes.h>
10651 #endif
10652 #if HAVE_SYS_TYPES_H
10653 #include <sys/types.h>
10654 #endif
10655 #if HAVE_SYS_BITYPES_H
10656 #include <sys/bitypes.h>
10657 #endif
10658 int main()
10659 {
10660   FILE *f=fopen("conftestval", "w");
10661   if (!f) return(1);
10662   fprintf(f, "%d\n", sizeof(int64_t));
10663   return(0);
10664 }
10665
10666 _ACEOF
10667 rm -f conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671   *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674   (eval "$ac_link") 2>&5
10675   ac_status=$?
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10678   { (case "(($ac_try" in
10679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680   *) ac_try_echo=$ac_try;;
10681 esac
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683   (eval "$ac_try") 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); }; }; then
10687   ac_cv_sizeof_int64_t=`cat conftestval`
10688 else
10689   echo "$as_me: program exited with status $ac_status" >&5
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 ( exit $ac_status )
10694 ac_cv_sizeof_int64_t=0
10695 fi
10696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10697 fi
10698
10699
10700 fi
10701 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
10702 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
10703 cat >>confdefs.h <<_ACEOF
10704 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
10705 _ACEOF
10706
10707
10708 { echo "$as_me:$LINENO: checking size of uint64_t" >&5
10709 echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6; }
10710 if test "${ac_cv_sizeof_uint64_t+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   if test "$cross_compiling" = yes; then
10714   ac_cv_sizeof_uint64_t=8
10715 else
10716   cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h.  */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h.  */
10722
10723 #include <stdio.h>
10724 #if STDC_HEADERS
10725 #include <stdlib.h>
10726 #include <stddef.h>
10727 #endif
10728 #if HAVE_INTTYPES_H
10729 #include <inttypes.h>
10730 #endif
10731 #if HAVE_SYS_TYPES_H
10732 #include <sys/types.h>
10733 #endif
10734 #if HAVE_SYS_BITYPES_H
10735 #include <sys/bitypes.h>
10736 #endif
10737 int main()
10738 {
10739   FILE *f=fopen("conftestval", "w");
10740   if (!f) return(1);
10741   fprintf(f, "%d\n", sizeof(uint64_t));
10742   return(0);
10743 }
10744
10745 _ACEOF
10746 rm -f conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750   *) ac_try_echo=$ac_try;;
10751 esac
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753   (eval "$ac_link") 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10757   { (case "(($ac_try" in
10758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759   *) ac_try_echo=$ac_try;;
10760 esac
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762   (eval "$ac_try") 2>&5
10763   ac_status=$?
10764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765   (exit $ac_status); }; }; then
10766   ac_cv_sizeof_uint64_t=`cat conftestval`
10767 else
10768   echo "$as_me: program exited with status $ac_status" >&5
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ( exit $ac_status )
10773 ac_cv_sizeof_uint64_t=0
10774 fi
10775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10776 fi
10777
10778
10779 fi
10780 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
10781 echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6; }
10782 cat >>confdefs.h <<_ACEOF
10783 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
10784 _ACEOF
10785
10786
10787 { echo "$as_me:$LINENO: checking size of u_int64_t" >&5
10788 echo $ECHO_N "checking size of u_int64_t... $ECHO_C" >&6; }
10789 if test "${ac_cv_sizeof_u_int64_t+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   if test "$cross_compiling" = yes; then
10793   ac_cv_sizeof_u_int64_t=8
10794 else
10795   cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h.  */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h.  */
10801
10802 #include <stdio.h>
10803 #if STDC_HEADERS
10804 #include <stdlib.h>
10805 #include <stddef.h>
10806 #endif
10807 #if HAVE_INTTYPES_H
10808 #include <inttypes.h>
10809 #endif
10810 #if HAVE_SYS_TYPES_H
10811 #include <sys/types.h>
10812 #endif
10813 #if HAVE_SYS_BITYPES_H
10814 #include <sys/bitypes.h>
10815 #endif
10816 int main()
10817 {
10818   FILE *f=fopen("conftestval", "w");
10819   if (!f) return(1);
10820   fprintf(f, "%d\n", sizeof(u_int64_t));
10821   return(0);
10822 }
10823
10824 _ACEOF
10825 rm -f conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832   (eval "$ac_link") 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10836   { (case "(($ac_try" in
10837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838   *) ac_try_echo=$ac_try;;
10839 esac
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841   (eval "$ac_try") 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; }; then
10845   ac_cv_sizeof_u_int64_t=`cat conftestval`
10846 else
10847   echo "$as_me: program exited with status $ac_status" >&5
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ( exit $ac_status )
10852 ac_cv_sizeof_u_int64_t=0
10853 fi
10854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10855 fi
10856
10857
10858 fi
10859 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int64_t" >&5
10860 echo "${ECHO_T}$ac_cv_sizeof_u_int64_t" >&6; }
10861 cat >>confdefs.h <<_ACEOF
10862 #define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t
10863 _ACEOF
10864
10865
10866
10867 if test "x$ac_cv_sizeof_short" = "x2"; then
10868         { echo "$as_me:$LINENO: checking for int16_t" >&5
10869 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10870 if test "${ac_cv_type_int16_t+set}" = set; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873   cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h.  */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h.  */
10879
10880 /* What a mess.. many systems have added the (now standard) bit types
10881  * in their own ways, so we need to scan a wide variety of headers to
10882  * find them..
10883  */
10884 #include <sys/types.h>
10885 #if STDC_HEADERS
10886 #include <stdlib.h>
10887 #include <stddef.h>
10888 #endif
10889 #if HAVE_INTTYPES_H
10890 #include <inttypes.h>
10891 #endif
10892 #if HAVE_SYS_TYPES_H
10893 #include <sys/types.h>
10894 #endif
10895 #if HAVE_SYS_BITYPES_H
10896 #include <sys/bitypes.h>
10897 #endif
10898
10899 _ACEOF
10900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10901   $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10902   ac_cv_type_int16_t=yes
10903 else
10904   ac_cv_type_int16_t=no
10905 fi
10906 rm -f conftest*
10907
10908 fi
10909 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10910 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10911 if test $ac_cv_type_int16_t = no; then
10912   cat >>confdefs.h <<\_ACEOF
10913 #define int16_t short
10914 _ACEOF
10915
10916 fi
10917
10918 elif test "x$ac_cv_sizeof_int" = "x2"; then
10919         { echo "$as_me:$LINENO: checking for int16_t" >&5
10920 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10921 if test "${ac_cv_type_int16_t+set}" = set; then
10922   echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924   cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h.  */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h.  */
10930
10931 /* What a mess.. many systems have added the (now standard) bit types
10932  * in their own ways, so we need to scan a wide variety of headers to
10933  * find them..
10934  */
10935 #include <sys/types.h>
10936 #if STDC_HEADERS
10937 #include <stdlib.h>
10938 #include <stddef.h>
10939 #endif
10940 #if HAVE_INTTYPES_H
10941 #include <inttypes.h>
10942 #endif
10943 #if HAVE_SYS_TYPES_H
10944 #include <sys/types.h>
10945 #endif
10946 #if HAVE_SYS_BITYPES_H
10947 #include <sys/bitypes.h>
10948 #endif
10949
10950 _ACEOF
10951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10952   $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10953   ac_cv_type_int16_t=yes
10954 else
10955   ac_cv_type_int16_t=no
10956 fi
10957 rm -f conftest*
10958
10959 fi
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10962 if test $ac_cv_type_int16_t = no; then
10963   cat >>confdefs.h <<\_ACEOF
10964 #define int16_t int
10965 _ACEOF
10966
10967 fi
10968
10969 fi
10970 if test "x$ac_cv_sizeof_uint16_t" = "x2"; then
10971         { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10972 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10973 if test "${ac_cv_type_u_int16_t+set}" = set; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982
10983 /* What a mess.. many systems have added the (now standard) bit types
10984  * in their own ways, so we need to scan a wide variety of headers to
10985  * find them..
10986  */
10987 #include <sys/types.h>
10988 #if STDC_HEADERS
10989 #include <stdlib.h>
10990 #include <stddef.h>
10991 #endif
10992 #if HAVE_INTTYPES_H
10993 #include <inttypes.h>
10994 #endif
10995 #if HAVE_SYS_TYPES_H
10996 #include <sys/types.h>
10997 #endif
10998 #if HAVE_SYS_BITYPES_H
10999 #include <sys/bitypes.h>
11000 #endif
11001
11002 _ACEOF
11003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11004   $EGREP "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11005   ac_cv_type_u_int16_t=yes
11006 else
11007   ac_cv_type_u_int16_t=no
11008 fi
11009 rm -f conftest*
11010
11011 fi
11012 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11013 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
11014 if test $ac_cv_type_u_int16_t = no; then
11015   cat >>confdefs.h <<\_ACEOF
11016 #define u_int16_t uint16_t
11017 _ACEOF
11018
11019 fi
11020
11021 elif test "x$ac_cv_sizeof_short" = "x2"; then
11022         { echo "$as_me:$LINENO: checking for u_int16_t" >&5
11023 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11024 if test "${ac_cv_type_u_int16_t+set}" = set; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033
11034 /* What a mess.. many systems have added the (now standard) bit types
11035  * in their own ways, so we need to scan a wide variety of headers to
11036  * find them..
11037  */
11038 #include <sys/types.h>
11039 #if STDC_HEADERS
11040 #include <stdlib.h>
11041 #include <stddef.h>
11042 #endif
11043 #if HAVE_INTTYPES_H
11044 #include <inttypes.h>
11045 #endif
11046 #if HAVE_SYS_TYPES_H
11047 #include <sys/types.h>
11048 #endif
11049 #if HAVE_SYS_BITYPES_H
11050 #include <sys/bitypes.h>
11051 #endif
11052
11053 _ACEOF
11054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11055   $EGREP "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11056   ac_cv_type_u_int16_t=yes
11057 else
11058   ac_cv_type_u_int16_t=no
11059 fi
11060 rm -f conftest*
11061
11062 fi
11063 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11064 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
11065 if test $ac_cv_type_u_int16_t = no; then
11066   cat >>confdefs.h <<\_ACEOF
11067 #define u_int16_t unsigned short
11068 _ACEOF
11069
11070 fi
11071
11072 elif test "x$ac_cv_sizeof_int" = "x2"; then
11073         { echo "$as_me:$LINENO: checking for u_int16_t" >&5
11074 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11075 if test "${ac_cv_type_u_int16_t+set}" = set; then
11076   echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078   cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084
11085 /* What a mess.. many systems have added the (now standard) bit types
11086  * in their own ways, so we need to scan a wide variety of headers to
11087  * find them..
11088  */
11089 #include <sys/types.h>
11090 #if STDC_HEADERS
11091 #include <stdlib.h>
11092 #include <stddef.h>
11093 #endif
11094 #if HAVE_INTTYPES_H
11095 #include <inttypes.h>
11096 #endif
11097 #if HAVE_SYS_TYPES_H
11098 #include <sys/types.h>
11099 #endif
11100 #if HAVE_SYS_BITYPES_H
11101 #include <sys/bitypes.h>
11102 #endif
11103
11104 _ACEOF
11105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11106   $EGREP "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11107   ac_cv_type_u_int16_t=yes
11108 else
11109   ac_cv_type_u_int16_t=no
11110 fi
11111 rm -f conftest*
11112
11113 fi
11114 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11115 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
11116 if test $ac_cv_type_u_int16_t = no; then
11117   cat >>confdefs.h <<\_ACEOF
11118 #define u_int16_t unsigned int
11119 _ACEOF
11120
11121 fi
11122
11123 fi
11124 if test "x$ac_cv_sizeof_int" = "x4"; then
11125         { echo "$as_me:$LINENO: checking for int32_t" >&5
11126 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
11127 if test "${ac_cv_type_int32_t+set}" = set; then
11128   echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130   cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h.  */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h.  */
11136
11137 /* What a mess.. many systems have added the (now standard) bit types
11138  * in their own ways, so we need to scan a wide variety of headers to
11139  * find them..
11140  */
11141 #include <sys/types.h>
11142 #if STDC_HEADERS
11143 #include <stdlib.h>
11144 #include <stddef.h>
11145 #endif
11146 #if HAVE_INTTYPES_H
11147 #include <inttypes.h>
11148 #endif
11149 #if HAVE_SYS_TYPES_H
11150 #include <sys/types.h>
11151 #endif
11152 #if HAVE_SYS_BITYPES_H
11153 #include <sys/bitypes.h>
11154 #endif
11155
11156 _ACEOF
11157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11158   $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11159   ac_cv_type_int32_t=yes
11160 else
11161   ac_cv_type_int32_t=no
11162 fi
11163 rm -f conftest*
11164
11165 fi
11166 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11167 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
11168 if test $ac_cv_type_int32_t = no; then
11169   cat >>confdefs.h <<\_ACEOF
11170 #define int32_t int
11171 _ACEOF
11172
11173 fi
11174
11175 elif "x$ac_cv_sizeof_long" = "x4"; then
11176         { echo "$as_me:$LINENO: checking for int32_t" >&5
11177 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
11178 if test "${ac_cv_type_int32_t+set}" = set; then
11179   echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181   cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h.  */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h.  */
11187
11188 /* What a mess.. many systems have added the (now standard) bit types
11189  * in their own ways, so we need to scan a wide variety of headers to
11190  * find them..
11191  */
11192 #include <sys/types.h>
11193 #if STDC_HEADERS
11194 #include <stdlib.h>
11195 #include <stddef.h>
11196 #endif
11197 #if HAVE_INTTYPES_H
11198 #include <inttypes.h>
11199 #endif
11200 #if HAVE_SYS_TYPES_H
11201 #include <sys/types.h>
11202 #endif
11203 #if HAVE_SYS_BITYPES_H
11204 #include <sys/bitypes.h>
11205 #endif
11206
11207 _ACEOF
11208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209   $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11210   ac_cv_type_int32_t=yes
11211 else
11212   ac_cv_type_int32_t=no
11213 fi
11214 rm -f conftest*
11215
11216 fi
11217 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11218 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
11219 if test $ac_cv_type_int32_t = no; then
11220   cat >>confdefs.h <<\_ACEOF
11221 #define int32_t long
11222 _ACEOF
11223
11224 fi
11225
11226 fi
11227 if test "x$ac_cv_sizeof_uint32_t" = "x4"; then
11228         { echo "$as_me:$LINENO: checking for u_int32_t" >&5
11229 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11230 if test "${ac_cv_type_u_int32_t+set}" = set; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239
11240 /* What a mess.. many systems have added the (now standard) bit types
11241  * in their own ways, so we need to scan a wide variety of headers to
11242  * find them..
11243  */
11244 #include <sys/types.h>
11245 #if STDC_HEADERS
11246 #include <stdlib.h>
11247 #include <stddef.h>
11248 #endif
11249 #if HAVE_INTTYPES_H
11250 #include <inttypes.h>
11251 #endif
11252 #if HAVE_SYS_TYPES_H
11253 #include <sys/types.h>
11254 #endif
11255 #if HAVE_SYS_BITYPES_H
11256 #include <sys/bitypes.h>
11257 #endif
11258
11259 _ACEOF
11260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11261   $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11262   ac_cv_type_u_int32_t=yes
11263 else
11264   ac_cv_type_u_int32_t=no
11265 fi
11266 rm -f conftest*
11267
11268 fi
11269 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11270 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
11271 if test $ac_cv_type_u_int32_t = no; then
11272   cat >>confdefs.h <<\_ACEOF
11273 #define u_int32_t uint32_t
11274 _ACEOF
11275
11276 fi
11277
11278 elif test "x$ac_cv_sizeof_int" = "x4"; then
11279         { echo "$as_me:$LINENO: checking for u_int32_t" >&5
11280 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11281 if test "${ac_cv_type_u_int32_t+set}" = set; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290
11291 /* What a mess.. many systems have added the (now standard) bit types
11292  * in their own ways, so we need to scan a wide variety of headers to
11293  * find them..
11294  */
11295 #include <sys/types.h>
11296 #if STDC_HEADERS
11297 #include <stdlib.h>
11298 #include <stddef.h>
11299 #endif
11300 #if HAVE_INTTYPES_H
11301 #include <inttypes.h>
11302 #endif
11303 #if HAVE_SYS_TYPES_H
11304 #include <sys/types.h>
11305 #endif
11306 #if HAVE_SYS_BITYPES_H
11307 #include <sys/bitypes.h>
11308 #endif
11309
11310 _ACEOF
11311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11312   $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11313   ac_cv_type_u_int32_t=yes
11314 else
11315   ac_cv_type_u_int32_t=no
11316 fi
11317 rm -f conftest*
11318
11319 fi
11320 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11321 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
11322 if test $ac_cv_type_u_int32_t = no; then
11323   cat >>confdefs.h <<\_ACEOF
11324 #define u_int32_t unsigned int
11325 _ACEOF
11326
11327 fi
11328
11329 elif test "x$ac_cv_sizeof_long" = "x4"; then
11330         { echo "$as_me:$LINENO: checking for u_int32_t" >&5
11331 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11332 if test "${ac_cv_type_u_int32_t+set}" = set; then
11333   echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335   cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h.  */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h.  */
11341
11342 /* What a mess.. many systems have added the (now standard) bit types
11343  * in their own ways, so we need to scan a wide variety of headers to
11344  * find them..
11345  */
11346 #include <sys/types.h>
11347 #if STDC_HEADERS
11348 #include <stdlib.h>
11349 #include <stddef.h>
11350 #endif
11351 #if HAVE_INTTYPES_H
11352 #include <inttypes.h>
11353 #endif
11354 #if HAVE_SYS_TYPES_H
11355 #include <sys/types.h>
11356 #endif
11357 #if HAVE_SYS_BITYPES_H
11358 #include <sys/bitypes.h>
11359 #endif
11360
11361 _ACEOF
11362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11363   $EGREP "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11364   ac_cv_type_u_int32_t=yes
11365 else
11366   ac_cv_type_u_int32_t=no
11367 fi
11368 rm -f conftest*
11369
11370 fi
11371 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11372 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
11373 if test $ac_cv_type_u_int32_t = no; then
11374   cat >>confdefs.h <<\_ACEOF
11375 #define u_int32_t unsigned long
11376 _ACEOF
11377
11378 fi
11379
11380 fi
11381 if test "x$ac_cv_sizeof_long" = "x8"; then
11382         { echo "$as_me:$LINENO: checking for int64_t" >&5
11383 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11384 if test "${ac_cv_type_int64_t+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393
11394 /* What a mess.. many systems have added the (now standard) bit types
11395  * in their own ways, so we need to scan a wide variety of headers to
11396  * find them..
11397  */
11398 #include <sys/types.h>
11399 #if STDC_HEADERS
11400 #include <stdlib.h>
11401 #include <stddef.h>
11402 #endif
11403 #if HAVE_INTTYPES_H
11404 #include <inttypes.h>
11405 #endif
11406 #if HAVE_SYS_TYPES_H
11407 #include <sys/types.h>
11408 #endif
11409 #if HAVE_SYS_BITYPES_H
11410 #include <sys/bitypes.h>
11411 #endif
11412
11413 _ACEOF
11414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11415   $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11416   ac_cv_type_int64_t=yes
11417 else
11418   ac_cv_type_int64_t=no
11419 fi
11420 rm -f conftest*
11421
11422 fi
11423 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11424 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11425 if test $ac_cv_type_int64_t = no; then
11426   cat >>confdefs.h <<\_ACEOF
11427 #define int64_t long
11428 _ACEOF
11429
11430 fi
11431
11432 elif test "x$ac_cv_sizeof_long_long" = "x8"; then
11433         { echo "$as_me:$LINENO: checking for int64_t" >&5
11434 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11435 if test "${ac_cv_type_int64_t+set}" = set; then
11436   echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438   cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h.  */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h.  */
11444
11445 /* What a mess.. many systems have added the (now standard) bit types
11446  * in their own ways, so we need to scan a wide variety of headers to
11447  * find them..
11448  */
11449 #include <sys/types.h>
11450 #if STDC_HEADERS
11451 #include <stdlib.h>
11452 #include <stddef.h>
11453 #endif
11454 #if HAVE_INTTYPES_H
11455 #include <inttypes.h>
11456 #endif
11457 #if HAVE_SYS_TYPES_H
11458 #include <sys/types.h>
11459 #endif
11460 #if HAVE_SYS_BITYPES_H
11461 #include <sys/bitypes.h>
11462 #endif
11463
11464 _ACEOF
11465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11466   $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11467   ac_cv_type_int64_t=yes
11468 else
11469   ac_cv_type_int64_t=no
11470 fi
11471 rm -f conftest*
11472
11473 fi
11474 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11475 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11476 if test $ac_cv_type_int64_t = no; then
11477   cat >>confdefs.h <<\_ACEOF
11478 #define int64_t long long
11479 _ACEOF
11480
11481 fi
11482
11483 elif test "x$ac_cv_sizeof___int64" = "x8"; then
11484         { echo "$as_me:$LINENO: checking for int64_t" >&5
11485 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11486 if test "${ac_cv_type_int64_t+set}" = set; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489   cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h.  */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h.  */
11495
11496 /* What a mess.. many systems have added the (now standard) bit types
11497  * in their own ways, so we need to scan a wide variety of headers to
11498  * find them..
11499  */
11500 #include <sys/types.h>
11501 #if STDC_HEADERS
11502 #include <stdlib.h>
11503 #include <stddef.h>
11504 #endif
11505 #if HAVE_INTTYPES_H
11506 #include <inttypes.h>
11507 #endif
11508 #if HAVE_SYS_TYPES_H
11509 #include <sys/types.h>
11510 #endif
11511 #if HAVE_SYS_BITYPES_H
11512 #include <sys/bitypes.h>
11513 #endif
11514
11515 _ACEOF
11516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11517   $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11518   ac_cv_type_int64_t=yes
11519 else
11520   ac_cv_type_int64_t=no
11521 fi
11522 rm -f conftest*
11523
11524 fi
11525 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11526 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11527 if test $ac_cv_type_int64_t = no; then
11528   cat >>confdefs.h <<\_ACEOF
11529 #define int64_t __int64
11530 _ACEOF
11531
11532 fi
11533
11534 fi
11535 if test "x$ac_cv_sizeof_uint64_t" = "x8"; then
11536         { echo "$as_me:$LINENO: checking for u_int64_t" >&5
11537 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
11538 if test "${ac_cv_type_u_int64_t+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547
11548 /* What a mess.. many systems have added the (now standard) bit types
11549  * in their own ways, so we need to scan a wide variety of headers to
11550  * find them..
11551  */
11552 #include <sys/types.h>
11553 #if STDC_HEADERS
11554 #include <stdlib.h>
11555 #include <stddef.h>
11556 #endif
11557 #if HAVE_INTTYPES_H
11558 #include <inttypes.h>
11559 #endif
11560 #if HAVE_SYS_TYPES_H
11561 #include <sys/types.h>
11562 #endif
11563 #if HAVE_SYS_BITYPES_H
11564 #include <sys/bitypes.h>
11565 #endif
11566
11567 _ACEOF
11568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11569   $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11570   ac_cv_type_u_int64_t=yes
11571 else
11572   ac_cv_type_u_int64_t=no
11573 fi
11574 rm -f conftest*
11575
11576 fi
11577 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11578 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11579 if test $ac_cv_type_u_int64_t = no; then
11580   cat >>confdefs.h <<\_ACEOF
11581 #define u_int64_t uint64_t
11582 _ACEOF
11583
11584 fi
11585
11586 elif test "x$ac_cv_sizeof_long" = "x8"; then
11587         { echo "$as_me:$LINENO: checking for u_int64_t" >&5
11588 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
11589 if test "${ac_cv_type_u_int64_t+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598
11599 /* What a mess.. many systems have added the (now standard) bit types
11600  * in their own ways, so we need to scan a wide variety of headers to
11601  * find them..
11602  */
11603 #include <sys/types.h>
11604 #if STDC_HEADERS
11605 #include <stdlib.h>
11606 #include <stddef.h>
11607 #endif
11608 #if HAVE_INTTYPES_H
11609 #include <inttypes.h>
11610 #endif
11611 #if HAVE_SYS_TYPES_H
11612 #include <sys/types.h>
11613 #endif
11614 #if HAVE_SYS_BITYPES_H
11615 #include <sys/bitypes.h>
11616 #endif
11617
11618 _ACEOF
11619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11620   $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11621   ac_cv_type_u_int64_t=yes
11622 else
11623   ac_cv_type_u_int64_t=no
11624 fi
11625 rm -f conftest*
11626
11627 fi
11628 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11629 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11630 if test $ac_cv_type_u_int64_t = no; then
11631   cat >>confdefs.h <<\_ACEOF
11632 #define u_int64_t unsigned long
11633 _ACEOF
11634
11635 fi
11636
11637 elif test "x$ac_cv_sizeof_long_long" = "x8"; then
11638         { echo "$as_me:$LINENO: checking for u_int64_t" >&5
11639 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
11640 if test "${ac_cv_type_u_int64_t+set}" = set; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649
11650 /* What a mess.. many systems have added the (now standard) bit types
11651  * in their own ways, so we need to scan a wide variety of headers to
11652  * find them..
11653  */
11654 #include <sys/types.h>
11655 #if STDC_HEADERS
11656 #include <stdlib.h>
11657 #include <stddef.h>
11658 #endif
11659 #if HAVE_INTTYPES_H
11660 #include <inttypes.h>
11661 #endif
11662 #if HAVE_SYS_TYPES_H
11663 #include <sys/types.h>
11664 #endif
11665 #if HAVE_SYS_BITYPES_H
11666 #include <sys/bitypes.h>
11667 #endif
11668
11669 _ACEOF
11670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11671   $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11672   ac_cv_type_u_int64_t=yes
11673 else
11674   ac_cv_type_u_int64_t=no
11675 fi
11676 rm -f conftest*
11677
11678 fi
11679 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11680 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11681 if test $ac_cv_type_u_int64_t = no; then
11682   cat >>confdefs.h <<\_ACEOF
11683 #define u_int64_t unsigned long long
11684 _ACEOF
11685
11686 fi
11687
11688 elif test "x$ac_cv_sizeof___int64" = "x8"; then
11689         { echo "$as_me:$LINENO: checking for int64_t" >&5
11690 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11691 if test "${ac_cv_type_int64_t+set}" = set; then
11692   echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694   cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700
11701 /* What a mess.. many systems have added the (now standard) bit types
11702  * in their own ways, so we need to scan a wide variety of headers to
11703  * find them..
11704  */
11705 #include <sys/types.h>
11706 #if STDC_HEADERS
11707 #include <stdlib.h>
11708 #include <stddef.h>
11709 #endif
11710 #if HAVE_INTTYPES_H
11711 #include <inttypes.h>
11712 #endif
11713 #if HAVE_SYS_TYPES_H
11714 #include <sys/types.h>
11715 #endif
11716 #if HAVE_SYS_BITYPES_H
11717 #include <sys/bitypes.h>
11718 #endif
11719
11720 _ACEOF
11721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11722   $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11723   ac_cv_type_int64_t=yes
11724 else
11725   ac_cv_type_int64_t=no
11726 fi
11727 rm -f conftest*
11728
11729 fi
11730 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11731 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11732 if test $ac_cv_type_int64_t = no; then
11733   cat >>confdefs.h <<\_ACEOF
11734 #define int64_t unsigned __int64
11735 _ACEOF
11736
11737 fi
11738
11739 fi
11740
11741 { echo "$as_me:$LINENO: checking for pid_t" >&5
11742 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11743 if test "${ac_cv_type_pid_t+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752 $ac_includes_default
11753 typedef pid_t ac__type_new_;
11754 int
11755 main ()
11756 {
11757 if ((ac__type_new_ *) 0)
11758   return 0;
11759 if (sizeof (ac__type_new_))
11760   return 0;
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 rm -f conftest.$ac_objext
11766 if { (ac_try="$ac_compile"
11767 case "(($ac_try" in
11768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769   *) ac_try_echo=$ac_try;;
11770 esac
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772   (eval "$ac_compile") 2>conftest.er1
11773   ac_status=$?
11774   grep -v '^ *+' conftest.er1 >conftest.err
11775   rm -f conftest.er1
11776   cat conftest.err >&5
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); } && {
11779          test -z "$ac_c_werror_flag" ||
11780          test ! -s conftest.err
11781        } && test -s conftest.$ac_objext; then
11782   ac_cv_type_pid_t=yes
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787         ac_cv_type_pid_t=no
11788 fi
11789
11790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11791 fi
11792 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11793 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11794 if test $ac_cv_type_pid_t = yes; then
11795   :
11796 else
11797
11798 cat >>confdefs.h <<_ACEOF
11799 #define pid_t int
11800 _ACEOF
11801
11802 fi
11803
11804 { echo "$as_me:$LINENO: checking for size_t" >&5
11805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11806 if test "${ac_cv_type_size_t+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815 $ac_includes_default
11816 typedef size_t ac__type_new_;
11817 int
11818 main ()
11819 {
11820 if ((ac__type_new_ *) 0)
11821   return 0;
11822 if (sizeof (ac__type_new_))
11823   return 0;
11824   ;
11825   return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext
11829 if { (ac_try="$ac_compile"
11830 case "(($ac_try" in
11831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832   *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835   (eval "$ac_compile") 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } && {
11842          test -z "$ac_c_werror_flag" ||
11843          test ! -s conftest.err
11844        } && test -s conftest.$ac_objext; then
11845   ac_cv_type_size_t=yes
11846 else
11847   echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850         ac_cv_type_size_t=no
11851 fi
11852
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 fi
11855 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11856 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11857 if test $ac_cv_type_size_t = yes; then
11858   :
11859 else
11860
11861 cat >>confdefs.h <<_ACEOF
11862 #define size_t unsigned int
11863 _ACEOF
11864
11865 fi
11866
11867 { echo "$as_me:$LINENO: checking for ssize_t" >&5
11868 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
11869 if test "${ac_cv_type_ssize_t+set}" = set; then
11870   echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872   cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 $ac_includes_default
11879 typedef ssize_t ac__type_new_;
11880 int
11881 main ()
11882 {
11883 if ((ac__type_new_ *) 0)
11884   return 0;
11885 if (sizeof (ac__type_new_))
11886   return 0;
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895   *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898   (eval "$ac_compile") 2>conftest.er1
11899   ac_status=$?
11900   grep -v '^ *+' conftest.er1 >conftest.err
11901   rm -f conftest.er1
11902   cat conftest.err >&5
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } && {
11905          test -z "$ac_c_werror_flag" ||
11906          test ! -s conftest.err
11907        } && test -s conftest.$ac_objext; then
11908   ac_cv_type_ssize_t=yes
11909 else
11910   echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913         ac_cv_type_ssize_t=no
11914 fi
11915
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 fi
11918 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11919 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
11920 if test $ac_cv_type_ssize_t = yes; then
11921   :
11922 else
11923
11924 cat >>confdefs.h <<_ACEOF
11925 #define ssize_t int
11926 _ACEOF
11927
11928 fi
11929
11930 { echo "$as_me:$LINENO: checking for off_t" >&5
11931 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11932 if test "${ac_cv_type_off_t+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941 $ac_includes_default
11942 typedef off_t ac__type_new_;
11943 int
11944 main ()
11945 {
11946 if ((ac__type_new_ *) 0)
11947   return 0;
11948 if (sizeof (ac__type_new_))
11949   return 0;
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_compile") 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } && {
11968          test -z "$ac_c_werror_flag" ||
11969          test ! -s conftest.err
11970        } && test -s conftest.$ac_objext; then
11971   ac_cv_type_off_t=yes
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976         ac_cv_type_off_t=no
11977 fi
11978
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 fi
11981 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11982 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11983 if test $ac_cv_type_off_t = yes; then
11984   :
11985 else
11986
11987 cat >>confdefs.h <<_ACEOF
11988 #define off_t int
11989 _ACEOF
11990
11991 fi
11992
11993 { echo "$as_me:$LINENO: checking for mode_t" >&5
11994 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11995 if test "${ac_cv_type_mode_t+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 $ac_includes_default
12005 typedef mode_t ac__type_new_;
12006 int
12007 main ()
12008 {
12009 if ((ac__type_new_ *) 0)
12010   return 0;
12011 if (sizeof (ac__type_new_))
12012   return 0;
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (ac_try="$ac_compile"
12019 case "(($ac_try" in
12020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021   *) ac_try_echo=$ac_try;;
12022 esac
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024   (eval "$ac_compile") 2>conftest.er1
12025   ac_status=$?
12026   grep -v '^ *+' conftest.er1 >conftest.err
12027   rm -f conftest.er1
12028   cat conftest.err >&5
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } && {
12031          test -z "$ac_c_werror_flag" ||
12032          test ! -s conftest.err
12033        } && test -s conftest.$ac_objext; then
12034   ac_cv_type_mode_t=yes
12035 else
12036   echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12038
12039         ac_cv_type_mode_t=no
12040 fi
12041
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 fi
12044 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12045 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
12046 if test $ac_cv_type_mode_t = yes; then
12047   :
12048 else
12049
12050 cat >>confdefs.h <<_ACEOF
12051 #define mode_t unsigned short
12052 _ACEOF
12053
12054 fi
12055
12056 { echo "$as_me:$LINENO: checking for fd_mask" >&5
12057 echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
12058 if test "${ac_cv_type_fd_mask+set}" = set; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h.  */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h.  */
12067 $ac_includes_default
12068 typedef fd_mask ac__type_new_;
12069 int
12070 main ()
12071 {
12072 if ((ac__type_new_ *) 0)
12073   return 0;
12074 if (sizeof (ac__type_new_))
12075   return 0;
12076   ;
12077   return 0;
12078 }
12079 _ACEOF
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087   (eval "$ac_compile") 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } && {
12094          test -z "$ac_c_werror_flag" ||
12095          test ! -s conftest.err
12096        } && test -s conftest.$ac_objext; then
12097   ac_cv_type_fd_mask=yes
12098 else
12099   echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12101
12102         ac_cv_type_fd_mask=no
12103 fi
12104
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106 fi
12107 { echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
12108 echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
12109 if test $ac_cv_type_fd_mask = yes; then
12110   :
12111 else
12112
12113 cat >>confdefs.h <<_ACEOF
12114 #define fd_mask int
12115 _ACEOF
12116
12117 fi
12118
12119
12120 { echo "$as_me:$LINENO: checking size of off_t" >&5
12121 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12122 if test "${ac_cv_sizeof_off_t+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   if test "$cross_compiling" = yes; then
12126   ac_cv_sizeof_off_t=4
12127 else
12128   cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134
12135 #include <stdio.h>
12136 #if STDC_HEADERS
12137 #include <stdlib.h>
12138 #include <stddef.h>
12139 #endif
12140 #if HAVE_INTTYPES_H
12141 #include <inttypes.h>
12142 #endif
12143 #if HAVE_SYS_TYPES_H
12144 #include <sys/types.h>
12145 #endif
12146 #if HAVE_SYS_BITYPES_H
12147 #include <sys/bitypes.h>
12148 #endif
12149 int main()
12150 {
12151   FILE *f=fopen("conftestval", "w");
12152   if (!f) return(1);
12153   fprintf(f, "%d\n", sizeof(off_t));
12154   return(0);
12155 }
12156
12157 _ACEOF
12158 rm -f conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165   (eval "$ac_link") 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12169   { (case "(($ac_try" in
12170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171   *) ac_try_echo=$ac_try;;
12172 esac
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174   (eval "$ac_try") 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; }; then
12178   ac_cv_sizeof_off_t=`cat conftestval`
12179 else
12180   echo "$as_me: program exited with status $ac_status" >&5
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ( exit $ac_status )
12185 ac_cv_sizeof_off_t=0
12186 fi
12187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12188 fi
12189
12190
12191 fi
12192 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12193 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12194 cat >>confdefs.h <<_ACEOF
12195 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12196 _ACEOF
12197
12198
12199 { echo "$as_me:$LINENO: checking size of size_t" >&5
12200 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
12201 if test "${ac_cv_sizeof_size_t+set}" = set; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204   if test "$cross_compiling" = yes; then
12205   ac_cv_sizeof_size_t=4
12206 else
12207   cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213
12214 #include <stdio.h>
12215 #if STDC_HEADERS
12216 #include <stdlib.h>
12217 #include <stddef.h>
12218 #endif
12219 #if HAVE_INTTYPES_H
12220 #include <inttypes.h>
12221 #endif
12222 #if HAVE_SYS_TYPES_H
12223 #include <sys/types.h>
12224 #endif
12225 #if HAVE_SYS_BITYPES_H
12226 #include <sys/bitypes.h>
12227 #endif
12228 int main()
12229 {
12230   FILE *f=fopen("conftestval", "w");
12231   if (!f) return(1);
12232   fprintf(f, "%d\n", sizeof(size_t));
12233   return(0);
12234 }
12235
12236 _ACEOF
12237 rm -f conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_link") 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12248   { (case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_try") 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; }; then
12257   ac_cv_sizeof_size_t=`cat conftestval`
12258 else
12259   echo "$as_me: program exited with status $ac_status" >&5
12260 echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12262
12263 ( exit $ac_status )
12264 ac_cv_sizeof_size_t=0
12265 fi
12266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12267 fi
12268
12269
12270 fi
12271 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
12272 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
12273 cat >>confdefs.h <<_ACEOF
12274 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12275 _ACEOF
12276
12277
12278
12279 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12280 # for constant arguments.  Useless!
12281 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
12282 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
12283 if test "${ac_cv_working_alloca_h+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292 #include <alloca.h>
12293 int
12294 main ()
12295 {
12296 char *p = (char *) alloca (2 * sizeof (int));
12297                           if (p) return 0;
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext conftest$ac_exeext
12303 if { (ac_try="$ac_link"
12304 case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_link") 2>conftest.er1
12310   ac_status=$?
12311   grep -v '^ *+' conftest.er1 >conftest.err
12312   rm -f conftest.er1
12313   cat conftest.err >&5
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } && {
12316          test -z "$ac_c_werror_flag" ||
12317          test ! -s conftest.err
12318        } && test -s conftest$ac_exeext &&
12319        $as_test_x conftest$ac_exeext; then
12320   ac_cv_working_alloca_h=yes
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325         ac_cv_working_alloca_h=no
12326 fi
12327
12328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12329       conftest$ac_exeext conftest.$ac_ext
12330 fi
12331 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
12333 if test $ac_cv_working_alloca_h = yes; then
12334
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_ALLOCA_H 1
12337 _ACEOF
12338
12339 fi
12340
12341 { echo "$as_me:$LINENO: checking for alloca" >&5
12342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
12343 if test "${ac_cv_func_alloca_works+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 #ifdef __GNUC__
12353 # define alloca __builtin_alloca
12354 #else
12355 # ifdef _MSC_VER
12356 #  include <malloc.h>
12357 #  define alloca _alloca
12358 # else
12359 #  ifdef HAVE_ALLOCA_H
12360 #   include <alloca.h>
12361 #  else
12362 #   ifdef _AIX
12363  #pragma alloca
12364 #   else
12365 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12366 char *alloca ();
12367 #    endif
12368 #   endif
12369 #  endif
12370 # endif
12371 #endif
12372
12373 int
12374 main ()
12375 {
12376 char *p = (char *) alloca (1);
12377                                     if (p) return 0;
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (ac_try="$ac_link"
12384 case "(($ac_try" in
12385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386   *) ac_try_echo=$ac_try;;
12387 esac
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389   (eval "$ac_link") 2>conftest.er1
12390   ac_status=$?
12391   grep -v '^ *+' conftest.er1 >conftest.err
12392   rm -f conftest.er1
12393   cat conftest.err >&5
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } && {
12396          test -z "$ac_c_werror_flag" ||
12397          test ! -s conftest.err
12398        } && test -s conftest$ac_exeext &&
12399        $as_test_x conftest$ac_exeext; then
12400   ac_cv_func_alloca_works=yes
12401 else
12402   echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405         ac_cv_func_alloca_works=no
12406 fi
12407
12408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12409       conftest$ac_exeext conftest.$ac_ext
12410 fi
12411 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12412 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12413
12414 if test $ac_cv_func_alloca_works = yes; then
12415
12416 cat >>confdefs.h <<\_ACEOF
12417 #define HAVE_ALLOCA 1
12418 _ACEOF
12419
12420 else
12421   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12422 # that cause trouble.  Some versions do not even contain alloca or
12423 # contain a buggy version.  If you still want to use their alloca,
12424 # use ar to extract alloca.o from them instead of compiling alloca.c.
12425
12426 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12427
12428 cat >>confdefs.h <<\_ACEOF
12429 #define C_ALLOCA 1
12430 _ACEOF
12431
12432
12433 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12434 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12435 if test "${ac_cv_os_cray+set}" = set; then
12436   echo $ECHO_N "(cached) $ECHO_C" >&6
12437 else
12438   cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444 #if defined CRAY && ! defined CRAY2
12445 webecray
12446 #else
12447 wenotbecray
12448 #endif
12449
12450 _ACEOF
12451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452   $EGREP "webecray" >/dev/null 2>&1; then
12453   ac_cv_os_cray=yes
12454 else
12455   ac_cv_os_cray=no
12456 fi
12457 rm -f conftest*
12458
12459 fi
12460 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12461 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12462 if test $ac_cv_os_cray = yes; then
12463   for ac_func in _getb67 GETB67 getb67; do
12464     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470   cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h.  */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h.  */
12476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12478 #define $ac_func innocuous_$ac_func
12479
12480 /* System header to define __stub macros and hopefully few prototypes,
12481     which can conflict with char $ac_func (); below.
12482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483     <limits.h> exists even on freestanding compilers.  */
12484
12485 #ifdef __STDC__
12486 # include <limits.h>
12487 #else
12488 # include <assert.h>
12489 #endif
12490
12491 #undef $ac_func
12492
12493 /* Override any GCC internal prototype to avoid an error.
12494    Use char because int might match the return type of a GCC
12495    builtin and then its argument prototype would still apply.  */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 char $ac_func ();
12500 /* The GNU C library defines this for functions which it implements
12501     to always fail with ENOSYS.  Some functions are actually named
12502     something starting with __ and the normal name is an alias.  */
12503 #if defined __stub_$ac_func || defined __stub___$ac_func
12504 choke me
12505 #endif
12506
12507 int
12508 main ()
12509 {
12510 return $ac_func ();
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522   (eval "$ac_link") 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } && {
12529          test -z "$ac_c_werror_flag" ||
12530          test ! -s conftest.err
12531        } && test -s conftest$ac_exeext &&
12532        $as_test_x conftest$ac_exeext; then
12533   eval "$as_ac_var=yes"
12534 else
12535   echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12537
12538         eval "$as_ac_var=no"
12539 fi
12540
12541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12542       conftest$ac_exeext conftest.$ac_ext
12543 fi
12544 ac_res=`eval echo '${'$as_ac_var'}'`
12545                { echo "$as_me:$LINENO: result: $ac_res" >&5
12546 echo "${ECHO_T}$ac_res" >&6; }
12547 if test `eval echo '${'$as_ac_var'}'` = yes; then
12548
12549 cat >>confdefs.h <<_ACEOF
12550 #define CRAY_STACKSEG_END $ac_func
12551 _ACEOF
12552
12553     break
12554 fi
12555
12556   done
12557 fi
12558
12559 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12560 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12561 if test "${ac_cv_c_stack_direction+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   if test "$cross_compiling" = yes; then
12565   ac_cv_c_stack_direction=0
12566 else
12567   cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h.  */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h.  */
12573 $ac_includes_default
12574 int
12575 find_stack_direction ()
12576 {
12577   static char *addr = 0;
12578   auto char dummy;
12579   if (addr == 0)
12580     {
12581       addr = &dummy;
12582       return find_stack_direction ();
12583     }
12584   else
12585     return (&dummy > addr) ? 1 : -1;
12586 }
12587
12588 int
12589 main ()
12590 {
12591   return find_stack_direction () < 0;
12592 }
12593 _ACEOF
12594 rm -f conftest$ac_exeext
12595 if { (ac_try="$ac_link"
12596 case "(($ac_try" in
12597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598   *) ac_try_echo=$ac_try;;
12599 esac
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601   (eval "$ac_link") 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12605   { (case "(($ac_try" in
12606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607   *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610   (eval "$ac_try") 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614   ac_cv_c_stack_direction=1
12615 else
12616   echo "$as_me: program exited with status $ac_status" >&5
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 ( exit $ac_status )
12621 ac_cv_c_stack_direction=-1
12622 fi
12623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12624 fi
12625
12626
12627 fi
12628 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12629 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12630
12631 cat >>confdefs.h <<_ACEOF
12632 #define STACK_DIRECTION $ac_cv_c_stack_direction
12633 _ACEOF
12634
12635
12636 fi
12637
12638
12639
12640 { echo "$as_me:$LINENO: checking for socklen_t" >&5
12641 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
12642 if test "${ac_cv_type_socklen_t+set}" = set; then
12643   echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645
12646   cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652 #include <sys/types.h>
12653 #include <sys/socket.h>
12654 #if STDC_HEADERS
12655 #include <stdlib.h>
12656 #include <stddef.h>
12657 #endif
12658 _ACEOF
12659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12660   $EGREP "socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12661   ac_cv_type_socklen_t=yes
12662 else
12663   ac_cv_type_socklen_t=no
12664 fi
12665 rm -f conftest*
12666
12667
12668 fi
12669 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12670 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
12671 if test $ac_cv_type_socklen_t = no; then
12672   cat >>confdefs.h <<\_ACEOF
12673 #define socklen_t int
12674 _ACEOF
12675
12676 fi
12677
12678 { echo "$as_me:$LINENO: checking for mtyp_t" >&5
12679 echo $ECHO_N "checking for mtyp_t... $ECHO_C" >&6; }
12680 if test "${ac_cv_type_mtyp_t+set}" = set; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683
12684   cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h.  */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h.  */
12690 #include <sys/types.h>
12691 #include <sys/ipc.h>
12692 #include <sys/msg.h>
12693 _ACEOF
12694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12695   $EGREP "mtyp_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12696   ac_cv_type_mtyp_t=yes
12697 else
12698   ac_cv_type_mtyp_t=no
12699 fi
12700 rm -f conftest*
12701
12702
12703 fi
12704 { echo "$as_me:$LINENO: result: $ac_cv_type_mtyp_t" >&5
12705 echo "${ECHO_T}$ac_cv_type_mtyp_t" >&6; }
12706 if test $ac_cv_type_mtyp_t = no; then
12707   cat >>confdefs.h <<\_ACEOF
12708 #define mtyp_t long
12709 _ACEOF
12710
12711  fi
12712
12713
12714 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12715 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
12716 if test "${ac_cv_lib_nsl_main+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   ac_check_lib_save_LIBS=$LIBS
12720 LIBS="-lnsl  $LIBS"
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h.  */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h.  */
12727
12728
12729 int
12730 main ()
12731 {
12732 return main ();
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741   *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744   (eval "$ac_link") 2>conftest.er1
12745   ac_status=$?
12746   grep -v '^ *+' conftest.er1 >conftest.err
12747   rm -f conftest.er1
12748   cat conftest.err >&5
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } && {
12751          test -z "$ac_c_werror_flag" ||
12752          test ! -s conftest.err
12753        } && test -s conftest$ac_exeext &&
12754        $as_test_x conftest$ac_exeext; then
12755   ac_cv_lib_nsl_main=yes
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760         ac_cv_lib_nsl_main=no
12761 fi
12762
12763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12764       conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12766 fi
12767 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12768 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
12769 if test $ac_cv_lib_nsl_main = yes; then
12770   cat >>confdefs.h <<_ACEOF
12771 #define HAVE_LIBNSL 1
12772 _ACEOF
12773
12774   LIBS="-lnsl $LIBS"
12775
12776 fi
12777
12778
12779 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12780 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
12781 if test "${ac_cv_lib_socket_main+set}" = set; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784   ac_check_lib_save_LIBS=$LIBS
12785 LIBS="-lsocket  $LIBS"
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h.  */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h.  */
12792
12793
12794 int
12795 main ()
12796 {
12797 return main ();
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (ac_try="$ac_link"
12804 case "(($ac_try" in
12805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806   *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809   (eval "$ac_link") 2>conftest.er1
12810   ac_status=$?
12811   grep -v '^ *+' conftest.er1 >conftest.err
12812   rm -f conftest.er1
12813   cat conftest.err >&5
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); } && {
12816          test -z "$ac_c_werror_flag" ||
12817          test ! -s conftest.err
12818        } && test -s conftest$ac_exeext &&
12819        $as_test_x conftest$ac_exeext; then
12820   ac_cv_lib_socket_main=yes
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825         ac_cv_lib_socket_main=no
12826 fi
12827
12828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12829       conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12831 fi
12832 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12833 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
12834 if test $ac_cv_lib_socket_main = yes; then
12835   cat >>confdefs.h <<_ACEOF
12836 #define HAVE_LIBSOCKET 1
12837 _ACEOF
12838
12839   LIBS="-lsocket $LIBS"
12840
12841 fi
12842
12843
12844 { echo "$as_me:$LINENO: checking for unix domain sockets" >&5
12845 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6; }
12846 if test "${squid_cv_unixsocket+set}" = set; then
12847   echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849
12850     cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856
12857 #include <sys/types.h>
12858 #include <stdlib.h>
12859 #include <stddef.h>
12860 #include <sys/socket.h>
12861 #include <sys/un.h>
12862 int
12863 main ()
12864 {
12865
12866   struct sockaddr_un sunaddr;
12867   sunaddr.sun_family = AF_UNIX;
12868
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext
12874 if { (ac_try="$ac_compile"
12875 case "(($ac_try" in
12876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877   *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880   (eval "$ac_compile") 2>conftest.er1
12881   ac_status=$?
12882   grep -v '^ *+' conftest.er1 >conftest.err
12883   rm -f conftest.er1
12884   cat conftest.err >&5
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); } && {
12887          test -z "$ac_c_werror_flag" ||
12888          test ! -s conftest.err
12889        } && test -s conftest.$ac_objext; then
12890   squid_cv_unixsocket=yes
12891 else
12892   echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895         squid_cv_unixsocket=no
12896 fi
12897
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 fi
12900 { echo "$as_me:$LINENO: result: $squid_cv_unixsocket" >&5
12901 echo "${ECHO_T}$squid_cv_unixsocket" >&6; }
12902 if test x"$squid_cv_unixsocket" = x"yes"; then
12903    cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_UNIXSOCKET 1
12905 _ACEOF
12906
12907 fi
12908
12909 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
12910   echo "skipping libmalloc check (--enable-dlmalloc specified)"
12911 else
12912
12913 { echo "$as_me:$LINENO: checking for main in -lgnumalloc" >&5
12914 echo $ECHO_N "checking for main in -lgnumalloc... $ECHO_C" >&6; }
12915 if test "${ac_cv_lib_gnumalloc_main+set}" = set; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918   ac_check_lib_save_LIBS=$LIBS
12919 LIBS="-lgnumalloc  $LIBS"
12920 cat >conftest.$ac_ext <<_ACEOF
12921 /* confdefs.h.  */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h.  */
12926
12927
12928 int
12929 main ()
12930 {
12931 return main ();
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 rm -f conftest.$ac_objext conftest$ac_exeext
12937 if { (ac_try="$ac_link"
12938 case "(($ac_try" in
12939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940   *) ac_try_echo=$ac_try;;
12941 esac
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943   (eval "$ac_link") 2>conftest.er1
12944   ac_status=$?
12945   grep -v '^ *+' conftest.er1 >conftest.err
12946   rm -f conftest.er1
12947   cat conftest.err >&5
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); } && {
12950          test -z "$ac_c_werror_flag" ||
12951          test ! -s conftest.err
12952        } && test -s conftest$ac_exeext &&
12953        $as_test_x conftest$ac_exeext; then
12954   ac_cv_lib_gnumalloc_main=yes
12955 else
12956   echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959         ac_cv_lib_gnumalloc_main=no
12960 fi
12961
12962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12963       conftest$ac_exeext conftest.$ac_ext
12964 LIBS=$ac_check_lib_save_LIBS
12965 fi
12966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnumalloc_main" >&5
12967 echo "${ECHO_T}$ac_cv_lib_gnumalloc_main" >&6; }
12968 if test $ac_cv_lib_gnumalloc_main = yes; then
12969   cat >>confdefs.h <<_ACEOF
12970 #define HAVE_LIBGNUMALLOC 1
12971 _ACEOF
12972
12973   LIBS="-lgnumalloc $LIBS"
12974
12975 fi
12976
12977   if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
12978                 echo "Disabling extended malloc functions when using gnumalloc"
12979                 ac_cv_func_mallinfo=no
12980                 ac_cv_func_mallocblksize=no
12981                 ac_cv_func_mallopt=no
12982   else
12983                 case "$host" in
12984                         *-sun-solaris*)
12985                           echo "skipping libmalloc check for $host"
12986                                 ;;
12987                         i386-*-freebsd*)
12988                           echo "skipping libmalloc check for $host"
12989                                 ;;
12990                         *)
12991
12992
12993 { echo "$as_me:$LINENO: checking for main in -lmalloc" >&5
12994 echo $ECHO_N "checking for main in -lmalloc... $ECHO_C" >&6; }
12995 if test "${ac_cv_lib_malloc_main+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   ac_check_lib_save_LIBS=$LIBS
12999 LIBS="-lmalloc  $LIBS"
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h.  */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h.  */
13006
13007
13008 int
13009 main ()
13010 {
13011 return main ();
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020   *) ac_try_echo=$ac_try;;
13021 esac
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023   (eval "$ac_link") 2>conftest.er1
13024   ac_status=$?
13025   grep -v '^ *+' conftest.er1 >conftest.err
13026   rm -f conftest.er1
13027   cat conftest.err >&5
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } && {
13030          test -z "$ac_c_werror_flag" ||
13031          test ! -s conftest.err
13032        } && test -s conftest$ac_exeext &&
13033        $as_test_x conftest$ac_exeext; then
13034   ac_cv_lib_malloc_main=yes
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039         ac_cv_lib_malloc_main=no
13040 fi
13041
13042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13043       conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13045 fi
13046 { echo "$as_me:$LINENO: result: $ac_cv_lib_malloc_main" >&5
13047 echo "${ECHO_T}$ac_cv_lib_malloc_main" >&6; }
13048 if test $ac_cv_lib_malloc_main = yes; then
13049   cat >>confdefs.h <<_ACEOF
13050 #define HAVE_LIBMALLOC 1
13051 _ACEOF
13052
13053   LIBS="-lmalloc $LIBS"
13054
13055 fi
13056
13057                                 ;;
13058                 esac
13059   fi
13060 fi
13061
13062
13063 { echo "$as_me:$LINENO: checking for main in -lbsd" >&5
13064 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6; }
13065 if test "${ac_cv_lib_bsd_main+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-lbsd  $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h.  */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h.  */
13076
13077
13078 int
13079 main ()
13080 {
13081 return main ();
13082   ;
13083   return 0;
13084 }
13085 _ACEOF
13086 rm -f conftest.$ac_objext conftest$ac_exeext
13087 if { (ac_try="$ac_link"
13088 case "(($ac_try" in
13089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090   *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093   (eval "$ac_link") 2>conftest.er1
13094   ac_status=$?
13095   grep -v '^ *+' conftest.er1 >conftest.err
13096   rm -f conftest.er1
13097   cat conftest.err >&5
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); } && {
13100          test -z "$ac_c_werror_flag" ||
13101          test ! -s conftest.err
13102        } && test -s conftest$ac_exeext &&
13103        $as_test_x conftest$ac_exeext; then
13104   ac_cv_lib_bsd_main=yes
13105 else
13106   echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109         ac_cv_lib_bsd_main=no
13110 fi
13111
13112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13113       conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13115 fi
13116 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
13117 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6; }
13118 if test $ac_cv_lib_bsd_main = yes; then
13119   cat >>confdefs.h <<_ACEOF
13120 #define HAVE_LIBBSD 1
13121 _ACEOF
13122
13123   LIBS="-lbsd $LIBS"
13124
13125 fi
13126
13127 { echo "$as_me:$LINENO: checking for main in -lregex" >&5
13128 echo $ECHO_N "checking for main in -lregex... $ECHO_C" >&6; }
13129 if test "${ac_cv_lib_regex_main+set}" = set; then
13130   echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132   ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lregex  $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140
13141
13142 int
13143 main ()
13144 {
13145 return main ();
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (ac_try="$ac_link"
13152 case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_link") 2>conftest.er1
13158   ac_status=$?
13159   grep -v '^ *+' conftest.er1 >conftest.err
13160   rm -f conftest.er1
13161   cat conftest.err >&5
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } && {
13164          test -z "$ac_c_werror_flag" ||
13165          test ! -s conftest.err
13166        } && test -s conftest$ac_exeext &&
13167        $as_test_x conftest$ac_exeext; then
13168   ac_cv_lib_regex_main=yes
13169 else
13170   echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173         ac_cv_lib_regex_main=no
13174 fi
13175
13176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13177       conftest$ac_exeext conftest.$ac_ext
13178 LIBS=$ac_check_lib_save_LIBS
13179 fi
13180 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_main" >&5
13181 echo "${ECHO_T}$ac_cv_lib_regex_main" >&6; }
13182 if test $ac_cv_lib_regex_main = yes; then
13183   REGEXLIB="-lregex"
13184 fi
13185
13186
13187 { echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
13188 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6; }
13189 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
13190   echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192   ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-lbind  $LIBS"
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h.  */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h.  */
13200
13201 /* Override any GCC internal prototype to avoid an error.
13202    Use char because int might match the return type of a GCC
13203    builtin and then its argument prototype would still apply.  */
13204 #ifdef __cplusplus
13205 extern "C"
13206 #endif
13207 char gethostbyname ();
13208 int
13209 main ()
13210 {
13211 return gethostbyname ();
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (ac_try="$ac_link"
13218 case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_link") 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } && {
13230          test -z "$ac_c_werror_flag" ||
13231          test ! -s conftest.err
13232        } && test -s conftest$ac_exeext &&
13233        $as_test_x conftest$ac_exeext; then
13234   ac_cv_lib_bind_gethostbyname=yes
13235 else
13236   echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13238
13239         ac_cv_lib_bind_gethostbyname=no
13240 fi
13241
13242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13243       conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13245 fi
13246 { echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
13247 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6; }
13248 if test $ac_cv_lib_bind_gethostbyname = yes; then
13249   cat >>confdefs.h <<_ACEOF
13250 #define HAVE_LIBBIND 1
13251 _ACEOF
13252
13253   LIBS="-lbind $LIBS"
13254
13255 fi
13256
13257 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
13258     case "$host" in
13259         i386-*-freebsd*)
13260                 echo "skipping libresolv checks for $host"
13261                 ;;
13262         *)
13263                 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
13264 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
13265 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
13266   echo $ECHO_N "(cached) $ECHO_C" >&6
13267 else
13268   ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-lresolv  $LIBS"
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276
13277 /* Override any GCC internal prototype to avoid an error.
13278    Use char because int might match the return type of a GCC
13279    builtin and then its argument prototype would still apply.  */
13280 #ifdef __cplusplus
13281 extern "C"
13282 #endif
13283 char inet_aton ();
13284 int
13285 main ()
13286 {
13287 return inet_aton ();
13288   ;
13289   return 0;
13290 }
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (ac_try="$ac_link"
13294 case "(($ac_try" in
13295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296   *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299   (eval "$ac_link") 2>conftest.er1
13300   ac_status=$?
13301   grep -v '^ *+' conftest.er1 >conftest.err
13302   rm -f conftest.er1
13303   cat conftest.err >&5
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } && {
13306          test -z "$ac_c_werror_flag" ||
13307          test ! -s conftest.err
13308        } && test -s conftest$ac_exeext &&
13309        $as_test_x conftest$ac_exeext; then
13310   ac_cv_lib_resolv_inet_aton=yes
13311 else
13312   echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13314
13315         ac_cv_lib_resolv_inet_aton=no
13316 fi
13317
13318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13319       conftest$ac_exeext conftest.$ac_ext
13320 LIBS=$ac_check_lib_save_LIBS
13321 fi
13322 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
13323 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
13324 if test $ac_cv_lib_resolv_inet_aton = yes; then
13325
13326 { echo "$as_me:$LINENO: checking for inet_aton in -l44bsd" >&5
13327 echo $ECHO_N "checking for inet_aton in -l44bsd... $ECHO_C" >&6; }
13328 if test "${ac_cv_lib_44bsd_inet_aton+set}" = set; then
13329   echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331   ac_check_lib_save_LIBS=$LIBS
13332 LIBS="-l44bsd  $LIBS"
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h.  */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h.  */
13339
13340 /* Override any GCC internal prototype to avoid an error.
13341    Use char because int might match the return type of a GCC
13342    builtin and then its argument prototype would still apply.  */
13343 #ifdef __cplusplus
13344 extern "C"
13345 #endif
13346 char inet_aton ();
13347 int
13348 main ()
13349 {
13350 return inet_aton ();
13351   ;
13352   return 0;
13353 }
13354 _ACEOF
13355 rm -f conftest.$ac_objext conftest$ac_exeext
13356 if { (ac_try="$ac_link"
13357 case "(($ac_try" in
13358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359   *) ac_try_echo=$ac_try;;
13360 esac
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362   (eval "$ac_link") 2>conftest.er1
13363   ac_status=$?
13364   grep -v '^ *+' conftest.er1 >conftest.err
13365   rm -f conftest.er1
13366   cat conftest.err >&5
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } && {
13369          test -z "$ac_c_werror_flag" ||
13370          test ! -s conftest.err
13371        } && test -s conftest$ac_exeext &&
13372        $as_test_x conftest$ac_exeext; then
13373   ac_cv_lib_44bsd_inet_aton=yes
13374 else
13375   echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378         ac_cv_lib_44bsd_inet_aton=no
13379 fi
13380
13381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13382       conftest$ac_exeext conftest.$ac_ext
13383 LIBS=$ac_check_lib_save_LIBS
13384 fi
13385 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_inet_aton" >&5
13386 echo "${ECHO_T}$ac_cv_lib_44bsd_inet_aton" >&6; }
13387 if test $ac_cv_lib_44bsd_inet_aton = yes; then
13388   cat >>confdefs.h <<_ACEOF
13389 #define HAVE_LIB44BSD 1
13390 _ACEOF
13391
13392   LIBS="-l44bsd $LIBS"
13393
13394 fi
13395
13396 fi
13397
13398
13399 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
13400 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
13401 if test "${ac_cv_lib_resolv_main+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   ac_check_lib_save_LIBS=$LIBS
13405 LIBS="-lresolv  $LIBS"
13406 cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412
13413
13414 int
13415 main ()
13416 {
13417 return main ();
13418   ;
13419   return 0;
13420 }
13421 _ACEOF
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (ac_try="$ac_link"
13424 case "(($ac_try" in
13425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426   *) ac_try_echo=$ac_try;;
13427 esac
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429   (eval "$ac_link") 2>conftest.er1
13430   ac_status=$?
13431   grep -v '^ *+' conftest.er1 >conftest.err
13432   rm -f conftest.er1
13433   cat conftest.err >&5
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); } && {
13436          test -z "$ac_c_werror_flag" ||
13437          test ! -s conftest.err
13438        } && test -s conftest$ac_exeext &&
13439        $as_test_x conftest$ac_exeext; then
13440   ac_cv_lib_resolv_main=yes
13441 else
13442   echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445         ac_cv_lib_resolv_main=no
13446 fi
13447
13448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13449       conftest$ac_exeext conftest.$ac_ext
13450 LIBS=$ac_check_lib_save_LIBS
13451 fi
13452 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
13453 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
13454 if test $ac_cv_lib_resolv_main = yes; then
13455   cat >>confdefs.h <<_ACEOF
13456 #define HAVE_LIBRESOLV 1
13457 _ACEOF
13458
13459   LIBS="-lresolv $LIBS"
13460
13461 fi
13462
13463                 ;;
13464     esac
13465 fi
13466
13467 { echo "$as_me:$LINENO: checking for main in -lm" >&5
13468 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
13469 if test "${ac_cv_lib_m_main+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   ac_check_lib_save_LIBS=$LIBS
13473 LIBS="-lm  $LIBS"
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480
13481
13482 int
13483 main ()
13484 {
13485 return main ();
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (ac_try="$ac_link"
13492 case "(($ac_try" in
13493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494   *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497   (eval "$ac_link") 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } && {
13504          test -z "$ac_c_werror_flag" ||
13505          test ! -s conftest.err
13506        } && test -s conftest$ac_exeext &&
13507        $as_test_x conftest$ac_exeext; then
13508   ac_cv_lib_m_main=yes
13509 else
13510   echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513         ac_cv_lib_m_main=no
13514 fi
13515
13516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13517       conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13519 fi
13520 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
13521 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
13522 if test $ac_cv_lib_m_main = yes; then
13523   cat >>confdefs.h <<_ACEOF
13524 #define HAVE_LIBM 1
13525 _ACEOF
13526
13527   LIBS="-lm $LIBS"
13528
13529 fi
13530
13531
13532 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13533 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
13534 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13535   echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537   ac_check_lib_save_LIBS=$LIBS
13538 LIBS="-lcrypt  $LIBS"
13539 cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h.  */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h.  */
13545
13546 /* Override any GCC internal prototype to avoid an error.
13547    Use char because int might match the return type of a GCC
13548    builtin and then its argument prototype would still apply.  */
13549 #ifdef __cplusplus
13550 extern "C"
13551 #endif
13552 char crypt ();
13553 int
13554 main ()
13555 {
13556 return crypt ();
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_link") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } && {
13575          test -z "$ac_c_werror_flag" ||
13576          test ! -s conftest.err
13577        } && test -s conftest$ac_exeext &&
13578        $as_test_x conftest$ac_exeext; then
13579   ac_cv_lib_crypt_crypt=yes
13580 else
13581   echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584         ac_cv_lib_crypt_crypt=no
13585 fi
13586
13587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13588       conftest$ac_exeext conftest.$ac_ext
13589 LIBS=$ac_check_lib_save_LIBS
13590 fi
13591 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13592 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
13593 if test $ac_cv_lib_crypt_crypt = yes; then
13594   CRYPTLIB="-lcrypt"
13595 fi
13596
13597
13598
13599 if test "$with_dl" = "yes"; then
13600
13601 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13602 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13603 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13604   echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606   ac_check_lib_save_LIBS=$LIBS
13607 LIBS="-ldl  $LIBS"
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h.  */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h.  */
13614
13615 /* Override any GCC internal prototype to avoid an error.
13616    Use char because int might match the return type of a GCC
13617    builtin and then its argument prototype would still apply.  */
13618 #ifdef __cplusplus
13619 extern "C"
13620 #endif
13621 char dlopen ();
13622 int
13623 main ()
13624 {
13625 return dlopen ();
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (ac_try="$ac_link"
13632 case "(($ac_try" in
13633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634   *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637   (eval "$ac_link") 2>conftest.er1
13638   ac_status=$?
13639   grep -v '^ *+' conftest.er1 >conftest.err
13640   rm -f conftest.er1
13641   cat conftest.err >&5
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } && {
13644          test -z "$ac_c_werror_flag" ||
13645          test ! -s conftest.err
13646        } && test -s conftest$ac_exeext &&
13647        $as_test_x conftest$ac_exeext; then
13648   ac_cv_lib_dl_dlopen=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653         ac_cv_lib_dl_dlopen=no
13654 fi
13655
13656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13657       conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13659 fi
13660 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13662 if test $ac_cv_lib_dl_dlopen = yes; then
13663   cat >>confdefs.h <<_ACEOF
13664 #define HAVE_LIBDL 1
13665 _ACEOF
13666
13667   LIBS="-ldl $LIBS"
13668
13669 fi
13670
13671 fi
13672
13673 if test "$with_pthreads" = "yes"; then
13674     CFLAGS="$CFLAGS -D_REENTRANT"
13675     case "$host" in
13676     i386-unknown-freebsd*)
13677         if test "$GCC" = "yes" ; then
13678             if test -z "$PRESET_LDFLAGS"; then
13679                 LDFLAGS="$LDFLAGS -pthread"
13680             fi
13681         fi
13682     ;;
13683     *-solaris2.*)
13684         if test "$GCC" = "yes" ; then
13685             CFLAGS="$CFLAGS -pthreads"
13686         else
13687             CFLAGS="$CFLAGS -mt"
13688         fi
13689     ;;
13690     esac
13691
13692 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
13693 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
13694 if test "${ac_cv_lib_pthread_main+set}" = set; then
13695   echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697   ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-lpthread  $LIBS"
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705
13706
13707 int
13708 main ()
13709 {
13710 return main ();
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_link") 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } && {
13729          test -z "$ac_c_werror_flag" ||
13730          test ! -s conftest.err
13731        } && test -s conftest$ac_exeext &&
13732        $as_test_x conftest$ac_exeext; then
13733   ac_cv_lib_pthread_main=yes
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738         ac_cv_lib_pthread_main=no
13739 fi
13740
13741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13742       conftest$ac_exeext conftest.$ac_ext
13743 LIBS=$ac_check_lib_save_LIBS
13744 fi
13745 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
13746 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
13747 if test $ac_cv_lib_pthread_main = yes; then
13748   cat >>confdefs.h <<_ACEOF
13749 #define HAVE_LIBPTHREAD 1
13750 _ACEOF
13751
13752   LIBS="-lpthread $LIBS"
13753
13754 fi
13755
13756 fi
13757
13758 if test "$with_aio" = "yes"; then
13759
13760 { echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
13761 echo $ECHO_N "checking for aio_read in -lrt... $ECHO_C" >&6; }
13762 if test "${ac_cv_lib_rt_aio_read+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   ac_check_lib_save_LIBS=$LIBS
13766 LIBS="-lrt  $LIBS"
13767 cat >conftest.$ac_ext <<_ACEOF
13768 /* confdefs.h.  */
13769 _ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h.  */
13773
13774 /* Override any GCC internal prototype to avoid an error.
13775    Use char because int might match the return type of a GCC
13776    builtin and then its argument prototype would still apply.  */
13777 #ifdef __cplusplus
13778 extern "C"
13779 #endif
13780 char aio_read ();
13781 int
13782 main ()
13783 {
13784 return aio_read ();
13785   ;
13786   return 0;
13787 }
13788 _ACEOF
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (ac_try="$ac_link"
13791 case "(($ac_try" in
13792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793   *) ac_try_echo=$ac_try;;
13794 esac
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796   (eval "$ac_link") 2>conftest.er1
13797   ac_status=$?
13798   grep -v '^ *+' conftest.er1 >conftest.err
13799   rm -f conftest.er1
13800   cat conftest.err >&5
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } && {
13803          test -z "$ac_c_werror_flag" ||
13804          test ! -s conftest.err
13805        } && test -s conftest$ac_exeext &&
13806        $as_test_x conftest$ac_exeext; then
13807   ac_cv_lib_rt_aio_read=yes
13808 else
13809   echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13811
13812         ac_cv_lib_rt_aio_read=no
13813 fi
13814
13815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13816       conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13818 fi
13819 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5
13820 echo "${ECHO_T}$ac_cv_lib_rt_aio_read" >&6; }
13821 if test $ac_cv_lib_rt_aio_read = yes; then
13822   cat >>confdefs.h <<_ACEOF
13823 #define HAVE_LIBRT 1
13824 _ACEOF
13825
13826   LIBS="-lrt $LIBS"
13827
13828 fi
13829
13830 fi
13831
13832 case "$host" in
13833         *-pc-sco3.2*)
13834
13835 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13836 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13837 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13838   echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840   ac_check_lib_save_LIBS=$LIBS
13841 LIBS="-lintl  $LIBS"
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h.  */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h.  */
13848
13849 /* Override any GCC internal prototype to avoid an error.
13850    Use char because int might match the return type of a GCC
13851    builtin and then its argument prototype would still apply.  */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char strftime ();
13856 int
13857 main ()
13858 {
13859 return strftime ();
13860   ;
13861   return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_link") 2>conftest.er1
13872   ac_status=$?
13873   grep -v '^ *+' conftest.er1 >conftest.err
13874   rm -f conftest.er1
13875   cat conftest.err >&5
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } && {
13878          test -z "$ac_c_werror_flag" ||
13879          test ! -s conftest.err
13880        } && test -s conftest$ac_exeext &&
13881        $as_test_x conftest$ac_exeext; then
13882   ac_cv_lib_intl_strftime=yes
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887         ac_cv_lib_intl_strftime=no
13888 fi
13889
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891       conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13895 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13896 if test $ac_cv_lib_intl_strftime = yes; then
13897   cat >>confdefs.h <<_ACEOF
13898 #define HAVE_LIBINTL 1
13899 _ACEOF
13900
13901   LIBS="-lintl $LIBS"
13902
13903 fi
13904
13905                 ;;
13906 esac
13907
13908 { echo "$as_me:$LINENO: checking for main in -llber" >&5
13909 echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6; }
13910 if test "${ac_cv_lib_lber_main+set}" = set; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913   ac_check_lib_save_LIBS=$LIBS
13914 LIBS="-llber  $LIBS"
13915 cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h.  */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h.  */
13921
13922
13923 int
13924 main ()
13925 {
13926 return main ();
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (ac_try="$ac_link"
13933 case "(($ac_try" in
13934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935   *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938   (eval "$ac_link") 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } && {
13945          test -z "$ac_c_werror_flag" ||
13946          test ! -s conftest.err
13947        } && test -s conftest$ac_exeext &&
13948        $as_test_x conftest$ac_exeext; then
13949   ac_cv_lib_lber_main=yes
13950 else
13951   echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954         ac_cv_lib_lber_main=no
13955 fi
13956
13957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13958       conftest$ac_exeext conftest.$ac_ext
13959 LIBS=$ac_check_lib_save_LIBS
13960 fi
13961 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5
13962 echo "${ECHO_T}$ac_cv_lib_lber_main" >&6; }
13963 if test $ac_cv_lib_lber_main = yes; then
13964   LIB_LBER="-llber"
13965 fi
13966
13967
13968
13969 case "$host" in
13970         i386-*-solaris2.*)
13971                 if test "$GCC" = "yes"; then
13972                         echo "Removing -O for gcc on $host"
13973                         CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
13974                 fi
13975                 ;;
13976         *-sgi-irix*)
13977                 echo "Removing -lsocket for IRIX..."
13978                 LIBS=`echo $LIBS | sed -e s/-lsocket//`
13979                 echo "Removing -lnsl for IRIX..."
13980                 LIBS=`echo $LIBS | sed -e s/-lnsl//`
13981                 ac_cv_lib_nsl_main=no
13982                 echo "Removing -lbsd for IRIX..."
13983                 LIBS=`echo $LIBS | sed -e s/-lbsd//`
13984                 ;;
13985         *-ibm-aix*)
13986                 echo "Removing -lbsd for AIX..."
13987                 LIBS=`echo $LIBS | sed -e s/-lbsd//`
13988                 case "$host" in
13989                         *-ibm-aix4*)
13990                                 echo "disabling snprintf/vsnprintf for $host"
13991                                 ac_cv_func_snprintf=no
13992                                 ac_cv_func_vsnprintf=no
13993                         ;;
13994                 esac
13995                 ;;
13996         *m88k*-openbsd*)
13997                 ;;
13998         *m88k*)
13999                 CFLAGS="$CFLAGS -D_SQUID_MOTOROLA_"
14000                 cat >>confdefs.h <<\_ACEOF
14001 #define GETTIMEOFDAY_NO_TZP 1
14002 _ACEOF
14003
14004                 ;;
14005         *-*-solaris2.[0-4])
14006                 cat >>confdefs.h <<\_ACEOF
14007 #define GETTIMEOFDAY_NO_TZP 1
14008 _ACEOF
14009
14010                 ;;
14011         *-sony-newsos[56]*)
14012                 cat >>confdefs.h <<\_ACEOF
14013 #define GETTIMEOFDAY_NO_TZP 1
14014 _ACEOF
14015
14016                 ;;
14017 esac
14018
14019 # Remove optimization for GCC 2.95.[123]
14020 # gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL
14021 if test "$GCC" = "yes"; then
14022         GCCVER=`$CC -v 2>&1 | awk '$2 ==  "version" {print $3}'`
14023         case "$GCCVER" in
14024         2.95.[123])
14025                 echo "Removing -O for gcc on $host with GCC $GCCVER"
14026                 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
14027                 ;;
14028         esac
14029 fi
14030
14031 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
14032 case "$host" in
14033         *-univel-sysv4.2MP)
14034                 if test `uname -v` = "2.03"; then
14035                         echo "disabling mallinfo for $host"
14036                         ac_cv_func_mallinfo=no
14037                 fi
14038                 ;;
14039 esac
14040
14041 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
14042 # when running configure.
14043 if test -z "$ac_cv_func_poll"; then
14044         case "$host" in
14045                 alpha-dec-osf3.*)
14046                         # John Kay (jkay@nlanr.net) 19970818
14047                         echo "disabling poll for $host..."
14048                         ac_cv_func_poll='no'
14049                         ;;
14050                 *-hp-hpux*.*)
14051                         # Duane Wessels
14052                         echo "disabling poll for $host..."
14053                         ac_cv_func_poll='no'
14054                         ;;
14055                 *-linux-*)
14056                         # Henrik Nordstrom (hno@squid-cache.org) 19980817
14057                         # poll is problematic on Linux.  We disable it
14058                         # by default until Linux gets it right.
14059                         # See also bug #932
14060                         rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
14061                         if test $rev -lt 002004; then
14062                             echo "disabling poll for $host < 2.4..."
14063                             ac_cv_func_poll='no'
14064                         fi
14065                         ;;
14066                 powerpc-ibm-aix4.1.*)
14067                         # Mike Laster (mlaster@metavillage.com) 19981021
14068                         echo "disabling poll for $host..."
14069                         ac_cv_func_poll='no'
14070                         ;;
14071                 *-pc-sco3.2*)
14072                         # Robert Side <rside@aiinc.bc.ca>
14073                         # Mon, 18 Jan 1999 17:48:00 GMT
14074                         echo "disabling poll for $host..."
14075                         ac_cv_func_poll='no'
14076                         ;;
14077         esac
14078 fi
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132 for ac_func in \
14133         bcopy \
14134         backtrace_symbols_fd \
14135         crypt \
14136         fchmod \
14137         getdtablesize \
14138         getpagesize \
14139         getpass \
14140         getrusage \
14141         getspnam \
14142         lrand48 \
14143         mallinfo \
14144         mallocblksize \
14145         mallopt \
14146         memcpy \
14147         memmove \
14148         memset \
14149         mkstemp \
14150         mktime \
14151         mstats \
14152         poll \
14153         pthread_attr_setscope \
14154         pthread_setschedparam \
14155         pthread_attr_setschedparam \
14156         pthread_sigmask \
14157         putenv \
14158         random \
14159         regcomp \
14160         regexec \
14161         regfree \
14162         res_init \
14163         rint \
14164         sbrk \
14165         seteuid \
14166         setgroups \
14167         setpgrp \
14168         setrlimit \
14169         getrlimit \
14170         setsid \
14171         sigaction \
14172         snprintf \
14173         srand48 \
14174         srandom \
14175         statfs \
14176         strnstr \
14177         strcasestr \
14178         strtoll \
14179         sysconf \
14180         syslog \
14181         timegm \
14182         vsnprintf \
14183         bswap_16 \
14184         bswap_32 \
14185
14186 do
14187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14201 #define $ac_func innocuous_$ac_func
14202
14203 /* System header to define __stub macros and hopefully few prototypes,
14204     which can conflict with char $ac_func (); below.
14205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14206     <limits.h> exists even on freestanding compilers.  */
14207
14208 #ifdef __STDC__
14209 # include <limits.h>
14210 #else
14211 # include <assert.h>
14212 #endif
14213
14214 #undef $ac_func
14215
14216 /* Override any GCC internal prototype to avoid an error.
14217    Use char because int might match the return type of a GCC
14218    builtin and then its argument prototype would still apply.  */
14219 #ifdef __cplusplus
14220 extern "C"
14221 #endif
14222 char $ac_func ();
14223 /* The GNU C library defines this for functions which it implements
14224     to always fail with ENOSYS.  Some functions are actually named
14225     something starting with __ and the normal name is an alias.  */
14226 #if defined __stub_$ac_func || defined __stub___$ac_func
14227 choke me
14228 #endif
14229
14230 int
14231 main ()
14232 {
14233 return $ac_func ();
14234   ;
14235   return 0;
14236 }
14237 _ACEOF
14238 rm -f conftest.$ac_objext conftest$ac_exeext
14239 if { (ac_try="$ac_link"
14240 case "(($ac_try" in
14241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242   *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245   (eval "$ac_link") 2>conftest.er1
14246   ac_status=$?
14247   grep -v '^ *+' conftest.er1 >conftest.err
14248   rm -f conftest.er1
14249   cat conftest.err >&5
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); } && {
14252          test -z "$ac_c_werror_flag" ||
14253          test ! -s conftest.err
14254        } && test -s conftest$ac_exeext &&
14255        $as_test_x conftest$ac_exeext; then
14256   eval "$as_ac_var=yes"
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261         eval "$as_ac_var=no"
14262 fi
14263
14264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14265       conftest$ac_exeext conftest.$ac_ext
14266 fi
14267 ac_res=`eval echo '${'$as_ac_var'}'`
14268                { echo "$as_me:$LINENO: result: $ac_res" >&5
14269 echo "${ECHO_T}$ac_res" >&6; }
14270 if test `eval echo '${'$as_ac_var'}'` = yes; then
14271   cat >>confdefs.h <<_ACEOF
14272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14273 _ACEOF
14274
14275 fi
14276 done
14277
14278
14279 { echo "$as_me:$LINENO: checking if setresuid is implemented" >&5
14280 echo $ECHO_N "checking if setresuid is implemented... $ECHO_C" >&6; }
14281 if test "${ac_cv_func_setresuid+set}" = set; then
14282   echo $ECHO_N "(cached) $ECHO_C" >&6
14283 else
14284   if test "$cross_compiling" = yes; then
14285   ac_cv_func_setresuid="no"
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293
14294 #include <stdlib.h>
14295   int main() {
14296     if(setresuid(-1,-1,-1)) {
14297       perror("setresuid:");
14298       exit(1);
14299     }
14300     exit(0);
14301   }
14302
14303 _ACEOF
14304 rm -f conftest$ac_exeext
14305 if { (ac_try="$ac_link"
14306 case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311   (eval "$ac_link") 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315   { (case "(($ac_try" in
14316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317   *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320   (eval "$ac_try") 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_cv_func_setresuid="yes"
14325 else
14326   echo "$as_me: program exited with status $ac_status" >&5
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ( exit $ac_status )
14331 ac_cv_func_setresuid="no"
14332 fi
14333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14334 fi
14335
14336
14337
14338 fi
14339 { echo "$as_me:$LINENO: result: $ac_cv_func_setresuid" >&5
14340 echo "${ECHO_T}$ac_cv_func_setresuid" >&6; }
14341 if test "$ac_cv_func_setresuid" = "yes" ; then
14342   cat >>confdefs.h <<\_ACEOF
14343 #define HAVE_SETRESUID 1
14344 _ACEOF
14345
14346 fi
14347
14348
14349
14350 if false; then
14351   NEED_OWN_SNPRINTF_TRUE=
14352   NEED_OWN_SNPRINTF_FALSE='#'
14353 else
14354   NEED_OWN_SNPRINTF_TRUE='#'
14355   NEED_OWN_SNPRINTF_FALSE=
14356 fi
14357
14358 if test "$ac_cv_func_snprintf" = "no" || test "$ac_cv_func_vsnprintf" = "no" ; then
14359
14360
14361 if true; then
14362   NEED_OWN_SNPRINTF_TRUE=
14363   NEED_OWN_SNPRINTF_FALSE='#'
14364 else
14365   NEED_OWN_SNPRINTF_TRUE='#'
14366   NEED_OWN_SNPRINTF_FALSE=
14367 fi
14368
14369 fi
14370
14371
14372
14373 if false; then
14374   NEED_OWN_STRNSTR_TRUE=
14375   NEED_OWN_STRNSTR_FALSE='#'
14376 else
14377   NEED_OWN_STRNSTR_TRUE='#'
14378   NEED_OWN_STRNSTR_FALSE=
14379 fi
14380
14381 if test "$ac_cv_func_strnstr" = "no" || test "$ac_cv_func_vstrnstr" = "no" ; then
14382
14383
14384 if true; then
14385   NEED_OWN_STRNSTR_TRUE=
14386   NEED_OWN_STRNSTR_FALSE='#'
14387 else
14388   NEED_OWN_STRNSTR_TRUE='#'
14389   NEED_OWN_STRNSTR_FALSE=
14390 fi
14391
14392 fi
14393
14394
14395
14396 if false; then
14397   NEED_OWN_STRCASESTR_TRUE=
14398   NEED_OWN_STRCASESTR_FALSE='#'
14399 else
14400   NEED_OWN_STRCASESTR_TRUE='#'
14401   NEED_OWN_STRCASESTR_FALSE=
14402 fi
14403
14404 if test "$ac_cv_func_strcasestr" = "no" || test "$ac_cv_func_vstrcasestr" = "no"; then
14405
14406
14407 if true; then
14408   NEED_OWN_STRCASESTR_TRUE=
14409   NEED_OWN_STRCASESTR_FALSE='#'
14410 else
14411   NEED_OWN_STRCASESTR_TRUE='#'
14412   NEED_OWN_STRCASESTR_FALSE=
14413 fi
14414
14415 fi
14416
14417 { echo "$as_me:$LINENO: checking if va_copy is implemented" >&5
14418 echo $ECHO_N "checking if va_copy is implemented... $ECHO_C" >&6; }
14419 if test "${ac_cv_func_va_copy+set}" = set; then
14420   echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422   if test "$cross_compiling" = yes; then
14423   ac_cv_func_va_copy="no"
14424 else
14425   cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431
14432       #include <stdarg.h>
14433       void f (int i, ...) {
14434          va_list args1, args2;
14435          va_start (args1, i);
14436          va_copy (args2, args1);
14437          if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
14438             exit (1);
14439          va_end (args1); va_end (args2);
14440       }
14441       int main() {
14442          f (0, 42);
14443          return 0;
14444       }
14445
14446 _ACEOF
14447 rm -f conftest$ac_exeext
14448 if { (ac_try="$ac_link"
14449 case "(($ac_try" in
14450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451   *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454   (eval "$ac_link") 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14458   { (case "(($ac_try" in
14459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460   *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463   (eval "$ac_try") 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; }; then
14467   ac_cv_func_va_copy="yes"
14468 else
14469   echo "$as_me: program exited with status $ac_status" >&5
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ( exit $ac_status )
14474 ac_cv_func_va_copy="no"
14475 fi
14476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14477 fi
14478
14479
14480
14481 fi
14482 { echo "$as_me:$LINENO: result: $ac_cv_func_va_copy" >&5
14483 echo "${ECHO_T}$ac_cv_func_va_copy" >&6; }
14484 if test "$ac_cv_func_va_copy" = "yes" ; then
14485   cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_VA_COPY 1
14487 _ACEOF
14488
14489 fi
14490
14491 { echo "$as_me:$LINENO: checking if __va_copy is implemented" >&5
14492 echo $ECHO_N "checking if __va_copy is implemented... $ECHO_C" >&6; }
14493 if test "${ac_cv_func___va_copy+set}" = set; then
14494   echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496   if test "$cross_compiling" = yes; then
14497   ac_cv_func___va_copy="no"
14498 else
14499   cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h.  */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h.  */
14505
14506       #include <stdarg.h>
14507       void f (int i, ...) {
14508          va_list args1, args2;
14509          va_start (args1, i);
14510          __va_copy (args2, args1);
14511          if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
14512             exit (1);
14513          va_end (args1); va_end (args2);
14514       }
14515       int main() {
14516          f (0, 42);
14517          return 0;
14518       }
14519
14520 _ACEOF
14521 rm -f conftest$ac_exeext
14522 if { (ac_try="$ac_link"
14523 case "(($ac_try" in
14524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525   *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528   (eval "$ac_link") 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14532   { (case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_try") 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; }; then
14541   ac_cv_func___va_copy="yes"
14542 else
14543   echo "$as_me: program exited with status $ac_status" >&5
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547 ( exit $ac_status )
14548 ac_cv_func___va_copy="no"
14549 fi
14550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14551 fi
14552
14553
14554
14555 fi
14556 { echo "$as_me:$LINENO: result: $ac_cv_func___va_copy" >&5
14557 echo "${ECHO_T}$ac_cv_func___va_copy" >&6; }
14558 if test "$ac_cv_func___va_copy" = "yes" ; then
14559   cat >>confdefs.h <<\_ACEOF
14560 #define HAVE___VA_COPY 1
14561 _ACEOF
14562
14563 fi
14564
14565 if test "$IPF_TRANSPARENT" ; then
14566     { echo "$as_me:$LINENO: checking if IP-Filter header files are installed" >&5
14567 echo $ECHO_N "checking if IP-Filter header files are installed... $ECHO_C" >&6; }
14568     # hold on to your hats...
14569     if test "$ac_cv_header_ip_compat_h" = "yes" ||
14570         test "$ac_cv_header_ip_fil_compat_h" = "yes" ||
14571         test "$ac_cv_header_netinet_ip_compat_h" = "yes" ||
14572         test "$ac_cv_header_netinet_ip_fil_compat_h" = "yes" ; then
14573         have_ipfilter_compat_header="yes"
14574      fi
14575      if test "x$have_ipfilter_compat_header" = "xyes" &&
14576        test "$ac_cv_header_ip_fil_h" = "yes" &&
14577        test "$ac_cv_header_ip_nat_h" = "yes" ; then
14578         IPF_TRANSPARENT="yes"
14579         cat >>confdefs.h <<\_ACEOF
14580 #define IPF_TRANSPARENT 1
14581 _ACEOF
14582
14583     elif test "$have_ipfilter_compat_header" = "yes" &&
14584          test "$ac_cv_header_netinet_ip_fil_h" = "yes" &&
14585          test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then
14586         IPF_TRANSPARENT="yes"
14587         cat >>confdefs.h <<\_ACEOF
14588 #define IPF_TRANSPARENT 1
14589 _ACEOF
14590
14591     else
14592         IPF_TRANSPARENT="no"
14593         cat >>confdefs.h <<\_ACEOF
14594 #define IPF_TRANSPARENT 0
14595 _ACEOF
14596
14597     fi
14598     { echo "$as_me:$LINENO: result: $IPF_TRANSPARENT" >&5
14599 echo "${ECHO_T}$IPF_TRANSPARENT" >&6; }
14600 fi
14601 if test "$IPF_TRANSPARENT" = "no" ; then
14602     echo "WARNING: Cannot find necessary IP-Filter header files"
14603     echo "         Transparent Proxy support WILL NOT be enabled"
14604     sleep 10
14605 fi
14606
14607 if test "$PF_TRANSPARENT" ; then
14608     { echo "$as_me:$LINENO: checking if PF header file is installed" >&5
14609 echo $ECHO_N "checking if PF header file is installed... $ECHO_C" >&6; }
14610     # hold on to your hats...
14611     if test "$ac_cv_header_net_pfvar_h" = "yes"; then
14612         PF_TRANSPARENT="yes"
14613         cat >>confdefs.h <<\_ACEOF
14614 #define PF_TRANSPARENT 1
14615 _ACEOF
14616
14617     else
14618         PF_TRANSPARENT="no"
14619         cat >>confdefs.h <<\_ACEOF
14620 #define PF_TRANSPARENT 0
14621 _ACEOF
14622
14623     fi
14624     { echo "$as_me:$LINENO: result: $PF_TRANSPARENT" >&5
14625 echo "${ECHO_T}$PF_TRANSPARENT" >&6; }
14626 fi
14627 if test "$PF_TRANSPARENT" = "no" ; then
14628     echo "WARNING: Cannot find necessary PF header file"
14629     echo "         Transparent Proxy support WILL NOT be enabled"
14630     sleep 10
14631 fi
14632
14633 if test "$LINUX_NETFILTER" ; then
14634     { echo "$as_me:$LINENO: checking if Linux 2.4 kernel header files are installed" >&5
14635 echo $ECHO_N "checking if Linux 2.4 kernel header files are installed... $ECHO_C" >&6; }
14636     # hold on to your hats...
14637     if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes"; then
14638         LINUX_NETFILTER="yes"
14639         cat >>confdefs.h <<\_ACEOF
14640 #define LINUX_NETFILTER 1
14641 _ACEOF
14642
14643     else
14644         LINUX_NETFILTER="no"
14645         cat >>confdefs.h <<\_ACEOF
14646 #define LINUX_NETFILTER 0
14647 _ACEOF
14648
14649     fi
14650     { echo "$as_me:$LINENO: result: $LINUX_NETFILTER" >&5
14651 echo "${ECHO_T}$LINUX_NETFILTER" >&6; }
14652 fi
14653 if test "$LINUX_NETFILTER" = "no" ; then
14654     echo "WARNING: Cannot find necessary Linux 2.4 kernel header files"
14655     echo "         Linux 2.4 Transparent Proxy support WILL NOT be enabled"
14656     sleep 10
14657 fi
14658
14659 if test -z "$USE_GNUREGEX" ; then
14660     case "$host" in
14661     *-sun-solaris2.[0-4])
14662           USE_GNUREGEX="yes"
14663           ;;
14664     *-next-nextstep*)
14665           USE_GNUREGEX="yes"
14666           ;;
14667     esac
14668 fi
14669 { echo "$as_me:$LINENO: checking if GNUregex needs to be compiled" >&5
14670 echo $ECHO_N "checking if GNUregex needs to be compiled... $ECHO_C" >&6; }
14671 if test -z "$USE_GNUREGEX"; then
14672 if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then
14673         USE_GNUREGEX="yes"
14674 else
14675         cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681 #include <sys/types.h>
14682 #include <regex.h>
14683 int
14684 main ()
14685 {
14686 regex_t t; regcomp(&t,"",0);
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext
14692 if { (ac_try="$ac_compile"
14693 case "(($ac_try" in
14694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695   *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698   (eval "$ac_compile") 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } && {
14705          test -z "$ac_c_werror_flag" ||
14706          test ! -s conftest.err
14707        } && test -s conftest.$ac_objext; then
14708   USE_GNUREGEX="no"
14709 else
14710   echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713         USE_GNUREGEX="yes"
14714 fi
14715
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 fi
14718 fi
14719 { echo "$as_me:$LINENO: result: $USE_GNUREGEX" >&5
14720 echo "${ECHO_T}$USE_GNUREGEX" >&6; }
14721 if test "$USE_GNUREGEX" = "yes"; then
14722         REGEXLIB="-lregex"
14723         LIBREGEX="libregex.a"
14724         cat >>confdefs.h <<\_ACEOF
14725 #define USE_GNUREGEX 1
14726 _ACEOF
14727
14728 fi
14729
14730
14731
14732
14733
14734
14735
14736 for ac_func in \
14737         drand48 \
14738         tempnam \
14739         strerror \
14740         initgroups
14741
14742 do
14743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14747   echo $ECHO_N "(cached) $ECHO_C" >&6
14748 else
14749   cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h.  */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h.  */
14755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14757 #define $ac_func innocuous_$ac_func
14758
14759 /* System header to define __stub macros and hopefully few prototypes,
14760     which can conflict with char $ac_func (); below.
14761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14762     <limits.h> exists even on freestanding compilers.  */
14763
14764 #ifdef __STDC__
14765 # include <limits.h>
14766 #else
14767 # include <assert.h>
14768 #endif
14769
14770 #undef $ac_func
14771
14772 /* Override any GCC internal prototype to avoid an error.
14773    Use char because int might match the return type of a GCC
14774    builtin and then its argument prototype would still apply.  */
14775 #ifdef __cplusplus
14776 extern "C"
14777 #endif
14778 char $ac_func ();
14779 /* The GNU C library defines this for functions which it implements
14780     to always fail with ENOSYS.  Some functions are actually named
14781     something starting with __ and the normal name is an alias.  */
14782 #if defined __stub_$ac_func || defined __stub___$ac_func
14783 choke me
14784 #endif
14785
14786 int
14787 main ()
14788 {
14789 return $ac_func ();
14790   ;
14791   return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext conftest$ac_exeext
14795 if { (ac_try="$ac_link"
14796 case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_link") 2>conftest.er1
14802   ac_status=$?
14803   grep -v '^ *+' conftest.er1 >conftest.err
14804   rm -f conftest.er1
14805   cat conftest.err >&5
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } && {
14808          test -z "$ac_c_werror_flag" ||
14809          test ! -s conftest.err
14810        } && test -s conftest$ac_exeext &&
14811        $as_test_x conftest$ac_exeext; then
14812   eval "$as_ac_var=yes"
14813 else
14814   echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817         eval "$as_ac_var=no"
14818 fi
14819
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821       conftest$ac_exeext conftest.$ac_ext
14822 fi
14823 ac_res=`eval echo '${'$as_ac_var'}'`
14824                { echo "$as_me:$LINENO: result: $ac_res" >&5
14825 echo "${ECHO_T}$ac_res" >&6; }
14826 if test `eval echo '${'$as_ac_var'}'` = yes; then
14827   cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14829 _ACEOF
14830
14831 else
14832   case " $LIBOBJS " in
14833   *" $ac_func.$ac_objext "* ) ;;
14834   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14835  ;;
14836 esac
14837
14838 fi
14839 done
14840
14841
14842
14843 { echo "$as_me:$LINENO: checking Default FD_SETSIZE value" >&5
14844 echo $ECHO_N "checking Default FD_SETSIZE value... $ECHO_C" >&6; }
14845 if test "$cross_compiling" = yes; then
14846   DEFAULT_FD_SETSIZE=256
14847 else
14848   cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h.  */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h.  */
14854
14855 #if HAVE_STDIO_H
14856 #include <stdio.h>
14857 #endif
14858 #if HAVE_UNISTD_H
14859 #include <unistd.h>
14860 #endif
14861 #if HAVE_SYS_TIME_H
14862 #include <sys/time.h>
14863 #endif
14864 #if HAVE_SYS_SELECT_H
14865 #include <sys/select.h>
14866 #endif
14867 #if HAVE_SYS_TYPES_H
14868 #include <sys/types.h>
14869 #endif
14870 main() {
14871         FILE *fp = fopen("conftestval", "w");
14872         fprintf (fp, "%d\n", FD_SETSIZE);
14873         exit(0);
14874 }
14875
14876 _ACEOF
14877 rm -f conftest$ac_exeext
14878 if { (ac_try="$ac_link"
14879 case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_link") 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14888   { (case "(($ac_try" in
14889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890   *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893   (eval "$ac_try") 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; }; then
14897   DEFAULT_FD_SETSIZE=`cat conftestval`
14898 else
14899   echo "$as_me: program exited with status $ac_status" >&5
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 ( exit $ac_status )
14904 DEFAULT_FD_SETSIZE=256
14905 fi
14906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14907 fi
14908
14909
14910 { echo "$as_me:$LINENO: result: $DEFAULT_FD_SETSIZE" >&5
14911 echo "${ECHO_T}$DEFAULT_FD_SETSIZE" >&6; }
14912 cat >>confdefs.h <<_ACEOF
14913 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
14914 _ACEOF
14915
14916
14917
14918 # Check whether --with-maxfd was given.
14919 if test "${with_maxfd+set}" = set; then
14920   withval=$with_maxfd;  case $withval in
14921   [0-9]*)
14922     SQUID_MAXFD=$withval
14923     echo "Maximum filedescriptors set to $SQUID_MAXFD"
14924     ;;
14925   *)
14926     echo "ERROR: Invalid --with-maxfd argument"
14927     exit 1
14928     ;;
14929   esac
14930
14931 fi
14932
14933 if test -z "$SQUID_MAXFD"; then
14934
14935 { echo "$as_me:$LINENO: checking Maximum number of filedescriptors we can open" >&5
14936 echo $ECHO_N "checking Maximum number of filedescriptors we can open... $ECHO_C" >&6; }
14937 TLDFLAGS="$LDFLAGS"
14938 case $host in
14939 i386-unknown-freebsd*)
14940     if echo "$LDFLAGS" | grep -q pthread; then
14941         LDFLAGS=`echo $LDFLAGS | sed -e "s/-pthread//"`
14942     fi
14943 esac
14944 if test "$cross_compiling" = yes; then
14945   SQUID_MAXFD=256
14946 else
14947   cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h.  */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h.  */
14953
14954 #include <stdio.h>
14955 #include <unistd.h>
14956 #include <sys/time.h>   /* needed on FreeBSD */
14957 #include <sys/param.h>
14958 #include <sys/resource.h>
14959 main() {
14960         FILE *fp;
14961         int i,j;
14962 #if defined(__CYGWIN32__) || defined (__CYGWIN__)
14963     /* getrlimit and sysconf returns bogous values on cygwin32.
14964      * Number of fds is virtually unlimited in cygwin (sys/param.h)
14965      * __CYGWIN32__ is deprecated.
14966      */
14967     i = NOFILE;
14968 #else
14969 #if HAVE_SETRLIMIT
14970     struct rlimit rl;
14971 #if defined(RLIMIT_NOFILE)
14972     if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
14973         perror("getrlimit: RLIMIT_NOFILE");
14974     } else {
14975         rl.rlim_cur = rl.rlim_max;      /* set it to the max */
14976         if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
14977             perror("setrlimit: RLIMIT_NOFILE");
14978         }
14979     }
14980 #elif defined(RLIMIT_OFILE)
14981     if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
14982         perror("getrlimit: RLIMIT_OFILE");
14983     } else {
14984         rl.rlim_cur = rl.rlim_max;      /* set it to the max */
14985         if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
14986             perror("setrlimit: RLIMIT_OFILE");
14987         }
14988     }
14989 #endif /* RLIMIT_NOFILE */
14990 #endif /* HAVE_SETRLIMIT */
14991         /* by starting at 2^14, we will never get higher
14992         than 2^15 for SQUID_MAXFD */
14993         i = j = 1<<14;
14994         while (j) {
14995                 j >>= 1;
14996                 if (dup2(0, i) < 0) {
14997                         i -= j;
14998                 } else {
14999                         close(i);
15000                         i += j;
15001                 }
15002         }
15003         i++;
15004 #endif /* IF !DEF CYGWIN */
15005         fp = fopen("conftestval", "w");
15006         fprintf (fp, "%d\n", i & ~0x3F);
15007         exit(0);
15008 }
15009
15010 _ACEOF
15011 rm -f conftest$ac_exeext
15012 if { (ac_try="$ac_link"
15013 case "(($ac_try" in
15014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015   *) ac_try_echo=$ac_try;;
15016 esac
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018   (eval "$ac_link") 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15022   { (case "(($ac_try" in
15023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024   *) ac_try_echo=$ac_try;;
15025 esac
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027   (eval "$ac_try") 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); }; }; then
15031   SQUID_MAXFD=`cat conftestval`
15032 else
15033   echo "$as_me: program exited with status $ac_status" >&5
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15036
15037 ( exit $ac_status )
15038 SQUID_MAXFD=256
15039 fi
15040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15041 fi
15042
15043
15044 { echo "$as_me:$LINENO: result: $SQUID_MAXFD" >&5
15045 echo "${ECHO_T}$SQUID_MAXFD" >&6; }
15046 fi # --with-maxfd SQUID_MAXFD
15047 cat >>confdefs.h <<_ACEOF
15048 #define SQUID_MAXFD $SQUID_MAXFD
15049 _ACEOF
15050
15051 if test "$SQUID_MAXFD" -lt 512 ; then
15052     echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
15053     echo "         cache will be very busy.  Please see the FAQ page"
15054     echo "         http://www.squid-cache.org/FAQ/FAQ-11.html#filedescriptors"
15055     echo "         on how to increase your filedescriptor limit"
15056     sleep 10
15057 fi
15058 LDFLAGS="$TLDFLAGS"
15059
15060 { echo "$as_me:$LINENO: checking Default UDP send buffer size" >&5
15061 echo $ECHO_N "checking Default UDP send buffer size... $ECHO_C" >&6; }
15062 if test "$cross_compiling" = yes; then
15063   SQUID_UDP_SO_SNDBUF=16384
15064 else
15065   cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h.  */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h.  */
15071
15072 #include <stdlib.h>
15073 #include <stdio.h>
15074 #include <sys/types.h>
15075 #include <sys/socket.h>
15076 #include <netinet/in.h>
15077 main ()
15078 {
15079         FILE *fp;
15080         int fd,val=0,len=sizeof(int);
15081         if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
15082         if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
15083         if (val<=0) exit(1);
15084         fp = fopen("conftestval", "w");
15085         fprintf (fp, "%d\n", val);
15086         exit(0);
15087 }
15088
15089 _ACEOF
15090 rm -f conftest$ac_exeext
15091 if { (ac_try="$ac_link"
15092 case "(($ac_try" in
15093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094   *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097   (eval "$ac_link") 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15101   { (case "(($ac_try" in
15102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103   *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106   (eval "$ac_try") 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; }; then
15110   SQUID_UDP_SO_SNDBUF=`cat conftestval`
15111 else
15112   echo "$as_me: program exited with status $ac_status" >&5
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15115
15116 ( exit $ac_status )
15117 SQUID_UDP_SO_SNDBUF=16384
15118 fi
15119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15120 fi
15121
15122
15123 { echo "$as_me:$LINENO: result: $SQUID_UDP_SO_SNDBUF" >&5
15124 echo "${ECHO_T}$SQUID_UDP_SO_SNDBUF" >&6; }
15125 cat >>confdefs.h <<_ACEOF
15126 #define SQUID_UDP_SO_SNDBUF $SQUID_UDP_SO_SNDBUF
15127 _ACEOF
15128
15129
15130 { echo "$as_me:$LINENO: checking Default UDP receive buffer size" >&5
15131 echo $ECHO_N "checking Default UDP receive buffer size... $ECHO_C" >&6; }
15132 if test "$cross_compiling" = yes; then
15133   SQUID_UDP_SO_RCVBUF=16384
15134 else
15135   cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h.  */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h.  */
15141
15142 #include <stdlib.h>
15143 #include <stdio.h>
15144 #include <sys/types.h>
15145 #include <sys/socket.h>
15146 #include <netinet/in.h>
15147 main ()
15148 {
15149         FILE *fp;
15150         int fd,val=0,len=sizeof(int);
15151         if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
15152         if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
15153         if (val <= 0) exit(1);
15154         fp = fopen("conftestval", "w");
15155         fprintf (fp, "%d\n", val);
15156         exit(0);
15157 }
15158
15159 _ACEOF
15160 rm -f conftest$ac_exeext
15161 if { (ac_try="$ac_link"
15162 case "(($ac_try" in
15163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164   *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167   (eval "$ac_link") 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15171   { (case "(($ac_try" in
15172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173   *) ac_try_echo=$ac_try;;
15174 esac
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176   (eval "$ac_try") 2>&5
15177   ac_status=$?
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); }; }; then
15180   SQUID_UDP_SO_RCVBUF=`cat conftestval`
15181 else
15182   echo "$as_me: program exited with status $ac_status" >&5
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 ( exit $ac_status )
15187 SQUID_UDP_SO_RCVBUF=16384
15188 fi
15189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15190 fi
15191
15192
15193 { echo "$as_me:$LINENO: result: $SQUID_UDP_SO_RCVBUF" >&5
15194 echo "${ECHO_T}$SQUID_UDP_SO_RCVBUF" >&6; }
15195 cat >>confdefs.h <<_ACEOF
15196 #define SQUID_UDP_SO_RCVBUF $SQUID_UDP_SO_RCVBUF
15197 _ACEOF
15198
15199
15200 { echo "$as_me:$LINENO: checking Default TCP send buffer size" >&5
15201 echo $ECHO_N "checking Default TCP send buffer size... $ECHO_C" >&6; }
15202 if test "$cross_compiling" = yes; then
15203   SQUID_TCP_SO_SNDBUF=16384
15204 else
15205   cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h.  */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h.  */
15211
15212 #include <stdlib.h>
15213 #include <stdio.h>
15214 #include <sys/types.h>
15215 #include <sys/socket.h>
15216 #include <netinet/in.h>
15217 main ()
15218 {
15219         FILE *fp;
15220         int fd,val=0,len=sizeof(int);
15221         if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
15222         if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
15223         if (val <= 0) exit(1);
15224         fp = fopen("conftestval", "w");
15225         fprintf (fp, "%d\n", val);
15226         exit(0);
15227 }
15228
15229 _ACEOF
15230 rm -f conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_link") 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15241   { (case "(($ac_try" in
15242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243   *) ac_try_echo=$ac_try;;
15244 esac
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246   (eval "$ac_try") 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; }; then
15250   SQUID_TCP_SO_SNDBUF=`cat conftestval`
15251 else
15252   echo "$as_me: program exited with status $ac_status" >&5
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256 ( exit $ac_status )
15257 SQUID_TCP_SO_SNDBUF=16384
15258 fi
15259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15260 fi
15261
15262
15263 { echo "$as_me:$LINENO: result: $SQUID_TCP_SO_SNDBUF" >&5
15264 echo "${ECHO_T}$SQUID_TCP_SO_SNDBUF" >&6; }
15265 if test $SQUID_TCP_SO_SNDBUF -gt 32768; then
15266     echo "Limiting send buffer size to 32K"
15267     SQUID_TCP_SO_SNDBUF=32768
15268 fi
15269 cat >>confdefs.h <<_ACEOF
15270 #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
15271 _ACEOF
15272
15273
15274 { echo "$as_me:$LINENO: checking Default TCP receive buffer size" >&5
15275 echo $ECHO_N "checking Default TCP receive buffer size... $ECHO_C" >&6; }
15276 if test "$cross_compiling" = yes; then
15277   SQUID_TCP_SO_RCVBUF=16384
15278 else
15279   cat >conftest.$ac_ext <<_ACEOF
15280 /* confdefs.h.  */
15281 _ACEOF
15282 cat confdefs.h >>conftest.$ac_ext
15283 cat >>conftest.$ac_ext <<_ACEOF
15284 /* end confdefs.h.  */
15285
15286 #include <stdlib.h>
15287 #include <stdio.h>
15288 #include <sys/types.h>
15289 #include <sys/socket.h>
15290 #include <netinet/in.h>
15291 main ()
15292 {
15293         FILE *fp;
15294         int fd,val=0,len=sizeof(int);
15295         if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
15296         if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
15297         if (val <= 0) exit(1);
15298         fp = fopen("conftestval", "w");
15299         fprintf (fp, "%d\n", val);
15300         exit(0);
15301 }
15302
15303 _ACEOF
15304 rm -f conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_link") 2>&5
15312   ac_status=$?
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15315   { (case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_try") 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; }; then
15324   SQUID_TCP_SO_RCVBUF=`cat conftestval`
15325 else
15326   echo "$as_me: program exited with status $ac_status" >&5
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330 ( exit $ac_status )
15331 SQUID_TCP_SO_RCVBUF=16384
15332 fi
15333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15334 fi
15335
15336
15337 { echo "$as_me:$LINENO: result: $SQUID_TCP_SO_RCVBUF" >&5
15338 echo "${ECHO_T}$SQUID_TCP_SO_RCVBUF" >&6; }
15339 if test $SQUID_TCP_SO_RCVBUF -gt 65535; then
15340     echo "Limiting receive buffer size to 64K"
15341     SQUID_TCP_SO_RCVBUF=65535
15342 fi
15343 cat >>confdefs.h <<_ACEOF
15344 #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
15345 _ACEOF
15346
15347 { echo "$as_me:$LINENO: checking if sys_errlist is already defined" >&5
15348 echo $ECHO_N "checking if sys_errlist is already defined... $ECHO_C" >&6; }
15349 if test "${ac_cv_needs_sys_errlist+set}" = set; then
15350   echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352   cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h.  */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h.  */
15358 #include <stdio.h>
15359 int
15360 main ()
15361 {
15362 char *s = sys_errlist;
15363   ;
15364   return 0;
15365 }
15366 _ACEOF
15367 rm -f conftest.$ac_objext
15368 if { (ac_try="$ac_compile"
15369 case "(($ac_try" in
15370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371   *) ac_try_echo=$ac_try;;
15372 esac
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374   (eval "$ac_compile") 2>conftest.er1
15375   ac_status=$?
15376   grep -v '^ *+' conftest.er1 >conftest.err
15377   rm -f conftest.er1
15378   cat conftest.err >&5
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); } && {
15381          test -z "$ac_c_werror_flag" ||
15382          test ! -s conftest.err
15383        } && test -s conftest.$ac_objext; then
15384   ac_cv_needs_sys_errlist="no"
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389         ac_cv_needs_sys_errlist="yes"
15390 fi
15391
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393
15394 fi
15395 { echo "$as_me:$LINENO: result: $ac_cv_needs_sys_errlist" >&5
15396 echo "${ECHO_T}$ac_cv_needs_sys_errlist" >&6; }
15397 if test "$ac_cv_needs_sys_errlist" = "yes" ; then
15398   cat >>confdefs.h <<\_ACEOF
15399 #define NEED_SYS_ERRLIST 1
15400 _ACEOF
15401
15402 fi
15403
15404 { echo "$as_me:$LINENO: checking for libresolv _dns_ttl_ hack" >&5
15405 echo $ECHO_N "checking for libresolv _dns_ttl_ hack... $ECHO_C" >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 extern int _dns_ttl_;
15413 int
15414 main ()
15415 {
15416 return _dns_ttl_;
15417   ;
15418   return 0;
15419 }
15420 _ACEOF
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (ac_try="$ac_link"
15423 case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_link") 2>conftest.er1
15429   ac_status=$?
15430   grep -v '^ *+' conftest.er1 >conftest.err
15431   rm -f conftest.er1
15432   cat conftest.err >&5
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } && {
15435          test -z "$ac_c_werror_flag" ||
15436          test ! -s conftest.err
15437        } && test -s conftest$ac_exeext &&
15438        $as_test_x conftest$ac_exeext; then
15439   { echo "$as_me:$LINENO: result: yes" >&5
15440 echo "${ECHO_T}yes" >&6; }
15441 cat >>confdefs.h <<\_ACEOF
15442 #define LIBRESOLV_DNS_TTL_HACK 1
15443 _ACEOF
15444
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449         { echo "$as_me:$LINENO: result: no" >&5
15450 echo "${ECHO_T}no" >&6; }
15451 fi
15452
15453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15454       conftest$ac_exeext conftest.$ac_ext
15455
15456
15457 if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then
15458 { echo "$as_me:$LINENO: checking for working statvfs() interface" >&5
15459 echo $ECHO_N "checking for working statvfs() interface... $ECHO_C" >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h.  */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h.  */
15466
15467 #include <stdlib.h>
15468 #include <stdio.h>
15469 #include <sys/types.h>
15470 #include <sys/statvfs.h>
15471
15472 int
15473 main ()
15474 {
15475
15476 struct statvfs sfs;
15477 sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
15478 sfs.f_files = sfs.f_ffree = 0;
15479 statvfs("/tmp", &sfs);
15480
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext
15486 if { (ac_try="$ac_compile"
15487 case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_compile") 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } && {
15499          test -z "$ac_c_werror_flag" ||
15500          test ! -s conftest.err
15501        } && test -s conftest.$ac_objext; then
15502   ac_cv_func_statvfs=yes
15503 else
15504   echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15506
15507         ac_cv_func_statvfs=no
15508 fi
15509
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 { echo "$as_me:$LINENO: result: $ac_cv_func_statvfs" >&5
15512 echo "${ECHO_T}$ac_cv_func_statvfs" >&6; }
15513 if test "$ac_cv_func_statvfs" = "yes" ; then
15514   cat >>confdefs.h <<\_ACEOF
15515 #define HAVE_STATVFS 1
15516 _ACEOF
15517
15518 fi
15519 fi
15520
15521 { echo "$as_me:$LINENO: checking for _res.nsaddr_list" >&5
15522 echo $ECHO_N "checking for _res.nsaddr_list... $ECHO_C" >&6; }
15523 if test "${ac_cv_have_res_nsaddr_list+set}" = set; then
15524   echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526   cat >conftest.$ac_ext <<_ACEOF
15527 /* confdefs.h.  */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h.  */
15532
15533 #if HAVE_SYS_TYPES_H
15534 #include <sys/types.h>
15535 #endif
15536 #if HAVE_NETINET_IN_H
15537 #include <netinet/in.h>
15538 #endif
15539 #if HAVE_ARPA_INET_H
15540 #include <arpa/inet.h>
15541 #endif
15542 #if HAVE_ARPA_NAMESER_H
15543 #include <arpa/nameser.h>
15544 #endif
15545 #if HAVE_RESOLV_H
15546 #include <resolv.h>
15547 #endif
15548
15549 int
15550 main ()
15551 {
15552 _res.nsaddr_list[0];
15553   ;
15554   return 0;
15555 }
15556 _ACEOF
15557 rm -f conftest.$ac_objext
15558 if { (ac_try="$ac_compile"
15559 case "(($ac_try" in
15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561   *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564   (eval "$ac_compile") 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } && {
15571          test -z "$ac_c_werror_flag" ||
15572          test ! -s conftest.err
15573        } && test -s conftest.$ac_objext; then
15574   ac_cv_have_res_nsaddr_list="yes"
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579         ac_cv_have_res_nsaddr_list="no"
15580 fi
15581
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 fi
15584 { echo "$as_me:$LINENO: result: $ac_cv_have_res_nsaddr_list" >&5
15585 echo "${ECHO_T}$ac_cv_have_res_nsaddr_list" >&6; }
15586 if test $ac_cv_have_res_nsaddr_list = "yes" ; then
15587   cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_RES_NSADDR_LIST 1
15589 _ACEOF
15590
15591 fi
15592
15593 if test $ac_cv_have_res_nsaddr_list = "no" ; then
15594 { echo "$as_me:$LINENO: checking for _res.ns_list" >&5
15595 echo $ECHO_N "checking for _res.ns_list... $ECHO_C" >&6; }
15596 if test "${ac_cv_have_res_ns_list+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605
15606 #if HAVE_SYS_TYPES_H
15607 #include <sys/types.h>
15608 #endif
15609 #if HAVE_NETINET_IN_H
15610 #include <netinet/in.h>
15611 #endif
15612 #if HAVE_ARPA_INET_H
15613 #include <arpa/inet.h>
15614 #endif
15615 #if HAVE_ARPA_NAMESER_H
15616 #include <arpa/nameser.h>
15617 #endif
15618 #if HAVE_RESOLV_H
15619 #include <resolv.h>
15620 #endif
15621
15622 int
15623 main ()
15624 {
15625 _res.ns_list[0].addr;
15626   ;
15627   return 0;
15628 }
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (ac_try="$ac_compile"
15632 case "(($ac_try" in
15633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634   *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637   (eval "$ac_compile") 2>conftest.er1
15638   ac_status=$?
15639   grep -v '^ *+' conftest.er1 >conftest.err
15640   rm -f conftest.er1
15641   cat conftest.err >&5
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } && {
15644          test -z "$ac_c_werror_flag" ||
15645          test ! -s conftest.err
15646        } && test -s conftest.$ac_objext; then
15647   ac_cv_have_res_ns_list="yes"
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652         ac_cv_have_res_ns_list="no"
15653 fi
15654
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 fi
15657 { echo "$as_me:$LINENO: result: $ac_cv_have_res_ns_list" >&5
15658 echo "${ECHO_T}$ac_cv_have_res_ns_list" >&6; }
15659 if test $ac_cv_have_res_ns_list = "yes" ; then
15660   cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_RES_NS_LIST 1
15662 _ACEOF
15663
15664 fi
15665 fi
15666
15667 XTRA_OBJS=''
15668 if test "$ac_cv_lib_malloc_main" = "yes" ; then
15669         if test -r /usr/lib/debug/malloc.o ; then
15670                 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/malloc.o"
15671         fi
15672         if test -r /usr/lib/debug/mallocmap.o ; then
15673                 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
15674         fi
15675 fi
15676
15677
15678
15679 if test -z "$XTRA_LIBS"; then
15680         XTRA_LIBS="$LIBS"
15681                 XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/  */ /g"`
15682         LIBS=''
15683 fi
15684
15685
15686 rm -f core
15687
15688
15689
15690
15691 ac_config_files="$ac_config_files Makefile lib/Makefile scripts/Makefile scripts/RunCache scripts/RunAccel src/Makefile src/fs/Makefile src/repl/Makefile src/auth/Makefile src/auth/basic/Makefile src/auth/digest/Makefile src/auth/ntlm/Makefile contrib/Makefile snmplib/Makefile icons/Makefile errors/Makefile src/fs/aufs/Makefile src/fs/coss/Makefile src/fs/diskd/Makefile src/fs/null/Makefile src/fs/ufs/Makefile src/repl/heap/Makefile src/repl/lru/Makefile doc/Makefile helpers/Makefile helpers/basic_auth/Makefile helpers/basic_auth/LDAP/Makefile helpers/basic_auth/MSNT/Makefile helpers/basic_auth/NCSA/Makefile helpers/basic_auth/PAM/Makefile helpers/basic_auth/SMB/Makefile helpers/basic_auth/YP/Makefile helpers/basic_auth/getpwnam/Makefile helpers/basic_auth/multi-domain-NTLM/Makefile helpers/basic_auth/SASL/Makefile helpers/basic_auth/winbind/Makefile helpers/digest_auth/Makefile helpers/digest_auth/password/Makefile helpers/ntlm_auth/Makefile helpers/ntlm_auth/fakeauth/Makefile helpers/ntlm_auth/no_check/Makefile helpers/ntlm_auth/SMB/Makefile helpers/ntlm_auth/SMB/smbval/Makefile helpers/ntlm_auth/winbind/Makefile helpers/external_acl/Makefile helpers/external_acl/ip_user/Makefile helpers/external_acl/ldap_group/Makefile helpers/external_acl/unix_group/Makefile helpers/external_acl/wbinfo_group/Makefile helpers/external_acl/winbind_group/Makefile"
15692
15693 cat >confcache <<\_ACEOF
15694 # This file is a shell script that caches the results of configure
15695 # tests run on this system so they can be shared between configure
15696 # scripts and configure runs, see configure's option --config-cache.
15697 # It is not useful on other systems.  If it contains results you don't
15698 # want to keep, you may remove or edit it.
15699 #
15700 # config.status only pays attention to the cache file if you give it
15701 # the --recheck option to rerun configure.
15702 #
15703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15705 # following values.
15706
15707 _ACEOF
15708
15709 # The following way of writing the cache mishandles newlines in values,
15710 # but we know of no workaround that is simple, portable, and efficient.
15711 # So, we kill variables containing newlines.
15712 # Ultrix sh set writes to stderr and can't be redirected directly,
15713 # and sets the high bit in the cache file unless we assign to the vars.
15714 (
15715   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15716     eval ac_val=\$$ac_var
15717     case $ac_val in #(
15718     *${as_nl}*)
15719       case $ac_var in #(
15720       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15722       esac
15723       case $ac_var in #(
15724       _ | IFS | as_nl) ;; #(
15725       *) $as_unset $ac_var ;;
15726       esac ;;
15727     esac
15728   done
15729
15730   (set) 2>&1 |
15731     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15732     *${as_nl}ac_space=\ *)
15733       # `set' does not quote correctly, so add quotes (double-quote
15734       # substitution turns \\\\ into \\, and sed turns \\ into \).
15735       sed -n \
15736         "s/'/'\\\\''/g;
15737           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15738       ;; #(
15739     *)
15740       # `set' quotes correctly as required by POSIX, so do not add quotes.
15741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15742       ;;
15743     esac |
15744     sort
15745 ) |
15746   sed '
15747      /^ac_cv_env_/b end
15748      t clear
15749      :clear
15750      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15751      t end
15752      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15753      :end' >>confcache
15754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15755   if test -w "$cache_file"; then
15756     test "x$cache_file" != "x/dev/null" &&
15757       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15758 echo "$as_me: updating cache $cache_file" >&6;}
15759     cat confcache >$cache_file
15760   else
15761     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15762 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15763   fi
15764 fi
15765 rm -f confcache
15766
15767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15768 # Let make expand exec_prefix.
15769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15770
15771 DEFS=-DHAVE_CONFIG_H
15772
15773 ac_libobjs=
15774 ac_ltlibobjs=
15775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15776   # 1. Remove the extension, and $U if already installed.
15777   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15778   ac_i=`echo "$ac_i" | sed "$ac_script"`
15779   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15780   #    will be set to the directory where LIBOBJS objects are built.
15781   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15782   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15783 done
15784 LIBOBJS=$ac_libobjs
15785
15786 LTLIBOBJS=$ac_ltlibobjs
15787
15788
15789 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15790   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15791 Usually this means the macro was only invoked conditionally." >&5
15792 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15793 Usually this means the macro was only invoked conditionally." >&2;}
15794    { (exit 1); exit 1; }; }
15795 fi
15796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15797   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15798 Usually this means the macro was only invoked conditionally." >&5
15799 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15800 Usually this means the macro was only invoked conditionally." >&2;}
15801    { (exit 1); exit 1; }; }
15802 fi
15803 if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then
15804   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
15805 Usually this means the macro was only invoked conditionally." >&5
15806 echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
15807 Usually this means the macro was only invoked conditionally." >&2;}
15808    { (exit 1); exit 1; }; }
15809 fi
15810 if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then
15811   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
15812 Usually this means the macro was only invoked conditionally." >&5
15813 echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
15814 Usually this means the macro was only invoked conditionally." >&2;}
15815    { (exit 1); exit 1; }; }
15816 fi
15817 if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then
15818   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined.
15819 Usually this means the macro was only invoked conditionally." >&5
15820 echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined.
15821 Usually this means the macro was only invoked conditionally." >&2;}
15822    { (exit 1); exit 1; }; }
15823 fi
15824 if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then
15825   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined.
15826 Usually this means the macro was only invoked conditionally." >&5
15827 echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined.
15828 Usually this means the macro was only invoked conditionally." >&2;}
15829    { (exit 1); exit 1; }; }
15830 fi
15831 if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then
15832   { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined.
15833 Usually this means the macro was only invoked conditionally." >&5
15834 echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined.
15835 Usually this means the macro was only invoked conditionally." >&2;}
15836    { (exit 1); exit 1; }; }
15837 fi
15838 if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then
15839   { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined.
15840 Usually this means the macro was only invoked conditionally." >&5
15841 echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined.
15842 Usually this means the macro was only invoked conditionally." >&2;}
15843    { (exit 1); exit 1; }; }
15844 fi
15845 if test -z "${USE_ICAP_TRUE}" && test -z "${USE_ICAP_FALSE}"; then
15846   { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP\" was never defined.
15847 Usually this means the macro was only invoked conditionally." >&5
15848 echo "$as_me: error: conditional \"USE_ICAP\" was never defined.
15849 Usually this means the macro was only invoked conditionally." >&2;}
15850    { (exit 1); exit 1; }; }
15851 fi
15852 if test -z "${USE_ICAP_TRUE}" && test -z "${USE_ICAP_FALSE}"; then
15853   { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP\" was never defined.
15854 Usually this means the macro was only invoked conditionally." >&5
15855 echo "$as_me: error: conditional \"USE_ICAP\" was never defined.
15856 Usually this means the macro was only invoked conditionally." >&2;}
15857    { (exit 1); exit 1; }; }
15858 fi
15859 if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then
15860   { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined.
15861 Usually this means the macro was only invoked conditionally." >&5
15862 echo "$as_me: error: conditional \"USE_SNMP\" was never defined.
15863 Usually this means the macro was only invoked conditionally." >&2;}
15864    { (exit 1); exit 1; }; }
15865 fi
15866 if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then
15867   { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined.
15868 Usually this means the macro was only invoked conditionally." >&5
15869 echo "$as_me: error: conditional \"USE_SNMP\" was never defined.
15870 Usually this means the macro was only invoked conditionally." >&2;}
15871    { (exit 1); exit 1; }; }
15872 fi
15873 if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then
15874   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined.
15875 Usually this means the macro was only invoked conditionally." >&5
15876 echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined.
15877 Usually this means the macro was only invoked conditionally." >&2;}
15878    { (exit 1); exit 1; }; }
15879 fi
15880 if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then
15881   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined.
15882 Usually this means the macro was only invoked conditionally." >&5
15883 echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined.
15884 Usually this means the macro was only invoked conditionally." >&2;}
15885    { (exit 1); exit 1; }; }
15886 fi
15887 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15888   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
15889 Usually this means the macro was only invoked conditionally." >&5
15890 echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
15891 Usually this means the macro was only invoked conditionally." >&2;}
15892    { (exit 1); exit 1; }; }
15893 fi
15894 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15895   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
15896 Usually this means the macro was only invoked conditionally." >&5
15897 echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
15898 Usually this means the macro was only invoked conditionally." >&2;}
15899    { (exit 1); exit 1; }; }
15900 fi
15901 if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then
15902   { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined.
15903 Usually this means the macro was only invoked conditionally." >&5
15904 echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined.
15905 Usually this means the macro was only invoked conditionally." >&2;}
15906    { (exit 1); exit 1; }; }
15907 fi
15908 if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then
15909   { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined.
15910 Usually this means the macro was only invoked conditionally." >&5
15911 echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined.
15912 Usually this means the macro was only invoked conditionally." >&2;}
15913    { (exit 1); exit 1; }; }
15914 fi
15915 if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then
15916   { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined.
15917 Usually this means the macro was only invoked conditionally." >&5
15918 echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined.
15919 Usually this means the macro was only invoked conditionally." >&2;}
15920    { (exit 1); exit 1; }; }
15921 fi
15922 if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then
15923   { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined.
15924 Usually this means the macro was only invoked conditionally." >&5
15925 echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined.
15926 Usually this means the macro was only invoked conditionally." >&2;}
15927    { (exit 1); exit 1; }; }
15928 fi
15929 if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then
15930   { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined.
15931 Usually this means the macro was only invoked conditionally." >&5
15932 echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined.
15933 Usually this means the macro was only invoked conditionally." >&2;}
15934    { (exit 1); exit 1; }; }
15935 fi
15936 if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then
15937   { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined.
15938 Usually this means the macro was only invoked conditionally." >&5
15939 echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined.
15940 Usually this means the macro was only invoked conditionally." >&2;}
15941    { (exit 1); exit 1; }; }
15942 fi
15943 if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then
15944   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined.
15945 Usually this means the macro was only invoked conditionally." >&5
15946 echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined.
15947 Usually this means the macro was only invoked conditionally." >&2;}
15948    { (exit 1); exit 1; }; }
15949 fi
15950 if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then
15951   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined.
15952 Usually this means the macro was only invoked conditionally." >&5
15953 echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined.
15954 Usually this means the macro was only invoked conditionally." >&2;}
15955    { (exit 1); exit 1; }; }
15956 fi
15957 if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then
15958   { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
15959 Usually this means the macro was only invoked conditionally." >&5
15960 echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
15961 Usually this means the macro was only invoked conditionally." >&2;}
15962    { (exit 1); exit 1; }; }
15963 fi
15964 if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then
15965   { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
15966 Usually this means the macro was only invoked conditionally." >&5
15967 echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
15968 Usually this means the macro was only invoked conditionally." >&2;}
15969    { (exit 1); exit 1; }; }
15970 fi
15971 if test -z "${NEED_OWN_STRNSTR_TRUE}" && test -z "${NEED_OWN_STRNSTR_FALSE}"; then
15972   { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRNSTR\" was never defined.
15973 Usually this means the macro was only invoked conditionally." >&5
15974 echo "$as_me: error: conditional \"NEED_OWN_STRNSTR\" was never defined.
15975 Usually this means the macro was only invoked conditionally." >&2;}
15976    { (exit 1); exit 1; }; }
15977 fi
15978 if test -z "${NEED_OWN_STRNSTR_TRUE}" && test -z "${NEED_OWN_STRNSTR_FALSE}"; then
15979   { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRNSTR\" was never defined.
15980 Usually this means the macro was only invoked conditionally." >&5
15981 echo "$as_me: error: conditional \"NEED_OWN_STRNSTR\" was never defined.
15982 Usually this means the macro was only invoked conditionally." >&2;}
15983    { (exit 1); exit 1; }; }
15984 fi
15985 if test -z "${NEED_OWN_STRCASESTR_TRUE}" && test -z "${NEED_OWN_STRCASESTR_FALSE}"; then
15986   { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRCASESTR\" was never defined.
15987 Usually this means the macro was only invoked conditionally." >&5
15988 echo "$as_me: error: conditional \"NEED_OWN_STRCASESTR\" was never defined.
15989 Usually this means the macro was only invoked conditionally." >&2;}
15990    { (exit 1); exit 1; }; }
15991 fi
15992 if test -z "${NEED_OWN_STRCASESTR_TRUE}" && test -z "${NEED_OWN_STRCASESTR_FALSE}"; then
15993   { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRCASESTR\" was never defined.
15994 Usually this means the macro was only invoked conditionally." >&5
15995 echo "$as_me: error: conditional \"NEED_OWN_STRCASESTR\" was never defined.
15996 Usually this means the macro was only invoked conditionally." >&2;}
15997    { (exit 1); exit 1; }; }
15998 fi
15999
16000 : ${CONFIG_STATUS=./config.status}
16001 ac_clean_files_save=$ac_clean_files
16002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16003 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16004 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16005 cat >$CONFIG_STATUS <<_ACEOF
16006 #! $SHELL
16007 # Generated by $as_me.
16008 # Run this file to recreate the current configuration.
16009 # Compiler output produced by configure, useful for debugging
16010 # configure, is in config.log if it exists.
16011
16012 debug=false
16013 ac_cs_recheck=false
16014 ac_cs_silent=false
16015 SHELL=\${CONFIG_SHELL-$SHELL}
16016 _ACEOF
16017
16018 cat >>$CONFIG_STATUS <<\_ACEOF
16019 ## --------------------- ##
16020 ## M4sh Initialization.  ##
16021 ## --------------------- ##
16022
16023 # Be more Bourne compatible
16024 DUALCASE=1; export DUALCASE # for MKS sh
16025 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16026   emulate sh
16027   NULLCMD=:
16028   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16029   # is contrary to our usage.  Disable this feature.
16030   alias -g '${1+"$@"}'='"$@"'
16031   setopt NO_GLOB_SUBST
16032 else
16033   case `(set -o) 2>/dev/null` in
16034   *posix*) set -o posix ;;
16035 esac
16036
16037 fi
16038
16039
16040
16041
16042 # PATH needs CR
16043 # Avoid depending upon Character Ranges.
16044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16047 as_cr_digits='0123456789'
16048 as_cr_alnum=$as_cr_Letters$as_cr_digits
16049
16050 # The user is always right.
16051 if test "${PATH_SEPARATOR+set}" != set; then
16052   echo "#! /bin/sh" >conf$$.sh
16053   echo  "exit 0"   >>conf$$.sh
16054   chmod +x conf$$.sh
16055   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16056     PATH_SEPARATOR=';'
16057   else
16058     PATH_SEPARATOR=:
16059   fi
16060   rm -f conf$$.sh
16061 fi
16062
16063 # Support unset when possible.
16064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16065   as_unset=unset
16066 else
16067   as_unset=false
16068 fi
16069
16070
16071 # IFS
16072 # We need space, tab and new line, in precisely that order.  Quoting is
16073 # there to prevent editors from complaining about space-tab.
16074 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16075 # splitting by setting IFS to empty value.)
16076 as_nl='
16077 '
16078 IFS=" ""        $as_nl"
16079
16080 # Find who we are.  Look in the path if we contain no directory separator.
16081 case $0 in
16082   *[\\/]* ) as_myself=$0 ;;
16083   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16084 for as_dir in $PATH
16085 do
16086   IFS=$as_save_IFS
16087   test -z "$as_dir" && as_dir=.
16088   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16089 done
16090 IFS=$as_save_IFS
16091
16092      ;;
16093 esac
16094 # We did not find ourselves, most probably we were run as `sh COMMAND'
16095 # in which case we are not to be found in the path.
16096 if test "x$as_myself" = x; then
16097   as_myself=$0
16098 fi
16099 if test ! -f "$as_myself"; then
16100   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16101   { (exit 1); exit 1; }
16102 fi
16103
16104 # Work around bugs in pre-3.0 UWIN ksh.
16105 for as_var in ENV MAIL MAILPATH
16106 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16107 done
16108 PS1='$ '
16109 PS2='> '
16110 PS4='+ '
16111
16112 # NLS nuisances.
16113 for as_var in \
16114   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16115   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16116   LC_TELEPHONE LC_TIME
16117 do
16118   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16119     eval $as_var=C; export $as_var
16120   else
16121     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16122   fi
16123 done
16124
16125 # Required to use basename.
16126 if expr a : '\(a\)' >/dev/null 2>&1 &&
16127    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16128   as_expr=expr
16129 else
16130   as_expr=false
16131 fi
16132
16133 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16134   as_basename=basename
16135 else
16136   as_basename=false
16137 fi
16138
16139
16140 # Name of the executable.
16141 as_me=`$as_basename -- "$0" ||
16142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16143          X"$0" : 'X\(//\)$' \| \
16144          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16145 echo X/"$0" |
16146     sed '/^.*\/\([^/][^/]*\)\/*$/{
16147             s//\1/
16148             q
16149           }
16150           /^X\/\(\/\/\)$/{
16151             s//\1/
16152             q
16153           }
16154           /^X\/\(\/\).*/{
16155             s//\1/
16156             q
16157           }
16158           s/.*/./; q'`
16159
16160 # CDPATH.
16161 $as_unset CDPATH
16162
16163
16164
16165   as_lineno_1=$LINENO
16166   as_lineno_2=$LINENO
16167   test "x$as_lineno_1" != "x$as_lineno_2" &&
16168   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16169
16170   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16171   # uniformly replaced by the line number.  The first 'sed' inserts a
16172   # line-number line after each line using $LINENO; the second 'sed'
16173   # does the real work.  The second script uses 'N' to pair each
16174   # line-number line with the line containing $LINENO, and appends
16175   # trailing '-' during substitution so that $LINENO is not a special
16176   # case at line end.
16177   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16178   # scripts with optimization help from Paolo Bonzini.  Blame Lee
16179   # E. McMahon (1931-1989) for sed's syntax.  :-)
16180   sed -n '
16181     p
16182     /[$]LINENO/=
16183   ' <$as_myself |
16184     sed '
16185       s/[$]LINENO.*/&-/
16186       t lineno
16187       b
16188       :lineno
16189       N
16190       :loop
16191       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16192       t loop
16193       s/-\n.*//
16194     ' >$as_me.lineno &&
16195   chmod +x "$as_me.lineno" ||
16196     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16197    { (exit 1); exit 1; }; }
16198
16199   # Don't try to exec as it changes $[0], causing all sort of problems
16200   # (the dirname of $[0] is not the place where we might find the
16201   # original and so on.  Autoconf is especially sensitive to this).
16202   . "./$as_me.lineno"
16203   # Exit status is that of the last command.
16204   exit
16205 }
16206
16207
16208 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16209   as_dirname=dirname
16210 else
16211   as_dirname=false
16212 fi
16213
16214 ECHO_C= ECHO_N= ECHO_T=
16215 case `echo -n x` in
16216 -n*)
16217   case `echo 'x\c'` in
16218   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16219   *)   ECHO_C='\c';;
16220   esac;;
16221 *)
16222   ECHO_N='-n';;
16223 esac
16224
16225 if expr a : '\(a\)' >/dev/null 2>&1 &&
16226    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16227   as_expr=expr
16228 else
16229   as_expr=false
16230 fi
16231
16232 rm -f conf$$ conf$$.exe conf$$.file
16233 if test -d conf$$.dir; then
16234   rm -f conf$$.dir/conf$$.file
16235 else
16236   rm -f conf$$.dir
16237   mkdir conf$$.dir
16238 fi
16239 echo >conf$$.file
16240 if ln -s conf$$.file conf$$ 2>/dev/null; then
16241   as_ln_s='ln -s'
16242   # ... but there are two gotchas:
16243   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16244   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16245   # In both cases, we have to default to `cp -p'.
16246   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16247     as_ln_s='cp -p'
16248 elif ln conf$$.file conf$$ 2>/dev/null; then
16249   as_ln_s=ln
16250 else
16251   as_ln_s='cp -p'
16252 fi
16253 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16254 rmdir conf$$.dir 2>/dev/null
16255
16256 if mkdir -p . 2>/dev/null; then
16257   as_mkdir_p=:
16258 else
16259   test -d ./-p && rmdir ./-p
16260   as_mkdir_p=false
16261 fi
16262
16263 if test -x / >/dev/null 2>&1; then
16264   as_test_x='test -x'
16265 else
16266   if ls -dL / >/dev/null 2>&1; then
16267     as_ls_L_option=L
16268   else
16269     as_ls_L_option=
16270   fi
16271   as_test_x='
16272     eval sh -c '\''
16273       if test -d "$1"; then
16274         test -d "$1/.";
16275       else
16276         case $1 in
16277         -*)set "./$1";;
16278         esac;
16279         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16280         ???[sx]*):;;*)false;;esac;fi
16281     '\'' sh
16282   '
16283 fi
16284 as_executable_p=$as_test_x
16285
16286 # Sed expression to map a string onto a valid CPP name.
16287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16288
16289 # Sed expression to map a string onto a valid variable name.
16290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16291
16292
16293 exec 6>&1
16294
16295 # Save the log message, to keep $[0] and so on meaningful, and to
16296 # report actual input values of CONFIG_FILES etc. instead of their
16297 # values after options handling.
16298 ac_log="
16299 This file was extended by $as_me, which was
16300 generated by GNU Autoconf 2.61.  Invocation command line was
16301
16302   CONFIG_FILES    = $CONFIG_FILES
16303   CONFIG_HEADERS  = $CONFIG_HEADERS
16304   CONFIG_LINKS    = $CONFIG_LINKS
16305   CONFIG_COMMANDS = $CONFIG_COMMANDS
16306   $ $0 $@
16307
16308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16309 "
16310
16311 _ACEOF
16312
16313 cat >>$CONFIG_STATUS <<_ACEOF
16314 # Files that config.status was made for.
16315 config_files="$ac_config_files"
16316 config_headers="$ac_config_headers"
16317 config_commands="$ac_config_commands"
16318
16319 _ACEOF
16320
16321 cat >>$CONFIG_STATUS <<\_ACEOF
16322 ac_cs_usage="\
16323 \`$as_me' instantiates files from templates according to the
16324 current configuration.
16325
16326 Usage: $0 [OPTIONS] [FILE]...
16327
16328   -h, --help       print this help, then exit
16329   -V, --version    print version number and configuration settings, then exit
16330   -q, --quiet      do not print progress messages
16331   -d, --debug      don't remove temporary files
16332       --recheck    update $as_me by reconfiguring in the same conditions
16333   --file=FILE[:TEMPLATE]
16334                    instantiate the configuration file FILE
16335   --header=FILE[:TEMPLATE]
16336                    instantiate the configuration header FILE
16337
16338 Configuration files:
16339 $config_files
16340
16341 Configuration headers:
16342 $config_headers
16343
16344 Configuration commands:
16345 $config_commands
16346
16347 Report bugs to <bug-autoconf@gnu.org>."
16348
16349 _ACEOF
16350 cat >>$CONFIG_STATUS <<_ACEOF
16351 ac_cs_version="\\
16352 config.status
16353 configured by $0, generated by GNU Autoconf 2.61,
16354   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16355
16356 Copyright (C) 2006 Free Software Foundation, Inc.
16357 This config.status script is free software; the Free Software Foundation
16358 gives unlimited permission to copy, distribute and modify it."
16359
16360 ac_pwd='$ac_pwd'
16361 srcdir='$srcdir'
16362 INSTALL='$INSTALL'
16363 _ACEOF
16364
16365 cat >>$CONFIG_STATUS <<\_ACEOF
16366 # If no file are specified by the user, then we need to provide default
16367 # value.  By we need to know if files were specified by the user.
16368 ac_need_defaults=:
16369 while test $# != 0
16370 do
16371   case $1 in
16372   --*=*)
16373     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16374     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16375     ac_shift=:
16376     ;;
16377   *)
16378     ac_option=$1
16379     ac_optarg=$2
16380     ac_shift=shift
16381     ;;
16382   esac
16383
16384   case $ac_option in
16385   # Handling of the options.
16386   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16387     ac_cs_recheck=: ;;
16388   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16389     echo "$ac_cs_version"; exit ;;
16390   --debug | --debu | --deb | --de | --d | -d )
16391     debug=: ;;
16392   --file | --fil | --fi | --f )
16393     $ac_shift
16394     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16395     ac_need_defaults=false;;
16396   --header | --heade | --head | --hea )
16397     $ac_shift
16398     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16399     ac_need_defaults=false;;
16400   --he | --h)
16401     # Conflict between --help and --header
16402     { echo "$as_me: error: ambiguous option: $1
16403 Try \`$0 --help' for more information." >&2
16404    { (exit 1); exit 1; }; };;
16405   --help | --hel | -h )
16406     echo "$ac_cs_usage"; exit ;;
16407   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16408   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16409     ac_cs_silent=: ;;
16410
16411   # This is an error.
16412   -*) { echo "$as_me: error: unrecognized option: $1
16413 Try \`$0 --help' for more information." >&2
16414    { (exit 1); exit 1; }; } ;;
16415
16416   *) ac_config_targets="$ac_config_targets $1"
16417      ac_need_defaults=false ;;
16418
16419   esac
16420   shift
16421 done
16422
16423 ac_configure_extra_args=
16424
16425 if $ac_cs_silent; then
16426   exec 6>/dev/null
16427   ac_configure_extra_args="$ac_configure_extra_args --silent"
16428 fi
16429
16430 _ACEOF
16431 cat >>$CONFIG_STATUS <<_ACEOF
16432 if \$ac_cs_recheck; then
16433   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16434   CONFIG_SHELL=$SHELL
16435   export CONFIG_SHELL
16436   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16437 fi
16438
16439 _ACEOF
16440 cat >>$CONFIG_STATUS <<\_ACEOF
16441 exec 5>>config.log
16442 {
16443   echo
16444   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16445 ## Running $as_me. ##
16446 _ASBOX
16447   echo "$ac_log"
16448 } >&5
16449
16450 _ACEOF
16451 cat >>$CONFIG_STATUS <<_ACEOF
16452 #
16453 # INIT-COMMANDS
16454 #
16455 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16456
16457 _ACEOF
16458
16459 cat >>$CONFIG_STATUS <<\_ACEOF
16460
16461 # Handling of arguments.
16462 for ac_config_target in $ac_config_targets
16463 do
16464   case $ac_config_target in
16465     "include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
16466     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16467     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16468     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16469     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16470     "scripts/RunCache") CONFIG_FILES="$CONFIG_FILES scripts/RunCache" ;;
16471     "scripts/RunAccel") CONFIG_FILES="$CONFIG_FILES scripts/RunAccel" ;;
16472     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16473     "src/fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/Makefile" ;;
16474     "src/repl/Makefile") CONFIG_FILES="$CONFIG_FILES src/repl/Makefile" ;;
16475     "src/auth/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/Makefile" ;;
16476     "src/auth/basic/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/basic/Makefile" ;;
16477     "src/auth/digest/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/digest/Makefile" ;;
16478     "src/auth/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/ntlm/Makefile" ;;
16479     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16480     "snmplib/Makefile") CONFIG_FILES="$CONFIG_FILES snmplib/Makefile" ;;
16481     "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
16482     "errors/Makefile") CONFIG_FILES="$CONFIG_FILES errors/Makefile" ;;
16483     "src/fs/aufs/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/aufs/Makefile" ;;
16484     "src/fs/coss/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/coss/Makefile" ;;
16485     "src/fs/diskd/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/diskd/Makefile" ;;
16486     "src/fs/null/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/null/Makefile" ;;
16487     "src/fs/ufs/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/ufs/Makefile" ;;
16488     "src/repl/heap/Makefile") CONFIG_FILES="$CONFIG_FILES src/repl/heap/Makefile" ;;
16489     "src/repl/lru/Makefile") CONFIG_FILES="$CONFIG_FILES src/repl/lru/Makefile" ;;
16490     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16491     "helpers/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/Makefile" ;;
16492     "helpers/basic_auth/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/Makefile" ;;
16493     "helpers/basic_auth/LDAP/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/LDAP/Makefile" ;;
16494     "helpers/basic_auth/MSNT/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/MSNT/Makefile" ;;
16495     "helpers/basic_auth/NCSA/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/NCSA/Makefile" ;;
16496     "helpers/basic_auth/PAM/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/PAM/Makefile" ;;
16497     "helpers/basic_auth/SMB/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SMB/Makefile" ;;
16498     "helpers/basic_auth/YP/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/YP/Makefile" ;;
16499     "helpers/basic_auth/getpwnam/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/getpwnam/Makefile" ;;
16500     "helpers/basic_auth/multi-domain-NTLM/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/multi-domain-NTLM/Makefile" ;;
16501     "helpers/basic_auth/SASL/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SASL/Makefile" ;;
16502     "helpers/basic_auth/winbind/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/winbind/Makefile" ;;
16503     "helpers/digest_auth/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/Makefile" ;;
16504     "helpers/digest_auth/password/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/password/Makefile" ;;
16505     "helpers/ntlm_auth/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/Makefile" ;;
16506     "helpers/ntlm_auth/fakeauth/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/fakeauth/Makefile" ;;
16507     "helpers/ntlm_auth/no_check/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/no_check/Makefile" ;;
16508     "helpers/ntlm_auth/SMB/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/Makefile" ;;
16509     "helpers/ntlm_auth/SMB/smbval/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/smbval/Makefile" ;;
16510     "helpers/ntlm_auth/winbind/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/winbind/Makefile" ;;
16511     "helpers/external_acl/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/Makefile" ;;
16512     "helpers/external_acl/ip_user/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ip_user/Makefile" ;;
16513     "helpers/external_acl/ldap_group/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ldap_group/Makefile" ;;
16514     "helpers/external_acl/unix_group/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/unix_group/Makefile" ;;
16515     "helpers/external_acl/wbinfo_group/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/wbinfo_group/Makefile" ;;
16516     "helpers/external_acl/winbind_group/Makefile") CONFIG_FILES="$CONFIG_FILES helpers/external_acl/winbind_group/Makefile" ;;
16517
16518   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16519 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16520    { (exit 1); exit 1; }; };;
16521   esac
16522 done
16523
16524
16525 # If the user did not use the arguments to specify the items to instantiate,
16526 # then the envvar interface is used.  Set only those that are not.
16527 # We use the long form for the default assignment because of an extremely
16528 # bizarre bug on SunOS 4.1.3.
16529 if $ac_need_defaults; then
16530   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16531   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16532   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16533 fi
16534
16535 # Have a temporary directory for convenience.  Make it in the build tree
16536 # simply because there is no reason against having it here, and in addition,
16537 # creating and moving files from /tmp can sometimes cause problems.
16538 # Hook for its removal unless debugging.
16539 # Note that there is a small window in which the directory will not be cleaned:
16540 # after its creation but before its name has been assigned to `$tmp'.
16541 $debug ||
16542 {
16543   tmp=
16544   trap 'exit_status=$?
16545   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16546 ' 0
16547   trap '{ (exit 1); exit 1; }' 1 2 13 15
16548 }
16549 # Create a (secure) tmp directory for tmp files.
16550
16551 {
16552   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16553   test -n "$tmp" && test -d "$tmp"
16554 }  ||
16555 {
16556   tmp=./conf$$-$RANDOM
16557   (umask 077 && mkdir "$tmp")
16558 } ||
16559 {
16560    echo "$me: cannot create a temporary directory in ." >&2
16561    { (exit 1); exit 1; }
16562 }
16563
16564 #
16565 # Set up the sed scripts for CONFIG_FILES section.
16566 #
16567
16568 # No need to generate the scripts if there are no CONFIG_FILES.
16569 # This happens for instance when ./config.status config.h
16570 if test -n "$CONFIG_FILES"; then
16571
16572 _ACEOF
16573
16574
16575
16576 ac_delim='%!_!# '
16577 for ac_last_try in false false false false false :; do
16578   cat >conf$$subs.sed <<_ACEOF
16579 SHELL!$SHELL$ac_delim
16580 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16581 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16582 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16583 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16584 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16585 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16586 exec_prefix!$exec_prefix$ac_delim
16587 prefix!$prefix$ac_delim
16588 program_transform_name!$program_transform_name$ac_delim
16589 bindir!$bindir$ac_delim
16590 sbindir!$sbindir$ac_delim
16591 libexecdir!$libexecdir$ac_delim
16592 datarootdir!$datarootdir$ac_delim
16593 datadir!$datadir$ac_delim
16594 sysconfdir!$sysconfdir$ac_delim
16595 sharedstatedir!$sharedstatedir$ac_delim
16596 localstatedir!$localstatedir$ac_delim
16597 includedir!$includedir$ac_delim
16598 oldincludedir!$oldincludedir$ac_delim
16599 docdir!$docdir$ac_delim
16600 infodir!$infodir$ac_delim
16601 htmldir!$htmldir$ac_delim
16602 dvidir!$dvidir$ac_delim
16603 pdfdir!$pdfdir$ac_delim
16604 psdir!$psdir$ac_delim
16605 libdir!$libdir$ac_delim
16606 localedir!$localedir$ac_delim
16607 mandir!$mandir$ac_delim
16608 DEFS!$DEFS$ac_delim
16609 ECHO_C!$ECHO_C$ac_delim
16610 ECHO_N!$ECHO_N$ac_delim
16611 ECHO_T!$ECHO_T$ac_delim
16612 LIBS!$LIBS$ac_delim
16613 build_alias!$build_alias$ac_delim
16614 host_alias!$host_alias$ac_delim
16615 target_alias!$target_alias$ac_delim
16616 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16617 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16618 INSTALL_DATA!$INSTALL_DATA$ac_delim
16619 PACKAGE!$PACKAGE$ac_delim
16620 VERSION!$VERSION$ac_delim
16621 ACLOCAL!$ACLOCAL$ac_delim
16622 AUTOCONF!$AUTOCONF$ac_delim
16623 AUTOMAKE!$AUTOMAKE$ac_delim
16624 AUTOHEADER!$AUTOHEADER$ac_delim
16625 MAKEINFO!$MAKEINFO$ac_delim
16626 AMTAR!$AMTAR$ac_delim
16627 install_sh!$install_sh$ac_delim
16628 STRIP!$STRIP$ac_delim
16629 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16630 AWK!$AWK$ac_delim
16631 SET_MAKE!$SET_MAKE$ac_delim
16632 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16633 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16634 MAINT!$MAINT$ac_delim
16635 CC!$CC$ac_delim
16636 CFLAGS!$CFLAGS$ac_delim
16637 LDFLAGS!$LDFLAGS$ac_delim
16638 CPPFLAGS!$CPPFLAGS$ac_delim
16639 ac_ct_CC!$ac_ct_CC$ac_delim
16640 EXEEXT!$EXEEXT$ac_delim
16641 OBJEXT!$OBJEXT$ac_delim
16642 DEPDIR!$DEPDIR$ac_delim
16643 am__include!$am__include$ac_delim
16644 am__quote!$am__quote$ac_delim
16645 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16646 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16647 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16648 CCDEPMODE!$CCDEPMODE$ac_delim
16649 build!$build$ac_delim
16650 build_cpu!$build_cpu$ac_delim
16651 build_vendor!$build_vendor$ac_delim
16652 build_os!$build_os$ac_delim
16653 host!$host$ac_delim
16654 host_cpu!$host_cpu$ac_delim
16655 host_vendor!$host_vendor$ac_delim
16656 host_os!$host_os$ac_delim
16657 PKGCONFIG!$PKGCONFIG$ac_delim
16658 CPP!$CPP$ac_delim
16659 GREP!$GREP$ac_delim
16660 EGREP!$EGREP$ac_delim
16661 CGIEXT!$CGIEXT$ac_delim
16662 ENABLE_WIN32SPECIFIC_TRUE!$ENABLE_WIN32SPECIFIC_TRUE$ac_delim
16663 ENABLE_WIN32SPECIFIC_FALSE!$ENABLE_WIN32SPECIFIC_FALSE$ac_delim
16664 LIBDLMALLOC!$LIBDLMALLOC$ac_delim
16665 LIB_MALLOC!$LIB_MALLOC$ac_delim
16666 STORE_OBJS!$STORE_OBJS$ac_delim
16667 STORE_LIBS!$STORE_LIBS$ac_delim
16668 STORE_MODULES!$STORE_MODULES$ac_delim
16669 STORE_MODULE_SUBDIRS!$STORE_MODULE_SUBDIRS$ac_delim
16670 REPL_POLICIES!$REPL_POLICIES$ac_delim
16671 REPL_OBJS!$REPL_OBJS$ac_delim
16672 REPL_LIBS!$REPL_LIBS$ac_delim
16673 ENABLE_PINGER_TRUE!$ENABLE_PINGER_TRUE$ac_delim
16674 ENABLE_PINGER_FALSE!$ENABLE_PINGER_FALSE$ac_delim
16675 USE_DELAY_POOLS_TRUE!$USE_DELAY_POOLS_TRUE$ac_delim
16676 _ACEOF
16677
16678   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16679     break
16680   elif $ac_last_try; then
16681     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16682 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16683    { (exit 1); exit 1; }; }
16684   else
16685     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16686   fi
16687 done
16688
16689 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16690 if test -n "$ac_eof"; then
16691   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16692   ac_eof=`expr $ac_eof + 1`
16693 fi
16694
16695 cat >>$CONFIG_STATUS <<_ACEOF
16696 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16698 _ACEOF
16699 sed '
16700 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16701 s/^/s,@/; s/!/@,|#_!!_#|/
16702 :n
16703 t n
16704 s/'"$ac_delim"'$/,g/; t
16705 s/$/\\/; p
16706 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16707 ' >>$CONFIG_STATUS <conf$$subs.sed
16708 rm -f conf$$subs.sed
16709 cat >>$CONFIG_STATUS <<_ACEOF
16710 CEOF$ac_eof
16711 _ACEOF
16712
16713
16714 ac_delim='%!_!# '
16715 for ac_last_try in false false false false false :; do
16716   cat >conf$$subs.sed <<_ACEOF
16717 USE_DELAY_POOLS_FALSE!$USE_DELAY_POOLS_FALSE$ac_delim
16718 USE_ICAP_TRUE!$USE_ICAP_TRUE$ac_delim
16719 USE_ICAP_FALSE!$USE_ICAP_FALSE$ac_delim
16720 USE_SNMP_TRUE!$USE_SNMP_TRUE$ac_delim
16721 USE_SNMP_FALSE!$USE_SNMP_FALSE$ac_delim
16722 SNMPLIB!$SNMPLIB$ac_delim
16723 makesnmplib!$makesnmplib$ac_delim
16724 ENABLE_HTCP_TRUE!$ENABLE_HTCP_TRUE$ac_delim
16725 ENABLE_HTCP_FALSE!$ENABLE_HTCP_FALSE$ac_delim
16726 ENABLE_SSL_TRUE!$ENABLE_SSL_TRUE$ac_delim
16727 ENABLE_SSL_FALSE!$ENABLE_SSL_FALSE$ac_delim
16728 NEED_OWN_MD5_TRUE!$NEED_OWN_MD5_TRUE$ac_delim
16729 NEED_OWN_MD5_FALSE!$NEED_OWN_MD5_FALSE$ac_delim
16730 SSLLIB!$SSLLIB$ac_delim
16731 ERR_DEFAULT_LANGUAGE!$ERR_DEFAULT_LANGUAGE$ac_delim
16732 ERR_LANGUAGES!$ERR_LANGUAGES$ac_delim
16733 MAKE_LEAKFINDER_TRUE!$MAKE_LEAKFINDER_TRUE$ac_delim
16734 MAKE_LEAKFINDER_FALSE!$MAKE_LEAKFINDER_FALSE$ac_delim
16735 USE_DNSSERVER_TRUE!$USE_DNSSERVER_TRUE$ac_delim
16736 USE_DNSSERVER_FALSE!$USE_DNSSERVER_FALSE$ac_delim
16737 AUTH_MODULES!$AUTH_MODULES$ac_delim
16738 AUTH_OBJS!$AUTH_OBJS$ac_delim
16739 AUTH_LIBS!$AUTH_LIBS$ac_delim
16740 BASIC_AUTH_HELPERS!$BASIC_AUTH_HELPERS$ac_delim
16741 NTLM_AUTH_HELPERS!$NTLM_AUTH_HELPERS$ac_delim
16742 DIGEST_AUTH_HELPERS!$DIGEST_AUTH_HELPERS$ac_delim
16743 EXTERNAL_ACL_HELPERS!$EXTERNAL_ACL_HELPERS$ac_delim
16744 SAMBASOURCES!$SAMBASOURCES$ac_delim
16745 LIBSASL!$LIBSASL$ac_delim
16746 ENABLE_UNLINKD_TRUE!$ENABLE_UNLINKD_TRUE$ac_delim
16747 ENABLE_UNLINKD_FALSE!$ENABLE_UNLINKD_FALSE$ac_delim
16748 RANLIB!$RANLIB$ac_delim
16749 LN_S!$LN_S$ac_delim
16750 SH!$SH$ac_delim
16751 FALSE!$FALSE$ac_delim
16752 TRUE!$TRUE$ac_delim
16753 RM!$RM$ac_delim
16754 MV!$MV$ac_delim
16755 MKDIR!$MKDIR$ac_delim
16756 LN!$LN$ac_delim
16757 PERL!$PERL$ac_delim
16758 AR!$AR$ac_delim
16759 AR_R!$AR_R$ac_delim
16760 ALLOCA!$ALLOCA$ac_delim
16761 CRYPTLIB!$CRYPTLIB$ac_delim
16762 LIB_LBER!$LIB_LBER$ac_delim
16763 NEED_OWN_SNPRINTF_TRUE!$NEED_OWN_SNPRINTF_TRUE$ac_delim
16764 NEED_OWN_SNPRINTF_FALSE!$NEED_OWN_SNPRINTF_FALSE$ac_delim
16765 NEED_OWN_STRNSTR_TRUE!$NEED_OWN_STRNSTR_TRUE$ac_delim
16766 NEED_OWN_STRNSTR_FALSE!$NEED_OWN_STRNSTR_FALSE$ac_delim
16767 NEED_OWN_STRCASESTR_TRUE!$NEED_OWN_STRCASESTR_TRUE$ac_delim
16768 NEED_OWN_STRCASESTR_FALSE!$NEED_OWN_STRCASESTR_FALSE$ac_delim
16769 REGEXLIB!$REGEXLIB$ac_delim
16770 LIBREGEX!$LIBREGEX$ac_delim
16771 LIBOBJS!$LIBOBJS$ac_delim
16772 XTRA_OBJS!$XTRA_OBJS$ac_delim
16773 XTRA_LIBS!$XTRA_LIBS$ac_delim
16774 LTLIBOBJS!$LTLIBOBJS$ac_delim
16775 _ACEOF
16776
16777   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
16778     break
16779   elif $ac_last_try; then
16780     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16781 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16782    { (exit 1); exit 1; }; }
16783   else
16784     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16785   fi
16786 done
16787
16788 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16789 if test -n "$ac_eof"; then
16790   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16791   ac_eof=`expr $ac_eof + 1`
16792 fi
16793
16794 cat >>$CONFIG_STATUS <<_ACEOF
16795 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16797 _ACEOF
16798 sed '
16799 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16800 s/^/s,@/; s/!/@,|#_!!_#|/
16801 :n
16802 t n
16803 s/'"$ac_delim"'$/,g/; t
16804 s/$/\\/; p
16805 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16806 ' >>$CONFIG_STATUS <conf$$subs.sed
16807 rm -f conf$$subs.sed
16808 cat >>$CONFIG_STATUS <<_ACEOF
16809 :end
16810 s/|#_!!_#|//g
16811 CEOF$ac_eof
16812 _ACEOF
16813
16814
16815 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16816 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16817 # trailing colons and then remove the whole line if VPATH becomes empty
16818 # (actually we leave an empty line to preserve line numbers).
16819 if test "x$srcdir" = x.; then
16820   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16821 s/:*\$(srcdir):*/:/
16822 s/:*\${srcdir}:*/:/
16823 s/:*@srcdir@:*/:/
16824 s/^\([^=]*=[     ]*\):*/\1/
16825 s/:*$//
16826 s/^[^=]*=[       ]*$//
16827 }'
16828 fi
16829
16830 cat >>$CONFIG_STATUS <<\_ACEOF
16831 fi # test -n "$CONFIG_FILES"
16832
16833
16834 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
16835 do
16836   case $ac_tag in
16837   :[FHLC]) ac_mode=$ac_tag; continue;;
16838   esac
16839   case $ac_mode$ac_tag in
16840   :[FHL]*:*);;
16841   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16842 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16843    { (exit 1); exit 1; }; };;
16844   :[FH]-) ac_tag=-:-;;
16845   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16846   esac
16847   ac_save_IFS=$IFS
16848   IFS=:
16849   set x $ac_tag
16850   IFS=$ac_save_IFS
16851   shift
16852   ac_file=$1
16853   shift
16854
16855   case $ac_mode in
16856   :L) ac_source=$1;;
16857   :[FH])
16858     ac_file_inputs=
16859     for ac_f
16860     do
16861       case $ac_f in
16862       -) ac_f="$tmp/stdin";;
16863       *) # Look for the file first in the build tree, then in the source tree
16864          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16865          # because $ac_f cannot contain `:'.
16866          test -f "$ac_f" ||
16867            case $ac_f in
16868            [\\/$]*) false;;
16869            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16870            esac ||
16871            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16872 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16873    { (exit 1); exit 1; }; };;
16874       esac
16875       ac_file_inputs="$ac_file_inputs $ac_f"
16876     done
16877
16878     # Let's still pretend it is `configure' which instantiates (i.e., don't
16879     # use $as_me), people would be surprised to read:
16880     #    /* config.h.  Generated by config.status.  */
16881     configure_input="Generated from "`IFS=:
16882           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16883     if test x"$ac_file" != x-; then
16884       configure_input="$ac_file.  $configure_input"
16885       { echo "$as_me:$LINENO: creating $ac_file" >&5
16886 echo "$as_me: creating $ac_file" >&6;}
16887     fi
16888
16889     case $ac_tag in
16890     *:-:* | *:-) cat >"$tmp/stdin";;
16891     esac
16892     ;;
16893   esac
16894
16895   ac_dir=`$as_dirname -- "$ac_file" ||
16896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16897          X"$ac_file" : 'X\(//\)[^/]' \| \
16898          X"$ac_file" : 'X\(//\)$' \| \
16899          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16900 echo X"$ac_file" |
16901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16902             s//\1/
16903             q
16904           }
16905           /^X\(\/\/\)[^/].*/{
16906             s//\1/
16907             q
16908           }
16909           /^X\(\/\/\)$/{
16910             s//\1/
16911             q
16912           }
16913           /^X\(\/\).*/{
16914             s//\1/
16915             q
16916           }
16917           s/.*/./; q'`
16918   { as_dir="$ac_dir"
16919   case $as_dir in #(
16920   -*) as_dir=./$as_dir;;
16921   esac
16922   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16923     as_dirs=
16924     while :; do
16925       case $as_dir in #(
16926       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16927       *) as_qdir=$as_dir;;
16928       esac
16929       as_dirs="'$as_qdir' $as_dirs"
16930       as_dir=`$as_dirname -- "$as_dir" ||
16931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16932          X"$as_dir" : 'X\(//\)[^/]' \| \
16933          X"$as_dir" : 'X\(//\)$' \| \
16934          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16935 echo X"$as_dir" |
16936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16937             s//\1/
16938             q
16939           }
16940           /^X\(\/\/\)[^/].*/{
16941             s//\1/
16942             q
16943           }
16944           /^X\(\/\/\)$/{
16945             s//\1/
16946             q
16947           }
16948           /^X\(\/\).*/{
16949             s//\1/
16950             q
16951           }
16952           s/.*/./; q'`
16953       test -d "$as_dir" && break
16954     done
16955     test -z "$as_dirs" || eval "mkdir $as_dirs"
16956   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16957 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16958    { (exit 1); exit 1; }; }; }
16959   ac_builddir=.
16960
16961 case "$ac_dir" in
16962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16963 *)
16964   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16965   # A ".." for each directory in $ac_dir_suffix.
16966   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16967   case $ac_top_builddir_sub in
16968   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16969   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16970   esac ;;
16971 esac
16972 ac_abs_top_builddir=$ac_pwd
16973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16974 # for backward compatibility:
16975 ac_top_builddir=$ac_top_build_prefix
16976
16977 case $srcdir in
16978   .)  # We are building in place.
16979     ac_srcdir=.
16980     ac_top_srcdir=$ac_top_builddir_sub
16981     ac_abs_top_srcdir=$ac_pwd ;;
16982   [\\/]* | ?:[\\/]* )  # Absolute name.
16983     ac_srcdir=$srcdir$ac_dir_suffix;
16984     ac_top_srcdir=$srcdir
16985     ac_abs_top_srcdir=$srcdir ;;
16986   *) # Relative name.
16987     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16988     ac_top_srcdir=$ac_top_build_prefix$srcdir
16989     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16990 esac
16991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16992
16993
16994   case $ac_mode in
16995   :F)
16996   #
16997   # CONFIG_FILE
16998   #
16999
17000   case $INSTALL in
17001   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17002   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17003   esac
17004 _ACEOF
17005
17006 cat >>$CONFIG_STATUS <<\_ACEOF
17007 # If the template does not know about datarootdir, expand it.
17008 # FIXME: This hack should be removed a few years after 2.60.
17009 ac_datarootdir_hack=; ac_datarootdir_seen=
17010
17011 case `sed -n '/datarootdir/ {
17012   p
17013   q
17014 }
17015 /@datadir@/p
17016 /@docdir@/p
17017 /@infodir@/p
17018 /@localedir@/p
17019 /@mandir@/p
17020 ' $ac_file_inputs` in
17021 *datarootdir*) ac_datarootdir_seen=yes;;
17022 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17023   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17024 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17025 _ACEOF
17026 cat >>$CONFIG_STATUS <<_ACEOF
17027   ac_datarootdir_hack='
17028   s&@datadir@&$datadir&g
17029   s&@docdir@&$docdir&g
17030   s&@infodir@&$infodir&g
17031   s&@localedir@&$localedir&g
17032   s&@mandir@&$mandir&g
17033     s&\\\${datarootdir}&$datarootdir&g' ;;
17034 esac
17035 _ACEOF
17036
17037 # Neutralize VPATH when `$srcdir' = `.'.
17038 # Shell code in configure.ac might set extrasub.
17039 # FIXME: do we really want to maintain this feature?
17040 cat >>$CONFIG_STATUS <<_ACEOF
17041   sed "$ac_vpsub
17042 $extrasub
17043 _ACEOF
17044 cat >>$CONFIG_STATUS <<\_ACEOF
17045 :t
17046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17047 s&@configure_input@&$configure_input&;t t
17048 s&@top_builddir@&$ac_top_builddir_sub&;t t
17049 s&@srcdir@&$ac_srcdir&;t t
17050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17051 s&@top_srcdir@&$ac_top_srcdir&;t t
17052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17053 s&@builddir@&$ac_builddir&;t t
17054 s&@abs_builddir@&$ac_abs_builddir&;t t
17055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17056 s&@INSTALL@&$ac_INSTALL&;t t
17057 $ac_datarootdir_hack
17058 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17059
17060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17061   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17062   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17063   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17064 which seems to be undefined.  Please make sure it is defined." >&5
17065 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17066 which seems to be undefined.  Please make sure it is defined." >&2;}
17067
17068   rm -f "$tmp/stdin"
17069   case $ac_file in
17070   -) cat "$tmp/out"; rm -f "$tmp/out";;
17071   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17072   esac
17073  ;;
17074   :H)
17075   #
17076   # CONFIG_HEADER
17077   #
17078 _ACEOF
17079
17080 # Transform confdefs.h into a sed script `conftest.defines', that
17081 # substitutes the proper values into config.h.in to produce config.h.
17082 rm -f conftest.defines conftest.tail
17083 # First, append a space to every undef/define line, to ease matching.
17084 echo 's/$/ /' >conftest.defines
17085 # Then, protect against being on the right side of a sed subst, or in
17086 # an unquoted here document, in config.status.  If some macros were
17087 # called several times there might be several #defines for the same
17088 # symbol, which is useless.  But do not sort them, since the last
17089 # AC_DEFINE must be honored.
17090 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17091 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17092 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17093 # PARAMS is the parameter list in the macro definition--in most cases, it's
17094 # just an empty string.
17095 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
17096 ac_dB='\\)[      (].*,\\1define\\2'
17097 ac_dC=' '
17098 ac_dD=' ,'
17099
17100 uniq confdefs.h |
17101   sed -n '
17102         t rset
17103         :rset
17104         s/^[     ]*#[    ]*define[       ][      ]*//
17105         t ok
17106         d
17107         :ok
17108         s/[\\&,]/\\&/g
17109         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17110         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17111   ' >>conftest.defines
17112
17113 # Remove the space that was appended to ease matching.
17114 # Then replace #undef with comments.  This is necessary, for
17115 # example, in the case of _POSIX_SOURCE, which is predefined and required
17116 # on some systems where configure will not decide to define it.
17117 # (The regexp can be short, since the line contains either #define or #undef.)
17118 echo 's/ $//
17119 s,^[     #]*u.*,/* & */,' >>conftest.defines
17120
17121 # Break up conftest.defines:
17122 ac_max_sed_lines=50
17123
17124 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17125 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17126 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17127 # et cetera.
17128 ac_in='$ac_file_inputs'
17129 ac_out='"$tmp/out1"'
17130 ac_nxt='"$tmp/out2"'
17131
17132 while :
17133 do
17134   # Write a here document:
17135     cat >>$CONFIG_STATUS <<_ACEOF
17136     # First, check the format of the line:
17137     cat >"\$tmp/defines.sed" <<\\CEOF
17138 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
17139 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
17140 b
17141 :def
17142 _ACEOF
17143   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17144   echo 'CEOF
17145     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17146   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17147   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17148   grep . conftest.tail >/dev/null || break
17149   rm -f conftest.defines
17150   mv conftest.tail conftest.defines
17151 done
17152 rm -f conftest.defines conftest.tail
17153
17154 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17155 cat >>$CONFIG_STATUS <<\_ACEOF
17156   if test x"$ac_file" != x-; then
17157     echo "/* $configure_input  */" >"$tmp/config.h"
17158     cat "$ac_result" >>"$tmp/config.h"
17159     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17160       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17161 echo "$as_me: $ac_file is unchanged" >&6;}
17162     else
17163       rm -f $ac_file
17164       mv "$tmp/config.h" $ac_file
17165     fi
17166   else
17167     echo "/* $configure_input  */"
17168     cat "$ac_result"
17169   fi
17170   rm -f "$tmp/out12"
17171  ;;
17172
17173   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17174 echo "$as_me: executing $ac_file commands" >&6;}
17175  ;;
17176   esac
17177
17178
17179   case $ac_file$ac_mode in
17180     "include/autoconf.h":H) # update the timestamp
17181 echo 'timestamp for include/autoconf.h' >"include/stamp-h1"
17182  ;;
17183     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17184   # Strip MF so we end up with the name of the file.
17185   mf=`echo "$mf" | sed -e 's/:.*$//'`
17186   # Check whether this is an Automake generated Makefile or not.
17187   # We used to match only the files named `Makefile.in', but
17188   # some people rename them; so instead we look at the file content.
17189   # Grep'ing the first line is not enough: some people post-process
17190   # each Makefile.in and add a new line on top of each file to say so.
17191   # So let's grep whole file.
17192   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17193     dirpart=`$as_dirname -- "$mf" ||
17194 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17195          X"$mf" : 'X\(//\)[^/]' \| \
17196          X"$mf" : 'X\(//\)$' \| \
17197          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17198 echo X"$mf" |
17199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17200             s//\1/
17201             q
17202           }
17203           /^X\(\/\/\)[^/].*/{
17204             s//\1/
17205             q
17206           }
17207           /^X\(\/\/\)$/{
17208             s//\1/
17209             q
17210           }
17211           /^X\(\/\).*/{
17212             s//\1/
17213             q
17214           }
17215           s/.*/./; q'`
17216   else
17217     continue
17218   fi
17219   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17220   # Extract the definition of DEP_FILES from the Makefile without
17221   # running `make'.
17222   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17223   test -z "$DEPDIR" && continue
17224   # When using ansi2knr, U may be empty or an underscore; expand it
17225   U=`sed -n -e '/^U = / s///p' < "$mf"`
17226   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17227   # We invoke sed twice because it is the simplest approach to
17228   # changing $(DEPDIR) to its actual value in the expansion.
17229   for file in `sed -n -e '
17230     /^DEP_FILES = .*\\\\$/ {
17231       s/^DEP_FILES = //
17232       :loop
17233         s/\\\\$//
17234         p
17235         n
17236         /\\\\$/ b loop
17237       p
17238     }
17239     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17240        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17241     # Make sure the directory exists.
17242     test -f "$dirpart/$file" && continue
17243     fdir=`$as_dirname -- "$file" ||
17244 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245          X"$file" : 'X\(//\)[^/]' \| \
17246          X"$file" : 'X\(//\)$' \| \
17247          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17248 echo X"$file" |
17249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17250             s//\1/
17251             q
17252           }
17253           /^X\(\/\/\)[^/].*/{
17254             s//\1/
17255             q
17256           }
17257           /^X\(\/\/\)$/{
17258             s//\1/
17259             q
17260           }
17261           /^X\(\/\).*/{
17262             s//\1/
17263             q
17264           }
17265           s/.*/./; q'`
17266     { as_dir=$dirpart/$fdir
17267   case $as_dir in #(
17268   -*) as_dir=./$as_dir;;
17269   esac
17270   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17271     as_dirs=
17272     while :; do
17273       case $as_dir in #(
17274       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17275       *) as_qdir=$as_dir;;
17276       esac
17277       as_dirs="'$as_qdir' $as_dirs"
17278       as_dir=`$as_dirname -- "$as_dir" ||
17279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280          X"$as_dir" : 'X\(//\)[^/]' \| \
17281          X"$as_dir" : 'X\(//\)$' \| \
17282          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17283 echo X"$as_dir" |
17284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17285             s//\1/
17286             q
17287           }
17288           /^X\(\/\/\)[^/].*/{
17289             s//\1/
17290             q
17291           }
17292           /^X\(\/\/\)$/{
17293             s//\1/
17294             q
17295           }
17296           /^X\(\/\).*/{
17297             s//\1/
17298             q
17299           }
17300           s/.*/./; q'`
17301       test -d "$as_dir" && break
17302     done
17303     test -z "$as_dirs" || eval "mkdir $as_dirs"
17304   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17305 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17306    { (exit 1); exit 1; }; }; }
17307     # echo "creating $dirpart/$file"
17308     echo '# dummy' > "$dirpart/$file"
17309   done
17310 done
17311  ;;
17312
17313   esac
17314 done # for ac_tag
17315
17316
17317 { (exit 0); exit 0; }
17318 _ACEOF
17319 chmod +x $CONFIG_STATUS
17320 ac_clean_files=$ac_clean_files_save
17321
17322
17323 # configure is writing to config.log, and then calls config.status.
17324 # config.status does its own redirection, appending to config.log.
17325 # Unfortunately, on DOS this fails, as config.log is still kept open
17326 # by configure, so config.status won't be able to write to it; its
17327 # output is simply discarded.  So we exec the FD to /dev/null,
17328 # effectively closing config.log, so it can be properly (re)opened and
17329 # appended to by config.status.  When coming back to configure, we
17330 # need to make the FD available again.
17331 if test "$no_create" != yes; then
17332   ac_cs_success=:
17333   ac_config_status_args=
17334   test "$silent" = yes &&
17335     ac_config_status_args="$ac_config_status_args --quiet"
17336   exec 5>/dev/null
17337   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17338   exec 5>>config.log
17339   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17340   # would make configure fail if this is the last instruction.
17341   $ac_cs_success || { (exit 1); exit 1; }
17342 fi
17343