]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/blob - contrib/libpcap/configure
MFC r239545:
[FreeBSD/releng/9.1.git] / contrib / libpcap / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.168 .
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="pcap.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 SHLICC2
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LIBOBJS
678 HAVE_LINUX_TPACKET_AUXDATA
679 V_LEX
680 V_YACC
681 RANLIB
682 AR
683 V_CCOPT
684 V_DEFS
685 V_FINDALLDEVS
686 V_INCLS
687 V_PCAP
688 V_SHLIB_CMD
689 V_SHLIB_OPT
690 V_SONAME_OPT
691 V_RPATH_OPT
692 ADDLOBJS
693 ADDLARCHIVEOBJS
694 SSRC
695 DYEXT
696 MAN_FILE_FORMATS
697 MAN_MISC_INFO
698 PCAP_SUPPORT_USB
699 USB_SRC
700 PCAP_SUPPORT_NETFILTER
701 NETFILTER_SRC
702 PCAP_SUPPORT_BT
703 BT_SRC
704 PCAP_SUPPORT_CAN
705 CAN_SRC
706 INSTALL_PROGRAM
707 INSTALL_SCRIPT
708 INSTALL_DATA
709 LTLIBOBJS'
710 ac_subst_files=''
711       ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CC
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CPP'
720
721
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
727 cache_file=/dev/null
728 exec_prefix=NONE
729 no_create=
730 no_recursion=
731 prefix=NONE
732 program_prefix=NONE
733 program_suffix=NONE
734 program_transform_name=s,x,x,
735 silent=
736 site=
737 srcdir=
738 verbose=
739 x_includes=NONE
740 x_libraries=NONE
741
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE}'
759 infodir='${datarootdir}/info'
760 htmldir='${docdir}'
761 dvidir='${docdir}'
762 pdfdir='${docdir}'
763 psdir='${docdir}'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
767
768 ac_prev=
769 ac_dashdash=
770 for ac_option
771 do
772   # If the previous option needs an argument, assign it.
773   if test -n "$ac_prev"; then
774     eval $ac_prev=\$ac_option
775     ac_prev=
776     continue
777   fi
778
779   case $ac_option in
780   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781   *)    ac_optarg=yes ;;
782   esac
783
784   # Accept the important Cygnus configure options, so we can diagnose typos.
785
786   case $ac_dashdash$ac_option in
787   --)
788     ac_dashdash=yes ;;
789
790   -bindir | --bindir | --bindi | --bind | --bin | --bi)
791     ac_prev=bindir ;;
792   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793     bindir=$ac_optarg ;;
794
795   -build | --build | --buil | --bui | --bu)
796     ac_prev=build_alias ;;
797   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798     build_alias=$ac_optarg ;;
799
800   -cache-file | --cache-file | --cache-fil | --cache-fi \
801   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802     ac_prev=cache_file ;;
803   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805     cache_file=$ac_optarg ;;
806
807   --config-cache | -C)
808     cache_file=config.cache ;;
809
810   -datadir | --datadir | --datadi | --datad)
811     ac_prev=datadir ;;
812   -datadir=* | --datadir=* | --datadi=* | --datad=*)
813     datadir=$ac_optarg ;;
814
815   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816   | --dataroo | --dataro | --datar)
817     ac_prev=datarootdir ;;
818   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820     datarootdir=$ac_optarg ;;
821
822   -disable-* | --disable-*)
823     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824     # Reject names that are not valid shell variable names.
825     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
826       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
827    { (exit 1); exit 1; }; }
828     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
829     eval enable_$ac_feature=no ;;
830
831   -docdir | --docdir | --docdi | --doc | --do)
832     ac_prev=docdir ;;
833   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834     docdir=$ac_optarg ;;
835
836   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837     ac_prev=dvidir ;;
838   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839     dvidir=$ac_optarg ;;
840
841   -enable-* | --enable-*)
842     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
843     # Reject names that are not valid shell variable names.
844     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846    { (exit 1); exit 1; }; }
847     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848     eval enable_$ac_feature=\$ac_optarg ;;
849
850   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852   | --exec | --exe | --ex)
853     ac_prev=exec_prefix ;;
854   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856   | --exec=* | --exe=* | --ex=*)
857     exec_prefix=$ac_optarg ;;
858
859   -gas | --gas | --ga | --g)
860     # Obsolete; use --with-gas.
861     with_gas=yes ;;
862
863   -help | --help | --hel | --he | -h)
864     ac_init_help=long ;;
865   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866     ac_init_help=recursive ;;
867   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868     ac_init_help=short ;;
869
870   -host | --host | --hos | --ho)
871     ac_prev=host_alias ;;
872   -host=* | --host=* | --hos=* | --ho=*)
873     host_alias=$ac_optarg ;;
874
875   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876     ac_prev=htmldir ;;
877   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878   | --ht=*)
879     htmldir=$ac_optarg ;;
880
881   -includedir | --includedir | --includedi | --included | --include \
882   | --includ | --inclu | --incl | --inc)
883     ac_prev=includedir ;;
884   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885   | --includ=* | --inclu=* | --incl=* | --inc=*)
886     includedir=$ac_optarg ;;
887
888   -infodir | --infodir | --infodi | --infod | --info | --inf)
889     ac_prev=infodir ;;
890   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891     infodir=$ac_optarg ;;
892
893   -libdir | --libdir | --libdi | --libd)
894     ac_prev=libdir ;;
895   -libdir=* | --libdir=* | --libdi=* | --libd=*)
896     libdir=$ac_optarg ;;
897
898   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899   | --libexe | --libex | --libe)
900     ac_prev=libexecdir ;;
901   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902   | --libexe=* | --libex=* | --libe=*)
903     libexecdir=$ac_optarg ;;
904
905   -localedir | --localedir | --localedi | --localed | --locale)
906     ac_prev=localedir ;;
907   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908     localedir=$ac_optarg ;;
909
910   -localstatedir | --localstatedir | --localstatedi | --localstated \
911   | --localstate | --localstat | --localsta | --localst | --locals)
912     ac_prev=localstatedir ;;
913   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915     localstatedir=$ac_optarg ;;
916
917   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918     ac_prev=mandir ;;
919   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920     mandir=$ac_optarg ;;
921
922   -nfp | --nfp | --nf)
923     # Obsolete; use --without-fp.
924     with_fp=no ;;
925
926   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927   | --no-cr | --no-c | -n)
928     no_create=yes ;;
929
930   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932     no_recursion=yes ;;
933
934   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936   | --oldin | --oldi | --old | --ol | --o)
937     ac_prev=oldincludedir ;;
938   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941     oldincludedir=$ac_optarg ;;
942
943   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944     ac_prev=prefix ;;
945   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946     prefix=$ac_optarg ;;
947
948   -program-prefix | --program-prefix | --program-prefi | --program-pref \
949   | --program-pre | --program-pr | --program-p)
950     ac_prev=program_prefix ;;
951   -program-prefix=* | --program-prefix=* | --program-prefi=* \
952   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953     program_prefix=$ac_optarg ;;
954
955   -program-suffix | --program-suffix | --program-suffi | --program-suff \
956   | --program-suf | --program-su | --program-s)
957     ac_prev=program_suffix ;;
958   -program-suffix=* | --program-suffix=* | --program-suffi=* \
959   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960     program_suffix=$ac_optarg ;;
961
962   -program-transform-name | --program-transform-name \
963   | --program-transform-nam | --program-transform-na \
964   | --program-transform-n | --program-transform- \
965   | --program-transform | --program-transfor \
966   | --program-transfo | --program-transf \
967   | --program-trans | --program-tran \
968   | --progr-tra | --program-tr | --program-t)
969     ac_prev=program_transform_name ;;
970   -program-transform-name=* | --program-transform-name=* \
971   | --program-transform-nam=* | --program-transform-na=* \
972   | --program-transform-n=* | --program-transform-=* \
973   | --program-transform=* | --program-transfor=* \
974   | --program-transfo=* | --program-transf=* \
975   | --program-trans=* | --program-tran=* \
976   | --progr-tra=* | --program-tr=* | --program-t=*)
977     program_transform_name=$ac_optarg ;;
978
979   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980     ac_prev=pdfdir ;;
981   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982     pdfdir=$ac_optarg ;;
983
984   -psdir | --psdir | --psdi | --psd | --ps)
985     ac_prev=psdir ;;
986   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987     psdir=$ac_optarg ;;
988
989   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990   | -silent | --silent | --silen | --sile | --sil)
991     silent=yes ;;
992
993   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
994     ac_prev=sbindir ;;
995   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
996   | --sbi=* | --sb=*)
997     sbindir=$ac_optarg ;;
998
999   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1000   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1001   | --sharedst | --shareds | --shared | --share | --shar \
1002   | --sha | --sh)
1003     ac_prev=sharedstatedir ;;
1004   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1005   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1006   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1007   | --sha=* | --sh=*)
1008     sharedstatedir=$ac_optarg ;;
1009
1010   -site | --site | --sit)
1011     ac_prev=site ;;
1012   -site=* | --site=* | --sit=*)
1013     site=$ac_optarg ;;
1014
1015   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1016     ac_prev=srcdir ;;
1017   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1018     srcdir=$ac_optarg ;;
1019
1020   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1021   | --syscon | --sysco | --sysc | --sys | --sy)
1022     ac_prev=sysconfdir ;;
1023   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1024   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1025     sysconfdir=$ac_optarg ;;
1026
1027   -target | --target | --targe | --targ | --tar | --ta | --t)
1028     ac_prev=target_alias ;;
1029   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1030     target_alias=$ac_optarg ;;
1031
1032   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1033     verbose=yes ;;
1034
1035   -version | --version | --versio | --versi | --vers | -V)
1036     ac_init_version=: ;;
1037
1038   -with-* | --with-*)
1039     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042       { echo "$as_me: error: invalid package name: $ac_package" >&2
1043    { (exit 1); exit 1; }; }
1044     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045     eval with_$ac_package=\$ac_optarg ;;
1046
1047   -without-* | --without-*)
1048     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid package name: $ac_package" >&2
1052    { (exit 1); exit 1; }; }
1053     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054     eval with_$ac_package=no ;;
1055
1056   --x)
1057     # Obsolete; use --with-x.
1058     with_x=yes ;;
1059
1060   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061   | --x-incl | --x-inc | --x-in | --x-i)
1062     ac_prev=x_includes ;;
1063   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065     x_includes=$ac_optarg ;;
1066
1067   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1068   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069     ac_prev=x_libraries ;;
1070   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072     x_libraries=$ac_optarg ;;
1073
1074   -*) { echo "$as_me: error: unrecognized option: $ac_option
1075 Try \`$0 --help' for more information." >&2
1076    { (exit 1); exit 1; }; }
1077     ;;
1078
1079   *=*)
1080     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1083       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1084    { (exit 1); exit 1; }; }
1085     eval $ac_envvar=\$ac_optarg
1086     export $ac_envvar ;;
1087
1088   *)
1089     # FIXME: should be removed in autoconf 3.0.
1090     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094     ;;
1095
1096   esac
1097 done
1098
1099 if test -n "$ac_prev"; then
1100   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1101   { echo "$as_me: error: missing argument to $ac_option" >&2
1102    { (exit 1); exit 1; }; }
1103 fi
1104
1105 # Be sure to have absolute directory names.
1106 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107                 datadir sysconfdir sharedstatedir localstatedir includedir \
1108                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109                 libdir localedir mandir
1110 do
1111   eval ac_val=\$$ac_var
1112   case $ac_val in
1113     [\\/$]* | ?:[\\/]* )  continue;;
1114     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1115   esac
1116   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1117    { (exit 1); exit 1; }; }
1118 done
1119
1120 # There might be people who depend on the old broken behavior: `$host'
1121 # used to hold the argument of --host etc.
1122 # FIXME: To remove some day.
1123 build=$build_alias
1124 host=$host_alias
1125 target=$target_alias
1126
1127 # FIXME: To remove some day.
1128 if test "x$host_alias" != x; then
1129   if test "x$build_alias" = x; then
1130     cross_compiling=maybe
1131     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1132     If a cross compiler is detected then cross compile mode will be used." >&2
1133   elif test "x$build_alias" != "x$host_alias"; then
1134     cross_compiling=yes
1135   fi
1136 fi
1137
1138 ac_tool_prefix=
1139 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1140
1141 test "$silent" = yes && exec 6>/dev/null
1142
1143
1144 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1145 ac_ls_di=`ls -di .` &&
1146 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1147   { echo "$as_me: error: Working directory cannot be determined" >&2
1148    { (exit 1); exit 1; }; }
1149 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1150   { echo "$as_me: error: pwd does not report name of working directory" >&2
1151    { (exit 1); exit 1; }; }
1152
1153
1154 # Find the source files, if location was not specified.
1155 if test -z "$srcdir"; then
1156   ac_srcdir_defaulted=yes
1157   # Try the directory containing this script, then the parent directory.
1158   ac_confdir=`$as_dirname -- "$0" ||
1159 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160          X"$0" : 'X\(//\)[^/]' \| \
1161          X"$0" : 'X\(//\)$' \| \
1162          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1163 echo X"$0" |
1164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165             s//\1/
1166             q
1167           }
1168           /^X\(\/\/\)[^/].*/{
1169             s//\1/
1170             q
1171           }
1172           /^X\(\/\/\)$/{
1173             s//\1/
1174             q
1175           }
1176           /^X\(\/\).*/{
1177             s//\1/
1178             q
1179           }
1180           s/.*/./; q'`
1181   srcdir=$ac_confdir
1182   if test ! -r "$srcdir/$ac_unique_file"; then
1183     srcdir=..
1184   fi
1185 else
1186   ac_srcdir_defaulted=no
1187 fi
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1191    { (exit 1); exit 1; }; }
1192 fi
1193 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1194 ac_abs_confdir=`(
1195         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1196    { (exit 1); exit 1; }; }
1197         pwd)`
1198 # When building in place, set srcdir=.
1199 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200   srcdir=.
1201 fi
1202 # Remove unnecessary trailing slashes from srcdir.
1203 # Double slashes in file names in object file debugging info
1204 # mess up M-x gdb in Emacs.
1205 case $srcdir in
1206 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207 esac
1208 for ac_var in $ac_precious_vars; do
1209   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1210   eval ac_env_${ac_var}_value=\$${ac_var}
1211   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1212   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1213 done
1214
1215 #
1216 # Report the --help message.
1217 #
1218 if test "$ac_init_help" = "long"; then
1219   # Omit some internal or obsolete options to make the list less imposing.
1220   # This message is too long to be a string in the A/UX 3.1 sh.
1221   cat <<_ACEOF
1222 \`configure' configures this package to adapt to many kinds of systems.
1223
1224 Usage: $0 [OPTION]... [VAR=VALUE]...
1225
1226 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1227 VAR=VALUE.  See below for descriptions of some of the useful variables.
1228
1229 Defaults for the options are specified in brackets.
1230
1231 Configuration:
1232   -h, --help              display this help and exit
1233       --help=short        display options specific to this package
1234       --help=recursive    display the short help of all the included packages
1235   -V, --version           display version information and exit
1236   -q, --quiet, --silent   do not print \`checking...' messages
1237       --cache-file=FILE   cache test results in FILE [disabled]
1238   -C, --config-cache      alias for \`--cache-file=config.cache'
1239   -n, --no-create         do not create output files
1240       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1241
1242 Installation directories:
1243   --prefix=PREFIX         install architecture-independent files in PREFIX
1244                           [$ac_default_prefix]
1245   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1246                           [PREFIX]
1247
1248 By default, \`make install' will install all the files in
1249 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1250 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1251 for instance \`--prefix=\$HOME'.
1252
1253 For better control, use the options below.
1254
1255 Fine tuning of the installation directories:
1256   --bindir=DIR           user executables [EPREFIX/bin]
1257   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1258   --libexecdir=DIR       program executables [EPREFIX/libexec]
1259   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1260   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1261   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1262   --libdir=DIR           object code libraries [EPREFIX/lib]
1263   --includedir=DIR       C header files [PREFIX/include]
1264   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1265   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1266   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1267   --infodir=DIR          info documentation [DATAROOTDIR/info]
1268   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1269   --mandir=DIR           man documentation [DATAROOTDIR/man]
1270   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1271   --htmldir=DIR          html documentation [DOCDIR]
1272   --dvidir=DIR           dvi documentation [DOCDIR]
1273   --pdfdir=DIR           pdf documentation [DOCDIR]
1274   --psdir=DIR            ps documentation [DOCDIR]
1275 _ACEOF
1276
1277   cat <<\_ACEOF
1278
1279 System types:
1280   --build=BUILD     configure for building on BUILD [guessed]
1281   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1282   --target=TARGET   configure for building compilers for TARGET [HOST]
1283 _ACEOF
1284 fi
1285
1286 if test -n "$ac_init_help"; then
1287
1288   cat <<\_ACEOF
1289
1290 Optional Features:
1291   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1292   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1293   --disable-largefile     omit support for large files
1294   --disable-protochain    disable \"protochain\" insn
1295   --enable-ipv6           build IPv6-capable version [default=yes, if
1296                           getaddrinfo available]
1297   --enable-optimizer-dbg  build optimizer debugging code
1298   --enable-yydebug        build parser debugging code
1299   --disable-universal     don't build universal on OS X
1300   --enable-bluetooth      enable Bluetooth support [default=yes, if support
1301                           available]
1302   --enable-can            enable CAN support [default=yes, if support
1303                           available]
1304
1305 Optional Packages:
1306   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1307   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1308   --without-gcc           don't use gcc
1309   --with-sita             include SITA support
1310   --with-pcap=TYPE        use packet capture TYPE
1311   --without-libnl         disable libnl support [default=yes, on Linux, if
1312                           present]
1313   --with-dag[=DIR]        include Endace DAG support ["yes", "no" or DIR;
1314                           default="yes" on BSD and Linux if present]
1315   --with-dag-includes=DIR Endace DAG include directory
1316   --with-dag-libraries=DIR
1317                           Endace DAG library directory
1318   --with-septel[=DIR]     include Septel support (located in directory DIR, if
1319                           supplied). [default=yes, on Linux, if present]
1320   --with-snf[=DIR]        include Myricom SNF support ["yes", "no" or DIR;
1321                           default="yes" on BSD and Linux if present]
1322   --with-snf-includes=DIR Myricom SNF include directory
1323   --with-snf-libraries=DIR
1324                           Myricom SNF library directory
1325   --without-flex          don't use flex
1326   --without-bison         don't use bison
1327
1328 Some influential environment variables:
1329   CC          C compiler command
1330   CFLAGS      C compiler flags
1331   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1332               nonstandard directory <lib dir>
1333   LIBS        libraries to pass to the linker, e.g. -l<library>
1334   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1335               you have headers in a nonstandard directory <include dir>
1336   CPP         C preprocessor
1337
1338 Use these variables to override the choices made by `configure' or to help
1339 it to find libraries and programs with nonstandard names/locations.
1340
1341 _ACEOF
1342 ac_status=$?
1343 fi
1344
1345 if test "$ac_init_help" = "recursive"; then
1346   # If there are subdirs, report their specific --help.
1347   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348     test -d "$ac_dir" || continue
1349     ac_builddir=.
1350
1351 case "$ac_dir" in
1352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *)
1354   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1355   # A ".." for each directory in $ac_dir_suffix.
1356   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1357   case $ac_top_builddir_sub in
1358   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360   esac ;;
1361 esac
1362 ac_abs_top_builddir=$ac_pwd
1363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir=$ac_top_build_prefix
1366
1367 case $srcdir in
1368   .)  # We are building in place.
1369     ac_srcdir=.
1370     ac_top_srcdir=$ac_top_builddir_sub
1371     ac_abs_top_srcdir=$ac_pwd ;;
1372   [\\/]* | ?:[\\/]* )  # Absolute name.
1373     ac_srcdir=$srcdir$ac_dir_suffix;
1374     ac_top_srcdir=$srcdir
1375     ac_abs_top_srcdir=$srcdir ;;
1376   *) # Relative name.
1377     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378     ac_top_srcdir=$ac_top_build_prefix$srcdir
1379     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 esac
1381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383     cd "$ac_dir" || { ac_status=$?; continue; }
1384     # Check for guested configure.
1385     if test -f "$ac_srcdir/configure.gnu"; then
1386       echo &&
1387       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388     elif test -f "$ac_srcdir/configure"; then
1389       echo &&
1390       $SHELL "$ac_srcdir/configure" --help=recursive
1391     else
1392       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393     fi || ac_status=$?
1394     cd "$ac_pwd" || { ac_status=$?; break; }
1395   done
1396 fi
1397
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1400   cat <<\_ACEOF
1401 configure
1402 generated by GNU Autoconf 2.61
1403
1404 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1405 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1406 This configure script is free software; the Free Software Foundation
1407 gives unlimited permission to copy, distribute and modify it.
1408 _ACEOF
1409   exit
1410 fi
1411 cat >config.log <<_ACEOF
1412 This file contains any messages produced by compilers while
1413 running configure, to aid debugging if configure makes a mistake.
1414
1415 It was created by $as_me, which was
1416 generated by GNU Autoconf 2.61.  Invocation command line was
1417
1418   $ $0 $@
1419
1420 _ACEOF
1421 exec 5>>config.log
1422 {
1423 cat <<_ASUNAME
1424 ## --------- ##
1425 ## Platform. ##
1426 ## --------- ##
1427
1428 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1429 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1430 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1431 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1432 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1433
1434 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1435 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1436
1437 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1438 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1439 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1440 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1441 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1442 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1443 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1444
1445 _ASUNAME
1446
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450   IFS=$as_save_IFS
1451   test -z "$as_dir" && as_dir=.
1452   echo "PATH: $as_dir"
1453 done
1454 IFS=$as_save_IFS
1455
1456 } >&5
1457
1458 cat >&5 <<_ACEOF
1459
1460
1461 ## ----------- ##
1462 ## Core tests. ##
1463 ## ----------- ##
1464
1465 _ACEOF
1466
1467
1468 # Keep a trace of the command line.
1469 # Strip out --no-create and --no-recursion so they do not pile up.
1470 # Strip out --silent because we don't want to record it for future runs.
1471 # Also quote any args containing shell meta-characters.
1472 # Make two passes to allow for proper duplicate-argument suppression.
1473 ac_configure_args=
1474 ac_configure_args0=
1475 ac_configure_args1=
1476 ac_must_keep_next=false
1477 for ac_pass in 1 2
1478 do
1479   for ac_arg
1480   do
1481     case $ac_arg in
1482     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1483     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1484     | -silent | --silent | --silen | --sile | --sil)
1485       continue ;;
1486     *\'*)
1487       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1488     esac
1489     case $ac_pass in
1490     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1491     2)
1492       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1493       if test $ac_must_keep_next = true; then
1494         ac_must_keep_next=false # Got value, back to normal.
1495       else
1496         case $ac_arg in
1497           *=* | --config-cache | -C | -disable-* | --disable-* \
1498           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1499           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1500           | -with-* | --with-* | -without-* | --without-* | --x)
1501             case "$ac_configure_args0 " in
1502               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503             esac
1504             ;;
1505           -* ) ac_must_keep_next=true ;;
1506         esac
1507       fi
1508       ac_configure_args="$ac_configure_args '$ac_arg'"
1509       ;;
1510     esac
1511   done
1512 done
1513 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1514 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1515
1516 # When interrupted or exit'd, cleanup temporary files, and complete
1517 # config.log.  We remove comments because anyway the quotes in there
1518 # would cause problems or look ugly.
1519 # WARNING: Use '\'' to represent an apostrophe within the trap.
1520 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1521 trap 'exit_status=$?
1522   # Save into config.log some information that might help in debugging.
1523   {
1524     echo
1525
1526     cat <<\_ASBOX
1527 ## ---------------- ##
1528 ## Cache variables. ##
1529 ## ---------------- ##
1530 _ASBOX
1531     echo
1532     # The following way of writing the cache mishandles newlines in values,
1533 (
1534   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1535     eval ac_val=\$$ac_var
1536     case $ac_val in #(
1537     *${as_nl}*)
1538       case $ac_var in #(
1539       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1540 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541       esac
1542       case $ac_var in #(
1543       _ | IFS | as_nl) ;; #(
1544       *) $as_unset $ac_var ;;
1545       esac ;;
1546     esac
1547   done
1548   (set) 2>&1 |
1549     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1550     *${as_nl}ac_space=\ *)
1551       sed -n \
1552         "s/'\''/'\''\\\\'\'''\''/g;
1553           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554       ;; #(
1555     *)
1556       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1557       ;;
1558     esac |
1559     sort
1560 )
1561     echo
1562
1563     cat <<\_ASBOX
1564 ## ----------------- ##
1565 ## Output variables. ##
1566 ## ----------------- ##
1567 _ASBOX
1568     echo
1569     for ac_var in $ac_subst_vars
1570     do
1571       eval ac_val=\$$ac_var
1572       case $ac_val in
1573       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574       esac
1575       echo "$ac_var='\''$ac_val'\''"
1576     done | sort
1577     echo
1578
1579     if test -n "$ac_subst_files"; then
1580       cat <<\_ASBOX
1581 ## ------------------- ##
1582 ## File substitutions. ##
1583 ## ------------------- ##
1584 _ASBOX
1585       echo
1586       for ac_var in $ac_subst_files
1587       do
1588         eval ac_val=\$$ac_var
1589         case $ac_val in
1590         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1591         esac
1592         echo "$ac_var='\''$ac_val'\''"
1593       done | sort
1594       echo
1595     fi
1596
1597     if test -s confdefs.h; then
1598       cat <<\_ASBOX
1599 ## ----------- ##
1600 ## confdefs.h. ##
1601 ## ----------- ##
1602 _ASBOX
1603       echo
1604       cat confdefs.h
1605       echo
1606     fi
1607     test "$ac_signal" != 0 &&
1608       echo "$as_me: caught signal $ac_signal"
1609     echo "$as_me: exit $exit_status"
1610   } >&5
1611   rm -f core *.core core.conftest.* &&
1612     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613     exit $exit_status
1614 ' 0
1615 for ac_signal in 1 2 13 15; do
1616   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1617 done
1618 ac_signal=0
1619
1620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1621 rm -f -r conftest* confdefs.h
1622
1623 # Predefined preprocessor variables.
1624
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_NAME "$PACKAGE_NAME"
1627 _ACEOF
1628
1629
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1632 _ACEOF
1633
1634
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1637 _ACEOF
1638
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_STRING "$PACKAGE_STRING"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1647 _ACEOF
1648
1649
1650 # Let the site file select an alternate cache file if it wants to.
1651 # Prefer explicitly selected file to automatically selected ones.
1652 if test -n "$CONFIG_SITE"; then
1653   set x "$CONFIG_SITE"
1654 elif test "x$prefix" != xNONE; then
1655   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1656 else
1657   set x "$ac_default_prefix/share/config.site" \
1658         "$ac_default_prefix/etc/config.site"
1659 fi
1660 shift
1661 for ac_site_file
1662 do
1663   if test -r "$ac_site_file"; then
1664     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1665 echo "$as_me: loading site script $ac_site_file" >&6;}
1666     sed 's/^/| /' "$ac_site_file" >&5
1667     . "$ac_site_file"
1668   fi
1669 done
1670
1671 if test -r "$cache_file"; then
1672   # Some versions of bash will fail to source /dev/null (special
1673   # files actually), so we avoid doing that.
1674   if test -f "$cache_file"; then
1675     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1676 echo "$as_me: loading cache $cache_file" >&6;}
1677     case $cache_file in
1678       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1679       *)                      . "./$cache_file";;
1680     esac
1681   fi
1682 else
1683   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1684 echo "$as_me: creating cache $cache_file" >&6;}
1685   >$cache_file
1686 fi
1687
1688 # Check that the precious variables saved in the cache have kept the same
1689 # value.
1690 ac_cache_corrupted=false
1691 for ac_var in $ac_precious_vars; do
1692   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1693   eval ac_new_set=\$ac_env_${ac_var}_set
1694   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1695   eval ac_new_val=\$ac_env_${ac_var}_value
1696   case $ac_old_set,$ac_new_set in
1697     set,)
1698       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1699 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1700       ac_cache_corrupted=: ;;
1701     ,set)
1702       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1703 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1704       ac_cache_corrupted=: ;;
1705     ,);;
1706     *)
1707       if test "x$ac_old_val" != "x$ac_new_val"; then
1708         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1709 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1710         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1711 echo "$as_me:   former value:  $ac_old_val" >&2;}
1712         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1713 echo "$as_me:   current value: $ac_new_val" >&2;}
1714         ac_cache_corrupted=:
1715       fi;;
1716   esac
1717   # Pass precious variables to config.status.
1718   if test "$ac_new_set" = set; then
1719     case $ac_new_val in
1720     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1721     *) ac_arg=$ac_var=$ac_new_val ;;
1722     esac
1723     case " $ac_configure_args " in
1724       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1725       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1726     esac
1727   fi
1728 done
1729 if $ac_cache_corrupted; then
1730   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1731 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1732   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1733 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1734    { (exit 1); exit 1; }; }
1735 fi
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753 ac_ext=c
1754 ac_cpp='$CPP $CPPFLAGS'
1755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1758
1759
1760
1761 ac_aux_dir=
1762 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1763   if test -f "$ac_dir/install-sh"; then
1764     ac_aux_dir=$ac_dir
1765     ac_install_sh="$ac_aux_dir/install-sh -c"
1766     break
1767   elif test -f "$ac_dir/install.sh"; then
1768     ac_aux_dir=$ac_dir
1769     ac_install_sh="$ac_aux_dir/install.sh -c"
1770     break
1771   elif test -f "$ac_dir/shtool"; then
1772     ac_aux_dir=$ac_dir
1773     ac_install_sh="$ac_aux_dir/shtool install -c"
1774     break
1775   fi
1776 done
1777 if test -z "$ac_aux_dir"; then
1778   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1779 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1780    { (exit 1); exit 1; }; }
1781 fi
1782
1783 # These three variables are undocumented and unsupported,
1784 # and are intended to be withdrawn in a future Autoconf release.
1785 # They can cause serious problems if a builder's source tree is in a directory
1786 # whose full name contains unusual characters.
1787 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1788 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1789 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1790
1791
1792 # Make sure we can run config.sub.
1793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1794   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1795 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1796    { (exit 1); exit 1; }; }
1797
1798 { echo "$as_me:$LINENO: checking build system type" >&5
1799 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1800 if test "${ac_cv_build+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   ac_build_alias=$build_alias
1804 test "x$ac_build_alias" = x &&
1805   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1806 test "x$ac_build_alias" = x &&
1807   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1809    { (exit 1); exit 1; }; }
1810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1811   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1812 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1813    { (exit 1); exit 1; }; }
1814
1815 fi
1816 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1817 echo "${ECHO_T}$ac_cv_build" >&6; }
1818 case $ac_cv_build in
1819 *-*-*) ;;
1820 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1821 echo "$as_me: error: invalid value of canonical build" >&2;}
1822    { (exit 1); exit 1; }; };;
1823 esac
1824 build=$ac_cv_build
1825 ac_save_IFS=$IFS; IFS='-'
1826 set x $ac_cv_build
1827 shift
1828 build_cpu=$1
1829 build_vendor=$2
1830 shift; shift
1831 # Remember, the first character of IFS is used to create $*,
1832 # except with old shells:
1833 build_os=$*
1834 IFS=$ac_save_IFS
1835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1836
1837
1838 { echo "$as_me:$LINENO: checking host system type" >&5
1839 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1840 if test "${ac_cv_host+set}" = set; then
1841   echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843   if test "x$host_alias" = x; then
1844   ac_cv_host=$ac_cv_build
1845 else
1846   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1847     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1849    { (exit 1); exit 1; }; }
1850 fi
1851
1852 fi
1853 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1854 echo "${ECHO_T}$ac_cv_host" >&6; }
1855 case $ac_cv_host in
1856 *-*-*) ;;
1857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1858 echo "$as_me: error: invalid value of canonical host" >&2;}
1859    { (exit 1); exit 1; }; };;
1860 esac
1861 host=$ac_cv_host
1862 ac_save_IFS=$IFS; IFS='-'
1863 set x $ac_cv_host
1864 shift
1865 host_cpu=$1
1866 host_vendor=$2
1867 shift; shift
1868 # Remember, the first character of IFS is used to create $*,
1869 # except with old shells:
1870 host_os=$*
1871 IFS=$ac_save_IFS
1872 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1873
1874
1875 { echo "$as_me:$LINENO: checking target system type" >&5
1876 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1877 if test "${ac_cv_target+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test "x$target_alias" = x; then
1881   ac_cv_target=$ac_cv_host
1882 else
1883   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1884     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1886    { (exit 1); exit 1; }; }
1887 fi
1888
1889 fi
1890 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1891 echo "${ECHO_T}$ac_cv_target" >&6; }
1892 case $ac_cv_target in
1893 *-*-*) ;;
1894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1895 echo "$as_me: error: invalid value of canonical target" >&2;}
1896    { (exit 1); exit 1; }; };;
1897 esac
1898 target=$ac_cv_target
1899 ac_save_IFS=$IFS; IFS='-'
1900 set x $ac_cv_target
1901 shift
1902 target_cpu=$1
1903 target_vendor=$2
1904 shift; shift
1905 # Remember, the first character of IFS is used to create $*,
1906 # except with old shells:
1907 target_os=$*
1908 IFS=$ac_save_IFS
1909 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1910
1911
1912 # The aliases save the names the user supplied, while $host etc.
1913 # will get canonicalized.
1914 test -n "$target_alias" &&
1915   test "$program_prefix$program_suffix$program_transform_name" = \
1916     NONENONEs,x,x, &&
1917   program_prefix=${target_alias}-
1918
1919
1920
1921
1922
1923
1924
1925 # Check whether --with-gcc was given.
1926 if test "${with_gcc+set}" = set; then
1927   withval=$with_gcc;
1928 fi
1929
1930     V_CCOPT="-O"
1931     V_INCLS=""
1932     if test "${srcdir}" != "." ; then
1933             V_INCLS="-I\$(srcdir)"
1934     fi
1935     if test "${CFLAGS+set}" = set; then
1936             LBL_CFLAGS="$CFLAGS"
1937     fi
1938     if test -z "$CC" ; then
1939             case "$host_os" in
1940
1941             bsdi*)
1942                     # Extract the first word of "shlicc2", so it can be a program name with args.
1943 set dummy shlicc2; ac_word=$2
1944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1946 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   if test -n "$SHLICC2"; then
1950   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957   for ac_exec_ext in '' $ac_executable_extensions; do
1958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1959     ac_cv_prog_SHLICC2="yes"
1960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964 done
1965 IFS=$as_save_IFS
1966
1967   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1968 fi
1969 fi
1970 SHLICC2=$ac_cv_prog_SHLICC2
1971 if test -n "$SHLICC2"; then
1972   { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1973 echo "${ECHO_T}$SHLICC2" >&6; }
1974 else
1975   { echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6; }
1977 fi
1978
1979
1980                     if test $SHLICC2 = yes ; then
1981                             CC=shlicc2
1982                             export CC
1983                     fi
1984                     ;;
1985             esac
1986     fi
1987     if test -z "$CC" -a "$with_gcc" = no ; then
1988             CC=cc
1989             export CC
1990     fi
1991
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 if test -n "$ac_tool_prefix"; then
1998   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$CC"; then
2006   ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021 IFS=$as_save_IFS
2022
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   { echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6; }
2029 else
2030   { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2032 fi
2033
2034
2035 fi
2036 if test -z "$ac_cv_prog_CC"; then
2037   ac_ct_CC=$CC
2038   # Extract the first word of "gcc", so it can be a program name with args.
2039 set dummy gcc; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_CC"; then
2046   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055     ac_cv_prog_ac_ct_CC="gcc"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061 IFS=$as_save_IFS
2062
2063 fi
2064 fi
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6; }
2069 else
2070   { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074   if test "x$ac_ct_CC" = x; then
2075     CC=""
2076   else
2077     case $cross_compiling:$ac_tool_warned in
2078 yes:)
2079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2080 whose name does not start with the host triplet.  If you think this
2081 configuration is useful to you, please write to autoconf@gnu.org." >&5
2082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2083 whose name does not start with the host triplet.  If you think this
2084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2085 ac_tool_warned=yes ;;
2086 esac
2087     CC=$ac_ct_CC
2088   fi
2089 else
2090   CC="$ac_cv_prog_CC"
2091 fi
2092
2093 if test -z "$CC"; then
2094           if test -n "$ac_tool_prefix"; then
2095     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}cc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   if test -n "$CC"; then
2103   ac_cv_prog_CC="$CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112     ac_cv_prog_CC="${ac_tool_prefix}cc"
2113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118 IFS=$as_save_IFS
2119
2120 fi
2121 fi
2122 CC=$ac_cv_prog_CC
2123 if test -n "$CC"; then
2124   { echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6; }
2126 else
2127   { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2129 fi
2130
2131
2132   fi
2133 fi
2134 if test -z "$CC"; then
2135   # Extract the first word of "cc", so it can be a program name with args.
2136 set dummy cc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   if test -n "$CC"; then
2143   ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else
2145   ac_prog_rejected=no
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151   for ac_exec_ext in '' $ac_executable_extensions; do
2152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2154        ac_prog_rejected=yes
2155        continue
2156      fi
2157     ac_cv_prog_CC="cc"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163 IFS=$as_save_IFS
2164
2165 if test $ac_prog_rejected = yes; then
2166   # We found a bogon in the path, so make sure we never use it.
2167   set dummy $ac_cv_prog_CC
2168   shift
2169   if test $# != 0; then
2170     # We chose a different compiler from the bogus one.
2171     # However, it has the same basename, so the bogon will be chosen
2172     # first if we set CC to just the basename; use the full file name.
2173     shift
2174     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2175   fi
2176 fi
2177 fi
2178 fi
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181   { echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6; }
2183 else
2184   { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2186 fi
2187
2188
2189 fi
2190 if test -z "$CC"; then
2191   if test -n "$ac_tool_prefix"; then
2192   for ac_prog in cl.exe
2193   do
2194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$CC"; then
2202   ac_cv_prog_CC="$CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 CC=$ac_cv_prog_CC
2222 if test -n "$CC"; then
2223   { echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6; }
2225 else
2226   { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2228 fi
2229
2230
2231     test -n "$CC" && break
2232   done
2233 fi
2234 if test -z "$CC"; then
2235   ac_ct_CC=$CC
2236   for ac_prog in cl.exe
2237 do
2238   # Extract the first word of "$ac_prog", so it can be a program name with args.
2239 set dummy $ac_prog; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2243   echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245   if test -n "$ac_ct_CC"; then
2246   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251   IFS=$as_save_IFS
2252   test -z "$as_dir" && as_dir=.
2253   for ac_exec_ext in '' $ac_executable_extensions; do
2254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255     ac_cv_prog_ac_ct_CC="$ac_prog"
2256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257     break 2
2258   fi
2259 done
2260 done
2261 IFS=$as_save_IFS
2262
2263 fi
2264 fi
2265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266 if test -n "$ac_ct_CC"; then
2267   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2268 echo "${ECHO_T}$ac_ct_CC" >&6; }
2269 else
2270   { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 fi
2273
2274
2275   test -n "$ac_ct_CC" && break
2276 done
2277
2278   if test "x$ac_ct_CC" = x; then
2279     CC=""
2280   else
2281     case $cross_compiling:$ac_tool_warned in
2282 yes:)
2283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2284 whose name does not start with the host triplet.  If you think this
2285 configuration is useful to you, please write to autoconf@gnu.org." >&5
2286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2287 whose name does not start with the host triplet.  If you think this
2288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2289 ac_tool_warned=yes ;;
2290 esac
2291     CC=$ac_ct_CC
2292   fi
2293 fi
2294
2295 fi
2296
2297
2298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: no acceptable C compiler found in \$PATH
2301 See \`config.log' for more details." >&2;}
2302    { (exit 1); exit 1; }; }
2303
2304 # Provide some information about the compiler.
2305 echo "$as_me:$LINENO: checking for C compiler version" >&5
2306 ac_compiler=`set X $ac_compile; echo $2`
2307 { (ac_try="$ac_compiler --version >&5"
2308 case "(($ac_try" in
2309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310   *) ac_try_echo=$ac_try;;
2311 esac
2312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2313   (eval "$ac_compiler --version >&5") 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }
2317 { (ac_try="$ac_compiler -v >&5"
2318 case "(($ac_try" in
2319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320   *) ac_try_echo=$ac_try;;
2321 esac
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323   (eval "$ac_compiler -v >&5") 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }
2327 { (ac_try="$ac_compiler -V >&5"
2328 case "(($ac_try" in
2329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330   *) ac_try_echo=$ac_try;;
2331 esac
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333   (eval "$ac_compiler -V >&5") 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }
2337
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h.  */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h.  */
2344
2345 int
2346 main ()
2347 {
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 #
2362 # List of possible output files, starting from the most likely.
2363 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2364 # only as a last resort.  b.out is created by i960 compilers.
2365 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2366 #
2367 # The IRIX 6 linker writes into existing files which may not be
2368 # executable, retaining their permissions.  Remove them first so a
2369 # subsequent execution test works.
2370 ac_rmfiles=
2371 for ac_file in $ac_files
2372 do
2373   case $ac_file in
2374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2375     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2376   esac
2377 done
2378 rm -f $ac_rmfiles
2379
2380 if { (ac_try="$ac_link_default"
2381 case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_link_default") 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; then
2390   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2391 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2392 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2393 # so that the user can short-circuit this test for compilers unknown to
2394 # Autoconf.
2395 for ac_file in $ac_files ''
2396 do
2397   test -f "$ac_file" || continue
2398   case $ac_file in
2399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2400         ;;
2401     [ab].out )
2402         # We found the default executable, but exeext='' is most
2403         # certainly right.
2404         break;;
2405     *.* )
2406         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2407         then :; else
2408            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409         fi
2410         # We set ac_cv_exeext here because the later test for it is not
2411         # safe: cross compilers may not add the suffix if given an `-o'
2412         # argument, so we may need to know it at that point already.
2413         # Even if this section looks crufty: it has the advantage of
2414         # actually working.
2415         break;;
2416     * )
2417         break;;
2418   esac
2419 done
2420 test "$ac_cv_exeext" = no && ac_cv_exeext=
2421
2422 else
2423   ac_file=''
2424 fi
2425
2426 { echo "$as_me:$LINENO: result: $ac_file" >&5
2427 echo "${ECHO_T}$ac_file" >&6; }
2428 if test -z "$ac_file"; then
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&2;}
2436    { (exit 77); exit 77; }; }
2437 fi
2438
2439 ac_exeext=$ac_cv_exeext
2440
2441 # Check that the compiler produces executables we can run.  If not, either
2442 # the compiler is broken, or we cross compile.
2443 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2444 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2445 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2446 # If not cross compiling, check that we can run a simple program.
2447 if test "$cross_compiling" != yes; then
2448   if { ac_try='./$ac_file'
2449   { (case "(($ac_try" in
2450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451   *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454   (eval "$ac_try") 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }; }; then
2458     cross_compiling=no
2459   else
2460     if test "$cross_compiling" = maybe; then
2461         cross_compiling=yes
2462     else
2463         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot run C compiled programs.
2467 If you meant to cross compile, use \`--host'.
2468 See \`config.log' for more details." >&2;}
2469    { (exit 1); exit 1; }; }
2470     fi
2471   fi
2472 fi
2473 { echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6; }
2475
2476 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check that the compiler produces executables we can run.  If not, either
2479 # the compiler is broken, or we cross compile.
2480 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2482 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483 echo "${ECHO_T}$cross_compiling" >&6; }
2484
2485 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2487 if { (ac_try="$ac_link"
2488 case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_link") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; then
2497   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2498 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2499 # work properly (i.e., refer to `conftest.exe'), while it won't with
2500 # `rm'.
2501 for ac_file in conftest.exe conftest conftest.*; do
2502   test -f "$ac_file" || continue
2503   case $ac_file in
2504     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2505     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506           break;;
2507     * ) break;;
2508   esac
2509 done
2510 else
2511   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2514 See \`config.log' for more details." >&2;}
2515    { (exit 1); exit 1; }; }
2516 fi
2517
2518 rm -f conftest$ac_cv_exeext
2519 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2520 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2521
2522 rm -f conftest.$ac_ext
2523 EXEEXT=$ac_cv_exeext
2524 ac_exeext=$EXEEXT
2525 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2526 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2527 if test "${ac_cv_objext+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536
2537 int
2538 main ()
2539 {
2540
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.o conftest.obj
2546 if { (ac_try="$ac_compile"
2547 case "(($ac_try" in
2548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549   *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552   (eval "$ac_compile") 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; then
2556   for ac_file in conftest.o conftest.obj conftest.*; do
2557   test -f "$ac_file" || continue;
2558   case $ac_file in
2559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2560     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2561        break;;
2562   esac
2563 done
2564 else
2565   echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2571 See \`config.log' for more details." >&2;}
2572    { (exit 1); exit 1; }; }
2573 fi
2574
2575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2576 fi
2577 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2578 echo "${ECHO_T}$ac_cv_objext" >&6; }
2579 OBJEXT=$ac_cv_objext
2580 ac_objext=$OBJEXT
2581 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596 #ifndef __GNUC__
2597        choke me
2598 #endif
2599
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (ac_try="$ac_compile"
2606 case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_compile") 2>conftest.er1
2612   ac_status=$?
2613   grep -v '^ *+' conftest.er1 >conftest.err
2614   rm -f conftest.er1
2615   cat conftest.err >&5
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); } && {
2618          test -z "$ac_c_werror_flag" ||
2619          test ! -s conftest.err
2620        } && test -s conftest.$ac_objext; then
2621   ac_compiler_gnu=yes
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626         ac_compiler_gnu=no
2627 fi
2628
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2631
2632 fi
2633 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2635 GCC=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CFLAGS=${CFLAGS+set}
2637 ac_save_CFLAGS=$CFLAGS
2638 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2639 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_cc_g+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   ac_save_c_werror_flag=$ac_c_werror_flag
2644    ac_c_werror_flag=yes
2645    ac_cv_prog_cc_g=no
2646    CFLAGS="-g"
2647    cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653
2654 int
2655 main ()
2656 {
2657
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (ac_try="$ac_compile"
2664 case "(($ac_try" in
2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666   *) ac_try_echo=$ac_try;;
2667 esac
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669   (eval "$ac_compile") 2>conftest.er1
2670   ac_status=$?
2671   grep -v '^ *+' conftest.er1 >conftest.err
2672   rm -f conftest.er1
2673   cat conftest.err >&5
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); } && {
2676          test -z "$ac_c_werror_flag" ||
2677          test ! -s conftest.err
2678        } && test -s conftest.$ac_objext; then
2679   ac_cv_prog_cc_g=yes
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684         CFLAGS=""
2685       cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_compile") 2>conftest.er1
2708   ac_status=$?
2709   grep -v '^ *+' conftest.er1 >conftest.err
2710   rm -f conftest.er1
2711   cat conftest.err >&5
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } && {
2714          test -z "$ac_c_werror_flag" ||
2715          test ! -s conftest.err
2716        } && test -s conftest.$ac_objext; then
2717   :
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722         ac_c_werror_flag=$ac_save_c_werror_flag
2723          CFLAGS="-g"
2724          cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730
2731 int
2732 main ()
2733 {
2734
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746   (eval "$ac_compile") 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } && {
2753          test -z "$ac_c_werror_flag" ||
2754          test ! -s conftest.err
2755        } && test -s conftest.$ac_objext; then
2756   ac_cv_prog_cc_g=yes
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761
2762 fi
2763
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 fi
2766
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771    ac_c_werror_flag=$ac_save_c_werror_flag
2772 fi
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2775 if test "$ac_test_CFLAGS" = set; then
2776   CFLAGS=$ac_save_CFLAGS
2777 elif test $ac_cv_prog_cc_g = yes; then
2778   if test "$GCC" = yes; then
2779     CFLAGS="-g -O2"
2780   else
2781     CFLAGS="-g"
2782   fi
2783 else
2784   if test "$GCC" = yes; then
2785     CFLAGS="-O2"
2786   else
2787     CFLAGS=
2788   fi
2789 fi
2790 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2791 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_cc_c89+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   ac_cv_prog_cc_c89=no
2796 ac_save_CC=$CC
2797 cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2803 #include <stdarg.h>
2804 #include <stdio.h>
2805 #include <sys/types.h>
2806 #include <sys/stat.h>
2807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2808 struct buf { int x; };
2809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2810 static char *e (p, i)
2811      char **p;
2812      int i;
2813 {
2814   return p[i];
2815 }
2816 static char *f (char * (*g) (char **, int), char **p, ...)
2817 {
2818   char *s;
2819   va_list v;
2820   va_start (v,p);
2821   s = g (p, va_arg (v,int));
2822   va_end (v);
2823   return s;
2824 }
2825
2826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2827    function prototypes and stuff, but not '\xHH' hex character constants.
2828    These don't provoke an error unfortunately, instead are silently treated
2829    as 'x'.  The following induces an error, until -std is added to get
2830    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2831    array size at least.  It's necessary to write '\x00'==0 to get something
2832    that's true only with -std.  */
2833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2834
2835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2836    inside strings and character constants.  */
2837 #define FOO(x) 'x'
2838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2839
2840 int test (int i, double x);
2841 struct s1 {int (*f) (int a);};
2842 struct s2 {int (*f) (double a);};
2843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2844 int argc;
2845 char **argv;
2846 int
2847 main ()
2848 {
2849 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2850   ;
2851   return 0;
2852 }
2853 _ACEOF
2854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2855         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2856 do
2857   CC="$ac_save_CC $ac_arg"
2858   rm -f conftest.$ac_objext
2859 if { (ac_try="$ac_compile"
2860 case "(($ac_try" in
2861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862   *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865   (eval "$ac_compile") 2>conftest.er1
2866   ac_status=$?
2867   grep -v '^ *+' conftest.er1 >conftest.err
2868   rm -f conftest.er1
2869   cat conftest.err >&5
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } && {
2872          test -z "$ac_c_werror_flag" ||
2873          test ! -s conftest.err
2874        } && test -s conftest.$ac_objext; then
2875   ac_cv_prog_cc_c89=$ac_arg
2876 else
2877   echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880
2881 fi
2882
2883 rm -f core conftest.err conftest.$ac_objext
2884   test "x$ac_cv_prog_cc_c89" != "xno" && break
2885 done
2886 rm -f conftest.$ac_ext
2887 CC=$ac_save_CC
2888
2889 fi
2890 # AC_CACHE_VAL
2891 case "x$ac_cv_prog_cc_c89" in
2892   x)
2893     { echo "$as_me:$LINENO: result: none needed" >&5
2894 echo "${ECHO_T}none needed" >&6; } ;;
2895   xno)
2896     { echo "$as_me:$LINENO: result: unsupported" >&5
2897 echo "${ECHO_T}unsupported" >&6; } ;;
2898   *)
2899     CC="$CC $ac_cv_prog_cc_c89"
2900     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2902 esac
2903
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911
2912
2913
2914
2915     if test "$GCC" = yes ; then
2916             if test "$SHLICC2" = yes ; then
2917                     ac_cv_lbl_gcc_vers=2
2918                     V_CCOPT="-O2"
2919             else
2920                     { echo "$as_me:$LINENO: checking gcc version" >&5
2921 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2922                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2926                             sed -e '/^gcc version /!d' \
2927                                 -e 's/^gcc version //' \
2928                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2929                                 -e 's/\..*//'`
2930 fi
2931
2932                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2933 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2934                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2935                             V_CCOPT="-O2"
2936                     fi
2937             fi
2938     else
2939             { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2940 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2941             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944
2945 cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951 #include <sys/types.h>
2952 int
2953 main ()
2954 {
2955 int frob(int, char *)
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967   (eval "$ac_compile") 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } && {
2974          test -z "$ac_c_werror_flag" ||
2975          test ! -s conftest.err
2976        } && test -s conftest.$ac_objext; then
2977   ac_cv_lbl_cc_ansi_prototypes=yes
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982         ac_cv_lbl_cc_ansi_prototypes=no
2983 fi
2984
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 fi
2987
2988             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2989 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2990             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2991                     case "$host_os" in
2992
2993                     hpux*)
2994                             { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2995 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2996                             savedcflags="$CFLAGS"
2997                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2998                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 #include <sys/types.h>
3008 int
3009 main ()
3010 {
3011 int frob(int, char *)
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_compile") 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } && {
3030          test -z "$ac_c_werror_flag" ||
3031          test ! -s conftest.err
3032        } && test -s conftest.$ac_objext; then
3033   ac_cv_lbl_cc_hpux_cc_aa=yes
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038         ac_cv_lbl_cc_hpux_cc_aa=no
3039 fi
3040
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 fi
3043
3044                             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3045 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3046                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3047                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3048 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3049    { (exit 1); exit 1; }; }
3050                             fi
3051                             CFLAGS="$savedcflags"
3052                             V_CCOPT="-Aa $V_CCOPT"
3053
3054 cat >>confdefs.h <<\_ACEOF
3055 #define _HPUX_SOURCE 1
3056 _ACEOF
3057
3058                             ;;
3059
3060                     osf*)
3061                             { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3062 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3063                             savedcflags="$CFLAGS"
3064                             CFLAGS="-std1"
3065                             if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074 #include <sys/types.h>
3075 int
3076 main ()
3077 {
3078 int frob(int, char *)
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_compile") 2>conftest.er1
3091   ac_status=$?
3092   grep -v '^ *+' conftest.er1 >conftest.err
3093   rm -f conftest.er1
3094   cat conftest.err >&5
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } && {
3097          test -z "$ac_c_werror_flag" ||
3098          test ! -s conftest.err
3099        } && test -s conftest.$ac_objext; then
3100   ac_cv_lbl_cc_osf1_cc_std1=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105         ac_cv_lbl_cc_osf1_cc_std1=no
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110
3111                             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3113                             if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3114                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3115 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3116    { (exit 1); exit 1; }; }
3117                             fi
3118                             CFLAGS="$savedcflags"
3119                             V_CCOPT="-std1 $V_CCOPT"
3120                             ;;
3121
3122                     *)
3123                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3124 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3125    { (exit 1); exit 1; }; }
3126                             ;;
3127                     esac
3128             fi
3129             V_INCLS="$V_INCLS -I/usr/local/include"
3130             LDFLAGS="$LDFLAGS -L/usr/local/lib"
3131
3132             case "$host_os" in
3133
3134             irix*)
3135                     V_CCOPT="$V_CCOPT -xansi -signed -g3"
3136                     ;;
3137
3138             osf*)
3139                     #
3140                     # Presumed to be DEC OSF/1, Digital UNIX, or
3141                     # Tru64 UNIX.
3142                     #
3143                     V_CCOPT="$V_CCOPT -g3"
3144                     ;;
3145
3146             ultrix*)
3147                     { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3148 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3149                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158 #include <sys/types.h>
3159 int
3160 main ()
3161 {
3162 struct a { int b; };
3163                             void c(const struct a *)
3164   ;
3165   return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_compile") 2>conftest.er1
3176   ac_status=$?
3177   grep -v '^ *+' conftest.er1 >conftest.err
3178   rm -f conftest.er1
3179   cat conftest.err >&5
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); } && {
3182          test -z "$ac_c_werror_flag" ||
3183          test ! -s conftest.err
3184        } && test -s conftest.$ac_objext; then
3185   ac_cv_lbl_cc_const_proto=yes
3186 else
3187   echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190         ac_cv_lbl_cc_const_proto=no
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195
3196                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3197 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3198                     if test $ac_cv_lbl_cc_const_proto = no ; then
3199
3200 cat >>confdefs.h <<\_ACEOF
3201 #define const
3202 _ACEOF
3203
3204                     fi
3205                     ;;
3206             esac
3207     fi
3208
3209
3210     if test "$GCC" = yes ; then
3211             #
3212             # On platforms where we build a shared library:
3213             #
3214             #   add options to generate position-independent code,
3215             #   if necessary (it's the default in AIX and Darwin/OS X);
3216             #
3217             #   define option to set the soname of the shared library,
3218             #   if the OS supports that;
3219             #
3220             #   add options to specify, at link time, a directory to
3221             #   add to the run-time search path, if that's necessary.
3222             #
3223             V_SHLIB_CMD="\$(CC)"
3224             V_SHLIB_OPT="-shared"
3225             case "$host_os" in
3226
3227             aix*)
3228                     ;;
3229
3230             freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3231                     #
3232                     # Platforms where the linker is the GNU linker
3233                     # or accepts command-line arguments like
3234                     # those the GNU linker accepts.
3235                     #
3236                     # Some instruction sets require -fPIC on some
3237                     # operating systems.  Check for them.  If you
3238                     # have a combination that requires it, add it
3239                     # here.
3240                     #
3241                     PIC_OPT=-fpic
3242                     case "$host_cpu" in
3243
3244                     sparc64*)
3245                         case "$host_os" in
3246
3247                         freebsd*)
3248                             PIC_OPT=-fPIC
3249                             ;;
3250                         esac
3251                         ;;
3252                     esac
3253                     V_CCOPT="$V_CCOPT $PIC_OPT"
3254                     V_SONAME_OPT="-Wl,-soname,"
3255                     V_RPATH_OPT="-Wl,-rpath,"
3256                     ;;
3257
3258             hpux*)
3259                     V_CCOPT="$V_CCOPT -fpic"
3260                     #
3261                     # XXX - this assumes GCC is using the HP linker,
3262                     # rather than the GNU linker, and that the "+h"
3263                     # option is used on all HP-UX platforms, both .sl
3264                     # and .so.
3265                     #
3266                     V_SONAME_OPT="-Wl,+h,"
3267                     #
3268                     # By default, directories specifed with -L
3269                     # are added to the run-time search path, so
3270                     # we don't add them in pcap-config.
3271                     #
3272                     ;;
3273
3274             solaris*)
3275                     V_CCOPT="$V_CCOPT -fpic"
3276                     #
3277                     # XXX - this assumes GCC is using the Sun linker,
3278                     # rather than the GNU linker.
3279                     #
3280                     V_SONAME_OPT="-Wl,-h,"
3281                     V_RPATH_OPT="-Wl,-R,"
3282                     ;;
3283             esac
3284     else
3285             #
3286             # Set the appropriate compiler flags and, on platforms
3287             # where we build a shared library:
3288             #
3289             #   add options to generate position-independent code,
3290             #   if necessary (it's the default in Darwin/OS X);
3291             #
3292             #   if we generate ".so" shared libraries, define the
3293             #   appropriate options for building the shared library;
3294             #
3295             #   add options to specify, at link time, a directory to
3296             #   add to the run-time search path, if that's necessary.
3297             #
3298             # Note: spaces after V_SONAME_OPT are significant; on
3299             # some platforms the soname is passed with a GCC-like
3300             # "-Wl,-soname,{soname}" option, with the soname part
3301             # of the option, while on other platforms the C compiler
3302             # driver takes it as a regular option with the soname
3303             # following the option.  The same applies to V_RPATH_OPT.
3304             #
3305             case "$host_os" in
3306
3307             aix*)
3308                     V_SHLIB_CMD="\$(CC)"
3309                     V_SHLIB_OPT="-G -bnoentry -bexpall"
3310                     ;;
3311
3312             freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3313                     #
3314                     # "cc" is GCC.
3315                     #
3316                     V_CCOPT="$V_CCOPT -fpic"
3317                     V_SHLIB_CMD="\$(CC)"
3318                     V_SHLIB_OPT="-shared"
3319                     V_SONAME_OPT="-Wl,-soname,"
3320                     V_RPATH_OPT="-Wl,-rpath,"
3321                     ;;
3322
3323             hpux*)
3324                     V_CCOPT="$V_CCOPT +z"
3325                     V_SHLIB_CMD="\$(LD)"
3326                     V_SHLIB_OPT="-b"
3327                     V_SONAME_OPT="+h "
3328                     #
3329                     # By default, directories specifed with -L
3330                     # are added to the run-time search path, so
3331                     # we don't add them in pcap-config.
3332                     #
3333                     ;;
3334
3335             osf*)
3336                     #
3337                     # Presumed to be DEC OSF/1, Digital UNIX, or
3338                     # Tru64 UNIX.
3339                     #
3340                     V_SHLIB_CMD="\$(CC)"
3341                     V_SHLIB_OPT="-shared"
3342                     V_SONAME_OPT="-soname "
3343                     V_RPATH_OPT="-rpath "
3344                     ;;
3345
3346             solaris*)
3347                     V_CCOPT="$V_CCOPT -Kpic"
3348                     V_SHLIB_CMD="\$(CC)"
3349                     V_SHLIB_OPT="-G"
3350                     V_SONAME_OPT="-h "
3351                     V_RPATH_OPT="-R"
3352                     ;;
3353             esac
3354     fi
3355
3356 { echo "$as_me:$LINENO: checking for inline" >&5
3357 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3358     save_CFLAGS="$CFLAGS"
3359     CFLAGS="$V_CCOPT"
3360     if test "${ac_cv_lbl_inline+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363
3364         ac_cv_lbl_inline=""
3365         ac_lbl_cc_inline=no
3366         for ac_lbl_inline in inline __inline__ __inline
3367         do
3368             cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374 #define inline $ac_lbl_inline
3375                 static inline struct iltest *foo(void);
3376                 struct iltest {
3377                     int iltest1;
3378                     int iltest2;
3379                 };
3380
3381                 static inline struct iltest *
3382                 foo()
3383                 {
3384                     static struct iltest xxx;
3385
3386                     return &xxx;
3387                 }
3388 int
3389 main ()
3390 {
3391
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_compile") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } && {
3410          test -z "$ac_c_werror_flag" ||
3411          test ! -s conftest.err
3412        } && test -s conftest.$ac_objext; then
3413   ac_lbl_cc_inline=yes
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418
3419 fi
3420
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422             if test "$ac_lbl_cc_inline" = yes ; then
3423                 break;
3424             fi
3425         done
3426         if test "$ac_lbl_cc_inline" = yes ; then
3427             ac_cv_lbl_inline=$ac_lbl_inline
3428         fi
3429 fi
3430
3431     CFLAGS="$save_CFLAGS"
3432     if test ! -z "$ac_cv_lbl_inline" ; then
3433         { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3434 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3435     else
3436         { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3438     fi
3439
3440 cat >>confdefs.h <<_ACEOF
3441 #define inline $ac_cv_lbl_inline
3442 _ACEOF
3443
3444
3445 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3446 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3447 if test "${ac_cv___attribute__+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h.  */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h.  */
3457
3458 #include <stdlib.h>
3459
3460 static void foo(void) __attribute__ ((noreturn));
3461
3462 static void
3463 foo(void)
3464 {
3465   exit(1);
3466 }
3467
3468 int
3469 main(int argc, char **argv)
3470 {
3471   foo();
3472 }
3473
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_compile") 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } && {
3489          test -z "$ac_c_werror_flag" ||
3490          test ! -s conftest.err
3491        } && test -s conftest.$ac_objext; then
3492   ac_cv___attribute__=yes
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497         ac_cv___attribute__=no
3498 fi
3499
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502
3503 if test "$ac_cv___attribute__" = "yes"; then
3504
3505 cat >>confdefs.h <<\_ACEOF
3506 #define HAVE___ATTRIBUTE__ 1
3507 _ACEOF
3508
3509   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3510 else
3511   V_DEFS="$V_DEFS -D_U_=\"\""
3512 fi
3513 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3514 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3515
3516
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3523 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3524 # On Suns, sometimes $CPP names a directory.
3525 if test -n "$CPP" && test -d "$CPP"; then
3526   CPP=
3527 fi
3528 if test -z "$CPP"; then
3529   if test "${ac_cv_prog_CPP+set}" = set; then
3530   echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532       # Double quotes because CPP needs to be expanded
3533     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3534     do
3535       ac_preproc_ok=false
3536 for ac_c_preproc_warn_flag in '' yes
3537 do
3538   # Use a header file that comes with gcc, so configuring glibc
3539   # with a fresh cross-compiler works.
3540   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541   # <limits.h> exists even on freestanding compilers.
3542   # On the NeXT, cc -E runs the code through the compiler's parser,
3543   # not just through cpp. "Syntax error" is here to catch this case.
3544   cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 #ifdef __STDC__
3551 # include <limits.h>
3552 #else
3553 # include <assert.h>
3554 #endif
3555                      Syntax error
3556 _ACEOF
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 case "(($ac_try" in
3559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560   *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } >/dev/null && {
3570          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571          test ! -s conftest.err
3572        }; then
3573   :
3574 else
3575   echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578   # Broken: fails on valid input.
3579 continue
3580 fi
3581
3582 rm -f conftest.err conftest.$ac_ext
3583
3584   # OK, works on sane cases.  Now check whether nonexistent headers
3585   # can be detected and how.
3586   cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h.  */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h.  */
3592 #include <ac_nonexistent.h>
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601   ac_status=$?
3602   grep -v '^ *+' conftest.er1 >conftest.err
3603   rm -f conftest.er1
3604   cat conftest.err >&5
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } >/dev/null && {
3607          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608          test ! -s conftest.err
3609        }; then
3610   # Broken: success on invalid input.
3611 continue
3612 else
3613   echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616   # Passes both tests.
3617 ac_preproc_ok=:
3618 break
3619 fi
3620
3621 rm -f conftest.err conftest.$ac_ext
3622
3623 done
3624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3625 rm -f conftest.err conftest.$ac_ext
3626 if $ac_preproc_ok; then
3627   break
3628 fi
3629
3630     done
3631     ac_cv_prog_CPP=$CPP
3632
3633 fi
3634   CPP=$ac_cv_prog_CPP
3635 else
3636   ac_cv_prog_CPP=$CPP
3637 fi
3638 { echo "$as_me:$LINENO: result: $CPP" >&5
3639 echo "${ECHO_T}$CPP" >&6; }
3640 ac_preproc_ok=false
3641 for ac_c_preproc_warn_flag in '' yes
3642 do
3643   # Use a header file that comes with gcc, so configuring glibc
3644   # with a fresh cross-compiler works.
3645   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646   # <limits.h> exists even on freestanding compilers.
3647   # On the NeXT, cc -E runs the code through the compiler's parser,
3648   # not just through cpp. "Syntax error" is here to catch this case.
3649   cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 #ifdef __STDC__
3656 # include <limits.h>
3657 #else
3658 # include <assert.h>
3659 #endif
3660                      Syntax error
3661 _ACEOF
3662 if { (ac_try="$ac_cpp conftest.$ac_ext"
3663 case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } >/dev/null && {
3675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3676          test ! -s conftest.err
3677        }; then
3678   :
3679 else
3680   echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683   # Broken: fails on valid input.
3684 continue
3685 fi
3686
3687 rm -f conftest.err conftest.$ac_ext
3688
3689   # OK, works on sane cases.  Now check whether nonexistent headers
3690   # can be detected and how.
3691   cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 #include <ac_nonexistent.h>
3698 _ACEOF
3699 if { (ac_try="$ac_cpp conftest.$ac_ext"
3700 case "(($ac_try" in
3701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702   *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3706   ac_status=$?
3707   grep -v '^ *+' conftest.er1 >conftest.err
3708   rm -f conftest.er1
3709   cat conftest.err >&5
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } >/dev/null && {
3712          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3713          test ! -s conftest.err
3714        }; then
3715   # Broken: success on invalid input.
3716 continue
3717 else
3718   echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721   # Passes both tests.
3722 ac_preproc_ok=:
3723 break
3724 fi
3725
3726 rm -f conftest.err conftest.$ac_ext
3727
3728 done
3729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730 rm -f conftest.err conftest.$ac_ext
3731 if $ac_preproc_ok; then
3732   :
3733 else
3734   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&5
3736 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&2;}
3738    { (exit 1); exit 1; }; }
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3750 if test "${ac_cv_path_GREP+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   # Extract the first word of "grep ggrep" to use in msg output
3754 if test -z "$GREP"; then
3755 set dummy grep ggrep; ac_prog_name=$2
3756 if test "${ac_cv_path_GREP+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_path_GREP_found=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for ac_prog in grep ggrep; do
3767   for ac_exec_ext in '' $ac_executable_extensions; do
3768     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3769     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3770     # Check for GNU ac_path_GREP and select it if it is found.
3771   # Check for GNU $ac_path_GREP
3772 case `"$ac_path_GREP" --version 2>&1` in
3773 *GNU*)
3774   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3775 *)
3776   ac_count=0
3777   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778   while :
3779   do
3780     cat "conftest.in" "conftest.in" >"conftest.tmp"
3781     mv "conftest.tmp" "conftest.in"
3782     cp "conftest.in" "conftest.nl"
3783     echo 'GREP' >> "conftest.nl"
3784     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786     ac_count=`expr $ac_count + 1`
3787     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788       # Best one so far, save it but keep looking for a better one
3789       ac_cv_path_GREP="$ac_path_GREP"
3790       ac_path_GREP_max=$ac_count
3791     fi
3792     # 10*(2^10) chars as input seems more than enough
3793     test $ac_count -gt 10 && break
3794   done
3795   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 esac
3797
3798
3799     $ac_path_GREP_found && break 3
3800   done
3801 done
3802
3803 done
3804 IFS=$as_save_IFS
3805
3806
3807 fi
3808
3809 GREP="$ac_cv_path_GREP"
3810 if test -z "$GREP"; then
3811   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813    { (exit 1); exit 1; }; }
3814 fi
3815
3816 else
3817   ac_cv_path_GREP=$GREP
3818 fi
3819
3820
3821 fi
3822 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824  GREP="$ac_cv_path_GREP"
3825
3826
3827 { echo "$as_me:$LINENO: checking for egrep" >&5
3828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829 if test "${ac_cv_path_EGREP+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833    then ac_cv_path_EGREP="$GREP -E"
3834    else
3835      # Extract the first word of "egrep" to use in msg output
3836 if test -z "$EGREP"; then
3837 set dummy egrep; ac_prog_name=$2
3838 if test "${ac_cv_path_EGREP+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848   for ac_prog in egrep; do
3849   for ac_exec_ext in '' $ac_executable_extensions; do
3850     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3852     # Check for GNU ac_path_EGREP and select it if it is found.
3853   # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3855 *GNU*)
3856   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3857 *)
3858   ac_count=0
3859   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860   while :
3861   do
3862     cat "conftest.in" "conftest.in" >"conftest.tmp"
3863     mv "conftest.tmp" "conftest.in"
3864     cp "conftest.in" "conftest.nl"
3865     echo 'EGREP' >> "conftest.nl"
3866     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868     ac_count=`expr $ac_count + 1`
3869     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870       # Best one so far, save it but keep looking for a better one
3871       ac_cv_path_EGREP="$ac_path_EGREP"
3872       ac_path_EGREP_max=$ac_count
3873     fi
3874     # 10*(2^10) chars as input seems more than enough
3875     test $ac_count -gt 10 && break
3876   done
3877   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3879
3880
3881     $ac_path_EGREP_found && break 3
3882   done
3883 done
3884
3885 done
3886 IFS=$as_save_IFS
3887
3888
3889 fi
3890
3891 EGREP="$ac_cv_path_EGREP"
3892 if test -z "$EGREP"; then
3893   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895    { (exit 1); exit 1; }; }
3896 fi
3897
3898 else
3899   ac_cv_path_EGREP=$EGREP
3900 fi
3901
3902
3903    fi
3904 fi
3905 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907  EGREP="$ac_cv_path_EGREP"
3908
3909
3910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3912 if test "${ac_cv_header_stdc+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921 #include <stdlib.h>
3922 #include <stdarg.h>
3923 #include <string.h>
3924 #include <float.h>
3925
3926 int
3927 main ()
3928 {
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938   *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941   (eval "$ac_compile") 2>conftest.er1
3942   ac_status=$?
3943   grep -v '^ *+' conftest.er1 >conftest.err
3944   rm -f conftest.er1
3945   cat conftest.err >&5
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); } && {
3948          test -z "$ac_c_werror_flag" ||
3949          test ! -s conftest.err
3950        } && test -s conftest.$ac_objext; then
3951   ac_cv_header_stdc=yes
3952 else
3953   echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956         ac_cv_header_stdc=no
3957 fi
3958
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961 if test $ac_cv_header_stdc = yes; then
3962   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963   cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h.  */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h.  */
3969 #include <string.h>
3970
3971 _ACEOF
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973   $EGREP "memchr" >/dev/null 2>&1; then
3974   :
3975 else
3976   ac_cv_header_stdc=no
3977 fi
3978 rm -f -r conftest*
3979
3980 fi
3981
3982 if test $ac_cv_header_stdc = yes; then
3983   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3984   cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h.  */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h.  */
3990 #include <stdlib.h>
3991
3992 _ACEOF
3993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994   $EGREP "free" >/dev/null 2>&1; then
3995   :
3996 else
3997   ac_cv_header_stdc=no
3998 fi
3999 rm -f -r conftest*
4000
4001 fi
4002
4003 if test $ac_cv_header_stdc = yes; then
4004   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4005   if test "$cross_compiling" = yes; then
4006   :
4007 else
4008   cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h.  */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h.  */
4014 #include <ctype.h>
4015 #include <stdlib.h>
4016 #if ((' ' & 0x0FF) == 0x020)
4017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4019 #else
4020 # define ISLOWER(c) \
4021                    (('a' <= (c) && (c) <= 'i') \
4022                      || ('j' <= (c) && (c) <= 'r') \
4023                      || ('s' <= (c) && (c) <= 'z'))
4024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4025 #endif
4026
4027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4028 int
4029 main ()
4030 {
4031   int i;
4032   for (i = 0; i < 256; i++)
4033     if (XOR (islower (i), ISLOWER (i))
4034         || toupper (i) != TOUPPER (i))
4035       return 2;
4036   return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest$ac_exeext
4040 if { (ac_try="$ac_link"
4041 case "(($ac_try" in
4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043   *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046   (eval "$ac_link") 2>&5
4047   ac_status=$?
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4050   { (case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055   (eval "$ac_try") 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; }; then
4059   :
4060 else
4061   echo "$as_me: program exited with status $ac_status" >&5
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 ( exit $ac_status )
4066 ac_cv_header_stdc=no
4067 fi
4068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069 fi
4070
4071
4072 fi
4073 fi
4074 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4075 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4076 if test $ac_cv_header_stdc = yes; then
4077
4078 cat >>confdefs.h <<\_ACEOF
4079 #define STDC_HEADERS 1
4080 _ACEOF
4081
4082 fi
4083
4084 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4095                   inttypes.h stdint.h unistd.h
4096 do
4097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 $ac_includes_default
4110
4111 #include <$ac_header>
4112 _ACEOF
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120   (eval "$ac_compile") 2>conftest.er1
4121   ac_status=$?
4122   grep -v '^ *+' conftest.er1 >conftest.err
4123   rm -f conftest.er1
4124   cat conftest.err >&5
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } && {
4127          test -z "$ac_c_werror_flag" ||
4128          test ! -s conftest.err
4129        } && test -s conftest.$ac_objext; then
4130   eval "$as_ac_Header=yes"
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135         eval "$as_ac_Header=no"
4136 fi
4137
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 ac_res=`eval echo '${'$as_ac_Header'}'`
4141                { echo "$as_me:$LINENO: result: $ac_res" >&5
4142 echo "${ECHO_T}$ac_res" >&6; }
4143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144   cat >>confdefs.h <<_ACEOF
4145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146 _ACEOF
4147
4148 fi
4149
4150 done
4151
4152
4153
4154 for ac_header in sys/bitypes.h
4155 do
4156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4158   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 fi
4163 ac_res=`eval echo '${'$as_ac_Header'}'`
4164                { echo "$as_me:$LINENO: result: $ac_res" >&5
4165 echo "${ECHO_T}$ac_res" >&6; }
4166 else
4167   # Is the header compilable?
4168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h.  */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h.  */
4176 $ac_includes_default
4177 #include <$ac_header>
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4181 case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186   (eval "$ac_compile") 2>conftest.er1
4187   ac_status=$?
4188   grep -v '^ *+' conftest.er1 >conftest.err
4189   rm -f conftest.er1
4190   cat conftest.err >&5
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); } && {
4193          test -z "$ac_c_werror_flag" ||
4194          test ! -s conftest.err
4195        } && test -s conftest.$ac_objext; then
4196   ac_header_compiler=yes
4197 else
4198   echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201         ac_header_compiler=no
4202 fi
4203
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4206 echo "${ECHO_T}$ac_header_compiler" >&6; }
4207
4208 # Is the header present?
4209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 #include <$ac_header>
4218 _ACEOF
4219 if { (ac_try="$ac_cpp conftest.$ac_ext"
4220 case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226   ac_status=$?
4227   grep -v '^ *+' conftest.er1 >conftest.err
4228   rm -f conftest.er1
4229   cat conftest.err >&5
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } >/dev/null && {
4232          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233          test ! -s conftest.err
4234        }; then
4235   ac_header_preproc=yes
4236 else
4237   echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240   ac_header_preproc=no
4241 fi
4242
4243 rm -f conftest.err conftest.$ac_ext
4244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4245 echo "${ECHO_T}$ac_header_preproc" >&6; }
4246
4247 # So?  What about this header?
4248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4249   yes:no: )
4250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4254     ac_header_preproc=yes
4255     ;;
4256   no:yes:* )
4257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4269
4270     ;;
4271 esac
4272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   eval "$as_ac_Header=\$ac_header_preproc"
4278 fi
4279 ac_res=`eval echo '${'$as_ac_Header'}'`
4280                { echo "$as_me:$LINENO: result: $ac_res" >&5
4281 echo "${ECHO_T}$ac_res" >&6; }
4282
4283 fi
4284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285   cat >>confdefs.h <<_ACEOF
4286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287 _ACEOF
4288
4289 fi
4290
4291 done
4292
4293
4294 { echo "$as_me:$LINENO: checking for int8_t" >&5
4295 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4296 if test "${ac_cv_type_int8_t+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305 $ac_includes_default
4306 #ifdef HAVE_SYS_BITYPES_H
4307 #include <sys/bitypes.h>
4308 #endif
4309
4310 typedef int8_t ac__type_new_;
4311 int
4312 main ()
4313 {
4314 if ((ac__type_new_ *) 0)
4315   return 0;
4316 if (sizeof (ac__type_new_))
4317   return 0;
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (ac_try="$ac_compile"
4324 case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329   (eval "$ac_compile") 2>conftest.er1
4330   ac_status=$?
4331   grep -v '^ *+' conftest.er1 >conftest.err
4332   rm -f conftest.er1
4333   cat conftest.err >&5
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); } && {
4336          test -z "$ac_c_werror_flag" ||
4337          test ! -s conftest.err
4338        } && test -s conftest.$ac_objext; then
4339   ac_cv_type_int8_t=yes
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344         ac_cv_type_int8_t=no
4345 fi
4346
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 fi
4349 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4350 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4351 if test $ac_cv_type_int8_t = yes; then
4352   :
4353 else
4354
4355 cat >>confdefs.h <<\_ACEOF
4356 #define int8_t signed char
4357 _ACEOF
4358
4359 fi
4360
4361 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4362 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4363 if test "${ac_cv_type_u_int8_t+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 $ac_includes_default
4373 #ifdef HAVE_SYS_BITYPES_H
4374 #include <sys/bitypes.h>
4375 #endif
4376
4377 typedef u_int8_t ac__type_new_;
4378 int
4379 main ()
4380 {
4381 if ((ac__type_new_ *) 0)
4382   return 0;
4383 if (sizeof (ac__type_new_))
4384   return 0;
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (ac_try="$ac_compile"
4391 case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396   (eval "$ac_compile") 2>conftest.er1
4397   ac_status=$?
4398   grep -v '^ *+' conftest.er1 >conftest.err
4399   rm -f conftest.er1
4400   cat conftest.err >&5
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); } && {
4403          test -z "$ac_c_werror_flag" ||
4404          test ! -s conftest.err
4405        } && test -s conftest.$ac_objext; then
4406   ac_cv_type_u_int8_t=yes
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411         ac_cv_type_u_int8_t=no
4412 fi
4413
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 fi
4416 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4417 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4418 if test $ac_cv_type_u_int8_t = yes; then
4419   :
4420 else
4421
4422 cat >>confdefs.h <<\_ACEOF
4423 #define u_int8_t unsigned char
4424 _ACEOF
4425
4426 fi
4427
4428 { echo "$as_me:$LINENO: checking for int16_t" >&5
4429 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4430 if test "${ac_cv_type_int16_t+set}" = set; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440 typedef int16_t ac__type_new_;
4441 int
4442 main ()
4443 {
4444 if ((ac__type_new_ *) 0)
4445   return 0;
4446 if (sizeof (ac__type_new_))
4447   return 0;
4448   ;
4449   return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4454 case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459   (eval "$ac_compile") 2>conftest.er1
4460   ac_status=$?
4461   grep -v '^ *+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
4463   cat conftest.err >&5
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } && {
4466          test -z "$ac_c_werror_flag" ||
4467          test ! -s conftest.err
4468        } && test -s conftest.$ac_objext; then
4469   ac_cv_type_int16_t=yes
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474         ac_cv_type_int16_t=no
4475 fi
4476
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 fi
4479 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4480 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4481 if test $ac_cv_type_int16_t = yes; then
4482   :
4483 else
4484
4485 cat >>confdefs.h <<\_ACEOF
4486 #define int16_t short
4487 _ACEOF
4488
4489         $ac_includes_default
4490 #ifdef HAVE_SYS_BITYPES_H
4491 #include <sys/bitypes.h>
4492 #endif
4493 fi
4494
4495 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4496 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4497 if test "${ac_cv_type_u_int16_t+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 $ac_includes_default
4507 #ifdef HAVE_SYS_BITYPES_H
4508 #include <sys/bitypes.h>
4509 #endif
4510
4511 typedef u_int16_t ac__type_new_;
4512 int
4513 main ()
4514 {
4515 if ((ac__type_new_ *) 0)
4516   return 0;
4517 if (sizeof (ac__type_new_))
4518   return 0;
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (ac_try="$ac_compile"
4525 case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530   (eval "$ac_compile") 2>conftest.er1
4531   ac_status=$?
4532   grep -v '^ *+' conftest.er1 >conftest.err
4533   rm -f conftest.er1
4534   cat conftest.err >&5
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } && {
4537          test -z "$ac_c_werror_flag" ||
4538          test ! -s conftest.err
4539        } && test -s conftest.$ac_objext; then
4540   ac_cv_type_u_int16_t=yes
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545         ac_cv_type_u_int16_t=no
4546 fi
4547
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 fi
4550 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4551 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4552 if test $ac_cv_type_u_int16_t = yes; then
4553   :
4554 else
4555
4556 cat >>confdefs.h <<\_ACEOF
4557 #define u_int16_t unsigned short
4558 _ACEOF
4559
4560 fi
4561
4562 { echo "$as_me:$LINENO: checking for int32_t" >&5
4563 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4564 if test "${ac_cv_type_int32_t+set}" = set; then
4565   echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567   cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 $ac_includes_default
4574 #ifdef HAVE_SYS_BITYPES_H
4575 #include <sys/bitypes.h>
4576 #endif
4577
4578 typedef int32_t ac__type_new_;
4579 int
4580 main ()
4581 {
4582 if ((ac__type_new_ *) 0)
4583   return 0;
4584 if (sizeof (ac__type_new_))
4585   return 0;
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4592 case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_compile") 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } && {
4604          test -z "$ac_c_werror_flag" ||
4605          test ! -s conftest.err
4606        } && test -s conftest.$ac_objext; then
4607   ac_cv_type_int32_t=yes
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612         ac_cv_type_int32_t=no
4613 fi
4614
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 fi
4617 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4618 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4619 if test $ac_cv_type_int32_t = yes; then
4620   :
4621 else
4622
4623 cat >>confdefs.h <<\_ACEOF
4624 #define int32_t int
4625 _ACEOF
4626
4627 fi
4628
4629 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4630 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4631 if test "${ac_cv_type_u_int32_t+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640 $ac_includes_default
4641 #ifdef HAVE_SYS_BITYPES_H
4642 #include <sys/bitypes.h>
4643 #endif
4644
4645 typedef u_int32_t ac__type_new_;
4646 int
4647 main ()
4648 {
4649 if ((ac__type_new_ *) 0)
4650   return 0;
4651 if (sizeof (ac__type_new_))
4652   return 0;
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4659 case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664   (eval "$ac_compile") 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } && {
4671          test -z "$ac_c_werror_flag" ||
4672          test ! -s conftest.err
4673        } && test -s conftest.$ac_objext; then
4674   ac_cv_type_u_int32_t=yes
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679         ac_cv_type_u_int32_t=no
4680 fi
4681
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4685 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4686 if test $ac_cv_type_u_int32_t = yes; then
4687   :
4688 else
4689
4690 cat >>confdefs.h <<\_ACEOF
4691 #define u_int32_t unsigned int
4692 _ACEOF
4693
4694 fi
4695
4696 { echo "$as_me:$LINENO: checking for int64_t" >&5
4697 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4698 if test "${ac_cv_type_int64_t+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 $ac_includes_default
4708 #ifdef HAVE_SYS_BITYPES_H
4709 #include <sys/bitypes.h>
4710 #endif
4711
4712 typedef int64_t ac__type_new_;
4713 int
4714 main ()
4715 {
4716 if ((ac__type_new_ *) 0)
4717   return 0;
4718 if (sizeof (ac__type_new_))
4719   return 0;
4720   ;
4721   return 0;
4722 }
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4726 case "(($ac_try" in
4727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728   *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731   (eval "$ac_compile") 2>conftest.er1
4732   ac_status=$?
4733   grep -v '^ *+' conftest.er1 >conftest.err
4734   rm -f conftest.er1
4735   cat conftest.err >&5
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } && {
4738          test -z "$ac_c_werror_flag" ||
4739          test ! -s conftest.err
4740        } && test -s conftest.$ac_objext; then
4741   ac_cv_type_int64_t=yes
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746         ac_cv_type_int64_t=no
4747 fi
4748
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 fi
4751 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4752 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4753 if test $ac_cv_type_int64_t = yes; then
4754   :
4755 else
4756
4757 cat >>confdefs.h <<\_ACEOF
4758 #define int64_t long long
4759 _ACEOF
4760
4761 fi
4762
4763 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4764 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4765 if test "${ac_cv_type_u_int64_t+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h.  */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h.  */
4774 $ac_includes_default
4775 #ifdef HAVE_SYS_BITYPES_H
4776 #include <sys/bitypes.h>
4777 #endif
4778
4779 typedef u_int64_t ac__type_new_;
4780 int
4781 main ()
4782 {
4783 if ((ac__type_new_ *) 0)
4784   return 0;
4785 if (sizeof (ac__type_new_))
4786   return 0;
4787   ;
4788   return 0;
4789 }
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4793 case "(($ac_try" in
4794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795   *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798   (eval "$ac_compile") 2>conftest.er1
4799   ac_status=$?
4800   grep -v '^ *+' conftest.er1 >conftest.err
4801   rm -f conftest.er1
4802   cat conftest.err >&5
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } && {
4805          test -z "$ac_c_werror_flag" ||
4806          test ! -s conftest.err
4807        } && test -s conftest.$ac_objext; then
4808   ac_cv_type_u_int64_t=yes
4809 else
4810   echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813         ac_cv_type_u_int64_t=no
4814 fi
4815
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4819 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4820 if test $ac_cv_type_u_int64_t = yes; then
4821   :
4822 else
4823
4824 cat >>confdefs.h <<\_ACEOF
4825 #define u_int64_t unsigned long long
4826 _ACEOF
4827
4828 fi
4829
4830
4831 #
4832 # Try to arrange for large file support.
4833 #
4834 # Check whether --enable-largefile was given.
4835 if test "${enable_largefile+set}" = set; then
4836   enableval=$enable_largefile;
4837 fi
4838
4839 if test "$enable_largefile" != no; then
4840
4841   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4842 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4843 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   ac_cv_sys_largefile_CC=no
4847      if test "$GCC" != yes; then
4848        ac_save_CC=$CC
4849        while :; do
4850          # IRIX 6.2 and later do not support large files by default,
4851          # so use the C compiler's -n32 option if that helps.
4852          cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 #include <sys/types.h>
4859  /* Check that off_t can represent 2**63 - 1 correctly.
4860     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861     since some C++ compilers masquerading as C compilers
4862     incorrectly reject 9223372036854775807.  */
4863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4864   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865                        && LARGE_OFF_T % 2147483647 == 1)
4866                       ? 1 : -1];
4867 int
4868 main ()
4869 {
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875          rm -f conftest.$ac_objext
4876 if { (ac_try="$ac_compile"
4877 case "(($ac_try" in
4878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879   *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882   (eval "$ac_compile") 2>conftest.er1
4883   ac_status=$?
4884   grep -v '^ *+' conftest.er1 >conftest.err
4885   rm -f conftest.er1
4886   cat conftest.err >&5
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); } && {
4889          test -z "$ac_c_werror_flag" ||
4890          test ! -s conftest.err
4891        } && test -s conftest.$ac_objext; then
4892   break
4893 else
4894   echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897
4898 fi
4899
4900 rm -f core conftest.err conftest.$ac_objext
4901          CC="$CC -n32"
4902          rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4904 case "(($ac_try" in
4905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906   *) ac_try_echo=$ac_try;;
4907 esac
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909   (eval "$ac_compile") 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } && {
4916          test -z "$ac_c_werror_flag" ||
4917          test ! -s conftest.err
4918        } && test -s conftest.$ac_objext; then
4919   ac_cv_sys_largefile_CC=' -n32'; break
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924
4925 fi
4926
4927 rm -f core conftest.err conftest.$ac_objext
4928          break
4929        done
4930        CC=$ac_save_CC
4931        rm -f conftest.$ac_ext
4932     fi
4933 fi
4934 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4935 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4936   if test "$ac_cv_sys_largefile_CC" != no; then
4937     CC=$CC$ac_cv_sys_largefile_CC
4938   fi
4939
4940   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4941 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4942 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   while :; do
4946   cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #include <sys/types.h>
4953  /* Check that off_t can represent 2**63 - 1 correctly.
4954     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4955     since some C++ compilers masquerading as C compilers
4956     incorrectly reject 9223372036854775807.  */
4957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4958   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4959                        && LARGE_OFF_T % 2147483647 == 1)
4960                       ? 1 : -1];
4961 int
4962 main ()
4963 {
4964
4965   ;
4966   return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4971 case "(($ac_try" in
4972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973   *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976   (eval "$ac_compile") 2>conftest.er1
4977   ac_status=$?
4978   grep -v '^ *+' conftest.er1 >conftest.err
4979   rm -f conftest.er1
4980   cat conftest.err >&5
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } && {
4983          test -z "$ac_c_werror_flag" ||
4984          test ! -s conftest.err
4985        } && test -s conftest.$ac_objext; then
4986   ac_cv_sys_file_offset_bits=no; break
4987 else
4988   echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991
4992 fi
4993
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995   cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h.  */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h.  */
5001 #define _FILE_OFFSET_BITS 64
5002 #include <sys/types.h>
5003  /* Check that off_t can represent 2**63 - 1 correctly.
5004     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005     since some C++ compilers masquerading as C compilers
5006     incorrectly reject 9223372036854775807.  */
5007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009                        && LARGE_OFF_T % 2147483647 == 1)
5010                       ? 1 : -1];
5011 int
5012 main ()
5013 {
5014
5015   ;
5016   return 0;
5017 }
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5021 case "(($ac_try" in
5022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023   *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026   (eval "$ac_compile") 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } && {
5033          test -z "$ac_c_werror_flag" ||
5034          test ! -s conftest.err
5035        } && test -s conftest.$ac_objext; then
5036   ac_cv_sys_file_offset_bits=64; break
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041
5042 fi
5043
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045   ac_cv_sys_file_offset_bits=unknown
5046   break
5047 done
5048 fi
5049 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5050 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5051 case $ac_cv_sys_file_offset_bits in #(
5052   no | unknown) ;;
5053   *)
5054 cat >>confdefs.h <<_ACEOF
5055 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5056 _ACEOF
5057 ;;
5058 esac
5059 rm -f -r conftest*
5060   if test $ac_cv_sys_file_offset_bits = unknown; then
5061     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5062 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5063 if test "${ac_cv_sys_large_files+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   while :; do
5067   cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 #include <sys/types.h>
5074  /* Check that off_t can represent 2**63 - 1 correctly.
5075     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5076     since some C++ compilers masquerading as C compilers
5077     incorrectly reject 9223372036854775807.  */
5078 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5079   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5080                        && LARGE_OFF_T % 2147483647 == 1)
5081                       ? 1 : -1];
5082 int
5083 main ()
5084 {
5085
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5092 case "(($ac_try" in
5093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094   *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097   (eval "$ac_compile") 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } && {
5104          test -z "$ac_c_werror_flag" ||
5105          test ! -s conftest.err
5106        } && test -s conftest.$ac_objext; then
5107   ac_cv_sys_large_files=no; break
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112
5113 fi
5114
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116   cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122 #define _LARGE_FILES 1
5123 #include <sys/types.h>
5124  /* Check that off_t can represent 2**63 - 1 correctly.
5125     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126     since some C++ compilers masquerading as C compilers
5127     incorrectly reject 9223372036854775807.  */
5128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130                        && LARGE_OFF_T % 2147483647 == 1)
5131                       ? 1 : -1];
5132 int
5133 main ()
5134 {
5135
5136   ;
5137   return 0;
5138 }
5139 _ACEOF
5140 rm -f conftest.$ac_objext
5141 if { (ac_try="$ac_compile"
5142 case "(($ac_try" in
5143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144   *) ac_try_echo=$ac_try;;
5145 esac
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147   (eval "$ac_compile") 2>conftest.er1
5148   ac_status=$?
5149   grep -v '^ *+' conftest.er1 >conftest.err
5150   rm -f conftest.er1
5151   cat conftest.err >&5
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); } && {
5154          test -z "$ac_c_werror_flag" ||
5155          test ! -s conftest.err
5156        } && test -s conftest.$ac_objext; then
5157   ac_cv_sys_large_files=1; break
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162
5163 fi
5164
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166   ac_cv_sys_large_files=unknown
5167   break
5168 done
5169 fi
5170 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5171 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5172 case $ac_cv_sys_large_files in #(
5173   no | unknown) ;;
5174   *)
5175 cat >>confdefs.h <<_ACEOF
5176 #define _LARGE_FILES $ac_cv_sys_large_files
5177 _ACEOF
5178 ;;
5179 esac
5180 rm -f -r conftest*
5181   fi
5182 fi
5183
5184 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5185 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5186 if test "${ac_cv_sys_largefile_source+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   while :; do
5190   cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h.  */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h.  */
5196 #include <stdio.h>
5197 int
5198 main ()
5199 {
5200 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 rm -f conftest.$ac_objext conftest$ac_exeext
5206 if { (ac_try="$ac_link"
5207 case "(($ac_try" in
5208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209   *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212   (eval "$ac_link") 2>conftest.er1
5213   ac_status=$?
5214   grep -v '^ *+' conftest.er1 >conftest.err
5215   rm -f conftest.er1
5216   cat conftest.err >&5
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); } && {
5219          test -z "$ac_c_werror_flag" ||
5220          test ! -s conftest.err
5221        } && test -s conftest$ac_exeext &&
5222        $as_test_x conftest$ac_exeext; then
5223   ac_cv_sys_largefile_source=no; break
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228
5229 fi
5230
5231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5232       conftest$ac_exeext conftest.$ac_ext
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #define _LARGEFILE_SOURCE 1
5240 #include <stdio.h>
5241 int
5242 main ()
5243 {
5244 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5251 case "(($ac_try" in
5252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253   *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256   (eval "$ac_link") 2>conftest.er1
5257   ac_status=$?
5258   grep -v '^ *+' conftest.er1 >conftest.err
5259   rm -f conftest.er1
5260   cat conftest.err >&5
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); } && {
5263          test -z "$ac_c_werror_flag" ||
5264          test ! -s conftest.err
5265        } && test -s conftest$ac_exeext &&
5266        $as_test_x conftest$ac_exeext; then
5267   ac_cv_sys_largefile_source=1; break
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272
5273 fi
5274
5275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5276       conftest$ac_exeext conftest.$ac_ext
5277   ac_cv_sys_largefile_source=unknown
5278   break
5279 done
5280 fi
5281 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5282 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5283 case $ac_cv_sys_largefile_source in #(
5284   no | unknown) ;;
5285   *)
5286 cat >>confdefs.h <<_ACEOF
5287 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5288 _ACEOF
5289 ;;
5290 esac
5291 rm -f -r conftest*
5292
5293 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5294 # in glibc 2.1.3, but that breaks too many other things.
5295 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5296 if test $ac_cv_sys_largefile_source != unknown; then
5297
5298 cat >>confdefs.h <<\_ACEOF
5299 #define HAVE_FSEEKO 1
5300 _ACEOF
5301
5302 fi
5303
5304
5305
5306
5307
5308
5309 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5310 do
5311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5313   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 fi
5318 ac_res=`eval echo '${'$as_ac_Header'}'`
5319                { echo "$as_me:$LINENO: result: $ac_res" >&5
5320 echo "${ECHO_T}$ac_res" >&6; }
5321 else
5322   # Is the header compilable?
5323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5325 cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 $ac_includes_default
5332 #include <$ac_header>
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5336 case "(($ac_try" in
5337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338   *) ac_try_echo=$ac_try;;
5339 esac
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341   (eval "$ac_compile") 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } && {
5348          test -z "$ac_c_werror_flag" ||
5349          test ! -s conftest.err
5350        } && test -s conftest.$ac_objext; then
5351   ac_header_compiler=yes
5352 else
5353   echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356         ac_header_compiler=no
5357 fi
5358
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5361 echo "${ECHO_T}$ac_header_compiler" >&6; }
5362
5363 # Is the header present?
5364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h.  */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h.  */
5372 #include <$ac_header>
5373 _ACEOF
5374 if { (ac_try="$ac_cpp conftest.$ac_ext"
5375 case "(($ac_try" in
5376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377   *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5381   ac_status=$?
5382   grep -v '^ *+' conftest.er1 >conftest.err
5383   rm -f conftest.er1
5384   cat conftest.err >&5
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } >/dev/null && {
5387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5388          test ! -s conftest.err
5389        }; then
5390   ac_header_preproc=yes
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395   ac_header_preproc=no
5396 fi
5397
5398 rm -f conftest.err conftest.$ac_ext
5399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5400 echo "${ECHO_T}$ac_header_preproc" >&6; }
5401
5402 # So?  What about this header?
5403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5404   yes:no: )
5405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5409     ac_header_preproc=yes
5410     ;;
5411   no:yes:* )
5412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5424
5425     ;;
5426 esac
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   eval "$as_ac_Header=\$ac_header_preproc"
5433 fi
5434 ac_res=`eval echo '${'$as_ac_Header'}'`
5435                { echo "$as_me:$LINENO: result: $ac_res" >&5
5436 echo "${ECHO_T}$ac_res" >&6; }
5437
5438 fi
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440   cat >>confdefs.h <<_ACEOF
5441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442 _ACEOF
5443
5444 fi
5445
5446 done
5447
5448
5449 for ac_header in linux/types.h
5450 do
5451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5456   echo $ECHO_N "(cached) $ECHO_C" >&6
5457 fi
5458 ac_res=`eval echo '${'$as_ac_Header'}'`
5459                { echo "$as_me:$LINENO: result: $ac_res" >&5
5460 echo "${ECHO_T}$ac_res" >&6; }
5461 else
5462   # Is the header compilable?
5463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5465 cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h.  */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h.  */
5471 $ac_includes_default
5472 #include <$ac_header>
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5476 case "(($ac_try" in
5477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478   *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481   (eval "$ac_compile") 2>conftest.er1
5482   ac_status=$?
5483   grep -v '^ *+' conftest.er1 >conftest.err
5484   rm -f conftest.er1
5485   cat conftest.err >&5
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); } && {
5488          test -z "$ac_c_werror_flag" ||
5489          test ! -s conftest.err
5490        } && test -s conftest.$ac_objext; then
5491   ac_header_compiler=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496         ac_header_compiler=no
5497 fi
5498
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501 echo "${ECHO_T}$ac_header_compiler" >&6; }
5502
5503 # Is the header present?
5504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512 #include <$ac_header>
5513 _ACEOF
5514 if { (ac_try="$ac_cpp conftest.$ac_ext"
5515 case "(($ac_try" in
5516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517   *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5521   ac_status=$?
5522   grep -v '^ *+' conftest.er1 >conftest.err
5523   rm -f conftest.er1
5524   cat conftest.err >&5
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); } >/dev/null && {
5527          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5528          test ! -s conftest.err
5529        }; then
5530   ac_header_preproc=yes
5531 else
5532   echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535   ac_header_preproc=no
5536 fi
5537
5538 rm -f conftest.err conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540 echo "${ECHO_T}$ac_header_preproc" >&6; }
5541
5542 # So?  What about this header?
5543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5544   yes:no: )
5545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5549     ac_header_preproc=yes
5550     ;;
5551   no:yes:* )
5552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5564
5565     ;;
5566 esac
5567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   eval "$as_ac_Header=\$ac_header_preproc"
5573 fi
5574 ac_res=`eval echo '${'$as_ac_Header'}'`
5575                { echo "$as_me:$LINENO: result: $ac_res" >&5
5576 echo "${ECHO_T}$ac_res" >&6; }
5577
5578 fi
5579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5580   cat >>confdefs.h <<_ACEOF
5581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 _ACEOF
5583
5584 fi
5585
5586 done
5587
5588
5589
5590
5591 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
5592 do
5593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5595   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 fi
5600 ac_res=`eval echo '${'$as_ac_Header'}'`
5601                { echo "$as_me:$LINENO: result: $ac_res" >&5
5602 echo "${ECHO_T}$ac_res" >&6; }
5603 else
5604   # Is the header compilable?
5605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h.  */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h.  */
5613 $ac_includes_default
5614 #include <$ac_header>
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5618 case "(($ac_try" in
5619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620   *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623   (eval "$ac_compile") 2>conftest.er1
5624   ac_status=$?
5625   grep -v '^ *+' conftest.er1 >conftest.err
5626   rm -f conftest.er1
5627   cat conftest.err >&5
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); } && {
5630          test -z "$ac_c_werror_flag" ||
5631          test ! -s conftest.err
5632        } && test -s conftest.$ac_objext; then
5633   ac_header_compiler=yes
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638         ac_header_compiler=no
5639 fi
5640
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5643 echo "${ECHO_T}$ac_header_compiler" >&6; }
5644
5645 # Is the header present?
5646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 #include <$ac_header>
5655 _ACEOF
5656 if { (ac_try="$ac_cpp conftest.$ac_ext"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } >/dev/null && {
5669          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5670          test ! -s conftest.err
5671        }; then
5672   ac_header_preproc=yes
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677   ac_header_preproc=no
5678 fi
5679
5680 rm -f conftest.err conftest.$ac_ext
5681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5682 echo "${ECHO_T}$ac_header_preproc" >&6; }
5683
5684 # So?  What about this header?
5685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5686   yes:no: )
5687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5691     ac_header_preproc=yes
5692     ;;
5693   no:yes:* )
5694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5706
5707     ;;
5708 esac
5709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   eval "$as_ac_Header=\$ac_header_preproc"
5715 fi
5716 ac_res=`eval echo '${'$as_ac_Header'}'`
5717                { echo "$as_me:$LINENO: result: $ac_res" >&5
5718 echo "${ECHO_T}$ac_res" >&6; }
5719
5720 fi
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 for ac_header in net/pfvar.h
5732 do
5733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h.  */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h.  */
5745 #include <sys/types.h>
5746 #include <sys/socket.h>
5747 #include <net/if.h>
5748
5749 #include <$ac_header>
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_compile") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } && {
5765          test -z "$ac_c_werror_flag" ||
5766          test ! -s conftest.err
5767        } && test -s conftest.$ac_objext; then
5768   eval "$as_ac_Header=yes"
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773         eval "$as_ac_Header=no"
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778 ac_res=`eval echo '${'$as_ac_Header'}'`
5779                { echo "$as_me:$LINENO: result: $ac_res" >&5
5780 echo "${ECHO_T}$ac_res" >&6; }
5781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5782   cat >>confdefs.h <<_ACEOF
5783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5784 _ACEOF
5785
5786 fi
5787
5788 done
5789
5790 if test "$ac_cv_header_net_pfvar_h" = yes; then
5791         #
5792         # Check for various PF actions.
5793         #
5794         { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5795 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5796         cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h.  */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h.  */
5802 #include <sys/types.h>
5803             #include <sys/socket.h>
5804             #include <net/if.h>
5805             #include <net/pfvar.h>
5806 int
5807 main ()
5808 {
5809 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_compile") 2>conftest.er1
5822   ac_status=$?
5823   grep -v '^ *+' conftest.er1 >conftest.err
5824   rm -f conftest.er1
5825   cat conftest.err >&5
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); } && {
5828          test -z "$ac_c_werror_flag" ||
5829          test ! -s conftest.err
5830        } && test -s conftest.$ac_objext; then
5831
5832                 { echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6; }
5834
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5837 _ACEOF
5838
5839
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844         { echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6; }
5846 fi
5847
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 fi
5850
5851 for ac_header in netinet/if_ether.h
5852 do
5853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h.  */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h.  */
5865 #include <sys/types.h>
5866 #include <sys/socket.h>
5867
5868 #include <$ac_header>
5869 _ACEOF
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5872 case "(($ac_try" in
5873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874   *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877   (eval "$ac_compile") 2>conftest.er1
5878   ac_status=$?
5879   grep -v '^ *+' conftest.er1 >conftest.err
5880   rm -f conftest.er1
5881   cat conftest.err >&5
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); } && {
5884          test -z "$ac_c_werror_flag" ||
5885          test ! -s conftest.err
5886        } && test -s conftest.$ac_objext; then
5887   eval "$as_ac_Header=yes"
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892         eval "$as_ac_Header=no"
5893 fi
5894
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 fi
5897 ac_res=`eval echo '${'$as_ac_Header'}'`
5898                { echo "$as_me:$LINENO: result: $ac_res" >&5
5899 echo "${ECHO_T}$ac_res" >&6; }
5900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5901   cat >>confdefs.h <<_ACEOF
5902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903 _ACEOF
5904
5905 fi
5906
5907 done
5908
5909 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5910         #
5911         # The simple test didn't work.
5912         # Do we need to include <net/if.h> first?
5913         # Unset ac_cv_header_netinet_if_ether_h so we don't
5914         # treat the previous failure as a cached value and
5915         # suppress the next test.
5916         #
5917         { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5918 echo "$as_me: Rechecking with some additional includes" >&6;}
5919         unset ac_cv_header_netinet_if_ether_h
5920
5921 for ac_header in netinet/if_ether.h
5922 do
5923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 #include <sys/types.h>
5936 #include <sys/socket.h>
5937 #include <netinet/in.h>
5938 struct mbuf;
5939 struct rtentry;
5940 #include <net/if.h>
5941
5942 #include <$ac_header>
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948   *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951   (eval "$ac_compile") 2>conftest.er1
5952   ac_status=$?
5953   grep -v '^ *+' conftest.er1 >conftest.err
5954   rm -f conftest.er1
5955   cat conftest.err >&5
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } && {
5958          test -z "$ac_c_werror_flag" ||
5959          test ! -s conftest.err
5960        } && test -s conftest.$ac_objext; then
5961   eval "$as_ac_Header=yes"
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966         eval "$as_ac_Header=no"
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971 ac_res=`eval echo '${'$as_ac_Header'}'`
5972                { echo "$as_me:$LINENO: result: $ac_res" >&5
5973 echo "${ECHO_T}$ac_res" >&6; }
5974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5975   cat >>confdefs.h <<_ACEOF
5976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5977 _ACEOF
5978
5979 fi
5980
5981 done
5982
5983 fi
5984
5985 if test "$GCC" = yes ; then
5986             { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5987 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5988             if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997 /*
5998                      * This generates a "duplicate case value" when fixincludes
5999                      * has not be run.
6000                      */
6001 #               include <sys/types.h>
6002 #               include <sys/time.h>
6003 #               include <sys/ioctl.h>
6004 #               ifdef HAVE_SYS_IOCCOM_H
6005 #               include <sys/ioccom.h>
6006 #               endif
6007 int
6008 main ()
6009 {
6010 switch (0) {
6011                     case _IO('A', 1):;
6012                     case _IO('B', 1):;
6013                     }
6014   ;
6015   return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6020 case "(($ac_try" in
6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022   *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025   (eval "$ac_compile") 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } && {
6032          test -z "$ac_c_werror_flag" ||
6033          test ! -s conftest.err
6034        } && test -s conftest.$ac_objext; then
6035   ac_cv_lbl_gcc_fixincludes=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040         ac_cv_lbl_gcc_fixincludes=no
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 fi
6045
6046             { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
6047 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
6048             if test $ac_cv_lbl_gcc_fixincludes = no ; then
6049                     # Don't cache failure
6050                     unset ac_cv_lbl_gcc_fixincludes
6051                     { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
6052 echo "$as_me: error: see the INSTALL for more info" >&2;}
6053    { (exit 1); exit 1; }; }
6054             fi
6055     fi
6056
6057
6058
6059 for ac_func in strerror strlcpy
6060 do
6061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6065   echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067   cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h.  */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h.  */
6073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6075 #define $ac_func innocuous_$ac_func
6076
6077 /* System header to define __stub macros and hopefully few prototypes,
6078     which can conflict with char $ac_func (); below.
6079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080     <limits.h> exists even on freestanding compilers.  */
6081
6082 #ifdef __STDC__
6083 # include <limits.h>
6084 #else
6085 # include <assert.h>
6086 #endif
6087
6088 #undef $ac_func
6089
6090 /* Override any GCC internal prototype to avoid an error.
6091    Use char because int might match the return type of a GCC
6092    builtin and then its argument prototype would still apply.  */
6093 #ifdef __cplusplus
6094 extern "C"
6095 #endif
6096 char $ac_func ();
6097 /* The GNU C library defines this for functions which it implements
6098     to always fail with ENOSYS.  Some functions are actually named
6099     something starting with __ and the normal name is an alias.  */
6100 #if defined __stub_$ac_func || defined __stub___$ac_func
6101 choke me
6102 #endif
6103
6104 int
6105 main ()
6106 {
6107 return $ac_func ();
6108   ;
6109   return 0;
6110 }
6111 _ACEOF
6112 rm -f conftest.$ac_objext conftest$ac_exeext
6113 if { (ac_try="$ac_link"
6114 case "(($ac_try" in
6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116   *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119   (eval "$ac_link") 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } && {
6126          test -z "$ac_c_werror_flag" ||
6127          test ! -s conftest.err
6128        } && test -s conftest$ac_exeext &&
6129        $as_test_x conftest$ac_exeext; then
6130   eval "$as_ac_var=yes"
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135         eval "$as_ac_var=no"
6136 fi
6137
6138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6139       conftest$ac_exeext conftest.$ac_ext
6140 fi
6141 ac_res=`eval echo '${'$as_ac_var'}'`
6142                { echo "$as_me:$LINENO: result: $ac_res" >&5
6143 echo "${ECHO_T}$ac_res" >&6; }
6144 if test `eval echo '${'$as_ac_var'}'` = yes; then
6145   cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6147 _ACEOF
6148
6149 fi
6150 done
6151
6152
6153 needsnprintf=no
6154
6155
6156 for ac_func in vsnprintf snprintf
6157 do
6158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h.  */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h.  */
6170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6172 #define $ac_func innocuous_$ac_func
6173
6174 /* System header to define __stub macros and hopefully few prototypes,
6175     which can conflict with char $ac_func (); below.
6176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6177     <limits.h> exists even on freestanding compilers.  */
6178
6179 #ifdef __STDC__
6180 # include <limits.h>
6181 #else
6182 # include <assert.h>
6183 #endif
6184
6185 #undef $ac_func
6186
6187 /* Override any GCC internal prototype to avoid an error.
6188    Use char because int might match the return type of a GCC
6189    builtin and then its argument prototype would still apply.  */
6190 #ifdef __cplusplus
6191 extern "C"
6192 #endif
6193 char $ac_func ();
6194 /* The GNU C library defines this for functions which it implements
6195     to always fail with ENOSYS.  Some functions are actually named
6196     something starting with __ and the normal name is an alias.  */
6197 #if defined __stub_$ac_func || defined __stub___$ac_func
6198 choke me
6199 #endif
6200
6201 int
6202 main ()
6203 {
6204 return $ac_func ();
6205   ;
6206   return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (ac_try="$ac_link"
6211 case "(($ac_try" in
6212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213   *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216   (eval "$ac_link") 2>conftest.er1
6217   ac_status=$?
6218   grep -v '^ *+' conftest.er1 >conftest.err
6219   rm -f conftest.er1
6220   cat conftest.err >&5
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } && {
6223          test -z "$ac_c_werror_flag" ||
6224          test ! -s conftest.err
6225        } && test -s conftest$ac_exeext &&
6226        $as_test_x conftest$ac_exeext; then
6227   eval "$as_ac_var=yes"
6228 else
6229   echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232         eval "$as_ac_var=no"
6233 fi
6234
6235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6236       conftest$ac_exeext conftest.$ac_ext
6237 fi
6238 ac_res=`eval echo '${'$as_ac_var'}'`
6239                { echo "$as_me:$LINENO: result: $ac_res" >&5
6240 echo "${ECHO_T}$ac_res" >&6; }
6241 if test `eval echo '${'$as_ac_var'}'` = yes; then
6242   cat >>confdefs.h <<_ACEOF
6243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6244 _ACEOF
6245
6246 else
6247   needsnprintf=yes
6248 fi
6249 done
6250
6251 if test $needsnprintf = yes; then
6252         case " $LIBOBJS " in
6253   *" snprintf.$ac_objext "* ) ;;
6254   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6255  ;;
6256 esac
6257
6258 fi
6259
6260 #
6261 # Do this before checking for ether_hostton(), as it's a
6262 # "gethostbyname() -ish function".
6263 #
6264
6265     # Most operating systems have gethostbyname() in the default searched
6266     # libraries (i.e. libc):
6267     # Some OSes (eg. Solaris) place it in libnsl
6268     # Some strange OSes (SINIX) have it in libsocket:
6269     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6270 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6271 if test "${ac_cv_search_gethostbyname+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   ac_func_search_save_LIBS=$LIBS
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h.  */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h.  */
6281
6282 /* Override any GCC internal prototype to avoid an error.
6283    Use char because int might match the return type of a GCC
6284    builtin and then its argument prototype would still apply.  */
6285 #ifdef __cplusplus
6286 extern "C"
6287 #endif
6288 char gethostbyname ();
6289 int
6290 main ()
6291 {
6292 return gethostbyname ();
6293   ;
6294   return 0;
6295 }
6296 _ACEOF
6297 for ac_lib in '' nsl socket resolv; do
6298   if test -z "$ac_lib"; then
6299     ac_res="none required"
6300   else
6301     ac_res=-l$ac_lib
6302     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6303   fi
6304   rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (ac_try="$ac_link"
6306 case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_link") 2>conftest.er1
6312   ac_status=$?
6313   grep -v '^ *+' conftest.er1 >conftest.err
6314   rm -f conftest.er1
6315   cat conftest.err >&5
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } && {
6318          test -z "$ac_c_werror_flag" ||
6319          test ! -s conftest.err
6320        } && test -s conftest$ac_exeext &&
6321        $as_test_x conftest$ac_exeext; then
6322   ac_cv_search_gethostbyname=$ac_res
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327
6328 fi
6329
6330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6331       conftest$ac_exeext
6332   if test "${ac_cv_search_gethostbyname+set}" = set; then
6333   break
6334 fi
6335 done
6336 if test "${ac_cv_search_gethostbyname+set}" = set; then
6337   :
6338 else
6339   ac_cv_search_gethostbyname=no
6340 fi
6341 rm conftest.$ac_ext
6342 LIBS=$ac_func_search_save_LIBS
6343 fi
6344 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6345 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6346 ac_res=$ac_cv_search_gethostbyname
6347 if test "$ac_res" != no; then
6348   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6349
6350 fi
6351
6352     # Unfortunately libsocket sometimes depends on libnsl and
6353     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6354     if test "$ac_cv_search_gethostbyname" = "no"
6355     then
6356         { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6357 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6358 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   ac_check_lib_save_LIBS=$LIBS
6362 LIBS="-lsocket -lnsl $LIBS"
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h.  */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h.  */
6369
6370 /* Override any GCC internal prototype to avoid an error.
6371    Use char because int might match the return type of a GCC
6372    builtin and then its argument prototype would still apply.  */
6373 #ifdef __cplusplus
6374 extern "C"
6375 #endif
6376 char gethostbyname ();
6377 int
6378 main ()
6379 {
6380 return gethostbyname ();
6381   ;
6382   return 0;
6383 }
6384 _ACEOF
6385 rm -f conftest.$ac_objext conftest$ac_exeext
6386 if { (ac_try="$ac_link"
6387 case "(($ac_try" in
6388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389   *) ac_try_echo=$ac_try;;
6390 esac
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392   (eval "$ac_link") 2>conftest.er1
6393   ac_status=$?
6394   grep -v '^ *+' conftest.er1 >conftest.err
6395   rm -f conftest.er1
6396   cat conftest.err >&5
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); } && {
6399          test -z "$ac_c_werror_flag" ||
6400          test ! -s conftest.err
6401        } && test -s conftest$ac_exeext &&
6402        $as_test_x conftest$ac_exeext; then
6403   ac_cv_lib_socket_gethostbyname=yes
6404 else
6405   echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6407
6408         ac_cv_lib_socket_gethostbyname=no
6409 fi
6410
6411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6412       conftest$ac_exeext conftest.$ac_ext
6413 LIBS=$ac_check_lib_save_LIBS
6414 fi
6415 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6416 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6417 if test $ac_cv_lib_socket_gethostbyname = yes; then
6418   LIBS="-lsocket -lnsl $LIBS"
6419 fi
6420
6421     fi
6422     { echo "$as_me:$LINENO: checking for library containing socket" >&5
6423 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6424 if test "${ac_cv_search_socket+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   ac_func_search_save_LIBS=$LIBS
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434
6435 /* Override any GCC internal prototype to avoid an error.
6436    Use char because int might match the return type of a GCC
6437    builtin and then its argument prototype would still apply.  */
6438 #ifdef __cplusplus
6439 extern "C"
6440 #endif
6441 char socket ();
6442 int
6443 main ()
6444 {
6445 return socket ();
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 for ac_lib in '' socket; do
6451   if test -z "$ac_lib"; then
6452     ac_res="none required"
6453   else
6454     ac_res=-l$ac_lib
6455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6456   fi
6457   rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6459 case "(($ac_try" in
6460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461   *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464   (eval "$ac_link") 2>conftest.er1
6465   ac_status=$?
6466   grep -v '^ *+' conftest.er1 >conftest.err
6467   rm -f conftest.er1
6468   cat conftest.err >&5
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); } && {
6471          test -z "$ac_c_werror_flag" ||
6472          test ! -s conftest.err
6473        } && test -s conftest$ac_exeext &&
6474        $as_test_x conftest$ac_exeext; then
6475   ac_cv_search_socket=$ac_res
6476 else
6477   echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480
6481 fi
6482
6483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6484       conftest$ac_exeext
6485   if test "${ac_cv_search_socket+set}" = set; then
6486   break
6487 fi
6488 done
6489 if test "${ac_cv_search_socket+set}" = set; then
6490   :
6491 else
6492   ac_cv_search_socket=no
6493 fi
6494 rm conftest.$ac_ext
6495 LIBS=$ac_func_search_save_LIBS
6496 fi
6497 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6498 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6499 ac_res=$ac_cv_search_socket
6500 if test "$ac_res" != no; then
6501   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6502
6503 else
6504   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6505 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6506 if test "${ac_cv_lib_socket_socket+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   ac_check_lib_save_LIBS=$LIBS
6510 LIBS="-lsocket -lnsl $LIBS"
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h.  */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h.  */
6517
6518 /* Override any GCC internal prototype to avoid an error.
6519    Use char because int might match the return type of a GCC
6520    builtin and then its argument prototype would still apply.  */
6521 #ifdef __cplusplus
6522 extern "C"
6523 #endif
6524 char socket ();
6525 int
6526 main ()
6527 {
6528 return socket ();
6529   ;
6530   return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (ac_try="$ac_link"
6535 case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_link") 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } && {
6547          test -z "$ac_c_werror_flag" ||
6548          test ! -s conftest.err
6549        } && test -s conftest$ac_exeext &&
6550        $as_test_x conftest$ac_exeext; then
6551   ac_cv_lib_socket_socket=yes
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556         ac_cv_lib_socket_socket=no
6557 fi
6558
6559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6560       conftest$ac_exeext conftest.$ac_ext
6561 LIBS=$ac_check_lib_save_LIBS
6562 fi
6563 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6564 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6565 if test $ac_cv_lib_socket_socket = yes; then
6566   LIBS="-lsocket -lnsl $LIBS"
6567 fi
6568
6569 fi
6570
6571     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6572     { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6573 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6574 if test "${ac_cv_search_putmsg+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   ac_func_search_save_LIBS=$LIBS
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h.  */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h.  */
6584
6585 /* Override any GCC internal prototype to avoid an error.
6586    Use char because int might match the return type of a GCC
6587    builtin and then its argument prototype would still apply.  */
6588 #ifdef __cplusplus
6589 extern "C"
6590 #endif
6591 char putmsg ();
6592 int
6593 main ()
6594 {
6595 return putmsg ();
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 for ac_lib in '' str; do
6601   if test -z "$ac_lib"; then
6602     ac_res="none required"
6603   else
6604     ac_res=-l$ac_lib
6605     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6606   fi
6607   rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6609 case "(($ac_try" in
6610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611   *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614   (eval "$ac_link") 2>conftest.er1
6615   ac_status=$?
6616   grep -v '^ *+' conftest.er1 >conftest.err
6617   rm -f conftest.er1
6618   cat conftest.err >&5
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); } && {
6621          test -z "$ac_c_werror_flag" ||
6622          test ! -s conftest.err
6623        } && test -s conftest$ac_exeext &&
6624        $as_test_x conftest$ac_exeext; then
6625   ac_cv_search_putmsg=$ac_res
6626 else
6627   echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630
6631 fi
6632
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6634       conftest$ac_exeext
6635   if test "${ac_cv_search_putmsg+set}" = set; then
6636   break
6637 fi
6638 done
6639 if test "${ac_cv_search_putmsg+set}" = set; then
6640   :
6641 else
6642   ac_cv_search_putmsg=no
6643 fi
6644 rm conftest.$ac_ext
6645 LIBS=$ac_func_search_save_LIBS
6646 fi
6647 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6648 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6649 ac_res=$ac_cv_search_putmsg
6650 if test "$ac_res" != no; then
6651   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6652
6653 fi
6654
6655
6656
6657 #
6658 # You are in a twisty little maze of UN*Xes, all different.
6659 # Some might not have ether_hostton().
6660 # Some might have it, but not declare it in any header file.
6661 # Some might have it, but declare it in <netinet/if_ether.h>.
6662 # Some might have it, but declare it in <netinet/ether.h>
6663 # (And some might have it but document it as something declared in
6664 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6665 #
6666 # Before you is a C compiler.
6667 #
6668
6669 for ac_func in ether_hostton
6670 do
6671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h.  */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h.  */
6683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6685 #define $ac_func innocuous_$ac_func
6686
6687 /* System header to define __stub macros and hopefully few prototypes,
6688     which can conflict with char $ac_func (); below.
6689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6690     <limits.h> exists even on freestanding compilers.  */
6691
6692 #ifdef __STDC__
6693 # include <limits.h>
6694 #else
6695 # include <assert.h>
6696 #endif
6697
6698 #undef $ac_func
6699
6700 /* Override any GCC internal prototype to avoid an error.
6701    Use char because int might match the return type of a GCC
6702    builtin and then its argument prototype would still apply.  */
6703 #ifdef __cplusplus
6704 extern "C"
6705 #endif
6706 char $ac_func ();
6707 /* The GNU C library defines this for functions which it implements
6708     to always fail with ENOSYS.  Some functions are actually named
6709     something starting with __ and the normal name is an alias.  */
6710 #if defined __stub_$ac_func || defined __stub___$ac_func
6711 choke me
6712 #endif
6713
6714 int
6715 main ()
6716 {
6717 return $ac_func ();
6718   ;
6719   return 0;
6720 }
6721 _ACEOF
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6724 case "(($ac_try" in
6725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726   *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729   (eval "$ac_link") 2>conftest.er1
6730   ac_status=$?
6731   grep -v '^ *+' conftest.er1 >conftest.err
6732   rm -f conftest.er1
6733   cat conftest.err >&5
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } && {
6736          test -z "$ac_c_werror_flag" ||
6737          test ! -s conftest.err
6738        } && test -s conftest$ac_exeext &&
6739        $as_test_x conftest$ac_exeext; then
6740   eval "$as_ac_var=yes"
6741 else
6742   echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6744
6745         eval "$as_ac_var=no"
6746 fi
6747
6748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6749       conftest$ac_exeext conftest.$ac_ext
6750 fi
6751 ac_res=`eval echo '${'$as_ac_var'}'`
6752                { echo "$as_me:$LINENO: result: $ac_res" >&5
6753 echo "${ECHO_T}$ac_res" >&6; }
6754 if test `eval echo '${'$as_ac_var'}'` = yes; then
6755   cat >>confdefs.h <<_ACEOF
6756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6757 _ACEOF
6758
6759 fi
6760 done
6761
6762 if test "$ac_cv_func_ether_hostton" = yes; then
6763         #
6764         # OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
6765         #
6766         if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6767                 #
6768                 # Yes.  Does it declare ether_hostton()?
6769                 #
6770                 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6771 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6772 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h.  */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h.  */
6781
6782 #include <sys/types.h>
6783 #include <sys/socket.h>
6784 #include <netinet/in.h>
6785 #include <arpa/inet.h>
6786 struct mbuf;
6787 struct rtentry;
6788 #include <net/if.h>
6789 #include <netinet/if_ether.h>
6790
6791
6792 int
6793 main ()
6794 {
6795 #ifndef ether_hostton
6796   (void) ether_hostton;
6797 #endif
6798
6799   ;
6800   return 0;
6801 }
6802 _ACEOF
6803 rm -f conftest.$ac_objext
6804 if { (ac_try="$ac_compile"
6805 case "(($ac_try" in
6806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807   *) ac_try_echo=$ac_try;;
6808 esac
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810   (eval "$ac_compile") 2>conftest.er1
6811   ac_status=$?
6812   grep -v '^ *+' conftest.er1 >conftest.err
6813   rm -f conftest.er1
6814   cat conftest.err >&5
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } && {
6817          test -z "$ac_c_werror_flag" ||
6818          test ! -s conftest.err
6819        } && test -s conftest.$ac_objext; then
6820   ac_cv_have_decl_ether_hostton=yes
6821 else
6822   echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825         ac_cv_have_decl_ether_hostton=no
6826 fi
6827
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 fi
6830 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6831 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6832 if test $ac_cv_have_decl_ether_hostton = yes; then
6833
6834
6835 cat >>confdefs.h <<\_ACEOF
6836 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6837 _ACEOF
6838
6839
6840 fi
6841
6842         fi
6843         #
6844         # Did that succeed?
6845         #
6846         if test "$ac_cv_have_decl_ether_hostton" != yes; then
6847                 #
6848                 # No, how about <netinet/ether.h>, as on Linux?
6849                 #
6850
6851 for ac_header in netinet/ether.h
6852 do
6853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6855   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 fi
6860 ac_res=`eval echo '${'$as_ac_Header'}'`
6861                { echo "$as_me:$LINENO: result: $ac_res" >&5
6862 echo "${ECHO_T}$ac_res" >&6; }
6863 else
6864   # Is the header compilable?
6865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h.  */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h.  */
6873 $ac_includes_default
6874 #include <$ac_header>
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6878 case "(($ac_try" in
6879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880   *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883   (eval "$ac_compile") 2>conftest.er1
6884   ac_status=$?
6885   grep -v '^ *+' conftest.er1 >conftest.err
6886   rm -f conftest.er1
6887   cat conftest.err >&5
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); } && {
6890          test -z "$ac_c_werror_flag" ||
6891          test ! -s conftest.err
6892        } && test -s conftest.$ac_objext; then
6893   ac_header_compiler=yes
6894 else
6895   echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898         ac_header_compiler=no
6899 fi
6900
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6903 echo "${ECHO_T}$ac_header_compiler" >&6; }
6904
6905 # Is the header present?
6906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914 #include <$ac_header>
6915 _ACEOF
6916 if { (ac_try="$ac_cpp conftest.$ac_ext"
6917 case "(($ac_try" in
6918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919   *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } >/dev/null && {
6929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6930          test ! -s conftest.err
6931        }; then
6932   ac_header_preproc=yes
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937   ac_header_preproc=no
6938 fi
6939
6940 rm -f conftest.err conftest.$ac_ext
6941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6942 echo "${ECHO_T}$ac_header_preproc" >&6; }
6943
6944 # So?  What about this header?
6945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6946   yes:no: )
6947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6951     ac_header_preproc=yes
6952     ;;
6953   no:yes:* )
6954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6966
6967     ;;
6968 esac
6969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972   echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974   eval "$as_ac_Header=\$ac_header_preproc"
6975 fi
6976 ac_res=`eval echo '${'$as_ac_Header'}'`
6977                { echo "$as_me:$LINENO: result: $ac_res" >&5
6978 echo "${ECHO_T}$ac_res" >&6; }
6979
6980 fi
6981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982   cat >>confdefs.h <<_ACEOF
6983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6984 _ACEOF
6985
6986 fi
6987
6988 done
6989
6990                 if test "$ac_cv_header_netinet_ether_h" = yes; then
6991                         #
6992                         # We have it - does it declare ether_hostton()?
6993                         # Unset ac_cv_have_decl_ether_hostton so we don't
6994                         # treat the previous failure as a cached value and
6995                         # suppress the next test.
6996                         #
6997                         unset ac_cv_have_decl_ether_hostton
6998                         { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6999 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
7000 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h.  */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h.  */
7009
7010 #include <netinet/ether.h>
7011
7012
7013 int
7014 main ()
7015 {
7016 #ifndef ether_hostton
7017   (void) ether_hostton;
7018 #endif
7019
7020   ;
7021   return 0;
7022 }
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (ac_try="$ac_compile"
7026 case "(($ac_try" in
7027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028   *) ac_try_echo=$ac_try;;
7029 esac
7030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031   (eval "$ac_compile") 2>conftest.er1
7032   ac_status=$?
7033   grep -v '^ *+' conftest.er1 >conftest.err
7034   rm -f conftest.er1
7035   cat conftest.err >&5
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); } && {
7038          test -z "$ac_c_werror_flag" ||
7039          test ! -s conftest.err
7040        } && test -s conftest.$ac_objext; then
7041   ac_cv_have_decl_ether_hostton=yes
7042 else
7043   echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7045
7046         ac_cv_have_decl_ether_hostton=no
7047 fi
7048
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 fi
7051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
7052 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
7053 if test $ac_cv_have_decl_ether_hostton = yes; then
7054
7055
7056 cat >>confdefs.h <<\_ACEOF
7057 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
7058 _ACEOF
7059
7060
7061 fi
7062
7063                 fi
7064         fi
7065         #
7066         # Is ether_hostton() declared?
7067         #
7068         if test "$ac_cv_have_decl_ether_hostton" != yes; then
7069                 #
7070                 # No, we'll have to declare it ourselves.
7071                 # Do we have "struct ether_addr"?
7072                 #
7073                 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
7074 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
7075 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
7076   echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078   cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h.  */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h.  */
7084
7085 #include <sys/types.h>
7086 #include <sys/socket.h>
7087 #include <netinet/in.h>
7088 #include <arpa/inet.h>
7089 struct mbuf;
7090 struct rtentry;
7091 #include <net/if.h>
7092 #include <netinet/if_ether.h>
7093
7094
7095 typedef struct ether_addr ac__type_new_;
7096 int
7097 main ()
7098 {
7099 if ((ac__type_new_ *) 0)
7100   return 0;
7101 if (sizeof (ac__type_new_))
7102   return 0;
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext
7108 if { (ac_try="$ac_compile"
7109 case "(($ac_try" in
7110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111   *) ac_try_echo=$ac_try;;
7112 esac
7113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114   (eval "$ac_compile") 2>conftest.er1
7115   ac_status=$?
7116   grep -v '^ *+' conftest.er1 >conftest.err
7117   rm -f conftest.er1
7118   cat conftest.err >&5
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); } && {
7121          test -z "$ac_c_werror_flag" ||
7122          test ! -s conftest.err
7123        } && test -s conftest.$ac_objext; then
7124   ac_cv_type_struct_ether_addr=yes
7125 else
7126   echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7128
7129         ac_cv_type_struct_ether_addr=no
7130 fi
7131
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
7135 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
7136 if test $ac_cv_type_struct_ether_addr = yes; then
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_STRUCT_ETHER_ADDR 1
7140 _ACEOF
7141
7142
7143 fi
7144
7145
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DECL_ETHER_HOSTTON 0
7148 _ACEOF
7149
7150         else
7151
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_DECL_ETHER_HOSTTON 1
7154 _ACEOF
7155
7156         fi
7157 fi
7158
7159 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
7160 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
7161 # Check whether --enable-protochain was given.
7162 if test "${enable_protochain+set}" = set; then
7163   enableval=$enable_protochain;
7164 fi
7165
7166 case "x$enable_protochain" in
7167 xyes)   enable_protochain=enabled       ;;
7168 xno)    enable_protochain=disabled      ;;
7169 x)      enable_protochain=enabled       ;;
7170 esac
7171
7172 if test "$enable_protochain" = "disabled"; then
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define NO_PROTOCHAIN 1
7176 _ACEOF
7177
7178 fi
7179 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
7180 echo "${ECHO_T}${enable_protochain}" >&6; }
7181
7182 #
7183 # SITA support is mutually exclusive with native capture support;
7184 # "--with-sita" selects SITA support.
7185 #
7186
7187 # Check whether --with-sita was given.
7188 if test "${with_sita+set}" = set; then
7189   withval=$with_sita;
7190         if test ! "x$withval" = "xno" ; then
7191
7192 cat >>confdefs.h <<\_ACEOF
7193 #define SITA 1
7194 _ACEOF
7195
7196                 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
7197 echo "$as_me: Enabling SITA ACN support" >&6;}
7198                 V_PCAP=sita
7199                 V_FINDALLDEVS=sita
7200         fi
7201
7202 else
7203
7204 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
7205         { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
7206 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
7207    { (exit 1); exit 1; }; }
7208 fi
7209
7210 # Check whether --with-pcap was given.
7211 if test "${with_pcap+set}" = set; then
7212   withval=$with_pcap;
7213 fi
7214
7215 { echo "$as_me:$LINENO: checking packet capture type" >&5
7216 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
7217 if test ! -z "$with_pcap" ; then
7218         V_PCAP="$withval"
7219 elif test -r /dev/bpf -o -h /dev/bpf ; then
7220         #
7221         # Cloning BPF device.
7222         #
7223         V_PCAP=bpf
7224
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_CLONING_BPF 1
7227 _ACEOF
7228
7229 elif test -r /dev/bpf0 ; then
7230         V_PCAP=bpf
7231 elif test -r /usr/include/net/pfilt.h ; then
7232         V_PCAP=pf
7233 elif test -r /dev/enet ; then
7234         V_PCAP=enet
7235 elif test -r /dev/nit ; then
7236         V_PCAP=snit
7237 elif test -r /usr/include/sys/net/nit.h ; then
7238         V_PCAP=nit
7239 elif test -r /usr/include/linux/socket.h ; then
7240         V_PCAP=linux
7241 elif test -r /usr/include/net/raw.h ; then
7242         V_PCAP=snoop
7243 elif test -r /usr/include/odmi.h ; then
7244         #
7245         # On AIX, the BPF devices might not yet be present - they're
7246         # created the first time libpcap runs after booting.
7247         # We check for odmi.h instead.
7248         #
7249         V_PCAP=bpf
7250 elif test -c /dev/bpf0 ; then           # check again in case not readable
7251         V_PCAP=bpf
7252 elif test -r /usr/include/sys/dlpi.h ; then
7253         V_PCAP=dlpi
7254 elif test -c /dev/enet ; then           # check again in case not readable
7255         V_PCAP=enet
7256 elif test -c /dev/nit ; then            # check again in case not readable
7257         V_PCAP=snit
7258 else
7259         V_PCAP=null
7260 fi
7261 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
7262 echo "${ECHO_T}$V_PCAP" >&6; }
7263
7264 #
7265 # Do capture-mechanism-dependent tests.
7266 #
7267 case "$V_PCAP" in
7268 dlpi)
7269         #
7270         # Checks to see if Solaris has the public libdlpi(3LIB) library.
7271         # Note: The existence of /usr/include/libdlpi.h does not mean it is the
7272         # public libdlpi(3LIB) version. Before libdlpi was made public, a
7273         # private version also existed, which did not have the same APIs.
7274         # Due to a gcc bug, the default search path for 32-bit libraries does
7275         # not include /lib, we add it explicitly here.
7276         # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
7277         # Also, due to the bug above applications that link to libpcap with
7278         # libdlpi will have to add "-L/lib" option to "configure".
7279         #
7280         saved_ldflags=$LDFLAGS
7281         LDFLAGS="$LIBS -L/lib"
7282         { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
7283 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7284 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   ac_check_lib_save_LIBS=$LIBS
7288 LIBS="-ldlpi  $LIBS"
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295
7296 /* Override any GCC internal prototype to avoid an error.
7297    Use char because int might match the return type of a GCC
7298    builtin and then its argument prototype would still apply.  */
7299 #ifdef __cplusplus
7300 extern "C"
7301 #endif
7302 char dlpi_walk ();
7303 int
7304 main ()
7305 {
7306 return dlpi_walk ();
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext conftest$ac_exeext
7312 if { (ac_try="$ac_link"
7313 case "(($ac_try" in
7314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315   *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318   (eval "$ac_link") 2>conftest.er1
7319   ac_status=$?
7320   grep -v '^ *+' conftest.er1 >conftest.err
7321   rm -f conftest.er1
7322   cat conftest.err >&5
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); } && {
7325          test -z "$ac_c_werror_flag" ||
7326          test ! -s conftest.err
7327        } && test -s conftest$ac_exeext &&
7328        $as_test_x conftest$ac_exeext; then
7329   ac_cv_lib_dlpi_dlpi_walk=yes
7330 else
7331   echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7333
7334         ac_cv_lib_dlpi_dlpi_walk=no
7335 fi
7336
7337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7338       conftest$ac_exeext conftest.$ac_ext
7339 LIBS=$ac_check_lib_save_LIBS
7340 fi
7341 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7342 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7343 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7344   LIBS="-ldlpi $LIBS"
7345                 V_PCAP=libdlpi
7346
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_LIBDLPI 1
7349 _ACEOF
7350
7351 else
7352   V_PCAP=dlpi
7353 fi
7354
7355         LDFLAGS=$saved_ldflags
7356
7357         #
7358         # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7359         # versions of DLPI.
7360         #
7361         { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7362 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7363         if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366   cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h.  */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h.  */
7372
7373                         #include <sys/types.h>
7374                         #include <sys/time.h>
7375                         #include <sys/dlpi.h>
7376
7377 int
7378 main ()
7379 {
7380 int i = DL_PROMISC_PHYS;
7381   ;
7382   return 0;
7383 }
7384 _ACEOF
7385 rm -f conftest.$ac_objext
7386 if { (ac_try="$ac_compile"
7387 case "(($ac_try" in
7388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389   *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392   (eval "$ac_compile") 2>conftest.er1
7393   ac_status=$?
7394   grep -v '^ *+' conftest.er1 >conftest.err
7395   rm -f conftest.er1
7396   cat conftest.err >&5
7397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); } && {
7399          test -z "$ac_c_werror_flag" ||
7400          test ! -s conftest.err
7401        } && test -s conftest.$ac_objext; then
7402   ac_cv_sys_dlpi_usable=yes
7403 else
7404   echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407         ac_cv_sys_dlpi_usable=no
7408 fi
7409
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 fi
7412
7413         { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7414 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7415         if test $ac_cv_sys_dlpi_usable = no ; then
7416                 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7417 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7418    { (exit 1); exit 1; }; }
7419         fi
7420
7421         #
7422         # Check whether we have a /dev/dlpi device or have multiple devices.
7423         #
7424         { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7425 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7426         if test -c /dev/dlpi ; then
7427                 { echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6; }
7429
7430 cat >>confdefs.h <<\_ACEOF
7431 #define HAVE_DEV_DLPI 1
7432 _ACEOF
7433
7434         else
7435                 { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7437                 dir="/dev/dlpi"
7438                 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7439 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7440                 if test -d $dir ; then
7441                         { echo "$as_me:$LINENO: result: yes" >&5
7442 echo "${ECHO_T}yes" >&6; }
7443
7444 cat >>confdefs.h <<_ACEOF
7445 #define PCAP_DEV_PREFIX "$dir"
7446 _ACEOF
7447
7448                 else
7449                         { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7451                 fi
7452         fi
7453
7454         #
7455         # This check is for Solaris with DLPI support for passive modes.
7456         # See dlpi(7P) for more details.
7457         #
7458         { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7459 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7460        if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h.  */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h.  */
7469
7470 #       include <sys/types.h>
7471 #       include <sys/dlpi.h>
7472 int
7473 main ()
7474 {
7475 u_int i = sizeof(dl_passive_req_t)
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7482 case "(($ac_try" in
7483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484   *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487   (eval "$ac_compile") 2>conftest.er1
7488   ac_status=$?
7489   grep -v '^ *+' conftest.er1 >conftest.err
7490   rm -f conftest.er1
7491   cat conftest.err >&5
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } && {
7494          test -z "$ac_c_werror_flag" ||
7495          test ! -s conftest.err
7496        } && test -s conftest.$ac_objext; then
7497   ac_cv_lbl_has_dl_passive_req_t=yes
7498 else
7499   echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7501
7502         ac_cv_lbl_has_dl_passive_req_t=no
7503 fi
7504
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 fi
7507
7508     { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7509 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7510     if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7511
7512 cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_DLPI_PASSIVE 1
7514 _ACEOF
7515
7516     fi
7517         ;;
7518
7519 linux)
7520         #
7521         # Do we have the wireless extensions?
7522         #
7523
7524 for ac_header in linux/wireless.h
7525 do
7526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
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
7539 #include <sys/socket.h>
7540 #include <linux/if.h>
7541 #include <linux/types.h>
7542
7543
7544 #include <$ac_header>
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7548 case "(($ac_try" in
7549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550   *) ac_try_echo=$ac_try;;
7551 esac
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553   (eval "$ac_compile") 2>conftest.er1
7554   ac_status=$?
7555   grep -v '^ *+' conftest.er1 >conftest.err
7556   rm -f conftest.er1
7557   cat conftest.err >&5
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } && {
7560          test -z "$ac_c_werror_flag" ||
7561          test ! -s conftest.err
7562        } && test -s conftest.$ac_objext; then
7563   eval "$as_ac_Header=yes"
7564 else
7565   echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568         eval "$as_ac_Header=no"
7569 fi
7570
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 fi
7573 ac_res=`eval echo '${'$as_ac_Header'}'`
7574                { echo "$as_me:$LINENO: result: $ac_res" >&5
7575 echo "${ECHO_T}$ac_res" >&6; }
7576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7577   cat >>confdefs.h <<_ACEOF
7578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7579 _ACEOF
7580
7581 fi
7582
7583 done
7584
7585
7586         #
7587         # Do we have libnl?
7588         #
7589
7590 # Check whether --with-libnl was given.
7591 if test "${with_libnl+set}" = set; then
7592   withval=$with_libnl; with_libnl=$withval
7593 fi
7594
7595
7596         if test x$with_libnl != xno ; then
7597                 #
7598                 # Try libnl 2.x first.
7599                 #
7600                 { echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl" >&5
7601 echo $ECHO_N "checking for nl_socket_alloc in -lnl... $ECHO_C" >&6; }
7602 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605   ac_check_lib_save_LIBS=$LIBS
7606 LIBS="-lnl  $LIBS"
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h.  */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h.  */
7613
7614 /* Override any GCC internal prototype to avoid an error.
7615    Use char because int might match the return type of a GCC
7616    builtin and then its argument prototype would still apply.  */
7617 #ifdef __cplusplus
7618 extern "C"
7619 #endif
7620 char nl_socket_alloc ();
7621 int
7622 main ()
7623 {
7624 return nl_socket_alloc ();
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7631 case "(($ac_try" in
7632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633   *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636   (eval "$ac_link") 2>conftest.er1
7637   ac_status=$?
7638   grep -v '^ *+' conftest.er1 >conftest.err
7639   rm -f conftest.er1
7640   cat conftest.err >&5
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); } && {
7643          test -z "$ac_c_werror_flag" ||
7644          test ! -s conftest.err
7645        } && test -s conftest$ac_exeext &&
7646        $as_test_x conftest$ac_exeext; then
7647   ac_cv_lib_nl_nl_socket_alloc=yes
7648 else
7649   echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652         ac_cv_lib_nl_nl_socket_alloc=no
7653 fi
7654
7655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7656       conftest$ac_exeext conftest.$ac_ext
7657 LIBS=$ac_check_lib_save_LIBS
7658 fi
7659 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
7660 echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7661 if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7662
7663                         #
7664                         # Yes, we have libnl 2.x.
7665                         #
7666                         LIBS="-lnl-genl -lnl $LIBS"
7667
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_LIBNL 1
7670 _ACEOF
7671
7672
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_LIBNL_2_x 1
7675 _ACEOF
7676
7677
7678 else
7679
7680                         #
7681                         # No, we don't; do we have libnl 1.x?
7682                         #
7683                         { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7684 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7685 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   ac_check_lib_save_LIBS=$LIBS
7689 LIBS="-lnl  $LIBS"
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696
7697 /* Override any GCC internal prototype to avoid an error.
7698    Use char because int might match the return type of a GCC
7699    builtin and then its argument prototype would still apply.  */
7700 #ifdef __cplusplus
7701 extern "C"
7702 #endif
7703 char nl_handle_alloc ();
7704 int
7705 main ()
7706 {
7707 return nl_handle_alloc ();
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (ac_try="$ac_link"
7714 case "(($ac_try" in
7715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716   *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719   (eval "$ac_link") 2>conftest.er1
7720   ac_status=$?
7721   grep -v '^ *+' conftest.er1 >conftest.err
7722   rm -f conftest.er1
7723   cat conftest.err >&5
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); } && {
7726          test -z "$ac_c_werror_flag" ||
7727          test ! -s conftest.err
7728        } && test -s conftest$ac_exeext &&
7729        $as_test_x conftest$ac_exeext; then
7730   ac_cv_lib_nl_nl_handle_alloc=yes
7731 else
7732   echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7734
7735         ac_cv_lib_nl_nl_handle_alloc=no
7736 fi
7737
7738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7739       conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7741 fi
7742 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7743 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7744 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7745
7746                                 #
7747                                 # Yes.
7748                                 #
7749                                 LIBS="-lnl $LIBS"
7750
7751 cat >>confdefs.h <<\_ACEOF
7752 #define HAVE_LIBNL 1
7753 _ACEOF
7754
7755
7756 else
7757
7758                                 #
7759                                 # No, we don't have libnl at all.
7760                                 #
7761                                 if test x$with_libnl = xyes ; then
7762                                         { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7763 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7764    { (exit 1); exit 1; }; }
7765                                 fi
7766
7767 fi
7768
7769
7770 fi
7771
7772         fi
7773
7774
7775 for ac_header in linux/ethtool.h
7776 do
7777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789
7790 $ac_includes_default
7791 #include <linux/types.h>
7792
7793
7794 #include <$ac_header>
7795 _ACEOF
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7798 case "(($ac_try" in
7799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800   *) ac_try_echo=$ac_try;;
7801 esac
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803   (eval "$ac_compile") 2>conftest.er1
7804   ac_status=$?
7805   grep -v '^ *+' conftest.er1 >conftest.err
7806   rm -f conftest.er1
7807   cat conftest.err >&5
7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); } && {
7810          test -z "$ac_c_werror_flag" ||
7811          test ! -s conftest.err
7812        } && test -s conftest.$ac_objext; then
7813   eval "$as_ac_Header=yes"
7814 else
7815   echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818         eval "$as_ac_Header=no"
7819 fi
7820
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 fi
7823 ac_res=`eval echo '${'$as_ac_Header'}'`
7824                { echo "$as_me:$LINENO: result: $ac_res" >&5
7825 echo "${ECHO_T}$ac_res" >&6; }
7826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7827   cat >>confdefs.h <<_ACEOF
7828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7829 _ACEOF
7830
7831 fi
7832
7833 done
7834
7835         { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7836 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7837    if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h.  */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h.  */
7846
7847 #  include <linux/if_packet.h>
7848 int
7849 main ()
7850 {
7851 struct tpacket_stats stats
7852   ;
7853   return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7858 case "(($ac_try" in
7859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860   *) ac_try_echo=$ac_try;;
7861 esac
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863   (eval "$ac_compile") 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } && {
7870          test -z "$ac_c_werror_flag" ||
7871          test ! -s conftest.err
7872        } && test -s conftest.$ac_objext; then
7873   ac_cv_lbl_tpacket_stats=yes
7874 else
7875   echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878         ac_cv_lbl_tpacket_stats=no
7879 fi
7880
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 fi
7883
7884    { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7885 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7886    if test $ac_cv_lbl_tpacket_stats = yes; then
7887
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_TPACKET_STATS 1
7890 _ACEOF
7891
7892    fi
7893         { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7894 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7895     if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898   cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h.  */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h.  */
7904
7905 #       include <sys/types.h>
7906 #       include <linux/if_packet.h>
7907 int
7908 main ()
7909 {
7910 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919   *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922   (eval "$ac_compile") 2>conftest.er1
7923   ac_status=$?
7924   grep -v '^ *+' conftest.er1 >conftest.err
7925   rm -f conftest.er1
7926   cat conftest.err >&5
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } && {
7929          test -z "$ac_c_werror_flag" ||
7930          test ! -s conftest.err
7931        } && test -s conftest.$ac_objext; then
7932   ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937         ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7938 fi
7939
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 fi
7942
7943     { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7944 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7945     if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7946             HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7947
7948
7949 cat >>confdefs.h <<\_ACEOF
7950 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7951 _ACEOF
7952
7953     fi
7954         ;;
7955
7956 bpf)
7957         #
7958         # Check whether we have the *BSD-style ioctls.
7959         #
7960
7961 for ac_header in net/if_media.h
7962 do
7963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7965   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7968   echo $ECHO_N "(cached) $ECHO_C" >&6
7969 fi
7970 ac_res=`eval echo '${'$as_ac_Header'}'`
7971                { echo "$as_me:$LINENO: result: $ac_res" >&5
7972 echo "${ECHO_T}$ac_res" >&6; }
7973 else
7974   # Is the header compilable?
7975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h.  */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h.  */
7983 $ac_includes_default
7984 #include <$ac_header>
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (ac_try="$ac_compile"
7988 case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_compile") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } && {
8000          test -z "$ac_c_werror_flag" ||
8001          test ! -s conftest.err
8002        } && test -s conftest.$ac_objext; then
8003   ac_header_compiler=yes
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008         ac_header_compiler=no
8009 fi
8010
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8013 echo "${ECHO_T}$ac_header_compiler" >&6; }
8014
8015 # Is the header present?
8016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024 #include <$ac_header>
8025 _ACEOF
8026 if { (ac_try="$ac_cpp conftest.$ac_ext"
8027 case "(($ac_try" in
8028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029   *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8033   ac_status=$?
8034   grep -v '^ *+' conftest.er1 >conftest.err
8035   rm -f conftest.er1
8036   cat conftest.err >&5
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); } >/dev/null && {
8039          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8040          test ! -s conftest.err
8041        }; then
8042   ac_header_preproc=yes
8043 else
8044   echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047   ac_header_preproc=no
8048 fi
8049
8050 rm -f conftest.err conftest.$ac_ext
8051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6; }
8053
8054 # So?  What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8056   yes:no: )
8057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8061     ac_header_preproc=yes
8062     ;;
8063   no:yes:* )
8064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8076
8077     ;;
8078 esac
8079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   eval "$as_ac_Header=\$ac_header_preproc"
8085 fi
8086 ac_res=`eval echo '${'$as_ac_Header'}'`
8087                { echo "$as_me:$LINENO: result: $ac_res" >&5
8088 echo "${ECHO_T}$ac_res" >&6; }
8089
8090 fi
8091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8092   cat >>confdefs.h <<_ACEOF
8093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8094 _ACEOF
8095
8096 fi
8097
8098 done
8099
8100
8101         { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
8102 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
8103         cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h.  */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h.  */
8109 #include <sys/socket.h>
8110             #include <sys/ioctl.h>
8111             #include <net/if.h>
8112             #include <net/bpf.h>
8113 int
8114 main ()
8115 {
8116 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
8117   ;
8118   return 0;
8119 }
8120 _ACEOF
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8123 case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128   (eval "$ac_compile") 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } && {
8135          test -z "$ac_c_werror_flag" ||
8136          test ! -s conftest.err
8137        } && test -s conftest.$ac_objext; then
8138
8139                 { echo "$as_me:$LINENO: result: yes" >&5
8140 echo "${ECHO_T}yes" >&6; }
8141
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_ZEROCOPY_BPF 1
8144 _ACEOF
8145
8146
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151         { echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6; }
8153 fi
8154
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156
8157             #
8158             # Check whether we have struct BPF_TIMEVAL.
8159             #
8160             { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
8161 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
8162 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171
8172 #include <sys/types.h>
8173 #include <sys/ioctl.h>
8174 #ifdef HAVE_SYS_IOCCOM_H
8175 #include <sys/ioccom.h>
8176 #endif
8177 #include <net/bpf.h>
8178
8179
8180 typedef struct BPF_TIMEVAL ac__type_new_;
8181 int
8182 main ()
8183 {
8184 if ((ac__type_new_ *) 0)
8185   return 0;
8186 if (sizeof (ac__type_new_))
8187   return 0;
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_compile") 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } && {
8206          test -z "$ac_c_werror_flag" ||
8207          test ! -s conftest.err
8208        } && test -s conftest.$ac_objext; then
8209   ac_cv_type_struct_BPF_TIMEVAL=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214         ac_cv_type_struct_BPF_TIMEVAL=no
8215 fi
8216
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8220 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8221 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8222
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_STRUCT_BPF_TIMEVAL 1
8225 _ACEOF
8226
8227
8228 fi
8229
8230         ;;
8231
8232 dag)
8233         V_DEFS="$V_DEFS -DDAG_ONLY"
8234         ;;
8235
8236 septel)
8237         V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8238         ;;
8239
8240 snf)
8241         V_DEFS="$V_DEFS -DSNF_ONLY"
8242         ;;
8243
8244 null)
8245         { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
8246 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
8247         { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
8248 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
8249         ;;
8250 esac
8251
8252 if test "$V_PCAP" = null
8253 then
8254         #
8255         # We can't capture, so we can't open any capture
8256         # devices, so we won't return any interfaces.
8257         #
8258         V_FINDALLDEVS=null
8259 else
8260         { echo "$as_me:$LINENO: checking for getifaddrs" >&5
8261 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
8262 if test "${ac_cv_func_getifaddrs+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8273 #define getifaddrs innocuous_getifaddrs
8274
8275 /* System header to define __stub macros and hopefully few prototypes,
8276     which can conflict with char getifaddrs (); below.
8277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8278     <limits.h> exists even on freestanding compilers.  */
8279
8280 #ifdef __STDC__
8281 # include <limits.h>
8282 #else
8283 # include <assert.h>
8284 #endif
8285
8286 #undef getifaddrs
8287
8288 /* Override any GCC internal prototype to avoid an error.
8289    Use char because int might match the return type of a GCC
8290    builtin and then its argument prototype would still apply.  */
8291 #ifdef __cplusplus
8292 extern "C"
8293 #endif
8294 char getifaddrs ();
8295 /* The GNU C library defines this for functions which it implements
8296     to always fail with ENOSYS.  Some functions are actually named
8297     something starting with __ and the normal name is an alias.  */
8298 #if defined __stub_getifaddrs || defined __stub___getifaddrs
8299 choke me
8300 #endif
8301
8302 int
8303 main ()
8304 {
8305 return getifaddrs ();
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (ac_try="$ac_link"
8312 case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_link") 2>conftest.er1
8318   ac_status=$?
8319   grep -v '^ *+' conftest.er1 >conftest.err
8320   rm -f conftest.er1
8321   cat conftest.err >&5
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } && {
8324          test -z "$ac_c_werror_flag" ||
8325          test ! -s conftest.err
8326        } && test -s conftest$ac_exeext &&
8327        $as_test_x conftest$ac_exeext; then
8328   ac_cv_func_getifaddrs=yes
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333         ac_cv_func_getifaddrs=no
8334 fi
8335
8336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8337       conftest$ac_exeext conftest.$ac_ext
8338 fi
8339 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8340 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8341 if test $ac_cv_func_getifaddrs = yes; then
8342
8343                 #
8344                 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
8345                 # as well, just in case some platform is really weird.
8346                 #
8347                 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8348   { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8349 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8350 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 fi
8353 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8354 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8355 else
8356   # Is the header compilable?
8357 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
8358 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
8359 cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h.  */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h.  */
8365 $ac_includes_default
8366 #include <ifaddrs.h>
8367 _ACEOF
8368 rm -f conftest.$ac_objext
8369 if { (ac_try="$ac_compile"
8370 case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375   (eval "$ac_compile") 2>conftest.er1
8376   ac_status=$?
8377   grep -v '^ *+' conftest.er1 >conftest.err
8378   rm -f conftest.er1
8379   cat conftest.err >&5
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); } && {
8382          test -z "$ac_c_werror_flag" ||
8383          test ! -s conftest.err
8384        } && test -s conftest.$ac_objext; then
8385   ac_header_compiler=yes
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390         ac_header_compiler=no
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8395 echo "${ECHO_T}$ac_header_compiler" >&6; }
8396
8397 # Is the header present?
8398 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
8399 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 #include <ifaddrs.h>
8407 _ACEOF
8408 if { (ac_try="$ac_cpp conftest.$ac_ext"
8409 case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } >/dev/null && {
8421          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8422          test ! -s conftest.err
8423        }; then
8424   ac_header_preproc=yes
8425 else
8426   echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429   ac_header_preproc=no
8430 fi
8431
8432 rm -f conftest.err conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6; }
8435
8436 # So?  What about this header?
8437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438   yes:no: )
8439     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8442 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8443     ac_header_preproc=yes
8444     ;;
8445   no:yes:* )
8446     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8448     { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;}
8450     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8451 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8452     { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&5
8453 echo "$as_me: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8454     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8455 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8456     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8457 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8458
8459     ;;
8460 esac
8461 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8462 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8463 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   ac_cv_header_ifaddrs_h=$ac_header_preproc
8467 fi
8468 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8469 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8470
8471 fi
8472 if test $ac_cv_header_ifaddrs_h = yes; then
8473
8474                     #
8475                     # We have the header, so we use "getifaddrs()" to
8476                     # get the list of interfaces.
8477                     #
8478                     V_FINDALLDEVS=getad
8479
8480 else
8481
8482                     #
8483                     # We don't have the header - give up.
8484                     # XXX - we could also fall back on some other
8485                     # mechanism, but, for now, this'll catch this
8486                     # problem so that we can at least try to figure
8487                     # out something to do on systems with "getifaddrs()"
8488                     # but without "ifaddrs.h", if there is something
8489                     # we can do on those systems.
8490                     #
8491                     { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8492 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8493    { (exit 1); exit 1; }; }
8494
8495 fi
8496
8497
8498
8499 else
8500
8501                 #
8502                 # Well, we don't have "getifaddrs()", so we have to use
8503                 # some other mechanism; determine what that mechanism is.
8504                 #
8505                 # The first thing we use is the type of capture mechanism,
8506                 # which is somewhat of a proxy for the OS we're using.
8507                 #
8508                 case "$V_PCAP" in
8509
8510                 dlpi|libdlpi)
8511
8512
8513 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8514 do
8515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 fi
8522 ac_res=`eval echo '${'$as_ac_Header'}'`
8523                { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8525 else
8526   # Is the header compilable?
8527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535 $ac_includes_default
8536 #include <$ac_header>
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8540 case "(($ac_try" in
8541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542   *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545   (eval "$ac_compile") 2>conftest.er1
8546   ac_status=$?
8547   grep -v '^ *+' conftest.er1 >conftest.err
8548   rm -f conftest.er1
8549   cat conftest.err >&5
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } && {
8552          test -z "$ac_c_werror_flag" ||
8553          test ! -s conftest.err
8554        } && test -s conftest.$ac_objext; then
8555   ac_header_compiler=yes
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560         ac_header_compiler=no
8561 fi
8562
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8565 echo "${ECHO_T}$ac_header_compiler" >&6; }
8566
8567 # Is the header present?
8568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8570 cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h.  */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h.  */
8576 #include <$ac_header>
8577 _ACEOF
8578 if { (ac_try="$ac_cpp conftest.$ac_ext"
8579 case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8585   ac_status=$?
8586   grep -v '^ *+' conftest.er1 >conftest.err
8587   rm -f conftest.er1
8588   cat conftest.err >&5
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } >/dev/null && {
8591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8592          test ! -s conftest.err
8593        }; then
8594   ac_header_preproc=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599   ac_header_preproc=no
8600 fi
8601
8602 rm -f conftest.err conftest.$ac_ext
8603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8604 echo "${ECHO_T}$ac_header_preproc" >&6; }
8605
8606 # So?  What about this header?
8607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8608   yes:no: )
8609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8613     ac_header_preproc=yes
8614     ;;
8615   no:yes:* )
8616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8628
8629     ;;
8630 esac
8631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636   eval "$as_ac_Header=\$ac_header_preproc"
8637 fi
8638 ac_res=`eval echo '${'$as_ac_Header'}'`
8639                { echo "$as_me:$LINENO: result: $ac_res" >&5
8640 echo "${ECHO_T}$ac_res" >&6; }
8641
8642 fi
8643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8644   cat >>confdefs.h <<_ACEOF
8645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8646 _ACEOF
8647
8648 fi
8649
8650 done
8651
8652                         #
8653                         # This might be Solaris 8 or later, with
8654                         # SIOCGLIFCONF, or it might be some other OS
8655                         # or some older version of Solaris, with
8656                         # just SIOCGIFCONF.
8657                         #
8658                         { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8659 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8660                         if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663   cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h.  */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h.  */
8669 #include <sys/param.h>
8670                                 #include <sys/file.h>
8671                                 #include <sys/ioctl.h>
8672                                 #include <sys/socket.h>
8673                                 #include <sys/sockio.h>
8674 int
8675 main ()
8676 {
8677 ioctl(0, SIOCGLIFCONF, (char *)0);
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 rm -f conftest.$ac_objext
8683 if { (ac_try="$ac_compile"
8684 case "(($ac_try" in
8685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686   *) ac_try_echo=$ac_try;;
8687 esac
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689   (eval "$ac_compile") 2>conftest.er1
8690   ac_status=$?
8691   grep -v '^ *+' conftest.er1 >conftest.err
8692   rm -f conftest.er1
8693   cat conftest.err >&5
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } && {
8696          test -z "$ac_c_werror_flag" ||
8697          test ! -s conftest.err
8698        } && test -s conftest.$ac_objext; then
8699   ac_cv_lbl_have_siocglifconf=yes
8700 else
8701   echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8703
8704         ac_cv_lbl_have_siocglifconf=no
8705 fi
8706
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709
8710                         { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8711 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8712                         if test $ac_cv_lbl_have_siocglifconf = yes ; then
8713                                 V_FINDALLDEVS=glifc
8714                         else
8715                                 V_FINDALLDEVS=gifc
8716                         fi
8717                         #
8718                         # Needed for common functions used by pcap-[dlpi,libdlpi].c
8719                         #
8720                         SSRC="dlpisubs.c"
8721                         ;;
8722
8723                 *)
8724                         #
8725                         # Assume we just have SIOCGIFCONF.
8726                         # (XXX - on at least later Linux kernels, there's
8727                         # another mechanism, and we should be using that
8728                         # instead.)
8729                         #
8730                         V_FINDALLDEVS=gifc
8731                         ;;
8732                 esac
8733 fi
8734
8735 fi
8736
8737 fi
8738
8739
8740 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8741 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8748
8749         #include <sys/types.h>
8750         #include <sys/socket.h>
8751
8752 int
8753 main ()
8754 {
8755  socklen_t x;
8756   ;
8757   return 0;
8758 }
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8762 case "(($ac_try" in
8763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764   *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767   (eval "$ac_compile") 2>conftest.er1
8768   ac_status=$?
8769   grep -v '^ *+' conftest.er1 >conftest.err
8770   rm -f conftest.er1
8771   cat conftest.err >&5
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } && {
8774          test -z "$ac_c_werror_flag" ||
8775          test ! -s conftest.err
8776        } && test -s conftest.$ac_objext; then
8777   have_socklen_t=yes
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782         have_socklen_t=no
8783 fi
8784
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 if test "x$have_socklen_t" = "xyes"; then
8787
8788 cat >>confdefs.h <<\_ACEOF
8789 #define HAVE_SOCKLEN_T 1
8790 _ACEOF
8791
8792 fi
8793 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8794 echo "${ECHO_T}$have_socklen_t" >&6; }
8795
8796 # Check whether --enable-ipv6 was given.
8797 if test "${enable_ipv6+set}" = set; then
8798   enableval=$enable_ipv6;
8799 else
8800   enable_ipv6=ifavailable
8801 fi
8802
8803 if test "$enable_ipv6" != "no"; then
8804         { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8805 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8806 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809   cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h.  */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h.  */
8815 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8817 #define getaddrinfo innocuous_getaddrinfo
8818
8819 /* System header to define __stub macros and hopefully few prototypes,
8820     which can conflict with char getaddrinfo (); below.
8821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822     <limits.h> exists even on freestanding compilers.  */
8823
8824 #ifdef __STDC__
8825 # include <limits.h>
8826 #else
8827 # include <assert.h>
8828 #endif
8829
8830 #undef getaddrinfo
8831
8832 /* Override any GCC internal prototype to avoid an error.
8833    Use char because int might match the return type of a GCC
8834    builtin and then its argument prototype would still apply.  */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 char getaddrinfo ();
8839 /* The GNU C library defines this for functions which it implements
8840     to always fail with ENOSYS.  Some functions are actually named
8841     something starting with __ and the normal name is an alias.  */
8842 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8843 choke me
8844 #endif
8845
8846 int
8847 main ()
8848 {
8849 return getaddrinfo ();
8850   ;
8851   return 0;
8852 }
8853 _ACEOF
8854 rm -f conftest.$ac_objext conftest$ac_exeext
8855 if { (ac_try="$ac_link"
8856 case "(($ac_try" in
8857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858   *) ac_try_echo=$ac_try;;
8859 esac
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861   (eval "$ac_link") 2>conftest.er1
8862   ac_status=$?
8863   grep -v '^ *+' conftest.er1 >conftest.err
8864   rm -f conftest.er1
8865   cat conftest.err >&5
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } && {
8868          test -z "$ac_c_werror_flag" ||
8869          test ! -s conftest.err
8870        } && test -s conftest$ac_exeext &&
8871        $as_test_x conftest$ac_exeext; then
8872   ac_cv_func_getaddrinfo=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877         ac_cv_func_getaddrinfo=no
8878 fi
8879
8880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8881       conftest$ac_exeext conftest.$ac_ext
8882 fi
8883 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8884 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8885 if test $ac_cv_func_getaddrinfo = yes; then
8886
8887
8888 cat >>confdefs.h <<\_ACEOF
8889 #define INET6 1
8890 _ACEOF
8891
8892
8893 else
8894
8895                 if test "$enable_ipv6" != "ifavailable"; then
8896                         { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8897 See \`config.log' for more details." >&5
8898 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8899 See \`config.log' for more details." >&2;}
8900    { (exit 1); exit 1; }; }
8901                 fi
8902
8903 fi
8904
8905 fi
8906
8907 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8908 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8909 # Check whether --enable-optimizer-dbg was given.
8910 if test "${enable_optimizer_dbg+set}" = set; then
8911   enableval=$enable_optimizer_dbg;
8912 fi
8913
8914 if test "$enable_optimizer_dbg" = "yes"; then
8915
8916 cat >>confdefs.h <<\_ACEOF
8917 #define BDEBUG 1
8918 _ACEOF
8919
8920 fi
8921 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8922 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8923
8924 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8925 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8926 # Check whether --enable-yydebug was given.
8927 if test "${enable_yydebug+set}" = set; then
8928   enableval=$enable_yydebug;
8929 fi
8930
8931 if test "$enable_yydebug" = "yes"; then
8932
8933 cat >>confdefs.h <<\_ACEOF
8934 #define YYDEBUG 1
8935 _ACEOF
8936
8937 fi
8938 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8939 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8940
8941 # Check for Endace DAG card support.
8942
8943 # Check whether --with-dag was given.
8944 if test "${with_dag+set}" = set; then
8945   withval=$with_dag;
8946         if test "$withval" = no
8947         then
8948                 # User doesn't want DAG support.
8949                 want_dag=no
8950         elif test "$withval" = yes
8951         then
8952                 # User wants DAG support but hasn't specified a directory.
8953                 want_dag=yes
8954         else
8955                 # User wants DAG support and has specified a directory, so use the provided value.
8956                 want_dag=yes
8957                 dag_root=$withval
8958         fi
8959
8960 else
8961
8962         #
8963         # Use DAG API if present, otherwise don't
8964         #
8965         want_dag=ifpresent
8966
8967 fi
8968
8969
8970
8971 # Check whether --with-dag-includes was given.
8972 if test "${with_dag_includes+set}" = set; then
8973   withval=$with_dag_includes;
8974         # User wants DAG support and has specified a header directory, so use the provided value.
8975         want_dag=yes
8976         dag_include_dir=$withval
8977
8978 fi
8979
8980
8981
8982 # Check whether --with-dag-libraries was given.
8983 if test "${with_dag_libraries+set}" = set; then
8984   withval=$with_dag_libraries;
8985         # User wants DAG support and has specified a library directory, so use the provided value.
8986         want_dag=yes
8987         dag_lib_dir=$withval
8988
8989 fi
8990
8991
8992 case "$V_PCAP" in
8993 linux|bpf|dag)
8994         #
8995         # We support the DAG API if we're on Linux or BSD, or if we're
8996         # building a DAG-only libpcap.
8997         #
8998         ;;
8999 *)
9000         #
9001         # If the user explicitly requested DAG, tell them it's not
9002         # supported.
9003         #
9004         # If they expressed no preference, don't include it.
9005         #
9006         if test $want_dag = yes; then
9007                 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
9008 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
9009    { (exit 1); exit 1; }; }
9010         elif test $want_dag = yes; then
9011                 want_dag=no
9012         fi
9013         ;;
9014 esac
9015
9016 ac_cv_lbl_dag_api=no
9017 if test "$want_dag" != no; then
9018
9019         { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
9020 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
9021
9022         # If necessary, set default paths for DAG API headers and libraries.
9023         if test -z "$dag_root"; then
9024             dag_root=/usr/local
9025         fi
9026
9027         if test -z "$dag_include_dir"; then
9028                 dag_include_dir="$dag_root/include"
9029         fi
9030
9031         if test -z "$dag_lib_dir"; then
9032             dag_lib_dir="$dag_root/lib"
9033         fi
9034
9035         if test -z "$dag_tools_dir"; then
9036             dag_tools_dir="$dag_root/tools"
9037         fi
9038
9039         if test -r $dag_include_dir/dagapi.h; then
9040                 ac_cv_lbl_dag_api=yes
9041         fi
9042         { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
9043 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
9044 fi
9045
9046 if test $ac_cv_lbl_dag_api = yes; then
9047         V_INCLS="$V_INCLS -I$dag_include_dir"
9048
9049         if test $V_PCAP != dag ; then
9050                  SSRC="pcap-dag.c"
9051         fi
9052
9053         # See if we can find a general version string.
9054         # Don't need to save and restore LIBS to prevent -ldag being
9055         # included if there's a found-action (arg 3).
9056         saved_ldflags=$LDFLAGS
9057         LDFLAGS="-L$dag_lib_dir"
9058         { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
9059 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
9060 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063   ac_check_lib_save_LIBS=$LIBS
9064 LIBS="-ldag  $LIBS"
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071
9072 /* Override any GCC internal prototype to avoid an error.
9073    Use char because int might match the return type of a GCC
9074    builtin and then its argument prototype would still apply.  */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 char dag_attach_stream ();
9079 int
9080 main ()
9081 {
9082 return dag_attach_stream ();
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (ac_try="$ac_link"
9089 case "(($ac_try" in
9090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091   *) ac_try_echo=$ac_try;;
9092 esac
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094   (eval "$ac_link") 2>conftest.er1
9095   ac_status=$?
9096   grep -v '^ *+' conftest.er1 >conftest.err
9097   rm -f conftest.er1
9098   cat conftest.err >&5
9099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100   (exit $ac_status); } && {
9101          test -z "$ac_c_werror_flag" ||
9102          test ! -s conftest.err
9103        } && test -s conftest$ac_exeext &&
9104        $as_test_x conftest$ac_exeext; then
9105   ac_cv_lib_dag_dag_attach_stream=yes
9106 else
9107   echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110         ac_cv_lib_dag_dag_attach_stream=no
9111 fi
9112
9113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9114       conftest$ac_exeext conftest.$ac_ext
9115 LIBS=$ac_check_lib_save_LIBS
9116 fi
9117 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
9118 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
9119 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
9120   dag_streams="1"
9121 else
9122   dag_streams="0"
9123 fi
9124
9125         { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
9126 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
9127 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
9128   echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130   ac_check_lib_save_LIBS=$LIBS
9131 LIBS="-ldag  $LIBS"
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h.  */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h.  */
9138
9139 /* Override any GCC internal prototype to avoid an error.
9140    Use char because int might match the return type of a GCC
9141    builtin and then its argument prototype would still apply.  */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 char dag_get_erf_types ();
9146 int
9147 main ()
9148 {
9149 return dag_get_erf_types ();
9150   ;
9151   return 0;
9152 }
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (ac_try="$ac_link"
9156 case "(($ac_try" in
9157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158   *) ac_try_echo=$ac_try;;
9159 esac
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161   (eval "$ac_link") 2>conftest.er1
9162   ac_status=$?
9163   grep -v '^ *+' conftest.er1 >conftest.err
9164   rm -f conftest.er1
9165   cat conftest.err >&5
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); } && {
9168          test -z "$ac_c_werror_flag" ||
9169          test ! -s conftest.err
9170        } && test -s conftest$ac_exeext &&
9171        $as_test_x conftest$ac_exeext; then
9172   ac_cv_lib_dag_dag_get_erf_types=yes
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177         ac_cv_lib_dag_dag_get_erf_types=no
9178 fi
9179
9180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9181       conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9183 fi
9184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
9185 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
9186 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
9187
9188
9189 cat >>confdefs.h <<\_ACEOF
9190 #define HAVE_DAG_GET_ERF_TYPES 1
9191 _ACEOF
9192
9193 fi
9194
9195         { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
9196 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
9197 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   ac_check_lib_save_LIBS=$LIBS
9201 LIBS="-ldag  $LIBS"
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208
9209 /* Override any GCC internal prototype to avoid an error.
9210    Use char because int might match the return type of a GCC
9211    builtin and then its argument prototype would still apply.  */
9212 #ifdef __cplusplus
9213 extern "C"
9214 #endif
9215 char dag_get_stream_erf_types ();
9216 int
9217 main ()
9218 {
9219 return dag_get_stream_erf_types ();
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9232   ac_status=$?
9233   grep -v '^ *+' conftest.er1 >conftest.err
9234   rm -f conftest.er1
9235   cat conftest.err >&5
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } && {
9238          test -z "$ac_c_werror_flag" ||
9239          test ! -s conftest.err
9240        } && test -s conftest$ac_exeext &&
9241        $as_test_x conftest$ac_exeext; then
9242   ac_cv_lib_dag_dag_get_stream_erf_types=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247         ac_cv_lib_dag_dag_get_stream_erf_types=no
9248 fi
9249
9250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9251       conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9253 fi
9254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9255 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9256 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9257
9258
9259 cat >>confdefs.h <<\_ACEOF
9260 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9261 _ACEOF
9262
9263 fi
9264
9265
9266         LDFLAGS=$saved_ldflags
9267
9268         if test "$dag_streams" = 1; then
9269
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_DAG_STREAMS_API 1
9272 _ACEOF
9273
9274                 LIBS="$LIBS -ldag"
9275                 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9276
9277                 { echo "$as_me:$LINENO: checking for vdag_set_device_info in -lvdag" >&5
9278 echo $ECHO_N "checking for vdag_set_device_info in -lvdag... $ECHO_C" >&6; }
9279 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   ac_check_lib_save_LIBS=$LIBS
9283 LIBS="-lvdag  $LIBS"
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h.  */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h.  */
9290
9291 /* Override any GCC internal prototype to avoid an error.
9292    Use char because int might match the return type of a GCC
9293    builtin and then its argument prototype would still apply.  */
9294 #ifdef __cplusplus
9295 extern "C"
9296 #endif
9297 char vdag_set_device_info ();
9298 int
9299 main ()
9300 {
9301 return vdag_set_device_info ();
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (ac_try="$ac_link"
9308 case "(($ac_try" in
9309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310   *) ac_try_echo=$ac_try;;
9311 esac
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313   (eval "$ac_link") 2>conftest.er1
9314   ac_status=$?
9315   grep -v '^ *+' conftest.er1 >conftest.err
9316   rm -f conftest.er1
9317   cat conftest.err >&5
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } && {
9320          test -z "$ac_c_werror_flag" ||
9321          test ! -s conftest.err
9322        } && test -s conftest$ac_exeext &&
9323        $as_test_x conftest$ac_exeext; then
9324   ac_cv_lib_vdag_vdag_set_device_info=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329         ac_cv_lib_vdag_vdag_set_device_info=no
9330 fi
9331
9332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333       conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_check_lib_save_LIBS
9335 fi
9336 { echo "$as_me:$LINENO: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9337 echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9338 if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9339   ac_dag_have_vdag="1"
9340 else
9341   ac_dag_have_vdag="0"
9342 fi
9343
9344                 if test "$ac_dag_have_vdag" = 1; then
9345
9346 cat >>confdefs.h <<\_ACEOF
9347 #define HAVE_DAG_VDAG 1
9348 _ACEOF
9349
9350                         LIBS="$LIBS -lpthread"
9351                 fi
9352         fi
9353
9354
9355 cat >>confdefs.h <<\_ACEOF
9356 #define HAVE_DAG_API 1
9357 _ACEOF
9358
9359 fi
9360
9361 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9362 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9363
9364 if test $ac_cv_lbl_dag_api = no; then
9365         { echo "$as_me:$LINENO: result: no" >&5
9366 echo "${ECHO_T}no" >&6; }
9367         if test "$want_dag" = yes; then
9368                 # User wanted DAG support but we couldn't find it.
9369                 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9370 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9371    { (exit 1); exit 1; }; }
9372         fi
9373
9374         if test "$V_PCAP" = dag; then
9375                 # User requested "dag" capture type but the DAG API wasn't
9376                 # found.
9377                 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
9378 echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
9379    { (exit 1); exit 1; }; }
9380         fi
9381 else
9382         { echo "$as_me:$LINENO: result: yes" >&5
9383 echo "${ECHO_T}yes" >&6; }
9384 fi
9385
9386
9387 # Check whether --with-septel was given.
9388 if test "${with_septel+set}" = set; then
9389   withval=$with_septel;
9390         if test "$withval" = no
9391         then
9392                 want_septel=no
9393         elif test "$withval" = yes
9394         then
9395                 want_septel=yes
9396                 septel_root=
9397         else
9398                 want_septel=yes
9399                 septel_root=$withval
9400         fi
9401
9402 else
9403
9404         #
9405         # Use Septel API if present, otherwise don't
9406         #
9407         want_septel=ifpresent
9408         septel_root=./../septel
9409
9410 fi
9411
9412 ac_cv_lbl_septel_api=no
9413 case "$V_PCAP" in
9414 linux|septel)
9415         #
9416         # We support the Septel API if we're on Linux, or if we're building
9417         # a Septel-only libpcap.
9418         #
9419         ;;
9420 *)
9421         #
9422         # If the user explicitly requested Septel, tell them it's not
9423         # supported.
9424         #
9425         # If they expressed no preference, don't include it.
9426         #
9427         if test $want_septel = yes; then
9428                 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9429 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9430    { (exit 1); exit 1; }; }
9431         elif test $want_septel = yes; then
9432                 want_septel=no
9433         fi
9434         ;;
9435 esac
9436
9437 if test "$with_septel" != no; then
9438         { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9439 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9440
9441         if test -z "$septel_root"; then
9442                 septel_root=$srcdir/../septel
9443         fi
9444
9445         septel_tools_dir="$septel_root"
9446         septel_include_dir="$septel_root/INC"
9447
9448         ac_cv_lbl_septel_api=no
9449         if test -r "$septel_include_dir/msg.h"; then
9450                 V_INCLS="$V_INCLS -I$septel_include_dir"
9451                 ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9452                 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9453
9454                 if test "$V_PCAP" != septel ; then
9455                          SSRC="pcap-septel.c"
9456                 fi
9457                 ac_cv_lbl_septel_api=yes
9458         fi
9459
9460         { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9461 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9462         if test $ac_cv_lbl_septel_api = no; then
9463                 if test "$want_septel" = yes; then
9464                         { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9465 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9466    { (exit 1); exit 1; }; }
9467                 fi
9468         else
9469
9470 cat >>confdefs.h <<\_ACEOF
9471 #define HAVE_SEPTEL_API 1
9472 _ACEOF
9473
9474         fi
9475 fi
9476
9477 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9478         { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9479 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9480    { (exit 1); exit 1; }; }
9481 fi
9482
9483 # Check for Myricom SNF support.
9484
9485 # Check whether --with-snf was given.
9486 if test "${with_snf+set}" = set; then
9487   withval=$with_snf;
9488         if test "$withval" = no
9489         then
9490                 # User explicitly doesn't want SNF
9491                 want_snf=no
9492         elif test "$withval" = yes
9493         then
9494                 # User wants SNF support but hasn't specific a directory.
9495                 want_snf=yes
9496         else
9497                 # User wants SNF support with a specified directory.
9498                 want_snf=yes
9499                 snf_root=$withval
9500         fi
9501
9502 else
9503
9504         #
9505         # Use Sniffer API if present, otherwise don't
9506         #
9507         want_snf=ifpresent
9508
9509 fi
9510
9511
9512
9513 # Check whether --with-snf-includes was given.
9514 if test "${with_snf_includes+set}" = set; then
9515   withval=$with_snf_includes;
9516         # User wants SNF with specific header directory
9517         want_snf=yes
9518         snf_include_dir=$withval
9519
9520 fi
9521
9522
9523
9524 # Check whether --with-snf-libraries was given.
9525 if test "${with_snf_libraries+set}" = set; then
9526   withval=$with_snf_libraries;
9527         # User wants SNF with specific lib directory
9528         want_snf=yes
9529         snf_lib_dir=$withval
9530
9531 fi
9532
9533
9534 case "$V_PCAP" in
9535 bpf|linux|snf)
9536         #
9537         # We support the Sniffer API if we're on BSD, Linux, or if we're
9538         # building a Sniffer-only libpcap.
9539         #
9540         ;;
9541 *)
9542         #
9543         # If the user explicitly requested Sniffer, tell them it's not
9544         # supported.
9545         #
9546         # If they expressed no preference, don't include it.
9547         #
9548         if test $want_snf = yes; then
9549                 { { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9550 echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9551    { (exit 1); exit 1; }; }
9552         elif test $want_snf = yes; then
9553                 want_snf=no
9554         fi
9555         ;;
9556 esac
9557
9558 ac_cv_lbl_snf_api=no
9559 if test "$with_snf" != no; then
9560
9561         { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9562 echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9563
9564         if test -z "$snf_root"; then
9565                 snf_root=/opt/snf
9566         fi
9567
9568         if test -z "$snf_include_dir"; then
9569                 snf_include_dir="$snf_root/include"
9570         fi
9571
9572         if test -z "$snf_lib_dir"; then
9573                 snf_lib_dir="$snf_root/lib"
9574         fi
9575
9576         if test -f "$snf_include_dir/snf.h"; then
9577                 ac_cv_lbl_snf_api=yes
9578         fi
9579         { echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9580 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9581
9582         if test $ac_cv_lbl_snf_api = no; then
9583                 if test "$want_snf" = yes; then
9584                         { { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9585 echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9586    { (exit 1); exit 1; }; }
9587                 fi
9588         else
9589                 saved_ldflags=$LDFLAGS
9590                 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9591                 { echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9592 echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9593 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   ac_check_lib_save_LIBS=$LIBS
9597 LIBS="-lsnf  $LIBS"
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604
9605 /* Override any GCC internal prototype to avoid an error.
9606    Use char because int might match the return type of a GCC
9607    builtin and then its argument prototype would still apply.  */
9608 #ifdef __cplusplus
9609 extern "C"
9610 #endif
9611 char snf_init ();
9612 int
9613 main ()
9614 {
9615 return snf_init ();
9616   ;
9617   return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest.$ac_objext 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>conftest.er1
9628   ac_status=$?
9629   grep -v '^ *+' conftest.er1 >conftest.err
9630   rm -f conftest.er1
9631   cat conftest.err >&5
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } && {
9634          test -z "$ac_c_werror_flag" ||
9635          test ! -s conftest.err
9636        } && test -s conftest$ac_exeext &&
9637        $as_test_x conftest$ac_exeext; then
9638   ac_cv_lib_snf_snf_init=yes
9639 else
9640   echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643         ac_cv_lib_snf_snf_init=no
9644 fi
9645
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647       conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9649 fi
9650 { echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9651 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9652 if test $ac_cv_lib_snf_snf_init = yes; then
9653   ac_cv_lbl_snf_api="yes"
9654 else
9655   ac_cv_lbl_snf_api="no"
9656 fi
9657
9658                 LDFLAGS="$saved_ldflags"
9659
9660                 if test $ac_cv_lbl_snf_api = no; then
9661                         if test "$want_snf" = yes; then
9662                                 { { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9663 echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9664    { (exit 1); exit 1; }; }
9665                         fi
9666                 else
9667                         V_INCLS="$V_INCLS -I$snf_include_dir"
9668                         LIBS="$LIBS -lsnf"
9669                         LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9670                         if test "$V_PCAP" != snf ; then
9671                                 SSRC="pcap-snf.c"
9672                         fi
9673
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HAVE_SNF_API 1
9676 _ACEOF
9677
9678                 fi
9679         fi
9680 fi
9681
9682 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9683         { { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9684 echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9685    { (exit 1); exit 1; }; }
9686 fi
9687
9688
9689 # Check whether --with-flex was given.
9690 if test "${with_flex+set}" = set; then
9691   withval=$with_flex;
9692 fi
9693
9694
9695 # Check whether --with-bison was given.
9696 if test "${with_bison+set}" = set; then
9697   withval=$with_bison;
9698 fi
9699
9700     if test "$with_flex" = no ; then
9701             V_LEX=lex
9702     else
9703             for ac_prog in flex
9704 do
9705   # Extract the first word of "$ac_prog", so it can be a program name with args.
9706 set dummy $ac_prog; ac_word=$2
9707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9709 if test "${ac_cv_prog_V_LEX+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   if test -n "$V_LEX"; then
9713   ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9714 else
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716 for as_dir in $PATH
9717 do
9718   IFS=$as_save_IFS
9719   test -z "$as_dir" && as_dir=.
9720   for ac_exec_ext in '' $ac_executable_extensions; do
9721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9722     ac_cv_prog_V_LEX="$ac_prog"
9723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9724     break 2
9725   fi
9726 done
9727 done
9728 IFS=$as_save_IFS
9729
9730 fi
9731 fi
9732 V_LEX=$ac_cv_prog_V_LEX
9733 if test -n "$V_LEX"; then
9734   { echo "$as_me:$LINENO: result: $V_LEX" >&5
9735 echo "${ECHO_T}$V_LEX" >&6; }
9736 else
9737   { echo "$as_me:$LINENO: result: no" >&5
9738 echo "${ECHO_T}no" >&6; }
9739 fi
9740
9741
9742   test -n "$V_LEX" && break
9743 done
9744 test -n "$V_LEX" || V_LEX="lex"
9745
9746     fi
9747     if test "$V_LEX" = flex ; then
9748             # The -V flag was added in 2.4
9749             { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9750 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9751             if test "${ac_cv_lbl_flex_v24+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   if flex -V >/dev/null 2>&1; then
9755                         ac_cv_lbl_flex_v24=yes
9756                 else
9757                         ac_cv_lbl_flex_v24=no
9758                 fi
9759 fi
9760
9761             { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9762 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9763             if test $ac_cv_lbl_flex_v24 = no ; then
9764                     s="2.4 or higher required"
9765                     { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9766 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9767                     V_LEX=lex
9768             fi
9769     fi
9770     if test "$with_bison" = no ; then
9771             V_YACC=yacc
9772     else
9773             for ac_prog in bison
9774 do
9775   # Extract the first word of "$ac_prog", so it can be a program name with args.
9776 set dummy $ac_prog; ac_word=$2
9777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9779 if test "${ac_cv_prog_V_YACC+set}" = set; then
9780   echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782   if test -n "$V_YACC"; then
9783   ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9784 else
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9787 do
9788   IFS=$as_save_IFS
9789   test -z "$as_dir" && as_dir=.
9790   for ac_exec_ext in '' $ac_executable_extensions; do
9791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792     ac_cv_prog_V_YACC="$ac_prog"
9793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9794     break 2
9795   fi
9796 done
9797 done
9798 IFS=$as_save_IFS
9799
9800 fi
9801 fi
9802 V_YACC=$ac_cv_prog_V_YACC
9803 if test -n "$V_YACC"; then
9804   { echo "$as_me:$LINENO: result: $V_YACC" >&5
9805 echo "${ECHO_T}$V_YACC" >&6; }
9806 else
9807   { echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6; }
9809 fi
9810
9811
9812   test -n "$V_YACC" && break
9813 done
9814 test -n "$V_YACC" || V_YACC="yacc"
9815
9816     fi
9817     if test "$V_YACC" = bison ; then
9818             V_YACC="$V_YACC -y"
9819     fi
9820     if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9821             { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9822 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9823             V_LEX=lex
9824             V_YACC=yacc
9825     fi
9826     if test "$V_LEX" = flex -a -n "pcap_" ; then
9827             V_LEX="$V_LEX -Ppcap_"
9828             V_YACC="$V_YACC -p pcap_"
9829     fi
9830 if test "$V_LEX" = lex ; then
9831 # Some versions of lex can't handle the definitions section of scanner.l .
9832 # Try lexing it and complain if it can't deal.
9833         { echo "$as_me:$LINENO: checking for capable lex" >&5
9834 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9835 if test "${tcpdump_cv_capable_lex+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   if lex -t scanner.l > /dev/null 2>&1; then
9839                         tcpdump_cv_capable_lex=yes
9840                 else
9841                         tcpdump_cv_capable_lex=insufficient
9842                 fi
9843 fi
9844 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9845 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9846         if test $tcpdump_cv_capable_lex = insufficient ; then
9847                 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9848  libpcap.  flex is a lex replacement that has many advantages, including
9849  being able to compile libpcap.  For more information, see
9850  http://www.gnu.org/software/flex/flex.html ." >&5
9851 echo "$as_me: error: Your operating system's lex is insufficient to compile
9852  libpcap.  flex is a lex replacement that has many advantages, including
9853  being able to compile libpcap.  For more information, see
9854  http://www.gnu.org/software/flex/flex.html ." >&2;}
9855    { (exit 1); exit 1; }; }
9856         fi
9857 fi
9858
9859 #
9860 # Assume, by default, no support for shared libraries and V7/BSD convention
9861 # for man pages (file formats in section 5, miscellaneous info in section 7).
9862 # Individual cases can override this.
9863 #
9864 DYEXT="none"
9865 MAN_FILE_FORMATS=5
9866 MAN_MISC_INFO=7
9867 case "$host_os" in
9868
9869 aix*)
9870
9871 cat >>confdefs.h <<\_ACEOF
9872 #define _SUN 1
9873 _ACEOF
9874
9875
9876         #
9877         # AIX makes it fun to build shared and static libraries,
9878         # because they're *both* ".a" archive libraries.  We
9879         # build the static library for the benefit of the traditional
9880         # scheme of building libpcap and tcpdump in subdirectories of
9881         # the same directory, with tcpdump statically linked with the
9882         # libpcap in question, but we also build a shared library as
9883         # "libpcap.shareda" and install *it*, rather than the static
9884         # library, as "libpcap.a".
9885         #
9886         DYEXT="shareda"
9887
9888         case "$V_PCAP" in
9889
9890         dlpi)
9891                 #
9892                 # If we're using DLPI, applications will need to
9893                 # use /lib/pse.exp if present, as we use the
9894                 # STREAMS routines.
9895                 #
9896                 pseexe="/lib/pse.exp"
9897                 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9898 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9899                 if test -f $pseexe ; then
9900                         { echo "$as_me:$LINENO: result: yes" >&5
9901 echo "${ECHO_T}yes" >&6; }
9902                         LIBS="-I:$pseexe"
9903                 fi
9904                 ;;
9905
9906         bpf)
9907                 #
9908                 # If we're using BPF, we need "-lodm" and "-lcfg", as
9909                 # we use them to load the BPF module.
9910                 #
9911                 LIBS="-lodm -lcfg"
9912                 ;;
9913         esac
9914         ;;
9915
9916 darwin*)
9917         DYEXT="dylib"
9918         V_CCOPT="$V_CCOPT -fno-common"
9919         # Check whether --enable-universal was given.
9920 if test "${enable_universal+set}" = set; then
9921   enableval=$enable_universal;
9922 fi
9923
9924         if test "$enable_universal" != "no"; then
9925                 case "$host_os" in
9926
9927                 darwin9.*)
9928                         #
9929                         # Leopard.  Build for 32-bit PowerPC, 64-bit
9930                         # PowerPC, x86, and x86-64, with 32-bit PowerPC
9931                         # first.  (That's what Apple does.)
9932                         #
9933                         V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9934                         LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9935                         ;;
9936
9937                 darwin10.*)
9938                         #
9939                         # Snow Leopard.  Build for x86-64, x86, and
9940                         # 32-bit PowerPC, with x86-64 first.  (That's
9941                         # what Apple does, even though Snow Leopard
9942                         # doesn't run on PPC, so PPC libpcap runs under
9943                         # Rosetta, and Rosetta doesn't support BPF
9944                         # ioctls, so PPC programs can't do live
9945                         # captures.)
9946                         #
9947                         V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
9948                         LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
9949                         ;;
9950
9951                 darwin11.*)
9952                         #
9953                         # Lion.  Build for x86-64 and x86, with x86-64
9954                         # first.  (That's probably what Apple does,
9955                         # given that Rosetta is gone.)
9956                         #
9957                         V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
9958                         LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
9959                         ;;
9960                 esac
9961         fi
9962         ;;
9963
9964 hpux9*)
9965
9966 cat >>confdefs.h <<\_ACEOF
9967 #define HAVE_HPUX9 1
9968 _ACEOF
9969
9970
9971         #
9972         # Use System V conventions for man pages.
9973         #
9974         MAN_FILE_FORMATS=4
9975         MAN_MISC_INFO=5
9976         ;;
9977
9978 hpux10.0*)
9979
9980         #
9981         # Use System V conventions for man pages.
9982         #
9983         MAN_FILE_FORMATS=4
9984         MAN_MISC_INFO=5
9985         ;;
9986
9987 hpux10.1*)
9988
9989         #
9990         # Use System V conventions for man pages.
9991         #
9992         MAN_FILE_FORMATS=4
9993         MAN_MISC_INFO=5
9994         ;;
9995
9996 hpux*)
9997
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_HPUX10_20_OR_LATER 1
10000 _ACEOF
10001
10002         if test "`uname -m`" = "ia64"; then
10003                 DYEXT="so"
10004         else
10005                 DYEXT="sl"
10006         fi
10007
10008         #
10009         # "-b" builds a shared library; "+h" sets the soname.
10010         #
10011         SHLIB_OPT="-b"
10012         SONAME_OPT="+h"
10013
10014         #
10015         # Use System V conventions for man pages.
10016         #
10017         MAN_FILE_FORMATS=4
10018         MAN_MISC_INFO=5
10019         ;;
10020
10021 irix*)
10022         #
10023         # Use System V conventions for man pages.
10024         #
10025         MAN_FILE_FORMATS=4
10026         MAN_MISC_INFO=5
10027         ;;
10028
10029 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
10030         DYEXT="so"
10031
10032         #
10033         # Compiler assumed to be GCC; run-time linker may require a -R
10034         # flag.
10035         #
10036         if test "$libdir" != "/usr/lib"; then
10037                 V_RFLAGS=-Wl,-R$libdir
10038         fi
10039         ;;
10040
10041 osf*)
10042         DYEXT="so"
10043
10044         #
10045         # Use System V conventions for man pages.
10046         #
10047         MAN_FILE_FORMATS=4
10048         MAN_MISC_INFO=5
10049         ;;
10050
10051 sinix*)
10052         { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
10053 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
10054         if test "${ac_cv_cc_sinix_defined+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063
10064 int
10065 main ()
10066 {
10067 int i = sinix;
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 rm -f conftest.$ac_objext
10073 if { (ac_try="$ac_compile"
10074 case "(($ac_try" in
10075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076   *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079   (eval "$ac_compile") 2>conftest.er1
10080   ac_status=$?
10081   grep -v '^ *+' conftest.er1 >conftest.err
10082   rm -f conftest.er1
10083   cat conftest.err >&5
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } && {
10086          test -z "$ac_c_werror_flag" ||
10087          test ! -s conftest.err
10088        } && test -s conftest.$ac_objext; then
10089   ac_cv_cc_sinix_defined=yes
10090 else
10091   echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10093
10094         ac_cv_cc_sinix_defined=no
10095 fi
10096
10097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098 fi
10099
10100             { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
10101 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
10102             if test $ac_cv_cc_sinix_defined = no ; then
10103
10104 cat >>confdefs.h <<\_ACEOF
10105 #define sinix 1
10106 _ACEOF
10107
10108             fi
10109         ;;
10110
10111 solaris*)
10112
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_SOLARIS 1
10115 _ACEOF
10116
10117
10118         DYEXT="so"
10119         #
10120         # Use System V conventions for man pages.
10121         #
10122         MAN_FILE_FORMATS=4
10123         MAN_MISC_INFO=5
10124         ;;
10125 esac
10126
10127 if test -n "$ac_tool_prefix"; then
10128   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10132 if test "${ac_cv_prog_RANLIB+set}" = set; then
10133   echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135   if test -n "$RANLIB"; then
10136   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10137 else
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10140 do
10141   IFS=$as_save_IFS
10142   test -z "$as_dir" && as_dir=.
10143   for ac_exec_ext in '' $ac_executable_extensions; do
10144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10145     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10147     break 2
10148   fi
10149 done
10150 done
10151 IFS=$as_save_IFS
10152
10153 fi
10154 fi
10155 RANLIB=$ac_cv_prog_RANLIB
10156 if test -n "$RANLIB"; then
10157   { echo "$as_me:$LINENO: result: $RANLIB" >&5
10158 echo "${ECHO_T}$RANLIB" >&6; }
10159 else
10160   { echo "$as_me:$LINENO: result: no" >&5
10161 echo "${ECHO_T}no" >&6; }
10162 fi
10163
10164
10165 fi
10166 if test -z "$ac_cv_prog_RANLIB"; then
10167   ac_ct_RANLIB=$RANLIB
10168   # Extract the first word of "ranlib", so it can be a program name with args.
10169 set dummy ranlib; ac_word=$2
10170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   if test -n "$ac_ct_RANLIB"; then
10176   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10177 else
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10180 do
10181   IFS=$as_save_IFS
10182   test -z "$as_dir" && as_dir=.
10183   for ac_exec_ext in '' $ac_executable_extensions; do
10184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185     ac_cv_prog_ac_ct_RANLIB="ranlib"
10186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10187     break 2
10188   fi
10189 done
10190 done
10191 IFS=$as_save_IFS
10192
10193 fi
10194 fi
10195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10196 if test -n "$ac_ct_RANLIB"; then
10197   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10198 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
10199 else
10200   { echo "$as_me:$LINENO: result: no" >&5
10201 echo "${ECHO_T}no" >&6; }
10202 fi
10203
10204   if test "x$ac_ct_RANLIB" = x; then
10205     RANLIB=":"
10206   else
10207     case $cross_compiling:$ac_tool_warned in
10208 yes:)
10209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10210 whose name does not start with the host triplet.  If you think this
10211 configuration is useful to you, please write to autoconf@gnu.org." >&5
10212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10213 whose name does not start with the host triplet.  If you think this
10214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10215 ac_tool_warned=yes ;;
10216 esac
10217     RANLIB=$ac_ct_RANLIB
10218   fi
10219 else
10220   RANLIB="$ac_cv_prog_RANLIB"
10221 fi
10222
10223 if test -n "$ac_tool_prefix"; then
10224   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10225 set dummy ${ac_tool_prefix}ar; ac_word=$2
10226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10228 if test "${ac_cv_prog_AR+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   if test -n "$AR"; then
10232   ac_cv_prog_AR="$AR" # Let the user override the test.
10233 else
10234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235 for as_dir in $PATH
10236 do
10237   IFS=$as_save_IFS
10238   test -z "$as_dir" && as_dir=.
10239   for ac_exec_ext in '' $ac_executable_extensions; do
10240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10241     ac_cv_prog_AR="${ac_tool_prefix}ar"
10242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10243     break 2
10244   fi
10245 done
10246 done
10247 IFS=$as_save_IFS
10248
10249 fi
10250 fi
10251 AR=$ac_cv_prog_AR
10252 if test -n "$AR"; then
10253   { echo "$as_me:$LINENO: result: $AR" >&5
10254 echo "${ECHO_T}$AR" >&6; }
10255 else
10256   { echo "$as_me:$LINENO: result: no" >&5
10257 echo "${ECHO_T}no" >&6; }
10258 fi
10259
10260
10261 fi
10262 if test -z "$ac_cv_prog_AR"; then
10263   ac_ct_AR=$AR
10264   # Extract the first word of "ar", so it can be a program name with args.
10265 set dummy ar; ac_word=$2
10266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10268 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   if test -n "$ac_ct_AR"; then
10272   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10273 else
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10276 do
10277   IFS=$as_save_IFS
10278   test -z "$as_dir" && as_dir=.
10279   for ac_exec_ext in '' $ac_executable_extensions; do
10280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281     ac_cv_prog_ac_ct_AR="ar"
10282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283     break 2
10284   fi
10285 done
10286 done
10287 IFS=$as_save_IFS
10288
10289 fi
10290 fi
10291 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10292 if test -n "$ac_ct_AR"; then
10293   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10294 echo "${ECHO_T}$ac_ct_AR" >&6; }
10295 else
10296   { echo "$as_me:$LINENO: result: no" >&5
10297 echo "${ECHO_T}no" >&6; }
10298 fi
10299
10300   if test "x$ac_ct_AR" = x; then
10301     AR=""
10302   else
10303     case $cross_compiling:$ac_tool_warned in
10304 yes:)
10305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10306 whose name does not start with the host triplet.  If you think this
10307 configuration is useful to you, please write to autoconf@gnu.org." >&5
10308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10309 whose name does not start with the host triplet.  If you think this
10310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10311 ac_tool_warned=yes ;;
10312 esac
10313     AR=$ac_ct_AR
10314   fi
10315 else
10316   AR="$ac_cv_prog_AR"
10317 fi
10318
10319
10320 rm -f os-proto.h
10321     if test "${LBL_CFLAGS+set}" = set; then
10322             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10323     fi
10324     if test -f .devel ; then
10325             if test "$GCC" = yes ; then
10326                     if test "${LBL_CFLAGS+set}" != set; then
10327                             if test "$ac_cv_prog_cc_g" = yes ; then
10328                                     V_CCOPT="-g $V_CCOPT"
10329                             fi
10330                             V_CCOPT="$V_CCOPT -Wall"
10331                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10332                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10333                             fi
10334                     fi
10335             else
10336                     case "$host_os" in
10337
10338                     irix6*)
10339                             V_CCOPT="$V_CCOPT -n32"
10340                             ;;
10341
10342                     *)
10343                             ;;
10344                     esac
10345             fi
10346             os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10347             name="lbl/os-$os.h"
10348             if test -f $name ; then
10349                     ln -s $name os-proto.h
10350
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_OS_PROTO_H 1
10353 _ACEOF
10354
10355             else
10356                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10357 echo "$as_me: WARNING: can't find $name" >&2;}
10358             fi
10359     fi
10360
10361 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
10362 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
10363     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372
10373 #       include <sys/types.h>
10374 #       include <sys/socket.h>
10375 int
10376 main ()
10377 {
10378 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10379   ;
10380   return 0;
10381 }
10382 _ACEOF
10383 rm -f conftest.$ac_objext
10384 if { (ac_try="$ac_compile"
10385 case "(($ac_try" in
10386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387   *) ac_try_echo=$ac_try;;
10388 esac
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390   (eval "$ac_compile") 2>conftest.er1
10391   ac_status=$?
10392   grep -v '^ *+' conftest.er1 >conftest.err
10393   rm -f conftest.er1
10394   cat conftest.err >&5
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); } && {
10397          test -z "$ac_c_werror_flag" ||
10398          test ! -s conftest.err
10399        } && test -s conftest.$ac_objext; then
10400   ac_cv_lbl_sockaddr_has_sa_len=yes
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405         ac_cv_lbl_sockaddr_has_sa_len=no
10406 fi
10407
10408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10409 fi
10410
10411     { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10412 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10413     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10414
10415 cat >>confdefs.h <<\_ACEOF
10416 #define HAVE_SOCKADDR_SA_LEN 1
10417 _ACEOF
10418
10419     fi
10420
10421 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10422 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10423     if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10424   echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426   cat >conftest.$ac_ext <<_ACEOF
10427 /* confdefs.h.  */
10428 _ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h.  */
10432
10433 #       include <sys/types.h>
10434 #       include <sys/socket.h>
10435 int
10436 main ()
10437 {
10438 u_int i = sizeof (struct sockaddr_storage)
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (ac_try="$ac_compile"
10445 case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_compile") 2>conftest.er1
10451   ac_status=$?
10452   grep -v '^ *+' conftest.er1 >conftest.err
10453   rm -f conftest.er1
10454   cat conftest.err >&5
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } && {
10457          test -z "$ac_c_werror_flag" ||
10458          test ! -s conftest.err
10459        } && test -s conftest.$ac_objext; then
10460   ac_cv_lbl_has_sockaddr_storage=yes
10461 else
10462   echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465         ac_cv_lbl_has_sockaddr_storage=no
10466 fi
10467
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 fi
10470
10471     { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10472 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10473     if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10474
10475 cat >>confdefs.h <<\_ACEOF
10476 #define HAVE_SOCKADDR_STORAGE 1
10477 _ACEOF
10478
10479     fi
10480
10481 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10482 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10483     if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h.  */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h.  */
10492
10493 #       include <sys/types.h>
10494 #       include <sys/dlpi.h>
10495 #       include <sys/dlpi_ext.h>
10496 int
10497 main ()
10498 {
10499 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext
10505 if { (ac_try="$ac_compile"
10506 case "(($ac_try" in
10507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508   *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511   (eval "$ac_compile") 2>conftest.er1
10512   ac_status=$?
10513   grep -v '^ *+' conftest.er1 >conftest.err
10514   rm -f conftest.er1
10515   cat conftest.err >&5
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } && {
10518          test -z "$ac_c_werror_flag" ||
10519          test ! -s conftest.err
10520        } && test -s conftest.$ac_objext; then
10521   ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526         ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10527 fi
10528
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 fi
10531
10532     { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10533 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10534     if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10535
10536 cat >>confdefs.h <<\_ACEOF
10537 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10538 _ACEOF
10539
10540     fi
10541
10542 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10543 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10544     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10545   echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547   case "$host_cpu" in
10548
10549         #
10550         # These are CPU types where:
10551         #
10552         #       the CPU faults on an unaligned access, but at least some
10553         #       OSes that support that CPU catch the fault and simulate
10554         #       the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10555         #       the simulation is slow, so we don't want to use it;
10556         #
10557         #       the CPU, I infer (from the old
10558         #
10559         # XXX: should also check that they don't do weird things (like on arm)
10560         #
10561         #       comment) doesn't fault on unaligned accesses, but doesn't
10562         #       do a normal unaligned fetch, either (e.g., presumably, ARM);
10563         #
10564         #       for whatever reason, the test program doesn't work
10565         #       (this has been claimed to be the case for several of those
10566         #       CPUs - I don't know what the problem is; the problem
10567         #       was reported as "the test program dumps core" for SuperH,
10568         #       but that's what the test program is *supposed* to do -
10569         #       it dumps core before it writes anything, so the test
10570         #       for an empty output file should find an empty output
10571         #       file and conclude that unaligned accesses don't work).
10572         #
10573         # This run-time test won't work if you're cross-compiling, so
10574         # in order to support cross-compiling for a particular CPU,
10575         # we have to wire in the list of CPU types anyway, as far as
10576         # I know, so perhaps we should just have a set of CPUs on
10577         # which we know it doesn't work, a set of CPUs on which we
10578         # know it does work, and have the script just fail on other
10579         # cpu types and update it when such a failure occurs.
10580         #
10581         alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10582                 ac_cv_lbl_unaligned_fail=yes
10583                 ;;
10584
10585         *)
10586                 cat >conftest.c <<EOF
10587 #               include <sys/types.h>
10588 #               include <sys/wait.h>
10589 #               include <stdio.h>
10590                 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10591                 main() {
10592                 unsigned int i;
10593                 pid_t pid;
10594                 int status;
10595                 /* avoid "core dumped" message */
10596                 pid = fork();
10597                 if (pid <  0)
10598                         exit(2);
10599                 if (pid > 0) {
10600                         /* parent */
10601                         pid = waitpid(pid, &status, 0);
10602                         if (pid < 0)
10603                                 exit(3);
10604                         exit(!WIFEXITED(status));
10605                 }
10606                 /* child */
10607                 i = *(unsigned int *)&a[1];
10608                 printf("%d\n", i);
10609                 exit(0);
10610                 }
10611 EOF
10612                 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10613                     conftest.c $LIBS >/dev/null 2>&1
10614                 if test ! -x conftest ; then
10615                                                 ac_cv_lbl_unaligned_fail=yes
10616                 else
10617                         ./conftest >conftest.out
10618                         if test ! -s conftest.out ; then
10619                                 ac_cv_lbl_unaligned_fail=yes
10620                         else
10621                                 ac_cv_lbl_unaligned_fail=no
10622                         fi
10623                 fi
10624                 rm -f -r conftest* core core.conftest
10625                 ;;
10626         esac
10627 fi
10628
10629     { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10630 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10631     if test $ac_cv_lbl_unaligned_fail = yes ; then
10632
10633 cat >>confdefs.h <<\_ACEOF
10634 #define LBL_ALIGN 1
10635 _ACEOF
10636
10637     fi
10638
10639 #
10640 # Makefile.in includes rules to generate version.h, so we assume
10641 # that it will be generated if autoconf is used.
10642 #
10643
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_VERSION_H 1
10646 _ACEOF
10647
10648
10649 rm -f net
10650 ln -s ${srcdir}/bpf/net net
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10671 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10672 case "$host_os" in
10673 linux*)
10674
10675 cat >>confdefs.h <<\_ACEOF
10676 #define PCAP_SUPPORT_USB 1
10677 _ACEOF
10678
10679         USB_SRC=pcap-usb-linux.c
10680         { echo "$as_me:$LINENO: result: yes" >&5
10681 echo "${ECHO_T}yes" >&6; }
10682         ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10683         if test $? -ne 0 ; then
10684           ac_usb_dev_name="usbmon"
10685         fi
10686
10687 cat >>confdefs.h <<_ACEOF
10688 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10689 _ACEOF
10690
10691         { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10692 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10693         #
10694         # Do we have a version of <linux/compiler.h> available?
10695         # If so, we might need it for <linux/usbdevice_fs.h>.
10696         #
10697
10698 for ac_header in linux/compiler.h
10699 do
10700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10705   echo $ECHO_N "(cached) $ECHO_C" >&6
10706 fi
10707 ac_res=`eval echo '${'$as_ac_Header'}'`
10708                { echo "$as_me:$LINENO: result: $ac_res" >&5
10709 echo "${ECHO_T}$ac_res" >&6; }
10710 else
10711   # Is the header compilable?
10712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10714 cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h.  */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h.  */
10720 $ac_includes_default
10721 #include <$ac_header>
10722 _ACEOF
10723 rm -f conftest.$ac_objext
10724 if { (ac_try="$ac_compile"
10725 case "(($ac_try" in
10726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727   *) ac_try_echo=$ac_try;;
10728 esac
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730   (eval "$ac_compile") 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } && {
10737          test -z "$ac_c_werror_flag" ||
10738          test ! -s conftest.err
10739        } && test -s conftest.$ac_objext; then
10740   ac_header_compiler=yes
10741 else
10742   echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745         ac_header_compiler=no
10746 fi
10747
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10751
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h.  */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h.  */
10761 #include <$ac_header>
10762 _ACEOF
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766   *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } >/dev/null && {
10776          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10777          test ! -s conftest.err
10778        }; then
10779   ac_header_preproc=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784   ac_header_preproc=no
10785 fi
10786
10787 rm -f conftest.err conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6; }
10790
10791 # So?  What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10793   yes:no: )
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798     ac_header_preproc=yes
10799     ;;
10800   no:yes:* )
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813
10814     ;;
10815 esac
10816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10819   echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821   eval "$as_ac_Header=\$ac_header_preproc"
10822 fi
10823 ac_res=`eval echo '${'$as_ac_Header'}'`
10824                { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826
10827 fi
10828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10829   cat >>confdefs.h <<_ACEOF
10830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10831 _ACEOF
10832
10833 fi
10834
10835 done
10836
10837         if test "$ac_cv_header_linux_compiler_h" = yes; then
10838           #
10839           # Yes - include it when testing for <linux/usbdevice_fs.h>.
10840           #
10841
10842 for ac_header in linux/usbdevice_fs.h
10843 do
10844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h.  */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h.  */
10856 #include <linux/compiler.h>
10857
10858 #include <$ac_header>
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (ac_try="$ac_compile"
10862 case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_compile") 2>conftest.er1
10868   ac_status=$?
10869   grep -v '^ *+' conftest.er1 >conftest.err
10870   rm -f conftest.er1
10871   cat conftest.err >&5
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); } && {
10874          test -z "$ac_c_werror_flag" ||
10875          test ! -s conftest.err
10876        } && test -s conftest.$ac_objext; then
10877   eval "$as_ac_Header=yes"
10878 else
10879   echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882         eval "$as_ac_Header=no"
10883 fi
10884
10885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10886 fi
10887 ac_res=`eval echo '${'$as_ac_Header'}'`
10888                { echo "$as_me:$LINENO: result: $ac_res" >&5
10889 echo "${ECHO_T}$ac_res" >&6; }
10890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891   cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10893 _ACEOF
10894
10895 fi
10896
10897 done
10898
10899         else
10900
10901 for ac_header in linux/usbdevice_fs.h
10902 do
10903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908   echo $ECHO_N "(cached) $ECHO_C" >&6
10909 fi
10910 ac_res=`eval echo '${'$as_ac_Header'}'`
10911                { echo "$as_me:$LINENO: result: $ac_res" >&5
10912 echo "${ECHO_T}$ac_res" >&6; }
10913 else
10914   # Is the header compilable?
10915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10917 cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 $ac_includes_default
10924 #include <$ac_header>
10925 _ACEOF
10926 rm -f conftest.$ac_objext
10927 if { (ac_try="$ac_compile"
10928 case "(($ac_try" in
10929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930   *) ac_try_echo=$ac_try;;
10931 esac
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933   (eval "$ac_compile") 2>conftest.er1
10934   ac_status=$?
10935   grep -v '^ *+' conftest.er1 >conftest.err
10936   rm -f conftest.er1
10937   cat conftest.err >&5
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); } && {
10940          test -z "$ac_c_werror_flag" ||
10941          test ! -s conftest.err
10942        } && test -s conftest.$ac_objext; then
10943   ac_header_compiler=yes
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948         ac_header_compiler=no
10949 fi
10950
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10953 echo "${ECHO_T}$ac_header_compiler" >&6; }
10954
10955 # Is the header present?
10956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h.  */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h.  */
10964 #include <$ac_header>
10965 _ACEOF
10966 if { (ac_try="$ac_cpp conftest.$ac_ext"
10967 case "(($ac_try" in
10968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969   *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10973   ac_status=$?
10974   grep -v '^ *+' conftest.er1 >conftest.err
10975   rm -f conftest.er1
10976   cat conftest.err >&5
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } >/dev/null && {
10979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10980          test ! -s conftest.err
10981        }; then
10982   ac_header_preproc=yes
10983 else
10984   echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987   ac_header_preproc=no
10988 fi
10989
10990 rm -f conftest.err conftest.$ac_ext
10991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10992 echo "${ECHO_T}$ac_header_preproc" >&6; }
10993
10994 # So?  What about this header?
10995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10996   yes:no: )
10997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11001     ac_header_preproc=yes
11002     ;;
11003   no:yes:* )
11004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11016
11017     ;;
11018 esac
11019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022   echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024   eval "$as_ac_Header=\$ac_header_preproc"
11025 fi
11026 ac_res=`eval echo '${'$as_ac_Header'}'`
11027                { echo "$as_me:$LINENO: result: $ac_res" >&5
11028 echo "${ECHO_T}$ac_res" >&6; }
11029
11030 fi
11031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11032   cat >>confdefs.h <<_ACEOF
11033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11034 _ACEOF
11035
11036 fi
11037
11038 done
11039
11040         fi
11041         if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11042           #
11043           # OK, does it define bRequestType?  Older versions of the kernel
11044           # define fields with names like "requesttype, "request", and
11045           # "value", rather than "bRequestType", "bRequest", and
11046           # "wValue".
11047           #
11048           { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
11049 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
11050           if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053   cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059
11060 $ac_includes_default
11061 #ifdef HAVE_SYS_BITYPES_H
11062 #include <sys/bitypes.h>
11063 #endif
11064 #ifdef HAVE_LINUX_COMPILER_H
11065 #include <linux/compiler.h>
11066 #endif
11067 #include <linux/usbdevice_fs.h>
11068 int
11069 main ()
11070 {
11071 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
11072   ;
11073   return 0;
11074 }
11075 _ACEOF
11076 rm -f conftest.$ac_objext
11077 if { (ac_try="$ac_compile"
11078 case "(($ac_try" in
11079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080   *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083   (eval "$ac_compile") 2>conftest.er1
11084   ac_status=$?
11085   grep -v '^ *+' conftest.er1 >conftest.err
11086   rm -f conftest.er1
11087   cat conftest.err >&5
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } && {
11090          test -z "$ac_c_werror_flag" ||
11091          test ! -s conftest.err
11092        } && test -s conftest.$ac_objext; then
11093   ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098         ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
11099 fi
11100
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 fi
11103
11104             { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
11105 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
11106             if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
11107
11108 cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11110 _ACEOF
11111
11112             fi
11113         fi
11114         ;;
11115 *)
11116         { echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6; }
11118         ;;
11119 esac
11120
11121
11122
11123 { echo "$as_me:$LINENO: checking whether the platform could support netfilter sniffing" >&5
11124 echo $ECHO_N "checking whether the platform could support netfilter sniffing... $ECHO_C" >&6; }
11125 case "$host_os" in
11126 linux*)
11127         { echo "$as_me:$LINENO: result: yes" >&5
11128 echo "${ECHO_T}yes" >&6; }
11129         #
11130         # Life's too short to deal with trying to get this to compile
11131         # if you don't get the right types defined with
11132         # __KERNEL_STRICT_NAMES getting defined by some other include.
11133         #
11134         # Check whether the includes Just Work.  If not, don't turn on
11135         # netfilter support.
11136         #
11137         { echo "$as_me:$LINENO: checking whether we can compile the netfilter support" >&5
11138 echo $ECHO_N "checking whether we can compile the netfilter support... $ECHO_C" >&6; }
11139         if test "${ac_cv_netfilter_can_compile+set}" = set; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142   cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h.  */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h.  */
11148
11149 $ac_includes_default
11150 #include <sys/socket.h>
11151 #include <linux/types.h>
11152
11153 #include <linux/netlink.h>
11154 #include <linux/netfilter/nfnetlink.h>
11155 #include <linux/netfilter/nfnetlink_log.h>
11156 int
11157 main ()
11158 {
11159
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest.$ac_objext
11165 if { (ac_try="$ac_compile"
11166 case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_compile") 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } && {
11178          test -z "$ac_c_werror_flag" ||
11179          test ! -s conftest.err
11180        } && test -s conftest.$ac_objext; then
11181   ac_cv_netfilter_can_compile=yes
11182 else
11183   echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186         ac_cv_netfilter_can_compile=no
11187 fi
11188
11189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190 fi
11191
11192         { echo "$as_me:$LINENO: result: $ac_cv_netfilter_can_compile" >&5
11193 echo "${ECHO_T}$ac_cv_netfilter_can_compile" >&6; }
11194         if test $ac_cv_netfilter_can_compile = yes ; then
11195
11196 cat >>confdefs.h <<\_ACEOF
11197 #define PCAP_SUPPORT_NETFILTER 1
11198 _ACEOF
11199
11200           NETFILTER_SRC=pcap-netfilter-linux.c
11201         fi
11202         ;;
11203 *)
11204         { echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6; }
11206         ;;
11207 esac
11208
11209
11210
11211 # Check whether --enable-bluetooth was given.
11212 if test "${enable_bluetooth+set}" = set; then
11213   enableval=$enable_bluetooth;
11214 else
11215   enable_bluetooth=yes
11216 fi
11217
11218
11219 if test "x$enable_bluetooth" != "xno" ; then
11220                 case "$host_os" in
11221         linux*)
11222                 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11223   { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11224 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11225 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 fi
11228 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11229 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11230 else
11231   # Is the header compilable?
11232 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
11233 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240 $ac_includes_default
11241 #include <bluetooth/bluetooth.h>
11242 _ACEOF
11243 rm -f conftest.$ac_objext
11244 if { (ac_try="$ac_compile"
11245 case "(($ac_try" in
11246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247   *) ac_try_echo=$ac_try;;
11248 esac
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250   (eval "$ac_compile") 2>conftest.er1
11251   ac_status=$?
11252   grep -v '^ *+' conftest.er1 >conftest.err
11253   rm -f conftest.er1
11254   cat conftest.err >&5
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } && {
11257          test -z "$ac_c_werror_flag" ||
11258          test ! -s conftest.err
11259        } && test -s conftest.$ac_objext; then
11260   ac_header_compiler=yes
11261 else
11262   echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265         ac_header_compiler=no
11266 fi
11267
11268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11270 echo "${ECHO_T}$ac_header_compiler" >&6; }
11271
11272 # Is the header present?
11273 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
11274 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 #include <bluetooth/bluetooth.h>
11282 _ACEOF
11283 if { (ac_try="$ac_cpp conftest.$ac_ext"
11284 case "(($ac_try" in
11285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286   *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
11293   cat conftest.err >&5
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } >/dev/null && {
11296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11297          test ! -s conftest.err
11298        }; then
11299   ac_header_preproc=yes
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304   ac_header_preproc=no
11305 fi
11306
11307 rm -f conftest.err conftest.$ac_ext
11308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309 echo "${ECHO_T}$ac_header_preproc" >&6; }
11310
11311 # So?  What about this header?
11312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11313   yes:no: )
11314     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11315 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11317 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11318     ac_header_preproc=yes
11319     ;;
11320   no:yes:* )
11321     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11322 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11323     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&5
11324 echo "$as_me: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11326 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11327     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&5
11328 echo "$as_me: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11329     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11330 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11331     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11332 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11333
11334     ;;
11335 esac
11336 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11337 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11338 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11339   echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341   ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11342 fi
11343 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11344 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11345
11346 fi
11347 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11348
11349
11350 cat >>confdefs.h <<\_ACEOF
11351 #define PCAP_SUPPORT_BT 1
11352 _ACEOF
11353
11354                   BT_SRC=pcap-bt-linux.c
11355                   { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11356 echo "$as_me: Bluetooth sniffing is supported" >&6;}
11357
11358 else
11359   { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11360 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11361
11362 fi
11363
11364
11365                 ;;
11366         *)
11367                 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11368 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11369                 ;;
11370         esac
11371
11372
11373 fi
11374
11375 # Check whether --enable-can was given.
11376 if test "${enable_can+set}" = set; then
11377   enableval=$enable_can;
11378 else
11379   enable_can=yes
11380 fi
11381
11382
11383 if test "x$enable_can" != "xno" ; then
11384                 case "$host_os" in
11385         linux*)
11386                 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
11387 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11388 if test "${ac_cv_header_linux_can_h+set}" = set; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 #include <sys/socket.h>
11398
11399
11400 #include <linux/can.h>
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (ac_try="$ac_compile"
11404 case "(($ac_try" in
11405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406   *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409   (eval "$ac_compile") 2>conftest.er1
11410   ac_status=$?
11411   grep -v '^ *+' conftest.er1 >conftest.err
11412   rm -f conftest.er1
11413   cat conftest.err >&5
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } && {
11416          test -z "$ac_c_werror_flag" ||
11417          test ! -s conftest.err
11418        } && test -s conftest.$ac_objext; then
11419   ac_cv_header_linux_can_h=yes
11420 else
11421   echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11423
11424         ac_cv_header_linux_can_h=no
11425 fi
11426
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 fi
11429 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11430 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11431 if test $ac_cv_header_linux_can_h = yes; then
11432
11433 cat >>confdefs.h <<\_ACEOF
11434 #define PCAP_SUPPORT_CAN 1
11435 _ACEOF
11436
11437                         CAN_SRC=pcap-can-linux.c
11438                         { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11439 echo "$as_me: CAN sniffing is supported" >&6;}
11440 else
11441   { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11442 echo "$as_me: CAN sniffing is not supported" >&6;}
11443 fi
11444
11445
11446                 ;;
11447         *)
11448                 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11449 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11450                 ;;
11451         esac
11452
11453
11454 fi
11455
11456 case "$host_os" in
11457 linux*)
11458
11459 for ac_header in linux/net_tstamp.h
11460 do
11461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 fi
11468 ac_res=`eval echo '${'$as_ac_Header'}'`
11469                { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11471 else
11472   # Is the header compilable?
11473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11475 cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h.  */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h.  */
11481 $ac_includes_default
11482 #include <$ac_header>
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (ac_try="$ac_compile"
11486 case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_compile") 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } && {
11498          test -z "$ac_c_werror_flag" ||
11499          test ! -s conftest.err
11500        } && test -s conftest.$ac_objext; then
11501   ac_header_compiler=yes
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506         ac_header_compiler=no
11507 fi
11508
11509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11511 echo "${ECHO_T}$ac_header_compiler" >&6; }
11512
11513 # Is the header present?
11514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h.  */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h.  */
11522 #include <$ac_header>
11523 _ACEOF
11524 if { (ac_try="$ac_cpp conftest.$ac_ext"
11525 case "(($ac_try" in
11526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527   *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11531   ac_status=$?
11532   grep -v '^ *+' conftest.er1 >conftest.err
11533   rm -f conftest.er1
11534   cat conftest.err >&5
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); } >/dev/null && {
11537          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11538          test ! -s conftest.err
11539        }; then
11540   ac_header_preproc=yes
11541 else
11542   echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545   ac_header_preproc=no
11546 fi
11547
11548 rm -f conftest.err conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550 echo "${ECHO_T}$ac_header_preproc" >&6; }
11551
11552 # So?  What about this header?
11553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554   yes:no: )
11555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559     ac_header_preproc=yes
11560     ;;
11561   no:yes:* )
11562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11574
11575     ;;
11576 esac
11577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580   echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582   eval "$as_ac_Header=\$ac_header_preproc"
11583 fi
11584 ac_res=`eval echo '${'$as_ac_Header'}'`
11585                { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11587
11588 fi
11589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11590   cat >>confdefs.h <<_ACEOF
11591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 _ACEOF
11593
11594 fi
11595
11596 done
11597
11598         ;;
11599 *)
11600         { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11601 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11602         ;;
11603 esac
11604
11605 # Find a good install program.  We prefer a C program (faster),
11606 # so one script is as good as another.  But avoid the broken or
11607 # incompatible versions:
11608 # SysV /etc/install, /usr/sbin/install
11609 # SunOS /usr/etc/install
11610 # IRIX /sbin/install
11611 # AIX /bin/install
11612 # AmigaOS /C/install, which installs bootblocks on floppy discs
11613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11616 # OS/2's system install, which has a completely different semantic
11617 # ./install, which can be erroneously created by make from ./install.sh.
11618 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11619 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11620 if test -z "$INSTALL"; then
11621 if test "${ac_cv_path_install+set}" = set; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11626 do
11627   IFS=$as_save_IFS
11628   test -z "$as_dir" && as_dir=.
11629   # Account for people who put trailing slashes in PATH elements.
11630 case $as_dir/ in
11631   ./ | .// | /cC/* | \
11632   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11633   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11634   /usr/ucb/* ) ;;
11635   *)
11636     # OSF1 and SCO ODT 3.0 have their own names for install.
11637     # Don't use installbsd from OSF since it installs stuff as root
11638     # by default.
11639     for ac_prog in ginstall scoinst install; do
11640       for ac_exec_ext in '' $ac_executable_extensions; do
11641         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11642           if test $ac_prog = install &&
11643             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11644             # AIX install.  It has an incompatible calling convention.
11645             :
11646           elif test $ac_prog = install &&
11647             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11648             # program-specific install script used by HP pwplus--don't use.
11649             :
11650           else
11651             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11652             break 3
11653           fi
11654         fi
11655       done
11656     done
11657     ;;
11658 esac
11659 done
11660 IFS=$as_save_IFS
11661
11662
11663 fi
11664   if test "${ac_cv_path_install+set}" = set; then
11665     INSTALL=$ac_cv_path_install
11666   else
11667     # As a last resort, use the slow shell script.  Don't cache a
11668     # value for INSTALL within a source directory, because that will
11669     # break other packages using the cache if that directory is
11670     # removed, or if the value is a relative name.
11671     INSTALL=$ac_install_sh
11672   fi
11673 fi
11674 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11675 echo "${ECHO_T}$INSTALL" >&6; }
11676
11677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11678 # It thinks the first close brace ends the variable substitution.
11679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11680
11681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11682
11683 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11684
11685
11686 ac_config_headers="$ac_config_headers config.h"
11687
11688
11689 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
11690
11691 cat >confcache <<\_ACEOF
11692 # This file is a shell script that caches the results of configure
11693 # tests run on this system so they can be shared between configure
11694 # scripts and configure runs, see configure's option --config-cache.
11695 # It is not useful on other systems.  If it contains results you don't
11696 # want to keep, you may remove or edit it.
11697 #
11698 # config.status only pays attention to the cache file if you give it
11699 # the --recheck option to rerun configure.
11700 #
11701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11703 # following values.
11704
11705 _ACEOF
11706
11707 # The following way of writing the cache mishandles newlines in values,
11708 # but we know of no workaround that is simple, portable, and efficient.
11709 # So, we kill variables containing newlines.
11710 # Ultrix sh set writes to stderr and can't be redirected directly,
11711 # and sets the high bit in the cache file unless we assign to the vars.
11712 (
11713   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11714     eval ac_val=\$$ac_var
11715     case $ac_val in #(
11716     *${as_nl}*)
11717       case $ac_var in #(
11718       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11720       esac
11721       case $ac_var in #(
11722       _ | IFS | as_nl) ;; #(
11723       *) $as_unset $ac_var ;;
11724       esac ;;
11725     esac
11726   done
11727
11728   (set) 2>&1 |
11729     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11730     *${as_nl}ac_space=\ *)
11731       # `set' does not quote correctly, so add quotes (double-quote
11732       # substitution turns \\\\ into \\, and sed turns \\ into \).
11733       sed -n \
11734         "s/'/'\\\\''/g;
11735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11736       ;; #(
11737     *)
11738       # `set' quotes correctly as required by POSIX, so do not add quotes.
11739       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11740       ;;
11741     esac |
11742     sort
11743 ) |
11744   sed '
11745      /^ac_cv_env_/b end
11746      t clear
11747      :clear
11748      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11749      t end
11750      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11751      :end' >>confcache
11752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11753   if test -w "$cache_file"; then
11754     test "x$cache_file" != "x/dev/null" &&
11755       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11756 echo "$as_me: updating cache $cache_file" >&6;}
11757     cat confcache >$cache_file
11758   else
11759     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11760 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11761   fi
11762 fi
11763 rm -f confcache
11764
11765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11766 # Let make expand exec_prefix.
11767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11768
11769 DEFS=-DHAVE_CONFIG_H
11770
11771 ac_libobjs=
11772 ac_ltlibobjs=
11773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11774   # 1. Remove the extension, and $U if already installed.
11775   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11776   ac_i=`echo "$ac_i" | sed "$ac_script"`
11777   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11778   #    will be set to the directory where LIBOBJS objects are built.
11779   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11780   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11781 done
11782 LIBOBJS=$ac_libobjs
11783
11784 LTLIBOBJS=$ac_ltlibobjs
11785
11786
11787
11788 : ${CONFIG_STATUS=./config.status}
11789 ac_clean_files_save=$ac_clean_files
11790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11791 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11792 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11793 cat >$CONFIG_STATUS <<_ACEOF
11794 #! $SHELL
11795 # Generated by $as_me.
11796 # Run this file to recreate the current configuration.
11797 # Compiler output produced by configure, useful for debugging
11798 # configure, is in config.log if it exists.
11799
11800 debug=false
11801 ac_cs_recheck=false
11802 ac_cs_silent=false
11803 SHELL=\${CONFIG_SHELL-$SHELL}
11804 _ACEOF
11805
11806 cat >>$CONFIG_STATUS <<\_ACEOF
11807 ## --------------------- ##
11808 ## M4sh Initialization.  ##
11809 ## --------------------- ##
11810
11811 # Be more Bourne compatible
11812 DUALCASE=1; export DUALCASE # for MKS sh
11813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11814   emulate sh
11815   NULLCMD=:
11816   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11817   # is contrary to our usage.  Disable this feature.
11818   alias -g '${1+"$@"}'='"$@"'
11819   setopt NO_GLOB_SUBST
11820 else
11821   case `(set -o) 2>/dev/null` in
11822   *posix*) set -o posix ;;
11823 esac
11824
11825 fi
11826
11827
11828
11829
11830 # PATH needs CR
11831 # Avoid depending upon Character Ranges.
11832 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11833 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11834 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11835 as_cr_digits='0123456789'
11836 as_cr_alnum=$as_cr_Letters$as_cr_digits
11837
11838 # The user is always right.
11839 if test "${PATH_SEPARATOR+set}" != set; then
11840   echo "#! /bin/sh" >conf$$.sh
11841   echo  "exit 0"   >>conf$$.sh
11842   chmod +x conf$$.sh
11843   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11844     PATH_SEPARATOR=';'
11845   else
11846     PATH_SEPARATOR=:
11847   fi
11848   rm -f conf$$.sh
11849 fi
11850
11851 # Support unset when possible.
11852 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11853   as_unset=unset
11854 else
11855   as_unset=false
11856 fi
11857
11858
11859 # IFS
11860 # We need space, tab and new line, in precisely that order.  Quoting is
11861 # there to prevent editors from complaining about space-tab.
11862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11863 # splitting by setting IFS to empty value.)
11864 as_nl='
11865 '
11866 IFS=" ""        $as_nl"
11867
11868 # Find who we are.  Look in the path if we contain no directory separator.
11869 case $0 in
11870   *[\\/]* ) as_myself=$0 ;;
11871   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11877 done
11878 IFS=$as_save_IFS
11879
11880      ;;
11881 esac
11882 # We did not find ourselves, most probably we were run as `sh COMMAND'
11883 # in which case we are not to be found in the path.
11884 if test "x$as_myself" = x; then
11885   as_myself=$0
11886 fi
11887 if test ! -f "$as_myself"; then
11888   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11889   { (exit 1); exit 1; }
11890 fi
11891
11892 # Work around bugs in pre-3.0 UWIN ksh.
11893 for as_var in ENV MAIL MAILPATH
11894 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11895 done
11896 PS1='$ '
11897 PS2='> '
11898 PS4='+ '
11899
11900 # NLS nuisances.
11901 for as_var in \
11902   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11903   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11904   LC_TELEPHONE LC_TIME
11905 do
11906   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11907     eval $as_var=C; export $as_var
11908   else
11909     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11910   fi
11911 done
11912
11913 # Required to use basename.
11914 if expr a : '\(a\)' >/dev/null 2>&1 &&
11915    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11916   as_expr=expr
11917 else
11918   as_expr=false
11919 fi
11920
11921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11922   as_basename=basename
11923 else
11924   as_basename=false
11925 fi
11926
11927
11928 # Name of the executable.
11929 as_me=`$as_basename -- "$0" ||
11930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11931          X"$0" : 'X\(//\)$' \| \
11932          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11933 echo X/"$0" |
11934     sed '/^.*\/\([^/][^/]*\)\/*$/{
11935             s//\1/
11936             q
11937           }
11938           /^X\/\(\/\/\)$/{
11939             s//\1/
11940             q
11941           }
11942           /^X\/\(\/\).*/{
11943             s//\1/
11944             q
11945           }
11946           s/.*/./; q'`
11947
11948 # CDPATH.
11949 $as_unset CDPATH
11950
11951
11952
11953   as_lineno_1=$LINENO
11954   as_lineno_2=$LINENO
11955   test "x$as_lineno_1" != "x$as_lineno_2" &&
11956   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11957
11958   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11959   # uniformly replaced by the line number.  The first 'sed' inserts a
11960   # line-number line after each line using $LINENO; the second 'sed'
11961   # does the real work.  The second script uses 'N' to pair each
11962   # line-number line with the line containing $LINENO, and appends
11963   # trailing '-' during substitution so that $LINENO is not a special
11964   # case at line end.
11965   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11966   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11967   # E. McMahon (1931-1989) for sed's syntax.  :-)
11968   sed -n '
11969     p
11970     /[$]LINENO/=
11971   ' <$as_myself |
11972     sed '
11973       s/[$]LINENO.*/&-/
11974       t lineno
11975       b
11976       :lineno
11977       N
11978       :loop
11979       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11980       t loop
11981       s/-\n.*//
11982     ' >$as_me.lineno &&
11983   chmod +x "$as_me.lineno" ||
11984     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11985    { (exit 1); exit 1; }; }
11986
11987   # Don't try to exec as it changes $[0], causing all sort of problems
11988   # (the dirname of $[0] is not the place where we might find the
11989   # original and so on.  Autoconf is especially sensitive to this).
11990   . "./$as_me.lineno"
11991   # Exit status is that of the last command.
11992   exit
11993 }
11994
11995
11996 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11997   as_dirname=dirname
11998 else
11999   as_dirname=false
12000 fi
12001
12002 ECHO_C= ECHO_N= ECHO_T=
12003 case `echo -n x` in
12004 -n*)
12005   case `echo 'x\c'` in
12006   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12007   *)   ECHO_C='\c';;
12008   esac;;
12009 *)
12010   ECHO_N='-n';;
12011 esac
12012
12013 if expr a : '\(a\)' >/dev/null 2>&1 &&
12014    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12015   as_expr=expr
12016 else
12017   as_expr=false
12018 fi
12019
12020 rm -f conf$$ conf$$.exe conf$$.file
12021 if test -d conf$$.dir; then
12022   rm -f conf$$.dir/conf$$.file
12023 else
12024   rm -f conf$$.dir
12025   mkdir conf$$.dir
12026 fi
12027 echo >conf$$.file
12028 if ln -s conf$$.file conf$$ 2>/dev/null; then
12029   as_ln_s='ln -s'
12030   # ... but there are two gotchas:
12031   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12032   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12033   # In both cases, we have to default to `cp -p'.
12034   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12035     as_ln_s='cp -p'
12036 elif ln conf$$.file conf$$ 2>/dev/null; then
12037   as_ln_s=ln
12038 else
12039   as_ln_s='cp -p'
12040 fi
12041 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12042 rmdir conf$$.dir 2>/dev/null
12043
12044 if mkdir -p . 2>/dev/null; then
12045   as_mkdir_p=:
12046 else
12047   test -d ./-p && rmdir ./-p
12048   as_mkdir_p=false
12049 fi
12050
12051 if test -x / >/dev/null 2>&1; then
12052   as_test_x='test -x'
12053 else
12054   if ls -dL / >/dev/null 2>&1; then
12055     as_ls_L_option=L
12056   else
12057     as_ls_L_option=
12058   fi
12059   as_test_x='
12060     eval sh -c '\''
12061       if test -d "$1"; then
12062         test -d "$1/.";
12063       else
12064         case $1 in
12065         -*)set "./$1";;
12066         esac;
12067         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12068         ???[sx]*):;;*)false;;esac;fi
12069     '\'' sh
12070   '
12071 fi
12072 as_executable_p=$as_test_x
12073
12074 # Sed expression to map a string onto a valid CPP name.
12075 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12076
12077 # Sed expression to map a string onto a valid variable name.
12078 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12079
12080
12081 exec 6>&1
12082
12083 # Save the log message, to keep $[0] and so on meaningful, and to
12084 # report actual input values of CONFIG_FILES etc. instead of their
12085 # values after options handling.
12086 ac_log="
12087 This file was extended by $as_me, which was
12088 generated by GNU Autoconf 2.61.  Invocation command line was
12089
12090   CONFIG_FILES    = $CONFIG_FILES
12091   CONFIG_HEADERS  = $CONFIG_HEADERS
12092   CONFIG_LINKS    = $CONFIG_LINKS
12093   CONFIG_COMMANDS = $CONFIG_COMMANDS
12094   $ $0 $@
12095
12096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12097 "
12098
12099 _ACEOF
12100
12101 cat >>$CONFIG_STATUS <<_ACEOF
12102 # Files that config.status was made for.
12103 config_files="$ac_config_files"
12104 config_headers="$ac_config_headers"
12105
12106 _ACEOF
12107
12108 cat >>$CONFIG_STATUS <<\_ACEOF
12109 ac_cs_usage="\
12110 \`$as_me' instantiates files from templates according to the
12111 current configuration.
12112
12113 Usage: $0 [OPTIONS] [FILE]...
12114
12115   -h, --help       print this help, then exit
12116   -V, --version    print version number and configuration settings, then exit
12117   -q, --quiet      do not print progress messages
12118   -d, --debug      don't remove temporary files
12119       --recheck    update $as_me by reconfiguring in the same conditions
12120   --file=FILE[:TEMPLATE]
12121                    instantiate the configuration file FILE
12122   --header=FILE[:TEMPLATE]
12123                    instantiate the configuration header FILE
12124
12125 Configuration files:
12126 $config_files
12127
12128 Configuration headers:
12129 $config_headers
12130
12131 Report bugs to <bug-autoconf@gnu.org>."
12132
12133 _ACEOF
12134 cat >>$CONFIG_STATUS <<_ACEOF
12135 ac_cs_version="\\
12136 config.status
12137 configured by $0, generated by GNU Autoconf 2.61,
12138   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12139
12140 Copyright (C) 2006 Free Software Foundation, Inc.
12141 This config.status script is free software; the Free Software Foundation
12142 gives unlimited permission to copy, distribute and modify it."
12143
12144 ac_pwd='$ac_pwd'
12145 srcdir='$srcdir'
12146 INSTALL='$INSTALL'
12147 _ACEOF
12148
12149 cat >>$CONFIG_STATUS <<\_ACEOF
12150 # If no file are specified by the user, then we need to provide default
12151 # value.  By we need to know if files were specified by the user.
12152 ac_need_defaults=:
12153 while test $# != 0
12154 do
12155   case $1 in
12156   --*=*)
12157     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12158     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12159     ac_shift=:
12160     ;;
12161   *)
12162     ac_option=$1
12163     ac_optarg=$2
12164     ac_shift=shift
12165     ;;
12166   esac
12167
12168   case $ac_option in
12169   # Handling of the options.
12170   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12171     ac_cs_recheck=: ;;
12172   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12173     echo "$ac_cs_version"; exit ;;
12174   --debug | --debu | --deb | --de | --d | -d )
12175     debug=: ;;
12176   --file | --fil | --fi | --f )
12177     $ac_shift
12178     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12179     ac_need_defaults=false;;
12180   --header | --heade | --head | --hea )
12181     $ac_shift
12182     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12183     ac_need_defaults=false;;
12184   --he | --h)
12185     # Conflict between --help and --header
12186     { echo "$as_me: error: ambiguous option: $1
12187 Try \`$0 --help' for more information." >&2
12188    { (exit 1); exit 1; }; };;
12189   --help | --hel | -h )
12190     echo "$ac_cs_usage"; exit ;;
12191   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12192   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12193     ac_cs_silent=: ;;
12194
12195   # This is an error.
12196   -*) { echo "$as_me: error: unrecognized option: $1
12197 Try \`$0 --help' for more information." >&2
12198    { (exit 1); exit 1; }; } ;;
12199
12200   *) ac_config_targets="$ac_config_targets $1"
12201      ac_need_defaults=false ;;
12202
12203   esac
12204   shift
12205 done
12206
12207 ac_configure_extra_args=
12208
12209 if $ac_cs_silent; then
12210   exec 6>/dev/null
12211   ac_configure_extra_args="$ac_configure_extra_args --silent"
12212 fi
12213
12214 _ACEOF
12215 cat >>$CONFIG_STATUS <<_ACEOF
12216 if \$ac_cs_recheck; then
12217   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12218   CONFIG_SHELL=$SHELL
12219   export CONFIG_SHELL
12220   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12221 fi
12222
12223 _ACEOF
12224 cat >>$CONFIG_STATUS <<\_ACEOF
12225 exec 5>>config.log
12226 {
12227   echo
12228   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12229 ## Running $as_me. ##
12230 _ASBOX
12231   echo "$ac_log"
12232 } >&5
12233
12234 _ACEOF
12235 cat >>$CONFIG_STATUS <<_ACEOF
12236 _ACEOF
12237
12238 cat >>$CONFIG_STATUS <<\_ACEOF
12239
12240 # Handling of arguments.
12241 for ac_config_target in $ac_config_targets
12242 do
12243   case $ac_config_target in
12244     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12245     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12246     "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
12247     "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
12248     "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12249     "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
12250     "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
12251     "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
12252     "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
12253     "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12254     "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12255     "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12256     "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12257     "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12258     "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12259
12260   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12261 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12262    { (exit 1); exit 1; }; };;
12263   esac
12264 done
12265
12266
12267 # If the user did not use the arguments to specify the items to instantiate,
12268 # then the envvar interface is used.  Set only those that are not.
12269 # We use the long form for the default assignment because of an extremely
12270 # bizarre bug on SunOS 4.1.3.
12271 if $ac_need_defaults; then
12272   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12273   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12274 fi
12275
12276 # Have a temporary directory for convenience.  Make it in the build tree
12277 # simply because there is no reason against having it here, and in addition,
12278 # creating and moving files from /tmp can sometimes cause problems.
12279 # Hook for its removal unless debugging.
12280 # Note that there is a small window in which the directory will not be cleaned:
12281 # after its creation but before its name has been assigned to `$tmp'.
12282 $debug ||
12283 {
12284   tmp=
12285   trap 'exit_status=$?
12286   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12287 ' 0
12288   trap '{ (exit 1); exit 1; }' 1 2 13 15
12289 }
12290 # Create a (secure) tmp directory for tmp files.
12291
12292 {
12293   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12294   test -n "$tmp" && test -d "$tmp"
12295 }  ||
12296 {
12297   tmp=./conf$$-$RANDOM
12298   (umask 077 && mkdir "$tmp")
12299 } ||
12300 {
12301    echo "$me: cannot create a temporary directory in ." >&2
12302    { (exit 1); exit 1; }
12303 }
12304
12305 #
12306 # Set up the sed scripts for CONFIG_FILES section.
12307 #
12308
12309 # No need to generate the scripts if there are no CONFIG_FILES.
12310 # This happens for instance when ./config.status config.h
12311 if test -n "$CONFIG_FILES"; then
12312
12313 _ACEOF
12314
12315
12316
12317 ac_delim='%!_!# '
12318 for ac_last_try in false false false false false :; do
12319   cat >conf$$subs.sed <<_ACEOF
12320 SHELL!$SHELL$ac_delim
12321 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12322 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12323 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12324 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12325 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12326 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12327 exec_prefix!$exec_prefix$ac_delim
12328 prefix!$prefix$ac_delim
12329 program_transform_name!$program_transform_name$ac_delim
12330 bindir!$bindir$ac_delim
12331 sbindir!$sbindir$ac_delim
12332 libexecdir!$libexecdir$ac_delim
12333 datarootdir!$datarootdir$ac_delim
12334 datadir!$datadir$ac_delim
12335 sysconfdir!$sysconfdir$ac_delim
12336 sharedstatedir!$sharedstatedir$ac_delim
12337 localstatedir!$localstatedir$ac_delim
12338 includedir!$includedir$ac_delim
12339 oldincludedir!$oldincludedir$ac_delim
12340 docdir!$docdir$ac_delim
12341 infodir!$infodir$ac_delim
12342 htmldir!$htmldir$ac_delim
12343 dvidir!$dvidir$ac_delim
12344 pdfdir!$pdfdir$ac_delim
12345 psdir!$psdir$ac_delim
12346 libdir!$libdir$ac_delim
12347 localedir!$localedir$ac_delim
12348 mandir!$mandir$ac_delim
12349 DEFS!$DEFS$ac_delim
12350 ECHO_C!$ECHO_C$ac_delim
12351 ECHO_N!$ECHO_N$ac_delim
12352 ECHO_T!$ECHO_T$ac_delim
12353 LIBS!$LIBS$ac_delim
12354 build_alias!$build_alias$ac_delim
12355 host_alias!$host_alias$ac_delim
12356 target_alias!$target_alias$ac_delim
12357 build!$build$ac_delim
12358 build_cpu!$build_cpu$ac_delim
12359 build_vendor!$build_vendor$ac_delim
12360 build_os!$build_os$ac_delim
12361 host!$host$ac_delim
12362 host_cpu!$host_cpu$ac_delim
12363 host_vendor!$host_vendor$ac_delim
12364 host_os!$host_os$ac_delim
12365 target!$target$ac_delim
12366 target_cpu!$target_cpu$ac_delim
12367 target_vendor!$target_vendor$ac_delim
12368 target_os!$target_os$ac_delim
12369 SHLICC2!$SHLICC2$ac_delim
12370 CC!$CC$ac_delim
12371 CFLAGS!$CFLAGS$ac_delim
12372 LDFLAGS!$LDFLAGS$ac_delim
12373 CPPFLAGS!$CPPFLAGS$ac_delim
12374 ac_ct_CC!$ac_ct_CC$ac_delim
12375 EXEEXT!$EXEEXT$ac_delim
12376 OBJEXT!$OBJEXT$ac_delim
12377 CPP!$CPP$ac_delim
12378 GREP!$GREP$ac_delim
12379 EGREP!$EGREP$ac_delim
12380 LIBOBJS!$LIBOBJS$ac_delim
12381 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12382 V_LEX!$V_LEX$ac_delim
12383 V_YACC!$V_YACC$ac_delim
12384 RANLIB!$RANLIB$ac_delim
12385 AR!$AR$ac_delim
12386 V_CCOPT!$V_CCOPT$ac_delim
12387 V_DEFS!$V_DEFS$ac_delim
12388 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12389 V_INCLS!$V_INCLS$ac_delim
12390 V_PCAP!$V_PCAP$ac_delim
12391 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12392 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12393 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12394 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12395 ADDLOBJS!$ADDLOBJS$ac_delim
12396 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12397 SSRC!$SSRC$ac_delim
12398 DYEXT!$DYEXT$ac_delim
12399 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12400 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12401 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12402 USB_SRC!$USB_SRC$ac_delim
12403 PCAP_SUPPORT_NETFILTER!$PCAP_SUPPORT_NETFILTER$ac_delim
12404 NETFILTER_SRC!$NETFILTER_SRC$ac_delim
12405 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12406 BT_SRC!$BT_SRC$ac_delim
12407 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12408 CAN_SRC!$CAN_SRC$ac_delim
12409 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12410 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12411 INSTALL_DATA!$INSTALL_DATA$ac_delim
12412 LTLIBOBJS!$LTLIBOBJS$ac_delim
12413 _ACEOF
12414
12415   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
12416     break
12417   elif $ac_last_try; then
12418     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12420    { (exit 1); exit 1; }; }
12421   else
12422     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12423   fi
12424 done
12425
12426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12427 if test -n "$ac_eof"; then
12428   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12429   ac_eof=`expr $ac_eof + 1`
12430 fi
12431
12432 cat >>$CONFIG_STATUS <<_ACEOF
12433 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12435 _ACEOF
12436 sed '
12437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12438 s/^/s,@/; s/!/@,|#_!!_#|/
12439 :n
12440 t n
12441 s/'"$ac_delim"'$/,g/; t
12442 s/$/\\/; p
12443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12444 ' >>$CONFIG_STATUS <conf$$subs.sed
12445 rm -f conf$$subs.sed
12446 cat >>$CONFIG_STATUS <<_ACEOF
12447 :end
12448 s/|#_!!_#|//g
12449 CEOF$ac_eof
12450 _ACEOF
12451
12452
12453 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12454 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12455 # trailing colons and then remove the whole line if VPATH becomes empty
12456 # (actually we leave an empty line to preserve line numbers).
12457 if test "x$srcdir" = x.; then
12458   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12459 s/:*\$(srcdir):*/:/
12460 s/:*\${srcdir}:*/:/
12461 s/:*@srcdir@:*/:/
12462 s/^\([^=]*=[     ]*\):*/\1/
12463 s/:*$//
12464 s/^[^=]*=[       ]*$//
12465 }'
12466 fi
12467
12468 cat >>$CONFIG_STATUS <<\_ACEOF
12469 fi # test -n "$CONFIG_FILES"
12470
12471
12472 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
12473 do
12474   case $ac_tag in
12475   :[FHLC]) ac_mode=$ac_tag; continue;;
12476   esac
12477   case $ac_mode$ac_tag in
12478   :[FHL]*:*);;
12479   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12480 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12481    { (exit 1); exit 1; }; };;
12482   :[FH]-) ac_tag=-:-;;
12483   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12484   esac
12485   ac_save_IFS=$IFS
12486   IFS=:
12487   set x $ac_tag
12488   IFS=$ac_save_IFS
12489   shift
12490   ac_file=$1
12491   shift
12492
12493   case $ac_mode in
12494   :L) ac_source=$1;;
12495   :[FH])
12496     ac_file_inputs=
12497     for ac_f
12498     do
12499       case $ac_f in
12500       -) ac_f="$tmp/stdin";;
12501       *) # Look for the file first in the build tree, then in the source tree
12502          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12503          # because $ac_f cannot contain `:'.
12504          test -f "$ac_f" ||
12505            case $ac_f in
12506            [\\/$]*) false;;
12507            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12508            esac ||
12509            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12510 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12511    { (exit 1); exit 1; }; };;
12512       esac
12513       ac_file_inputs="$ac_file_inputs $ac_f"
12514     done
12515
12516     # Let's still pretend it is `configure' which instantiates (i.e., don't
12517     # use $as_me), people would be surprised to read:
12518     #    /* config.h.  Generated by config.status.  */
12519     configure_input="Generated from "`IFS=:
12520           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12521     if test x"$ac_file" != x-; then
12522       configure_input="$ac_file.  $configure_input"
12523       { echo "$as_me:$LINENO: creating $ac_file" >&5
12524 echo "$as_me: creating $ac_file" >&6;}
12525     fi
12526
12527     case $ac_tag in
12528     *:-:* | *:-) cat >"$tmp/stdin";;
12529     esac
12530     ;;
12531   esac
12532
12533   ac_dir=`$as_dirname -- "$ac_file" ||
12534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12535          X"$ac_file" : 'X\(//\)[^/]' \| \
12536          X"$ac_file" : 'X\(//\)$' \| \
12537          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12538 echo X"$ac_file" |
12539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12540             s//\1/
12541             q
12542           }
12543           /^X\(\/\/\)[^/].*/{
12544             s//\1/
12545             q
12546           }
12547           /^X\(\/\/\)$/{
12548             s//\1/
12549             q
12550           }
12551           /^X\(\/\).*/{
12552             s//\1/
12553             q
12554           }
12555           s/.*/./; q'`
12556   { as_dir="$ac_dir"
12557   case $as_dir in #(
12558   -*) as_dir=./$as_dir;;
12559   esac
12560   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12561     as_dirs=
12562     while :; do
12563       case $as_dir in #(
12564       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12565       *) as_qdir=$as_dir;;
12566       esac
12567       as_dirs="'$as_qdir' $as_dirs"
12568       as_dir=`$as_dirname -- "$as_dir" ||
12569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12570          X"$as_dir" : 'X\(//\)[^/]' \| \
12571          X"$as_dir" : 'X\(//\)$' \| \
12572          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12573 echo X"$as_dir" |
12574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12575             s//\1/
12576             q
12577           }
12578           /^X\(\/\/\)[^/].*/{
12579             s//\1/
12580             q
12581           }
12582           /^X\(\/\/\)$/{
12583             s//\1/
12584             q
12585           }
12586           /^X\(\/\).*/{
12587             s//\1/
12588             q
12589           }
12590           s/.*/./; q'`
12591       test -d "$as_dir" && break
12592     done
12593     test -z "$as_dirs" || eval "mkdir $as_dirs"
12594   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12596    { (exit 1); exit 1; }; }; }
12597   ac_builddir=.
12598
12599 case "$ac_dir" in
12600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12601 *)
12602   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12603   # A ".." for each directory in $ac_dir_suffix.
12604   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12605   case $ac_top_builddir_sub in
12606   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12607   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12608   esac ;;
12609 esac
12610 ac_abs_top_builddir=$ac_pwd
12611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12612 # for backward compatibility:
12613 ac_top_builddir=$ac_top_build_prefix
12614
12615 case $srcdir in
12616   .)  # We are building in place.
12617     ac_srcdir=.
12618     ac_top_srcdir=$ac_top_builddir_sub
12619     ac_abs_top_srcdir=$ac_pwd ;;
12620   [\\/]* | ?:[\\/]* )  # Absolute name.
12621     ac_srcdir=$srcdir$ac_dir_suffix;
12622     ac_top_srcdir=$srcdir
12623     ac_abs_top_srcdir=$srcdir ;;
12624   *) # Relative name.
12625     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12626     ac_top_srcdir=$ac_top_build_prefix$srcdir
12627     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12628 esac
12629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12630
12631
12632   case $ac_mode in
12633   :F)
12634   #
12635   # CONFIG_FILE
12636   #
12637
12638   case $INSTALL in
12639   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12640   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12641   esac
12642 _ACEOF
12643
12644 cat >>$CONFIG_STATUS <<\_ACEOF
12645 # If the template does not know about datarootdir, expand it.
12646 # FIXME: This hack should be removed a few years after 2.60.
12647 ac_datarootdir_hack=; ac_datarootdir_seen=
12648
12649 case `sed -n '/datarootdir/ {
12650   p
12651   q
12652 }
12653 /@datadir@/p
12654 /@docdir@/p
12655 /@infodir@/p
12656 /@localedir@/p
12657 /@mandir@/p
12658 ' $ac_file_inputs` in
12659 *datarootdir*) ac_datarootdir_seen=yes;;
12660 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12661   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12662 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12663 _ACEOF
12664 cat >>$CONFIG_STATUS <<_ACEOF
12665   ac_datarootdir_hack='
12666   s&@datadir@&$datadir&g
12667   s&@docdir@&$docdir&g
12668   s&@infodir@&$infodir&g
12669   s&@localedir@&$localedir&g
12670   s&@mandir@&$mandir&g
12671     s&\\\${datarootdir}&$datarootdir&g' ;;
12672 esac
12673 _ACEOF
12674
12675 # Neutralize VPATH when `$srcdir' = `.'.
12676 # Shell code in configure.ac might set extrasub.
12677 # FIXME: do we really want to maintain this feature?
12678 cat >>$CONFIG_STATUS <<_ACEOF
12679   sed "$ac_vpsub
12680 $extrasub
12681 _ACEOF
12682 cat >>$CONFIG_STATUS <<\_ACEOF
12683 :t
12684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12685 s&@configure_input@&$configure_input&;t t
12686 s&@top_builddir@&$ac_top_builddir_sub&;t t
12687 s&@srcdir@&$ac_srcdir&;t t
12688 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12689 s&@top_srcdir@&$ac_top_srcdir&;t t
12690 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12691 s&@builddir@&$ac_builddir&;t t
12692 s&@abs_builddir@&$ac_abs_builddir&;t t
12693 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12694 s&@INSTALL@&$ac_INSTALL&;t t
12695 $ac_datarootdir_hack
12696 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12697
12698 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12699   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12700   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12701   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12702 which seems to be undefined.  Please make sure it is defined." >&5
12703 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12704 which seems to be undefined.  Please make sure it is defined." >&2;}
12705
12706   rm -f "$tmp/stdin"
12707   case $ac_file in
12708   -) cat "$tmp/out"; rm -f "$tmp/out";;
12709   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12710   esac
12711  ;;
12712   :H)
12713   #
12714   # CONFIG_HEADER
12715   #
12716 _ACEOF
12717
12718 # Transform confdefs.h into a sed script `conftest.defines', that
12719 # substitutes the proper values into config.h.in to produce config.h.
12720 rm -f conftest.defines conftest.tail
12721 # First, append a space to every undef/define line, to ease matching.
12722 echo 's/$/ /' >conftest.defines
12723 # Then, protect against being on the right side of a sed subst, or in
12724 # an unquoted here document, in config.status.  If some macros were
12725 # called several times there might be several #defines for the same
12726 # symbol, which is useless.  But do not sort them, since the last
12727 # AC_DEFINE must be honored.
12728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12729 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12730 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12731 # PARAMS is the parameter list in the macro definition--in most cases, it's
12732 # just an empty string.
12733 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12734 ac_dB='\\)[      (].*,\\1define\\2'
12735 ac_dC=' '
12736 ac_dD=' ,'
12737
12738 uniq confdefs.h |
12739   sed -n '
12740         t rset
12741         :rset
12742         s/^[     ]*#[    ]*define[       ][      ]*//
12743         t ok
12744         d
12745         :ok
12746         s/[\\&,]/\\&/g
12747         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12748         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12749   ' >>conftest.defines
12750
12751 # Remove the space that was appended to ease matching.
12752 # Then replace #undef with comments.  This is necessary, for
12753 # example, in the case of _POSIX_SOURCE, which is predefined and required
12754 # on some systems where configure will not decide to define it.
12755 # (The regexp can be short, since the line contains either #define or #undef.)
12756 echo 's/ $//
12757 s,^[     #]*u.*,/* & */,' >>conftest.defines
12758
12759 # Break up conftest.defines:
12760 ac_max_sed_lines=50
12761
12762 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12763 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12764 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12765 # et cetera.
12766 ac_in='$ac_file_inputs'
12767 ac_out='"$tmp/out1"'
12768 ac_nxt='"$tmp/out2"'
12769
12770 while :
12771 do
12772   # Write a here document:
12773     cat >>$CONFIG_STATUS <<_ACEOF
12774     # First, check the format of the line:
12775     cat >"\$tmp/defines.sed" <<\\CEOF
12776 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12777 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12778 b
12779 :def
12780 _ACEOF
12781   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12782   echo 'CEOF
12783     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12784   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12785   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12786   grep . conftest.tail >/dev/null || break
12787   rm -f conftest.defines
12788   mv conftest.tail conftest.defines
12789 done
12790 rm -f conftest.defines conftest.tail
12791
12792 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12793 cat >>$CONFIG_STATUS <<\_ACEOF
12794   if test x"$ac_file" != x-; then
12795     echo "/* $configure_input  */" >"$tmp/config.h"
12796     cat "$ac_result" >>"$tmp/config.h"
12797     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12798       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12799 echo "$as_me: $ac_file is unchanged" >&6;}
12800     else
12801       rm -f $ac_file
12802       mv "$tmp/config.h" $ac_file
12803     fi
12804   else
12805     echo "/* $configure_input  */"
12806     cat "$ac_result"
12807   fi
12808   rm -f "$tmp/out12"
12809  ;;
12810
12811
12812   esac
12813
12814 done # for ac_tag
12815
12816
12817 { (exit 0); exit 0; }
12818 _ACEOF
12819 chmod +x $CONFIG_STATUS
12820 ac_clean_files=$ac_clean_files_save
12821
12822
12823 # configure is writing to config.log, and then calls config.status.
12824 # config.status does its own redirection, appending to config.log.
12825 # Unfortunately, on DOS this fails, as config.log is still kept open
12826 # by configure, so config.status won't be able to write to it; its
12827 # output is simply discarded.  So we exec the FD to /dev/null,
12828 # effectively closing config.log, so it can be properly (re)opened and
12829 # appended to by config.status.  When coming back to configure, we
12830 # need to make the FD available again.
12831 if test "$no_create" != yes; then
12832   ac_cs_success=:
12833   ac_config_status_args=
12834   test "$silent" = yes &&
12835     ac_config_status_args="$ac_config_status_args --quiet"
12836   exec 5>/dev/null
12837   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12838   exec 5>>config.log
12839   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12840   # would make configure fail if this is the last instruction.
12841   $ac_cs_success || { (exit 1); exit 1; }
12842 fi
12843
12844
12845 if test -f .devel ; then
12846         make depend
12847 fi
12848 exit 0