]> The Tcpdump Group git mirrors - libpcap/blob - configure
0cbb36ee004d8d1664987abb5694d2807b9f0cd9
[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 V_CCOPT
683 V_DEFS
684 V_FINDALLDEVS
685 V_INCLS
686 V_PCAP
687 V_SHLIB_CMD
688 V_SHLIB_OPT
689 V_SONAME_OPT
690 V_RPATH_OPT
691 ADDLOBJS
692 ADDLARCHIVEOBJS
693 SSRC
694 DYEXT
695 MAN_FILE_FORMATS
696 MAN_MISC_INFO
697 PCAP_SUPPORT_USB
698 USB_SRC
699 PCAP_SUPPORT_BT
700 BT_SRC
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
704 LTLIBOBJS'
705 ac_subst_files=''
706 ac_precious_vars='build_alias
707 host_alias
708 target_alias
709 CC
710 CFLAGS
711 LDFLAGS
712 LIBS
713 CPPFLAGS
714 CPP'
715
716
717 # Initialize some variables set by options.
718 ac_init_help=
719 ac_init_version=false
720 # The variables have the same names as the options, with
721 # dashes changed to underlines.
722 cache_file=/dev/null
723 exec_prefix=NONE
724 no_create=
725 no_recursion=
726 prefix=NONE
727 program_prefix=NONE
728 program_suffix=NONE
729 program_transform_name=s,x,x,
730 silent=
731 site=
732 srcdir=
733 verbose=
734 x_includes=NONE
735 x_libraries=NONE
736
737 # Installation directory options.
738 # These are left unexpanded so users can "make install exec_prefix=/foo"
739 # and all the variables that are supposed to be based on exec_prefix
740 # by default will actually change.
741 # Use braces instead of parens because sh, perl, etc. also accept them.
742 # (The list follows the same order as the GNU Coding Standards.)
743 bindir='${exec_prefix}/bin'
744 sbindir='${exec_prefix}/sbin'
745 libexecdir='${exec_prefix}/libexec'
746 datarootdir='${prefix}/share'
747 datadir='${datarootdir}'
748 sysconfdir='${prefix}/etc'
749 sharedstatedir='${prefix}/com'
750 localstatedir='${prefix}/var'
751 includedir='${prefix}/include'
752 oldincludedir='/usr/include'
753 docdir='${datarootdir}/doc/${PACKAGE}'
754 infodir='${datarootdir}/info'
755 htmldir='${docdir}'
756 dvidir='${docdir}'
757 pdfdir='${docdir}'
758 psdir='${docdir}'
759 libdir='${exec_prefix}/lib'
760 localedir='${datarootdir}/locale'
761 mandir='${datarootdir}/man'
762
763 ac_prev=
764 ac_dashdash=
765 for ac_option
766 do
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\$ac_option
770 ac_prev=
771 continue
772 fi
773
774 case $ac_option in
775 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *) ac_optarg=yes ;;
777 esac
778
779 # Accept the important Cygnus configure options, so we can diagnose typos.
780
781 case $ac_dashdash$ac_option in
782 --)
783 ac_dashdash=yes ;;
784
785 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 ac_prev=bindir ;;
787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788 bindir=$ac_optarg ;;
789
790 -build | --build | --buil | --bui | --bu)
791 ac_prev=build_alias ;;
792 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793 build_alias=$ac_optarg ;;
794
795 -cache-file | --cache-file | --cache-fil | --cache-fi \
796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797 ac_prev=cache_file ;;
798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800 cache_file=$ac_optarg ;;
801
802 --config-cache | -C)
803 cache_file=config.cache ;;
804
805 -datadir | --datadir | --datadi | --datad)
806 ac_prev=datadir ;;
807 -datadir=* | --datadir=* | --datadi=* | --datad=*)
808 datadir=$ac_optarg ;;
809
810 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811 | --dataroo | --dataro | --datar)
812 ac_prev=datarootdir ;;
813 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815 datarootdir=$ac_optarg ;;
816
817 -disable-* | --disable-*)
818 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
822 { (exit 1); exit 1; }; }
823 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
824 eval enable_$ac_feature=no ;;
825
826 -docdir | --docdir | --docdi | --doc | --do)
827 ac_prev=docdir ;;
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829 docdir=$ac_optarg ;;
830
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832 ac_prev=dvidir ;;
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834 dvidir=$ac_optarg ;;
835
836 -enable-* | --enable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_$ac_feature=\$ac_optarg ;;
844
845 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
846 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
847 | --exec | --exe | --ex)
848 ac_prev=exec_prefix ;;
849 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
850 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
851 | --exec=* | --exe=* | --ex=*)
852 exec_prefix=$ac_optarg ;;
853
854 -gas | --gas | --ga | --g)
855 # Obsolete; use --with-gas.
856 with_gas=yes ;;
857
858 -help | --help | --hel | --he | -h)
859 ac_init_help=long ;;
860 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
861 ac_init_help=recursive ;;
862 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
863 ac_init_help=short ;;
864
865 -host | --host | --hos | --ho)
866 ac_prev=host_alias ;;
867 -host=* | --host=* | --hos=* | --ho=*)
868 host_alias=$ac_optarg ;;
869
870 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
871 ac_prev=htmldir ;;
872 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
873 | --ht=*)
874 htmldir=$ac_optarg ;;
875
876 -includedir | --includedir | --includedi | --included | --include \
877 | --includ | --inclu | --incl | --inc)
878 ac_prev=includedir ;;
879 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
880 | --includ=* | --inclu=* | --incl=* | --inc=*)
881 includedir=$ac_optarg ;;
882
883 -infodir | --infodir | --infodi | --infod | --info | --inf)
884 ac_prev=infodir ;;
885 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
886 infodir=$ac_optarg ;;
887
888 -libdir | --libdir | --libdi | --libd)
889 ac_prev=libdir ;;
890 -libdir=* | --libdir=* | --libdi=* | --libd=*)
891 libdir=$ac_optarg ;;
892
893 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
894 | --libexe | --libex | --libe)
895 ac_prev=libexecdir ;;
896 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
897 | --libexe=* | --libex=* | --libe=*)
898 libexecdir=$ac_optarg ;;
899
900 -localedir | --localedir | --localedi | --localed | --locale)
901 ac_prev=localedir ;;
902 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
903 localedir=$ac_optarg ;;
904
905 -localstatedir | --localstatedir | --localstatedi | --localstated \
906 | --localstate | --localstat | --localsta | --localst | --locals)
907 ac_prev=localstatedir ;;
908 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
909 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
910 localstatedir=$ac_optarg ;;
911
912 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
913 ac_prev=mandir ;;
914 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
915 mandir=$ac_optarg ;;
916
917 -nfp | --nfp | --nf)
918 # Obsolete; use --without-fp.
919 with_fp=no ;;
920
921 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
922 | --no-cr | --no-c | -n)
923 no_create=yes ;;
924
925 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
926 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
927 no_recursion=yes ;;
928
929 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
930 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
931 | --oldin | --oldi | --old | --ol | --o)
932 ac_prev=oldincludedir ;;
933 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
934 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
935 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
936 oldincludedir=$ac_optarg ;;
937
938 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
939 ac_prev=prefix ;;
940 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
941 prefix=$ac_optarg ;;
942
943 -program-prefix | --program-prefix | --program-prefi | --program-pref \
944 | --program-pre | --program-pr | --program-p)
945 ac_prev=program_prefix ;;
946 -program-prefix=* | --program-prefix=* | --program-prefi=* \
947 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
948 program_prefix=$ac_optarg ;;
949
950 -program-suffix | --program-suffix | --program-suffi | --program-suff \
951 | --program-suf | --program-su | --program-s)
952 ac_prev=program_suffix ;;
953 -program-suffix=* | --program-suffix=* | --program-suffi=* \
954 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
955 program_suffix=$ac_optarg ;;
956
957 -program-transform-name | --program-transform-name \
958 | --program-transform-nam | --program-transform-na \
959 | --program-transform-n | --program-transform- \
960 | --program-transform | --program-transfor \
961 | --program-transfo | --program-transf \
962 | --program-trans | --program-tran \
963 | --progr-tra | --program-tr | --program-t)
964 ac_prev=program_transform_name ;;
965 -program-transform-name=* | --program-transform-name=* \
966 | --program-transform-nam=* | --program-transform-na=* \
967 | --program-transform-n=* | --program-transform-=* \
968 | --program-transform=* | --program-transfor=* \
969 | --program-transfo=* | --program-transf=* \
970 | --program-trans=* | --program-tran=* \
971 | --progr-tra=* | --program-tr=* | --program-t=*)
972 program_transform_name=$ac_optarg ;;
973
974 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
975 ac_prev=pdfdir ;;
976 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
977 pdfdir=$ac_optarg ;;
978
979 -psdir | --psdir | --psdi | --psd | --ps)
980 ac_prev=psdir ;;
981 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
982 psdir=$ac_optarg ;;
983
984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
985 | -silent | --silent | --silen | --sile | --sil)
986 silent=yes ;;
987
988 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
989 ac_prev=sbindir ;;
990 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
991 | --sbi=* | --sb=*)
992 sbindir=$ac_optarg ;;
993
994 -sharedstatedir | --sharedstatedir | --sharedstatedi \
995 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
996 | --sharedst | --shareds | --shared | --share | --shar \
997 | --sha | --sh)
998 ac_prev=sharedstatedir ;;
999 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1000 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1001 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1002 | --sha=* | --sh=*)
1003 sharedstatedir=$ac_optarg ;;
1004
1005 -site | --site | --sit)
1006 ac_prev=site ;;
1007 -site=* | --site=* | --sit=*)
1008 site=$ac_optarg ;;
1009
1010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1011 ac_prev=srcdir ;;
1012 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1013 srcdir=$ac_optarg ;;
1014
1015 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1016 | --syscon | --sysco | --sysc | --sys | --sy)
1017 ac_prev=sysconfdir ;;
1018 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1019 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1020 sysconfdir=$ac_optarg ;;
1021
1022 -target | --target | --targe | --targ | --tar | --ta | --t)
1023 ac_prev=target_alias ;;
1024 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1025 target_alias=$ac_optarg ;;
1026
1027 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1028 verbose=yes ;;
1029
1030 -version | --version | --versio | --versi | --vers | -V)
1031 ac_init_version=: ;;
1032
1033 -with-* | --with-*)
1034 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1040 eval with_$ac_package=\$ac_optarg ;;
1041
1042 -without-* | --without-*)
1043 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=no ;;
1050
1051 --x)
1052 # Obsolete; use --with-x.
1053 with_x=yes ;;
1054
1055 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1056 | --x-incl | --x-inc | --x-in | --x-i)
1057 ac_prev=x_includes ;;
1058 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1059 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1060 x_includes=$ac_optarg ;;
1061
1062 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1063 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1064 ac_prev=x_libraries ;;
1065 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1066 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1067 x_libraries=$ac_optarg ;;
1068
1069 -*) { echo "$as_me: error: unrecognized option: $ac_option
1070 Try \`$0 --help' for more information." >&2
1071 { (exit 1); exit 1; }; }
1072 ;;
1073
1074 *=*)
1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1079 { (exit 1); exit 1; }; }
1080 eval $ac_envvar=\$ac_optarg
1081 export $ac_envvar ;;
1082
1083 *)
1084 # FIXME: should be removed in autoconf 3.0.
1085 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 ;;
1090
1091 esac
1092 done
1093
1094 if test -n "$ac_prev"; then
1095 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1096 { echo "$as_me: error: missing argument to $ac_option" >&2
1097 { (exit 1); exit 1; }; }
1098 fi
1099
1100 # Be sure to have absolute directory names.
1101 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1102 datadir sysconfdir sharedstatedir localstatedir includedir \
1103 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1104 libdir localedir mandir
1105 do
1106 eval ac_val=\$$ac_var
1107 case $ac_val in
1108 [\\/$]* | ?:[\\/]* ) continue;;
1109 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1110 esac
1111 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1112 { (exit 1); exit 1; }; }
1113 done
1114
1115 # There might be people who depend on the old broken behavior: `$host'
1116 # used to hold the argument of --host etc.
1117 # FIXME: To remove some day.
1118 build=$build_alias
1119 host=$host_alias
1120 target=$target_alias
1121
1122 # FIXME: To remove some day.
1123 if test "x$host_alias" != x; then
1124 if test "x$build_alias" = x; then
1125 cross_compiling=maybe
1126 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1127 If a cross compiler is detected then cross compile mode will be used." >&2
1128 elif test "x$build_alias" != "x$host_alias"; then
1129 cross_compiling=yes
1130 fi
1131 fi
1132
1133 ac_tool_prefix=
1134 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1135
1136 test "$silent" = yes && exec 6>/dev/null
1137
1138
1139 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1140 ac_ls_di=`ls -di .` &&
1141 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1142 { echo "$as_me: error: Working directory cannot be determined" >&2
1143 { (exit 1); exit 1; }; }
1144 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 { echo "$as_me: error: pwd does not report name of working directory" >&2
1146 { (exit 1); exit 1; }; }
1147
1148
1149 # Find the source files, if location was not specified.
1150 if test -z "$srcdir"; then
1151 ac_srcdir_defaulted=yes
1152 # Try the directory containing this script, then the parent directory.
1153 ac_confdir=`$as_dirname -- "$0" ||
1154 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1155 X"$0" : 'X\(//\)[^/]' \| \
1156 X"$0" : 'X\(//\)$' \| \
1157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1158 echo X"$0" |
1159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 s//\1/
1161 q
1162 }
1163 /^X\(\/\/\)[^/].*/{
1164 s//\1/
1165 q
1166 }
1167 /^X\(\/\/\)$/{
1168 s//\1/
1169 q
1170 }
1171 /^X\(\/\).*/{
1172 s//\1/
1173 q
1174 }
1175 s/.*/./; q'`
1176 srcdir=$ac_confdir
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1178 srcdir=..
1179 fi
1180 else
1181 ac_srcdir_defaulted=no
1182 fi
1183 if test ! -r "$srcdir/$ac_unique_file"; then
1184 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1185 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1186 { (exit 1); exit 1; }; }
1187 fi
1188 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189 ac_abs_confdir=`(
1190 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1191 { (exit 1); exit 1; }; }
1192 pwd)`
1193 # When building in place, set srcdir=.
1194 if test "$ac_abs_confdir" = "$ac_pwd"; then
1195 srcdir=.
1196 fi
1197 # Remove unnecessary trailing slashes from srcdir.
1198 # Double slashes in file names in object file debugging info
1199 # mess up M-x gdb in Emacs.
1200 case $srcdir in
1201 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202 esac
1203 for ac_var in $ac_precious_vars; do
1204 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_${ac_var}_value=\$${ac_var}
1206 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1208 done
1209
1210 #
1211 # Report the --help message.
1212 #
1213 if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1216 cat <<_ACEOF
1217 \`configure' configures this package to adapt to many kinds of systems.
1218
1219 Usage: $0 [OPTION]... [VAR=VALUE]...
1220
1221 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222 VAR=VALUE. See below for descriptions of some of the useful variables.
1223
1224 Defaults for the options are specified in brackets.
1225
1226 Configuration:
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236
1237 Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1241 [PREFIX]
1242
1243 By default, \`make install' will install all the files in
1244 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246 for instance \`--prefix=\$HOME'.
1247
1248 For better control, use the options below.
1249
1250 Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1270 _ACEOF
1271
1272 cat <<\_ACEOF
1273
1274 System types:
1275 --build=BUILD configure for building on BUILD [guessed]
1276 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1277 --target=TARGET configure for building compilers for TARGET [HOST]
1278 _ACEOF
1279 fi
1280
1281 if test -n "$ac_init_help"; then
1282
1283 cat <<\_ACEOF
1284
1285 Optional Features:
1286 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1287 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1288 --disable-largefile omit support for large files
1289 --disable-protochain disable \"protochain\" insn
1290 --enable-ipv6 build IPv6-capable version [default=yes, if
1291 getaddrinfo available]
1292 --enable-optimizer-dbg build optimizer debugging code
1293 --enable-yydebug build parser debugging code
1294 --enable-bluetooth enable bluetooth support [default=yes, if support
1295 available]
1296
1297 Optional Packages:
1298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1300 --without-gcc don't use gcc
1301 --with-sita include SITA support
1302 --with-pcap=TYPE use packet capture TYPE
1303 --without-libnl disable libnl support [default=yes, on Linux, if
1304 present]
1305 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1306 default="yes" on BSD and Linux if present]
1307 --with-dag-includes=DIR Endace DAG include directory
1308 --with-dag-libraries=DIR
1309 Endace DAG library directory
1310 --with-septel[=DIR] include Septel support (located in directory DIR, if
1311 supplied). [default=yes, on Linux, if present]
1312 --without-flex don't use flex
1313 --without-bison don't use bison
1314
1315 Some influential environment variables:
1316 CC C compiler command
1317 CFLAGS C compiler flags
1318 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1319 nonstandard directory <lib dir>
1320 LIBS libraries to pass to the linker, e.g. -l<library>
1321 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1322 you have headers in a nonstandard directory <include dir>
1323 CPP C preprocessor
1324
1325 Use these variables to override the choices made by `configure' or to help
1326 it to find libraries and programs with nonstandard names/locations.
1327
1328 _ACEOF
1329 ac_status=$?
1330 fi
1331
1332 if test "$ac_init_help" = "recursive"; then
1333 # If there are subdirs, report their specific --help.
1334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1335 test -d "$ac_dir" || continue
1336 ac_builddir=.
1337
1338 case "$ac_dir" in
1339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 *)
1341 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1342 # A ".." for each directory in $ac_dir_suffix.
1343 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1344 case $ac_top_builddir_sub in
1345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1347 esac ;;
1348 esac
1349 ac_abs_top_builddir=$ac_pwd
1350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1351 # for backward compatibility:
1352 ac_top_builddir=$ac_top_build_prefix
1353
1354 case $srcdir in
1355 .) # We are building in place.
1356 ac_srcdir=.
1357 ac_top_srcdir=$ac_top_builddir_sub
1358 ac_abs_top_srcdir=$ac_pwd ;;
1359 [\\/]* | ?:[\\/]* ) # Absolute name.
1360 ac_srcdir=$srcdir$ac_dir_suffix;
1361 ac_top_srcdir=$srcdir
1362 ac_abs_top_srcdir=$srcdir ;;
1363 *) # Relative name.
1364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1365 ac_top_srcdir=$ac_top_build_prefix$srcdir
1366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1367 esac
1368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369
1370 cd "$ac_dir" || { ac_status=$?; continue; }
1371 # Check for guested configure.
1372 if test -f "$ac_srcdir/configure.gnu"; then
1373 echo &&
1374 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1375 elif test -f "$ac_srcdir/configure"; then
1376 echo &&
1377 $SHELL "$ac_srcdir/configure" --help=recursive
1378 else
1379 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380 fi || ac_status=$?
1381 cd "$ac_pwd" || { ac_status=$?; break; }
1382 done
1383 fi
1384
1385 test -n "$ac_init_help" && exit $ac_status
1386 if $ac_init_version; then
1387 cat <<\_ACEOF
1388 configure
1389 generated by GNU Autoconf 2.61
1390
1391 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1392 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1393 This configure script is free software; the Free Software Foundation
1394 gives unlimited permission to copy, distribute and modify it.
1395 _ACEOF
1396 exit
1397 fi
1398 cat >config.log <<_ACEOF
1399 This file contains any messages produced by compilers while
1400 running configure, to aid debugging if configure makes a mistake.
1401
1402 It was created by $as_me, which was
1403 generated by GNU Autoconf 2.61. Invocation command line was
1404
1405 $ $0 $@
1406
1407 _ACEOF
1408 exec 5>>config.log
1409 {
1410 cat <<_ASUNAME
1411 ## --------- ##
1412 ## Platform. ##
1413 ## --------- ##
1414
1415 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1416 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1417 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1418 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1419 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1420
1421 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1422 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1423
1424 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1425 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1426 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1427 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1428 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1429 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1430 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1431
1432 _ASUNAME
1433
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 for as_dir in $PATH
1436 do
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 echo "PATH: $as_dir"
1440 done
1441 IFS=$as_save_IFS
1442
1443 } >&5
1444
1445 cat >&5 <<_ACEOF
1446
1447
1448 ## ----------- ##
1449 ## Core tests. ##
1450 ## ----------- ##
1451
1452 _ACEOF
1453
1454
1455 # Keep a trace of the command line.
1456 # Strip out --no-create and --no-recursion so they do not pile up.
1457 # Strip out --silent because we don't want to record it for future runs.
1458 # Also quote any args containing shell meta-characters.
1459 # Make two passes to allow for proper duplicate-argument suppression.
1460 ac_configure_args=
1461 ac_configure_args0=
1462 ac_configure_args1=
1463 ac_must_keep_next=false
1464 for ac_pass in 1 2
1465 do
1466 for ac_arg
1467 do
1468 case $ac_arg in
1469 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471 | -silent | --silent | --silen | --sile | --sil)
1472 continue ;;
1473 *\'*)
1474 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1475 esac
1476 case $ac_pass in
1477 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1478 2)
1479 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1480 if test $ac_must_keep_next = true; then
1481 ac_must_keep_next=false # Got value, back to normal.
1482 else
1483 case $ac_arg in
1484 *=* | --config-cache | -C | -disable-* | --disable-* \
1485 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1486 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1487 | -with-* | --with-* | -without-* | --without-* | --x)
1488 case "$ac_configure_args0 " in
1489 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1490 esac
1491 ;;
1492 -* ) ac_must_keep_next=true ;;
1493 esac
1494 fi
1495 ac_configure_args="$ac_configure_args '$ac_arg'"
1496 ;;
1497 esac
1498 done
1499 done
1500 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1501 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1502
1503 # When interrupted or exit'd, cleanup temporary files, and complete
1504 # config.log. We remove comments because anyway the quotes in there
1505 # would cause problems or look ugly.
1506 # WARNING: Use '\'' to represent an apostrophe within the trap.
1507 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1508 trap 'exit_status=$?
1509 # Save into config.log some information that might help in debugging.
1510 {
1511 echo
1512
1513 cat <<\_ASBOX
1514 ## ---------------- ##
1515 ## Cache variables. ##
1516 ## ---------------- ##
1517 _ASBOX
1518 echo
1519 # The following way of writing the cache mishandles newlines in values,
1520 (
1521 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1522 eval ac_val=\$$ac_var
1523 case $ac_val in #(
1524 *${as_nl}*)
1525 case $ac_var in #(
1526 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1527 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1528 esac
1529 case $ac_var in #(
1530 _ | IFS | as_nl) ;; #(
1531 *) $as_unset $ac_var ;;
1532 esac ;;
1533 esac
1534 done
1535 (set) 2>&1 |
1536 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1537 *${as_nl}ac_space=\ *)
1538 sed -n \
1539 "s/'\''/'\''\\\\'\'''\''/g;
1540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1541 ;; #(
1542 *)
1543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1544 ;;
1545 esac |
1546 sort
1547 )
1548 echo
1549
1550 cat <<\_ASBOX
1551 ## ----------------- ##
1552 ## Output variables. ##
1553 ## ----------------- ##
1554 _ASBOX
1555 echo
1556 for ac_var in $ac_subst_vars
1557 do
1558 eval ac_val=\$$ac_var
1559 case $ac_val in
1560 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1561 esac
1562 echo "$ac_var='\''$ac_val'\''"
1563 done | sort
1564 echo
1565
1566 if test -n "$ac_subst_files"; then
1567 cat <<\_ASBOX
1568 ## ------------------- ##
1569 ## File substitutions. ##
1570 ## ------------------- ##
1571 _ASBOX
1572 echo
1573 for ac_var in $ac_subst_files
1574 do
1575 eval ac_val=\$$ac_var
1576 case $ac_val in
1577 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1578 esac
1579 echo "$ac_var='\''$ac_val'\''"
1580 done | sort
1581 echo
1582 fi
1583
1584 if test -s confdefs.h; then
1585 cat <<\_ASBOX
1586 ## ----------- ##
1587 ## confdefs.h. ##
1588 ## ----------- ##
1589 _ASBOX
1590 echo
1591 cat confdefs.h
1592 echo
1593 fi
1594 test "$ac_signal" != 0 &&
1595 echo "$as_me: caught signal $ac_signal"
1596 echo "$as_me: exit $exit_status"
1597 } >&5
1598 rm -f core *.core core.conftest.* &&
1599 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1600 exit $exit_status
1601 ' 0
1602 for ac_signal in 1 2 13 15; do
1603 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1604 done
1605 ac_signal=0
1606
1607 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1608 rm -f -r conftest* confdefs.h
1609
1610 # Predefined preprocessor variables.
1611
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_NAME "$PACKAGE_NAME"
1614 _ACEOF
1615
1616
1617 cat >>confdefs.h <<_ACEOF
1618 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1619 _ACEOF
1620
1621
1622 cat >>confdefs.h <<_ACEOF
1623 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1624 _ACEOF
1625
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_STRING "$PACKAGE_STRING"
1629 _ACEOF
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1634 _ACEOF
1635
1636
1637 # Let the site file select an alternate cache file if it wants to.
1638 # Prefer explicitly selected file to automatically selected ones.
1639 if test -n "$CONFIG_SITE"; then
1640 set x "$CONFIG_SITE"
1641 elif test "x$prefix" != xNONE; then
1642 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1643 else
1644 set x "$ac_default_prefix/share/config.site" \
1645 "$ac_default_prefix/etc/config.site"
1646 fi
1647 shift
1648 for ac_site_file
1649 do
1650 if test -r "$ac_site_file"; then
1651 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1652 echo "$as_me: loading site script $ac_site_file" >&6;}
1653 sed 's/^/| /' "$ac_site_file" >&5
1654 . "$ac_site_file"
1655 fi
1656 done
1657
1658 if test -r "$cache_file"; then
1659 # Some versions of bash will fail to source /dev/null (special
1660 # files actually), so we avoid doing that.
1661 if test -f "$cache_file"; then
1662 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1663 echo "$as_me: loading cache $cache_file" >&6;}
1664 case $cache_file in
1665 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1666 *) . "./$cache_file";;
1667 esac
1668 fi
1669 else
1670 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1671 echo "$as_me: creating cache $cache_file" >&6;}
1672 >$cache_file
1673 fi
1674
1675 # Check that the precious variables saved in the cache have kept the same
1676 # value.
1677 ac_cache_corrupted=false
1678 for ac_var in $ac_precious_vars; do
1679 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1680 eval ac_new_set=\$ac_env_${ac_var}_set
1681 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1682 eval ac_new_val=\$ac_env_${ac_var}_value
1683 case $ac_old_set,$ac_new_set in
1684 set,)
1685 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1687 ac_cache_corrupted=: ;;
1688 ,set)
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1692 ,);;
1693 *)
1694 if test "x$ac_old_val" != "x$ac_new_val"; then
1695 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1696 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1697 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1698 echo "$as_me: former value: $ac_old_val" >&2;}
1699 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1700 echo "$as_me: current value: $ac_new_val" >&2;}
1701 ac_cache_corrupted=:
1702 fi;;
1703 esac
1704 # Pass precious variables to config.status.
1705 if test "$ac_new_set" = set; then
1706 case $ac_new_val in
1707 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1708 *) ac_arg=$ac_var=$ac_new_val ;;
1709 esac
1710 case " $ac_configure_args " in
1711 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1712 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1713 esac
1714 fi
1715 done
1716 if $ac_cache_corrupted; then
1717 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1718 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1719 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1720 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1721 { (exit 1); exit 1; }; }
1722 fi
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740 ac_ext=c
1741 ac_cpp='$CPP $CPPFLAGS'
1742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1745
1746
1747
1748 ac_aux_dir=
1749 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1750 if test -f "$ac_dir/install-sh"; then
1751 ac_aux_dir=$ac_dir
1752 ac_install_sh="$ac_aux_dir/install-sh -c"
1753 break
1754 elif test -f "$ac_dir/install.sh"; then
1755 ac_aux_dir=$ac_dir
1756 ac_install_sh="$ac_aux_dir/install.sh -c"
1757 break
1758 elif test -f "$ac_dir/shtool"; then
1759 ac_aux_dir=$ac_dir
1760 ac_install_sh="$ac_aux_dir/shtool install -c"
1761 break
1762 fi
1763 done
1764 if test -z "$ac_aux_dir"; then
1765 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1766 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1767 { (exit 1); exit 1; }; }
1768 fi
1769
1770 # These three variables are undocumented and unsupported,
1771 # and are intended to be withdrawn in a future Autoconf release.
1772 # They can cause serious problems if a builder's source tree is in a directory
1773 # whose full name contains unusual characters.
1774 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1775 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1776 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1777
1778
1779 # Make sure we can run config.sub.
1780 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1781 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1782 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1783 { (exit 1); exit 1; }; }
1784
1785 { echo "$as_me:$LINENO: checking build system type" >&5
1786 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1787 if test "${ac_cv_build+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790 ac_build_alias=$build_alias
1791 test "x$ac_build_alias" = x &&
1792 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1793 test "x$ac_build_alias" = x &&
1794 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1795 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1796 { (exit 1); exit 1; }; }
1797 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1798 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1799 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1800 { (exit 1); exit 1; }; }
1801
1802 fi
1803 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1804 echo "${ECHO_T}$ac_cv_build" >&6; }
1805 case $ac_cv_build in
1806 *-*-*) ;;
1807 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1808 echo "$as_me: error: invalid value of canonical build" >&2;}
1809 { (exit 1); exit 1; }; };;
1810 esac
1811 build=$ac_cv_build
1812 ac_save_IFS=$IFS; IFS='-'
1813 set x $ac_cv_build
1814 shift
1815 build_cpu=$1
1816 build_vendor=$2
1817 shift; shift
1818 # Remember, the first character of IFS is used to create $*,
1819 # except with old shells:
1820 build_os=$*
1821 IFS=$ac_save_IFS
1822 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1823
1824
1825 { echo "$as_me:$LINENO: checking host system type" >&5
1826 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1827 if test "${ac_cv_host+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test "x$host_alias" = x; then
1831 ac_cv_host=$ac_cv_build
1832 else
1833 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1834 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1835 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1836 { (exit 1); exit 1; }; }
1837 fi
1838
1839 fi
1840 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1841 echo "${ECHO_T}$ac_cv_host" >&6; }
1842 case $ac_cv_host in
1843 *-*-*) ;;
1844 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1845 echo "$as_me: error: invalid value of canonical host" >&2;}
1846 { (exit 1); exit 1; }; };;
1847 esac
1848 host=$ac_cv_host
1849 ac_save_IFS=$IFS; IFS='-'
1850 set x $ac_cv_host
1851 shift
1852 host_cpu=$1
1853 host_vendor=$2
1854 shift; shift
1855 # Remember, the first character of IFS is used to create $*,
1856 # except with old shells:
1857 host_os=$*
1858 IFS=$ac_save_IFS
1859 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1860
1861
1862 { echo "$as_me:$LINENO: checking target system type" >&5
1863 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1864 if test "${ac_cv_target+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test "x$target_alias" = x; then
1868 ac_cv_target=$ac_cv_host
1869 else
1870 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1871 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1872 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1873 { (exit 1); exit 1; }; }
1874 fi
1875
1876 fi
1877 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878 echo "${ECHO_T}$ac_cv_target" >&6; }
1879 case $ac_cv_target in
1880 *-*-*) ;;
1881 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1882 echo "$as_me: error: invalid value of canonical target" >&2;}
1883 { (exit 1); exit 1; }; };;
1884 esac
1885 target=$ac_cv_target
1886 ac_save_IFS=$IFS; IFS='-'
1887 set x $ac_cv_target
1888 shift
1889 target_cpu=$1
1890 target_vendor=$2
1891 shift; shift
1892 # Remember, the first character of IFS is used to create $*,
1893 # except with old shells:
1894 target_os=$*
1895 IFS=$ac_save_IFS
1896 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1897
1898
1899 # The aliases save the names the user supplied, while $host etc.
1900 # will get canonicalized.
1901 test -n "$target_alias" &&
1902 test "$program_prefix$program_suffix$program_transform_name" = \
1903 NONENONEs,x,x, &&
1904 program_prefix=${target_alias}-
1905
1906
1907
1908
1909
1910
1911 # Check whether --with-gcc was given.
1912 if test "${with_gcc+set}" = set; then
1913 withval=$with_gcc;
1914 fi
1915
1916 V_CCOPT="-O"
1917 V_INCLS=""
1918 if test "${srcdir}" != "." ; then
1919 V_INCLS="-I\$(srcdir)"
1920 fi
1921 if test "${CFLAGS+set}" = set; then
1922 LBL_CFLAGS="$CFLAGS"
1923 fi
1924 if test -z "$CC" ; then
1925 case "$host_os" in
1926
1927 bsdi*)
1928 # Extract the first word of "shlicc2", so it can be a program name with args.
1929 set dummy shlicc2; ac_word=$2
1930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1932 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935 if test -n "$SHLICC2"; then
1936 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945 ac_cv_prog_SHLICC2="yes"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1948 fi
1949 done
1950 done
1951 IFS=$as_save_IFS
1952
1953 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1954 fi
1955 fi
1956 SHLICC2=$ac_cv_prog_SHLICC2
1957 if test -n "$SHLICC2"; then
1958 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1959 echo "${ECHO_T}$SHLICC2" >&6; }
1960 else
1961 { echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6; }
1963 fi
1964
1965
1966 if test $SHLICC2 = yes ; then
1967 CC=shlicc2
1968 export CC
1969 fi
1970 ;;
1971 esac
1972 fi
1973 if test -z "$CC" -a "$with_gcc" = no ; then
1974 CC=cc
1975 export CC
1976 fi
1977 ac_ext=c
1978 ac_cpp='$CPP $CPPFLAGS'
1979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982 if test -n "$ac_tool_prefix"; then
1983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004 done
2005 done
2006 IFS=$as_save_IFS
2007
2008 fi
2009 fi
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012 { echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6; }
2014 else
2015 { echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6; }
2017 fi
2018
2019
2020 fi
2021 if test -z "$ac_cv_prog_CC"; then
2022 ac_ct_CC=$CC
2023 # Extract the first word of "gcc", so it can be a program name with args.
2024 set dummy gcc; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_ac_ct_CC="gcc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2043 fi
2044 done
2045 done
2046 IFS=$as_save_IFS
2047
2048 fi
2049 fi
2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 else
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059 if test "x$ac_ct_CC" = x; then
2060 CC=""
2061 else
2062 case $cross_compiling:$ac_tool_warned in
2063 yes:)
2064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet. If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&5
2067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2070 ac_tool_warned=yes ;;
2071 esac
2072 CC=$ac_ct_CC
2073 fi
2074 else
2075 CC="$ac_cv_prog_CC"
2076 fi
2077
2078 if test -z "$CC"; then
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}cc; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2097 ac_cv_prog_CC="${ac_tool_prefix}cc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2100 fi
2101 done
2102 done
2103 IFS=$as_save_IFS
2104
2105 fi
2106 fi
2107 CC=$ac_cv_prog_CC
2108 if test -n "$CC"; then
2109 { echo "$as_me:$LINENO: result: $CC" >&5
2110 echo "${ECHO_T}$CC" >&6; }
2111 else
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2114 fi
2115
2116
2117 fi
2118 fi
2119 if test -z "$CC"; then
2120 # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2129 else
2130 ac_prog_rejected=no
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2139 ac_prog_rejected=yes
2140 continue
2141 fi
2142 ac_cv_prog_CC="cc"
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144 break 2
2145 fi
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 if test $ac_prog_rejected = yes; then
2151 # We found a bogon in the path, so make sure we never use it.
2152 set dummy $ac_cv_prog_CC
2153 shift
2154 if test $# != 0; then
2155 # We chose a different compiler from the bogus one.
2156 # However, it has the same basename, so the bogon will be chosen
2157 # first if we set CC to just the basename; use the full file name.
2158 shift
2159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2160 fi
2161 fi
2162 fi
2163 fi
2164 CC=$ac_cv_prog_CC
2165 if test -n "$CC"; then
2166 { echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6; }
2168 else
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2171 fi
2172
2173
2174 fi
2175 if test -z "$CC"; then
2176 if test -n "$ac_tool_prefix"; then
2177 for ac_prog in cl.exe
2178 do
2179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2199 fi
2200 done
2201 done
2202 IFS=$as_save_IFS
2203
2204 fi
2205 fi
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208 { echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6; }
2210 else
2211 { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2213 fi
2214
2215
2216 test -n "$CC" && break
2217 done
2218 fi
2219 if test -z "$CC"; then
2220 ac_ct_CC=$CC
2221 for ac_prog in cl.exe
2222 do
2223 # Extract the first word of "$ac_prog", so it can be a program name with args.
2224 set dummy $ac_prog; ac_word=$2
2225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$ac_ct_CC"; then
2231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2235 do
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2240 ac_cv_prog_ac_ct_CC="$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2243 fi
2244 done
2245 done
2246 IFS=$as_save_IFS
2247
2248 fi
2249 fi
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6; }
2254 else
2255 { echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6; }
2257 fi
2258
2259
2260 test -n "$ac_ct_CC" && break
2261 done
2262
2263 if test "x$ac_ct_CC" = x; then
2264 CC=""
2265 else
2266 case $cross_compiling:$ac_tool_warned in
2267 yes:)
2268 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2269 whose name does not start with the host triplet. If you think this
2270 configuration is useful to you, please write to autoconf@gnu.org." >&5
2271 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2272 whose name does not start with the host triplet. If you think this
2273 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2274 ac_tool_warned=yes ;;
2275 esac
2276 CC=$ac_ct_CC
2277 fi
2278 fi
2279
2280 fi
2281
2282
2283 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: no acceptable C compiler found in \$PATH
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2288
2289 # Provide some information about the compiler.
2290 echo "$as_me:$LINENO: checking for C compiler version" >&5
2291 ac_compiler=`set X $ac_compile; echo $2`
2292 { (ac_try="$ac_compiler --version >&5"
2293 case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296 esac
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_compiler --version >&5") 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }
2302 { (ac_try="$ac_compiler -v >&5"
2303 case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306 esac
2307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2308 (eval "$ac_compiler -v >&5") 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }
2312 { (ac_try="$ac_compiler -V >&5"
2313 case "(($ac_try" in
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2316 esac
2317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2318 (eval "$ac_compiler -V >&5") 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }
2322
2323 cat >conftest.$ac_ext <<_ACEOF
2324 /* confdefs.h. */
2325 _ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2329
2330 int
2331 main ()
2332 {
2333
2334 ;
2335 return 0;
2336 }
2337 _ACEOF
2338 ac_clean_files_save=$ac_clean_files
2339 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2340 # Try to create an executable without -o first, disregard a.out.
2341 # It will help us diagnose broken compilers, and finding out an intuition
2342 # of exeext.
2343 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2344 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2345 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2346 #
2347 # List of possible output files, starting from the most likely.
2348 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2349 # only as a last resort. b.out is created by i960 compilers.
2350 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2351 #
2352 # The IRIX 6 linker writes into existing files which may not be
2353 # executable, retaining their permissions. Remove them first so a
2354 # subsequent execution test works.
2355 ac_rmfiles=
2356 for ac_file in $ac_files
2357 do
2358 case $ac_file in
2359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2360 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2361 esac
2362 done
2363 rm -f $ac_rmfiles
2364
2365 if { (ac_try="$ac_link_default"
2366 case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369 esac
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_link_default") 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2377 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2378 # so that the user can short-circuit this test for compilers unknown to
2379 # Autoconf.
2380 for ac_file in $ac_files ''
2381 do
2382 test -f "$ac_file" || continue
2383 case $ac_file in
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2385 ;;
2386 [ab].out )
2387 # We found the default executable, but exeext='' is most
2388 # certainly right.
2389 break;;
2390 *.* )
2391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2392 then :; else
2393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2394 fi
2395 # We set ac_cv_exeext here because the later test for it is not
2396 # safe: cross compilers may not add the suffix if given an `-o'
2397 # argument, so we may need to know it at that point already.
2398 # Even if this section looks crufty: it has the advantage of
2399 # actually working.
2400 break;;
2401 * )
2402 break;;
2403 esac
2404 done
2405 test "$ac_cv_exeext" = no && ac_cv_exeext=
2406
2407 else
2408 ac_file=''
2409 fi
2410
2411 { echo "$as_me:$LINENO: result: $ac_file" >&5
2412 echo "${ECHO_T}$ac_file" >&6; }
2413 if test -z "$ac_file"; then
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: C compiler cannot create executables
2420 See \`config.log' for more details." >&2;}
2421 { (exit 77); exit 77; }; }
2422 fi
2423
2424 ac_exeext=$ac_cv_exeext
2425
2426 # Check that the compiler produces executables we can run. If not, either
2427 # the compiler is broken, or we cross compile.
2428 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2429 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2430 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2431 # If not cross compiling, check that we can run a simple program.
2432 if test "$cross_compiling" != yes; then
2433 if { ac_try='./$ac_file'
2434 { (case "(($ac_try" in
2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2437 esac
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439 (eval "$ac_try") 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 cross_compiling=no
2444 else
2445 if test "$cross_compiling" = maybe; then
2446 cross_compiling=yes
2447 else
2448 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2449 If you meant to cross compile, use \`--host'.
2450 See \`config.log' for more details." >&5
2451 echo "$as_me: error: cannot run C compiled programs.
2452 If you meant to cross compile, use \`--host'.
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2455 fi
2456 fi
2457 fi
2458 { echo "$as_me:$LINENO: result: yes" >&5
2459 echo "${ECHO_T}yes" >&6; }
2460
2461 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2462 ac_clean_files=$ac_clean_files_save
2463 # Check that the compiler produces executables we can run. If not, either
2464 # the compiler is broken, or we cross compile.
2465 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2466 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2467 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2468 echo "${ECHO_T}$cross_compiling" >&6; }
2469
2470 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2471 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2472 if { (ac_try="$ac_link"
2473 case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_link") 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2484 # work properly (i.e., refer to `conftest.exe'), while it won't with
2485 # `rm'.
2486 for ac_file in conftest.exe conftest conftest.*; do
2487 test -f "$ac_file" || continue
2488 case $ac_file in
2489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2491 break;;
2492 * ) break;;
2493 esac
2494 done
2495 else
2496 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2497 See \`config.log' for more details." >&5
2498 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2499 See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2501 fi
2502
2503 rm -f conftest$ac_cv_exeext
2504 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2505 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2506
2507 rm -f conftest.$ac_ext
2508 EXEEXT=$ac_cv_exeext
2509 ac_exeext=$EXEEXT
2510 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2511 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2512 if test "${ac_cv_objext+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521
2522 int
2523 main ()
2524 {
2525
2526 ;
2527 return 0;
2528 }
2529 _ACEOF
2530 rm -f conftest.o conftest.obj
2531 if { (ac_try="$ac_compile"
2532 case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compile") 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; then
2541 for ac_file in conftest.o conftest.obj conftest.*; do
2542 test -f "$ac_file" || continue;
2543 case $ac_file in
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2545 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2546 break;;
2547 esac
2548 done
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2554 See \`config.log' for more details." >&5
2555 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2556 See \`config.log' for more details." >&2;}
2557 { (exit 1); exit 1; }; }
2558 fi
2559
2560 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2561 fi
2562 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2563 echo "${ECHO_T}$ac_cv_objext" >&6; }
2564 OBJEXT=$ac_cv_objext
2565 ac_objext=$OBJEXT
2566 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2568 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h. */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2577
2578 int
2579 main ()
2580 {
2581 #ifndef __GNUC__
2582 choke me
2583 #endif
2584
2585 ;
2586 return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2591 case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_compile") 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } && {
2603 test -z "$ac_c_werror_flag" ||
2604 test ! -s conftest.err
2605 } && test -s conftest.$ac_objext; then
2606 ac_compiler_gnu=yes
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 ac_compiler_gnu=no
2612 fi
2613
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2616
2617 fi
2618 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2620 GCC=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CFLAGS=${CFLAGS+set}
2622 ac_save_CFLAGS=$CFLAGS
2623 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2624 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_cc_g+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 ac_save_c_werror_flag=$ac_c_werror_flag
2629 ac_c_werror_flag=yes
2630 ac_cv_prog_cc_g=no
2631 CFLAGS="-g"
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638
2639 int
2640 main ()
2641 {
2642
2643 ;
2644 return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (ac_try="$ac_compile"
2649 case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.$ac_objext; then
2664 ac_cv_prog_cc_g=yes
2665 else
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 CFLAGS=""
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2676
2677 int
2678 main ()
2679 {
2680
2681 ;
2682 return 0;
2683 }
2684 _ACEOF
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } && {
2699 test -z "$ac_c_werror_flag" ||
2700 test ! -s conftest.err
2701 } && test -s conftest.$ac_objext; then
2702 :
2703 else
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 ac_c_werror_flag=$ac_save_c_werror_flag
2708 CFLAGS="-g"
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2715
2716 int
2717 main ()
2718 {
2719
2720 ;
2721 return 0;
2722 }
2723 _ACEOF
2724 rm -f conftest.$ac_objext
2725 if { (ac_try="$ac_compile"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compile") 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } && {
2738 test -z "$ac_c_werror_flag" ||
2739 test ! -s conftest.err
2740 } && test -s conftest.$ac_objext; then
2741 ac_cv_prog_cc_g=yes
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746
2747 fi
2748
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 fi
2751
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2753 fi
2754
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2757 fi
2758 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2760 if test "$ac_test_CFLAGS" = set; then
2761 CFLAGS=$ac_save_CFLAGS
2762 elif test $ac_cv_prog_cc_g = yes; then
2763 if test "$GCC" = yes; then
2764 CFLAGS="-g -O2"
2765 else
2766 CFLAGS="-g"
2767 fi
2768 else
2769 if test "$GCC" = yes; then
2770 CFLAGS="-O2"
2771 else
2772 CFLAGS=
2773 fi
2774 fi
2775 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2776 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_cc_c89+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780 ac_cv_prog_cc_c89=no
2781 ac_save_CC=$CC
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2788 #include <stdarg.h>
2789 #include <stdio.h>
2790 #include <sys/types.h>
2791 #include <sys/stat.h>
2792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2793 struct buf { int x; };
2794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2795 static char *e (p, i)
2796 char **p;
2797 int i;
2798 {
2799 return p[i];
2800 }
2801 static char *f (char * (*g) (char **, int), char **p, ...)
2802 {
2803 char *s;
2804 va_list v;
2805 va_start (v,p);
2806 s = g (p, va_arg (v,int));
2807 va_end (v);
2808 return s;
2809 }
2810
2811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2812 function prototypes and stuff, but not '\xHH' hex character constants.
2813 These don't provoke an error unfortunately, instead are silently treated
2814 as 'x'. The following induces an error, until -std is added to get
2815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2816 array size at least. It's necessary to write '\x00'==0 to get something
2817 that's true only with -std. */
2818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2819
2820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2821 inside strings and character constants. */
2822 #define FOO(x) 'x'
2823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2824
2825 int test (int i, double x);
2826 struct s1 {int (*f) (int a);};
2827 struct s2 {int (*f) (double a);};
2828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2829 int argc;
2830 char **argv;
2831 int
2832 main ()
2833 {
2834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2835 ;
2836 return 0;
2837 }
2838 _ACEOF
2839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2841 do
2842 CC="$ac_save_CC $ac_arg"
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2845 case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest.$ac_objext; then
2860 ac_cv_prog_cc_c89=$ac_arg
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865
2866 fi
2867
2868 rm -f core conftest.err conftest.$ac_objext
2869 test "x$ac_cv_prog_cc_c89" != "xno" && break
2870 done
2871 rm -f conftest.$ac_ext
2872 CC=$ac_save_CC
2873
2874 fi
2875 # AC_CACHE_VAL
2876 case "x$ac_cv_prog_cc_c89" in
2877 x)
2878 { echo "$as_me:$LINENO: result: none needed" >&5
2879 echo "${ECHO_T}none needed" >&6; } ;;
2880 xno)
2881 { echo "$as_me:$LINENO: result: unsupported" >&5
2882 echo "${ECHO_T}unsupported" >&6; } ;;
2883 *)
2884 CC="$CC $ac_cv_prog_cc_c89"
2885 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2886 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2887 esac
2888
2889
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895
2896 if test "$GCC" = yes ; then
2897 if test "$SHLICC2" = yes ; then
2898 ac_cv_lbl_gcc_vers=2
2899 V_CCOPT="-O2"
2900 else
2901 { echo "$as_me:$LINENO: checking gcc version" >&5
2902 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2903 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2907 sed -e '/^gcc version /!d' \
2908 -e 's/^gcc version //' \
2909 -e 's/ .*//' -e 's/^[^0-9]*//' \
2910 -e 's/\..*//'`
2911 fi
2912
2913 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2914 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2915 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2916 V_CCOPT="-O2"
2917 fi
2918 fi
2919
2920 #
2921 # On platforms where we build a shared library:
2922 #
2923 # add options to generate position-independent code,
2924 # if necessary (it's the default in AIX and Darwin/OS X);
2925 #
2926 # define option to set the soname of the shared library,
2927 # if the OS supports that;
2928 #
2929 # add options to specify, at link time, a directory to
2930 # add to the run-time search path, if that's necessary.
2931 #
2932 V_SHLIB_CMD="\$(CC)"
2933 V_SHLIB_OPT="-shared"
2934 case "$host_os" in
2935
2936 aix*)
2937 ;;
2938
2939 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
2940 #
2941 # Platforms where the linker is the GNU linker
2942 # or accepts command-line arguments like
2943 # those the GNU linker accepts.
2944 #
2945 V_CCOPT="$V_CCOPT -fpic"
2946 V_SONAME_OPT="-Wl,-soname,"
2947 V_RPATH_OPT="-Wl,-rpath,"
2948 ;;
2949
2950 hpux*)
2951 V_CCOPT="$V_CCOPT -fpic"
2952 #
2953 # XXX - this assumes GCC is using the HP linker,
2954 # rather than the GNU linker, and that the "+h"
2955 # option is used on all HP-UX platforms, both .sl
2956 # and .so.
2957 #
2958 V_SONAME_OPT="-Wl,+h,"
2959 #
2960 # By default, directories specifed with -L
2961 # are added to the run-time search path, so
2962 # we don't add them in pcap-config.
2963 #
2964 ;;
2965
2966 solaris*)
2967 V_CCOPT="$V_CCOPT -fpic"
2968 #
2969 # XXX - this assumes GCC is using the Sun linker,
2970 # rather than the GNU linker.
2971 #
2972 V_SONAME_OPT="-Wl,-h,"
2973 V_RPATH_OPT="-Wl,-R,"
2974 ;;
2975 esac
2976 else
2977 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2978 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2979 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <sys/types.h>
2990 int
2991 main ()
2992 {
2993 int frob(int, char *)
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3006 ac_status=$?
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_lbl_cc_ansi_prototypes=yes
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 ac_cv_lbl_cc_ansi_prototypes=no
3021 fi
3022
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 fi
3025
3026 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
3027 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3028 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3029 case "$host_os" in
3030
3031 hpux*)
3032 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3033 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
3034 savedcflags="$CFLAGS"
3035 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3036 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h. */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3045 #include <sys/types.h>
3046 int
3047 main ()
3048 {
3049 int frob(int, char *)
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } && {
3068 test -z "$ac_c_werror_flag" ||
3069 test ! -s conftest.err
3070 } && test -s conftest.$ac_objext; then
3071 ac_cv_lbl_cc_hpux_cc_aa=yes
3072 else
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 ac_cv_lbl_cc_hpux_cc_aa=no
3077 fi
3078
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 fi
3081
3082 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3083 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3084 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3085 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3086 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3087 { (exit 1); exit 1; }; }
3088 fi
3089 CFLAGS="$savedcflags"
3090 V_CCOPT="-Aa $V_CCOPT"
3091
3092 cat >>confdefs.h <<\_ACEOF
3093 #define _HPUX_SOURCE 1
3094 _ACEOF
3095
3096 ;;
3097
3098 osf*)
3099 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3100 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3101 savedcflags="$CFLAGS"
3102 CFLAGS="-std1"
3103 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #include <sys/types.h>
3113 int
3114 main ()
3115 {
3116 int frob(int, char *)
3117 ;
3118 return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3138 ac_cv_lbl_cc_osf1_cc_std1=yes
3139 else
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 ac_cv_lbl_cc_osf1_cc_std1=no
3144 fi
3145
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 fi
3148
3149 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3150 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3151 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3152 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3153 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3154 { (exit 1); exit 1; }; }
3155 fi
3156 CFLAGS="$savedcflags"
3157 V_CCOPT="-std1 $V_CCOPT"
3158 ;;
3159
3160 *)
3161 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3162 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3163 { (exit 1); exit 1; }; }
3164 ;;
3165 esac
3166 fi
3167 V_INCLS="$V_INCLS -I/usr/local/include"
3168 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3169
3170 #
3171 # Set the appropriate compiler flags and, on platforms
3172 # where we build a shared library:
3173 #
3174 # add options to generate position-independent code,
3175 # if necessary (it's the default in Darwin/OS X);
3176 #
3177 # if we generate ".so" shared libraries, define the
3178 # appropriate options for building the shared library;
3179 #
3180 # add options to specify, at link time, a directory to
3181 # add to the run-time search path, if that's necessary.
3182 #
3183 # Note: spaces after V_SONAME_OPT are significant; on
3184 # some platforms the soname is passed with a GCC-like
3185 # "-Wl,-soname,{soname}" option, with the soname part
3186 # of the option, while on other platforms the C compiler
3187 # driver takes it as a regular option with the soname
3188 # following the option. The same applies to V_RPATH_OPT.
3189 #
3190 case "$host_os" in
3191
3192 aix*)
3193 V_SHLIB_CMD="\$(CC)"
3194 V_SHLIB_OPT="-G -bnoentry -bexpall"
3195 ;;
3196
3197 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3198 #
3199 # "cc" is GCC.
3200 #
3201 V_CCOPT="$V_CCOPT -fpic"
3202 V_SHLIB_CMD="\$(CC)"
3203 V_SHLIB_OPT="-shared"
3204 V_SONAME_OPT="-Wl,-soname,"
3205 V_RPATH_OPT="-Wl,-rpath,"
3206 ;;
3207
3208 hpux*)
3209 V_CCOPT="$V_CCOPT +z"
3210 V_SHLIB_CMD="\$(LD)"
3211 V_SHLIB_OPT="-b"
3212 V_SONAME_OPT="+h "
3213 #
3214 # By default, directories specifed with -L
3215 # are added to the run-time search path, so
3216 # we don't add them in pcap-config.
3217 #
3218 ;;
3219
3220 irix*)
3221 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3222 ;;
3223
3224 osf*)
3225 #
3226 # Presumed to be DEC OSF/1, Digital UNIX, or
3227 # Tru64 UNIX.
3228 #
3229 V_CCOPT="$V_CCOPT -g3"
3230 V_SHLIB_CMD="\$(CC)"
3231 V_SHLIB_OPT="-shared"
3232 V_SONAME_OPT="-soname "
3233 V_RPATH_OPT="-rpath "
3234 ;;
3235
3236 solaris*)
3237 V_CCOPT="$V_CCOPT -Kpic"
3238 V_SHLIB_CMD="\$(CC)"
3239 V_SHLIB_OPT="-G"
3240 V_SONAME_OPT="-h "
3241 V_RPATH_OPT="-R"
3242 ;;
3243
3244 ultrix*)
3245 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3246 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3247 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256 #include <sys/types.h>
3257 int
3258 main ()
3259 {
3260 struct a { int b; };
3261 void c(const struct a *)
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.$ac_objext
3267 if { (ac_try="$ac_compile"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3283 ac_cv_lbl_cc_const_proto=yes
3284 else
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 ac_cv_lbl_cc_const_proto=no
3289 fi
3290
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 fi
3293
3294 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3295 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3296 if test $ac_cv_lbl_cc_const_proto = no ; then
3297
3298 cat >>confdefs.h <<\_ACEOF
3299 #define const
3300 _ACEOF
3301
3302 fi
3303 ;;
3304 esac
3305 fi
3306
3307 { echo "$as_me:$LINENO: checking for inline" >&5
3308 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3309 save_CFLAGS="$CFLAGS"
3310 CFLAGS="$V_CCOPT"
3311 if test "${ac_cv_lbl_inline+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314
3315 ac_cv_lbl_inline=""
3316 ac_lbl_cc_inline=no
3317 for ac_lbl_inline in inline __inline__ __inline
3318 do
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 #define inline $ac_lbl_inline
3326 static inline struct iltest *foo(void);
3327 struct iltest {
3328 int iltest1;
3329 int iltest2;
3330 };
3331
3332 static inline struct iltest *
3333 foo()
3334 {
3335 static struct iltest xxx;
3336
3337 return &xxx;
3338 }
3339 int
3340 main ()
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } && {
3361 test -z "$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3363 } && test -s conftest.$ac_objext; then
3364 ac_lbl_cc_inline=yes
3365 else
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369
3370 fi
3371
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 if test "$ac_lbl_cc_inline" = yes ; then
3374 break;
3375 fi
3376 done
3377 if test "$ac_lbl_cc_inline" = yes ; then
3378 ac_cv_lbl_inline=$ac_lbl_inline
3379 fi
3380 fi
3381
3382 CFLAGS="$save_CFLAGS"
3383 if test ! -z "$ac_cv_lbl_inline" ; then
3384 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3385 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3386 else
3387 { echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6; }
3389 fi
3390
3391 cat >>confdefs.h <<_ACEOF
3392 #define inline $ac_cv_lbl_inline
3393 _ACEOF
3394
3395
3396 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3397 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3398 if test "${ac_cv___attribute__+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408
3409 #include <stdlib.h>
3410
3411 static void foo(void) __attribute__ ((noreturn));
3412
3413 static void
3414 foo(void)
3415 {
3416 exit(1);
3417 }
3418
3419 int
3420 main(int argc, char **argv)
3421 {
3422 foo();
3423 }
3424
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_cv___attribute__=yes
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 ac_cv___attribute__=no
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 fi
3453
3454 if test "$ac_cv___attribute__" = "yes"; then
3455
3456 cat >>confdefs.h <<\_ACEOF
3457 #define HAVE___ATTRIBUTE__ 1
3458 _ACEOF
3459
3460 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3461 else
3462 V_DEFS="$V_DEFS -D_U_=\"\""
3463 fi
3464 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3465 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3466
3467
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3474 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3475 # On Suns, sometimes $CPP names a directory.
3476 if test -n "$CPP" && test -d "$CPP"; then
3477 CPP=
3478 fi
3479 if test -z "$CPP"; then
3480 if test "${ac_cv_prog_CPP+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 # Double quotes because CPP needs to be expanded
3484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3485 do
3486 ac_preproc_ok=false
3487 for ac_c_preproc_warn_flag in '' yes
3488 do
3489 # Use a header file that comes with gcc, so configuring glibc
3490 # with a fresh cross-compiler works.
3491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492 # <limits.h> exists even on freestanding compilers.
3493 # On the NeXT, cc -E runs the code through the compiler's parser,
3494 # not just through cpp. "Syntax error" is here to catch this case.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h. */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506 Syntax error
3507 _ACEOF
3508 if { (ac_try="$ac_cpp conftest.$ac_ext"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null && {
3521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3523 }; then
3524 :
3525 else
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 # Broken: fails on valid input.
3530 continue
3531 fi
3532
3533 rm -f conftest.err conftest.$ac_ext
3534
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <ac_nonexistent.h>
3544 _ACEOF
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null && {
3558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 }; then
3561 # Broken: success on invalid input.
3562 continue
3563 else
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 # Passes both tests.
3568 ac_preproc_ok=:
3569 break
3570 fi
3571
3572 rm -f conftest.err conftest.$ac_ext
3573
3574 done
3575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3576 rm -f conftest.err conftest.$ac_ext
3577 if $ac_preproc_ok; then
3578 break
3579 fi
3580
3581 done
3582 ac_cv_prog_CPP=$CPP
3583
3584 fi
3585 CPP=$ac_cv_prog_CPP
3586 else
3587 ac_cv_prog_CPP=$CPP
3588 fi
3589 { echo "$as_me:$LINENO: result: $CPP" >&5
3590 echo "${ECHO_T}$CPP" >&6; }
3591 ac_preproc_ok=false
3592 for ac_c_preproc_warn_flag in '' yes
3593 do
3594 # Use a header file that comes with gcc, so configuring glibc
3595 # with a fresh cross-compiler works.
3596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597 # <limits.h> exists even on freestanding compilers.
3598 # On the NeXT, cc -E runs the code through the compiler's parser,
3599 # not just through cpp. "Syntax error" is here to catch this case.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #ifdef __STDC__
3607 # include <limits.h>
3608 #else
3609 # include <assert.h>
3610 #endif
3611 Syntax error
3612 _ACEOF
3613 if { (ac_try="$ac_cpp conftest.$ac_ext"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null && {
3626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 }; then
3629 :
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 # Broken: fails on valid input.
3635 continue
3636 fi
3637
3638 rm -f conftest.err conftest.$ac_ext
3639
3640 # OK, works on sane cases. Now check whether nonexistent headers
3641 # can be detected and how.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <ac_nonexistent.h>
3649 _ACEOF
3650 if { (ac_try="$ac_cpp conftest.$ac_ext"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } >/dev/null && {
3663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 }; then
3666 # Broken: success on invalid input.
3667 continue
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672 # Passes both tests.
3673 ac_preproc_ok=:
3674 break
3675 fi
3676
3677 rm -f conftest.err conftest.$ac_ext
3678
3679 done
3680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3681 rm -f conftest.err conftest.$ac_ext
3682 if $ac_preproc_ok; then
3683 :
3684 else
3685 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3686 See \`config.log' for more details." >&5
3687 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3688 See \`config.log' for more details." >&2;}
3689 { (exit 1); exit 1; }; }
3690 fi
3691
3692 ac_ext=c
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697
3698
3699 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3700 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_GREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 # Extract the first word of "grep ggrep" to use in msg output
3705 if test -z "$GREP"; then
3706 set dummy grep ggrep; ac_prog_name=$2
3707 if test "${ac_cv_path_GREP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 ac_path_GREP_found=false
3711 # Loop through the user's path and test for each of PROGNAME-LIST
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714 do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_prog in grep ggrep; do
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3720 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3721 # Check for GNU ac_path_GREP and select it if it is found.
3722 # Check for GNU $ac_path_GREP
3723 case `"$ac_path_GREP" --version 2>&1` in
3724 *GNU*)
3725 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3726 *)
3727 ac_count=0
3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3729 while :
3730 do
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 echo 'GREP' >> "conftest.nl"
3735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3737 ac_count=`expr $ac_count + 1`
3738 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_GREP="$ac_path_GREP"
3741 ac_path_GREP_max=$ac_count
3742 fi
3743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3745 done
3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 esac
3748
3749
3750 $ac_path_GREP_found && break 3
3751 done
3752 done
3753
3754 done
3755 IFS=$as_save_IFS
3756
3757
3758 fi
3759
3760 GREP="$ac_cv_path_GREP"
3761 if test -z "$GREP"; then
3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3763 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3764 { (exit 1); exit 1; }; }
3765 fi
3766
3767 else
3768 ac_cv_path_GREP=$GREP
3769 fi
3770
3771
3772 fi
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3775 GREP="$ac_cv_path_GREP"
3776
3777
3778 { echo "$as_me:$LINENO: checking for egrep" >&5
3779 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3784 then ac_cv_path_EGREP="$GREP -E"
3785 else
3786 # Extract the first word of "egrep" to use in msg output
3787 if test -z "$EGREP"; then
3788 set dummy egrep; ac_prog_name=$2
3789 if test "${ac_cv_path_EGREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 ac_path_EGREP_found=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_prog in egrep; do
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3802 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3803 # Check for GNU ac_path_EGREP and select it if it is found.
3804 # Check for GNU $ac_path_EGREP
3805 case `"$ac_path_EGREP" --version 2>&1` in
3806 *GNU*)
3807 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3808 *)
3809 ac_count=0
3810 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3811 while :
3812 do
3813 cat "conftest.in" "conftest.in" >"conftest.tmp"
3814 mv "conftest.tmp" "conftest.in"
3815 cp "conftest.in" "conftest.nl"
3816 echo 'EGREP' >> "conftest.nl"
3817 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819 ac_count=`expr $ac_count + 1`
3820 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3821 # Best one so far, save it but keep looking for a better one
3822 ac_cv_path_EGREP="$ac_path_EGREP"
3823 ac_path_EGREP_max=$ac_count
3824 fi
3825 # 10*(2^10) chars as input seems more than enough
3826 test $ac_count -gt 10 && break
3827 done
3828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 esac
3830
3831
3832 $ac_path_EGREP_found && break 3
3833 done
3834 done
3835
3836 done
3837 IFS=$as_save_IFS
3838
3839
3840 fi
3841
3842 EGREP="$ac_cv_path_EGREP"
3843 if test -z "$EGREP"; then
3844 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3845 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3846 { (exit 1); exit 1; }; }
3847 fi
3848
3849 else
3850 ac_cv_path_EGREP=$EGREP
3851 fi
3852
3853
3854 fi
3855 fi
3856 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3857 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3858 EGREP="$ac_cv_path_EGREP"
3859
3860
3861 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3863 if test "${ac_cv_header_stdc+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h. */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 #include <stdlib.h>
3873 #include <stdarg.h>
3874 #include <string.h>
3875 #include <float.h>
3876
3877 int
3878 main ()
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_compile") 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } && {
3899 test -z "$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3901 } && test -s conftest.$ac_objext; then
3902 ac_cv_header_stdc=yes
3903 else
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 ac_cv_header_stdc=no
3908 fi
3909
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911
3912 if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 #include <string.h>
3921
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "memchr" >/dev/null 2>&1; then
3925 :
3926 else
3927 ac_cv_header_stdc=no
3928 fi
3929 rm -f conftest*
3930
3931 fi
3932
3933 if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #include <stdlib.h>
3942
3943 _ACEOF
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then
3946 :
3947 else
3948 ac_cv_header_stdc=no
3949 fi
3950 rm -f conftest*
3951
3952 fi
3953
3954 if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then
3957 :
3958 else
3959 cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h. */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3965 #include <ctype.h>
3966 #include <stdlib.h>
3967 #if ((' ' & 0x0FF) == 0x020)
3968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3970 #else
3971 # define ISLOWER(c) \
3972 (('a' <= (c) && (c) <= 'i') \
3973 || ('j' <= (c) && (c) <= 'r') \
3974 || ('s' <= (c) && (c) <= 'z'))
3975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3976 #endif
3977
3978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3979 int
3980 main ()
3981 {
3982 int i;
3983 for (i = 0; i < 256; i++)
3984 if (XOR (islower (i), ISLOWER (i))
3985 || toupper (i) != TOUPPER (i))
3986 return 2;
3987 return 0;
3988 }
3989 _ACEOF
3990 rm -f conftest$ac_exeext
3991 if { (ac_try="$ac_link"
3992 case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_link") 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4001 { (case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_try") 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 :
4011 else
4012 echo "$as_me: program exited with status $ac_status" >&5
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016 ( exit $ac_status )
4017 ac_cv_header_stdc=no
4018 fi
4019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4020 fi
4021
4022
4023 fi
4024 fi
4025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4027 if test $ac_cv_header_stdc = yes; then
4028
4029 cat >>confdefs.h <<\_ACEOF
4030 #define STDC_HEADERS 1
4031 _ACEOF
4032
4033 fi
4034
4035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4046 inttypes.h stdint.h unistd.h
4047 do
4048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 $ac_includes_default
4061
4062 #include <$ac_header>
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest.$ac_objext; then
4081 eval "$as_ac_Header=yes"
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 eval "$as_ac_Header=no"
4087 fi
4088
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 fi
4091 ac_res=`eval echo '${'$as_ac_Header'}'`
4092 { echo "$as_me:$LINENO: result: $ac_res" >&5
4093 echo "${ECHO_T}$ac_res" >&6; }
4094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095 cat >>confdefs.h <<_ACEOF
4096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097 _ACEOF
4098
4099 fi
4100
4101 done
4102
4103
4104
4105 for ac_header in sys/bitypes.h
4106 do
4107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 fi
4114 ac_res=`eval echo '${'$as_ac_Header'}'`
4115 { echo "$as_me:$LINENO: result: $ac_res" >&5
4116 echo "${ECHO_T}$ac_res" >&6; }
4117 else
4118 # Is the header compilable?
4119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 $ac_includes_default
4128 #include <$ac_header>
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 ac_header_compiler=yes
4148 else
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 ac_header_compiler=no
4153 fi
4154
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4157 echo "${ECHO_T}$ac_header_compiler" >&6; }
4158
4159 # Is the header present?
4160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 #include <$ac_header>
4169 _ACEOF
4170 if { (ac_try="$ac_cpp conftest.$ac_ext"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } >/dev/null && {
4183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4184 test ! -s conftest.err
4185 }; then
4186 ac_header_preproc=yes
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 ac_header_preproc=no
4192 fi
4193
4194 rm -f conftest.err conftest.$ac_ext
4195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4196 echo "${ECHO_T}$ac_header_preproc" >&6; }
4197
4198 # So? What about this header?
4199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4200 yes:no: )
4201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4205 ac_header_preproc=yes
4206 ;;
4207 no:yes:* )
4208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4220
4221 ;;
4222 esac
4223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 eval "$as_ac_Header=\$ac_header_preproc"
4229 fi
4230 ac_res=`eval echo '${'$as_ac_Header'}'`
4231 { echo "$as_me:$LINENO: result: $ac_res" >&5
4232 echo "${ECHO_T}$ac_res" >&6; }
4233
4234 fi
4235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236 cat >>confdefs.h <<_ACEOF
4237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238 _ACEOF
4239
4240 fi
4241
4242 done
4243
4244
4245 { echo "$as_me:$LINENO: checking for int8_t" >&5
4246 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4247 if test "${ac_cv_type_int8_t+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 $ac_includes_default
4257 #ifdef HAVE_SYS_BITYPES_H
4258 #include <sys/bitypes.h>
4259 #endif
4260
4261 typedef int8_t ac__type_new_;
4262 int
4263 main ()
4264 {
4265 if ((ac__type_new_ *) 0)
4266 return 0;
4267 if (sizeof (ac__type_new_))
4268 return 0;
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 ac_cv_type_int8_t=yes
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 ac_cv_type_int8_t=no
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 fi
4300 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4301 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4302 if test $ac_cv_type_int8_t = yes; then
4303 :
4304 else
4305
4306 cat >>confdefs.h <<\_ACEOF
4307 #define int8_t signed char
4308 _ACEOF
4309
4310 fi
4311
4312 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4313 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4314 if test "${ac_cv_type_u_int8_t+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h. */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 $ac_includes_default
4324 #ifdef HAVE_SYS_BITYPES_H
4325 #include <sys/bitypes.h>
4326 #endif
4327
4328 typedef u_int8_t ac__type_new_;
4329 int
4330 main ()
4331 {
4332 if ((ac__type_new_ *) 0)
4333 return 0;
4334 if (sizeof (ac__type_new_))
4335 return 0;
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4342 case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } && {
4354 test -z "$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 } && test -s conftest.$ac_objext; then
4357 ac_cv_type_u_int8_t=yes
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 ac_cv_type_u_int8_t=no
4363 fi
4364
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 fi
4367 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4368 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4369 if test $ac_cv_type_u_int8_t = yes; then
4370 :
4371 else
4372
4373 cat >>confdefs.h <<\_ACEOF
4374 #define u_int8_t unsigned char
4375 _ACEOF
4376
4377 fi
4378
4379 { echo "$as_me:$LINENO: checking for int16_t" >&5
4380 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4381 if test "${ac_cv_type_int16_t+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4391 typedef int16_t ac__type_new_;
4392 int
4393 main ()
4394 {
4395 if ((ac__type_new_ *) 0)
4396 return 0;
4397 if (sizeof (ac__type_new_))
4398 return 0;
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (ac_try="$ac_compile"
4405 case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_compile") 2>conftest.er1
4411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } && {
4417 test -z "$ac_c_werror_flag" ||
4418 test ! -s conftest.err
4419 } && test -s conftest.$ac_objext; then
4420 ac_cv_type_int16_t=yes
4421 else
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 ac_cv_type_int16_t=no
4426 fi
4427
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 fi
4430 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4431 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4432 if test $ac_cv_type_int16_t = yes; then
4433 :
4434 else
4435
4436 cat >>confdefs.h <<\_ACEOF
4437 #define int16_t short
4438 _ACEOF
4439
4440 $ac_includes_default
4441 #ifdef HAVE_SYS_BITYPES_H
4442 #include <sys/bitypes.h>
4443 #endif
4444 fi
4445
4446 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4447 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4448 if test "${ac_cv_type_u_int16_t+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4458 #ifdef HAVE_SYS_BITYPES_H
4459 #include <sys/bitypes.h>
4460 #endif
4461
4462 typedef u_int16_t ac__type_new_;
4463 int
4464 main ()
4465 {
4466 if ((ac__type_new_ *) 0)
4467 return 0;
4468 if (sizeof (ac__type_new_))
4469 return 0;
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4476 case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4482 ac_status=$?
4483 grep -v '^ *+' conftest.er1 >conftest.err
4484 rm -f conftest.er1
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && {
4488 test -z "$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4490 } && test -s conftest.$ac_objext; then
4491 ac_cv_type_u_int16_t=yes
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 ac_cv_type_u_int16_t=no
4497 fi
4498
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
4501 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4502 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4503 if test $ac_cv_type_u_int16_t = yes; then
4504 :
4505 else
4506
4507 cat >>confdefs.h <<\_ACEOF
4508 #define u_int16_t unsigned short
4509 _ACEOF
4510
4511 fi
4512
4513 { echo "$as_me:$LINENO: checking for int32_t" >&5
4514 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4515 if test "${ac_cv_type_int32_t+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_includes_default
4525 #ifdef HAVE_SYS_BITYPES_H
4526 #include <sys/bitypes.h>
4527 #endif
4528
4529 typedef int32_t ac__type_new_;
4530 int
4531 main ()
4532 {
4533 if ((ac__type_new_ *) 0)
4534 return 0;
4535 if (sizeof (ac__type_new_))
4536 return 0;
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (ac_try="$ac_compile"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && {
4555 test -z "$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest.$ac_objext; then
4558 ac_cv_type_int32_t=yes
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 ac_cv_type_int32_t=no
4564 fi
4565
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4569 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4570 if test $ac_cv_type_int32_t = yes; then
4571 :
4572 else
4573
4574 cat >>confdefs.h <<\_ACEOF
4575 #define int32_t int
4576 _ACEOF
4577
4578 fi
4579
4580 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4581 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4582 if test "${ac_cv_type_u_int32_t+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585 cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h. */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 $ac_includes_default
4592 #ifdef HAVE_SYS_BITYPES_H
4593 #include <sys/bitypes.h>
4594 #endif
4595
4596 typedef u_int32_t ac__type_new_;
4597 int
4598 main ()
4599 {
4600 if ((ac__type_new_ *) 0)
4601 return 0;
4602 if (sizeof (ac__type_new_))
4603 return 0;
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compile") 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest.$ac_objext; then
4625 ac_cv_type_u_int32_t=yes
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_cv_type_u_int32_t=no
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4636 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4637 if test $ac_cv_type_u_int32_t = yes; then
4638 :
4639 else
4640
4641 cat >>confdefs.h <<\_ACEOF
4642 #define u_int32_t unsigned int
4643 _ACEOF
4644
4645 fi
4646
4647 { echo "$as_me:$LINENO: checking for int64_t" >&5
4648 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4649 if test "${ac_cv_type_int64_t+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4659 #ifdef HAVE_SYS_BITYPES_H
4660 #include <sys/bitypes.h>
4661 #endif
4662
4663 typedef int64_t ac__type_new_;
4664 int
4665 main ()
4666 {
4667 if ((ac__type_new_ *) 0)
4668 return 0;
4669 if (sizeof (ac__type_new_))
4670 return 0;
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_cv_type_int64_t=yes
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_cv_type_int64_t=no
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4703 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4704 if test $ac_cv_type_int64_t = yes; then
4705 :
4706 else
4707
4708 cat >>confdefs.h <<\_ACEOF
4709 #define int64_t long long
4710 _ACEOF
4711
4712 fi
4713
4714 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4715 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4716 if test "${ac_cv_type_u_int64_t+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4726 #ifdef HAVE_SYS_BITYPES_H
4727 #include <sys/bitypes.h>
4728 #endif
4729
4730 typedef u_int64_t ac__type_new_;
4731 int
4732 main ()
4733 {
4734 if ((ac__type_new_ *) 0)
4735 return 0;
4736 if (sizeof (ac__type_new_))
4737 return 0;
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_compile") 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } && {
4756 test -z "$ac_c_werror_flag" ||
4757 test ! -s conftest.err
4758 } && test -s conftest.$ac_objext; then
4759 ac_cv_type_u_int64_t=yes
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 ac_cv_type_u_int64_t=no
4765 fi
4766
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 fi
4769 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4770 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4771 if test $ac_cv_type_u_int64_t = yes; then
4772 :
4773 else
4774
4775 cat >>confdefs.h <<\_ACEOF
4776 #define u_int64_t unsigned long long
4777 _ACEOF
4778
4779 fi
4780
4781
4782 #
4783 # Try to arrange for large file support.
4784 #
4785 # Check whether --enable-largefile was given.
4786 if test "${enable_largefile+set}" = set; then
4787 enableval=$enable_largefile;
4788 fi
4789
4790 if test "$enable_largefile" != no; then
4791
4792 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4793 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4794 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 ac_cv_sys_largefile_CC=no
4798 if test "$GCC" != yes; then
4799 ac_save_CC=$CC
4800 while :; do
4801 # IRIX 6.2 and later do not support large files by default,
4802 # so use the C compiler's -n32 option if that helps.
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h. */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 #include <sys/types.h>
4810 /* Check that off_t can represent 2**63 - 1 correctly.
4811 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4812 since some C++ compilers masquerading as C compilers
4813 incorrectly reject 9223372036854775807. */
4814 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4816 && LARGE_OFF_T % 2147483647 == 1)
4817 ? 1 : -1];
4818 int
4819 main ()
4820 {
4821
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (ac_try="$ac_compile"
4828 case "(($ac_try" in
4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830 *) ac_try_echo=$ac_try;;
4831 esac
4832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833 (eval "$ac_compile") 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && {
4840 test -z "$ac_c_werror_flag" ||
4841 test ! -s conftest.err
4842 } && test -s conftest.$ac_objext; then
4843 break
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848
4849 fi
4850
4851 rm -f core conftest.err conftest.$ac_objext
4852 CC="$CC -n32"
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4855 case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.$ac_objext; then
4870 ac_cv_sys_largefile_CC=' -n32'; break
4871 else
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875
4876 fi
4877
4878 rm -f core conftest.err conftest.$ac_objext
4879 break
4880 done
4881 CC=$ac_save_CC
4882 rm -f conftest.$ac_ext
4883 fi
4884 fi
4885 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4886 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4887 if test "$ac_cv_sys_largefile_CC" != no; then
4888 CC=$CC$ac_cv_sys_largefile_CC
4889 fi
4890
4891 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4892 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4893 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896 while :; do
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 #include <sys/types.h>
4904 /* Check that off_t can represent 2**63 - 1 correctly.
4905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4906 since some C++ compilers masquerading as C compilers
4907 incorrectly reject 9223372036854775807. */
4908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4910 && LARGE_OFF_T % 2147483647 == 1)
4911 ? 1 : -1];
4912 int
4913 main ()
4914 {
4915
4916 ;
4917 return 0;
4918 }
4919 _ACEOF
4920 rm -f conftest.$ac_objext
4921 if { (ac_try="$ac_compile"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4937 ac_cv_sys_file_offset_bits=no; break
4938 else
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942
4943 fi
4944
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 #define _FILE_OFFSET_BITS 64
4953 #include <sys/types.h>
4954 /* Check that off_t can represent 2**63 - 1 correctly.
4955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4956 since some C++ compilers masquerading as C compilers
4957 incorrectly reject 9223372036854775807. */
4958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4960 && LARGE_OFF_T % 2147483647 == 1)
4961 ? 1 : -1];
4962 int
4963 main ()
4964 {
4965
4966 ;
4967 return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.$ac_objext; then
4987 ac_cv_sys_file_offset_bits=64; break
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992
4993 fi
4994
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 ac_cv_sys_file_offset_bits=unknown
4997 break
4998 done
4999 fi
5000 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5001 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5002 case $ac_cv_sys_file_offset_bits in #(
5003 no | unknown) ;;
5004 *)
5005 cat >>confdefs.h <<_ACEOF
5006 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5007 _ACEOF
5008 ;;
5009 esac
5010 rm -f conftest*
5011 if test $ac_cv_sys_file_offset_bits = unknown; then
5012 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5013 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5014 if test "${ac_cv_sys_large_files+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017 while :; do
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 #include <sys/types.h>
5025 /* Check that off_t can represent 2**63 - 1 correctly.
5026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5027 since some C++ compilers masquerading as C compilers
5028 incorrectly reject 9223372036854775807. */
5029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5031 && LARGE_OFF_T % 2147483647 == 1)
5032 ? 1 : -1];
5033 int
5034 main ()
5035 {
5036
5037 ;
5038 return 0;
5039 }
5040 _ACEOF
5041 rm -f conftest.$ac_objext
5042 if { (ac_try="$ac_compile"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_compile") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest.$ac_objext; then
5058 ac_cv_sys_large_files=no; break
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063
5064 fi
5065
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 #define _LARGE_FILES 1
5074 #include <sys/types.h>
5075 /* Check that off_t can represent 2**63 - 1 correctly.
5076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5077 since some C++ compilers masquerading as C compilers
5078 incorrectly reject 9223372036854775807. */
5079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5081 && LARGE_OFF_T % 2147483647 == 1)
5082 ? 1 : -1];
5083 int
5084 main ()
5085 {
5086
5087 ;
5088 return 0;
5089 }
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_cv_sys_large_files=1; break
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113
5114 fi
5115
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 ac_cv_sys_large_files=unknown
5118 break
5119 done
5120 fi
5121 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5122 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5123 case $ac_cv_sys_large_files in #(
5124 no | unknown) ;;
5125 *)
5126 cat >>confdefs.h <<_ACEOF
5127 #define _LARGE_FILES $ac_cv_sys_large_files
5128 _ACEOF
5129 ;;
5130 esac
5131 rm -f conftest*
5132 fi
5133 fi
5134
5135 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5136 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5137 if test "${ac_cv_sys_largefile_source+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 while :; do
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #include <stdio.h>
5148 int
5149 main ()
5150 {
5151 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (ac_try="$ac_link"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_link") 2>conftest.er1
5164 ac_status=$?
5165 grep -v '^ *+' conftest.er1 >conftest.err
5166 rm -f conftest.er1
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } && {
5170 test -z "$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5172 } && test -s conftest$ac_exeext &&
5173 $as_test_x conftest$ac_exeext; then
5174 ac_cv_sys_largefile_source=no; break
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179
5180 fi
5181
5182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5183 conftest$ac_exeext conftest.$ac_ext
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #define _LARGEFILE_SOURCE 1
5191 #include <stdio.h>
5192 int
5193 main ()
5194 {
5195 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5196 ;
5197 return 0;
5198 }
5199 _ACEOF
5200 rm -f conftest.$ac_objext conftest$ac_exeext
5201 if { (ac_try="$ac_link"
5202 case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_link") 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && {
5214 test -z "$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5216 } && test -s conftest$ac_exeext &&
5217 $as_test_x conftest$ac_exeext; then
5218 ac_cv_sys_largefile_source=1; break
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223
5224 fi
5225
5226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5227 conftest$ac_exeext conftest.$ac_ext
5228 ac_cv_sys_largefile_source=unknown
5229 break
5230 done
5231 fi
5232 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5233 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5234 case $ac_cv_sys_largefile_source in #(
5235 no | unknown) ;;
5236 *)
5237 cat >>confdefs.h <<_ACEOF
5238 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5239 _ACEOF
5240 ;;
5241 esac
5242 rm -f conftest*
5243
5244 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5245 # in glibc 2.1.3, but that breaks too many other things.
5246 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5247 if test $ac_cv_sys_largefile_source != unknown; then
5248
5249 cat >>confdefs.h <<\_ACEOF
5250 #define HAVE_FSEEKO 1
5251 _ACEOF
5252
5253 fi
5254
5255
5256
5257
5258
5259
5260 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5261 do
5262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 fi
5269 ac_res=`eval echo '${'$as_ac_Header'}'`
5270 { echo "$as_me:$LINENO: result: $ac_res" >&5
5271 echo "${ECHO_T}$ac_res" >&6; }
5272 else
5273 # Is the header compilable?
5274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 $ac_includes_default
5283 #include <$ac_header>
5284 _ACEOF
5285 rm -f conftest.$ac_objext
5286 if { (ac_try="$ac_compile"
5287 case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_compile") 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } && {
5299 test -z "$ac_c_werror_flag" ||
5300 test ! -s conftest.err
5301 } && test -s conftest.$ac_objext; then
5302 ac_header_compiler=yes
5303 else
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307 ac_header_compiler=no
5308 fi
5309
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5312 echo "${ECHO_T}$ac_header_compiler" >&6; }
5313
5314 # Is the header present?
5315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 #include <$ac_header>
5324 _ACEOF
5325 if { (ac_try="$ac_cpp conftest.$ac_ext"
5326 case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5329 esac
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } >/dev/null && {
5338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 }; then
5341 ac_header_preproc=yes
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 ac_header_preproc=no
5347 fi
5348
5349 rm -f conftest.err conftest.$ac_ext
5350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5351 echo "${ECHO_T}$ac_header_preproc" >&6; }
5352
5353 # So? What about this header?
5354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5355 yes:no: )
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5360 ac_header_preproc=yes
5361 ;;
5362 no:yes:* )
5363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5375
5376 ;;
5377 esac
5378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 eval "$as_ac_Header=\$ac_header_preproc"
5384 fi
5385 ac_res=`eval echo '${'$as_ac_Header'}'`
5386 { echo "$as_me:$LINENO: result: $ac_res" >&5
5387 echo "${ECHO_T}$ac_res" >&6; }
5388
5389 fi
5390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393 _ACEOF
5394
5395 fi
5396
5397 done
5398
5399
5400 for ac_header in net/pfvar.h
5401 do
5402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 #include <sys/types.h>
5415 #include <sys/socket.h>
5416 #include <net/if.h>
5417
5418 #include <$ac_header>
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (ac_try="$ac_compile"
5422 case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425 esac
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_compile") 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } && {
5434 test -z "$ac_c_werror_flag" ||
5435 test ! -s conftest.err
5436 } && test -s conftest.$ac_objext; then
5437 eval "$as_ac_Header=yes"
5438 else
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5441
5442 eval "$as_ac_Header=no"
5443 fi
5444
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 ac_res=`eval echo '${'$as_ac_Header'}'`
5448 { echo "$as_me:$LINENO: result: $ac_res" >&5
5449 echo "${ECHO_T}$ac_res" >&6; }
5450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5451 cat >>confdefs.h <<_ACEOF
5452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5453 _ACEOF
5454
5455 fi
5456
5457 done
5458
5459 if test "$ac_cv_header_net_pfvar_h" = yes; then
5460 #
5461 # Check for various PF actions.
5462 #
5463 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5464 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $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 #include <sys/types.h>
5472 #include <sys/socket.h>
5473 #include <net/if.h>
5474 #include <net/pfvar.h>
5475 int
5476 main ()
5477 {
5478 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500
5501 { echo "$as_me:$LINENO: result: yes" >&5
5502 echo "${ECHO_T}yes" >&6; }
5503
5504 cat >>confdefs.h <<\_ACEOF
5505 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5506 _ACEOF
5507
5508
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 { echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6; }
5515 fi
5516
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 fi
5519
5520 for ac_header in netinet/if_ether.h
5521 do
5522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h. */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 #include <sys/types.h>
5535 #include <sys/socket.h>
5536
5537 #include <$ac_header>
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (ac_try="$ac_compile"
5541 case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544 esac
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_compile") 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest.$ac_objext; then
5556 eval "$as_ac_Header=yes"
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561 eval "$as_ac_Header=no"
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 fi
5566 ac_res=`eval echo '${'$as_ac_Header'}'`
5567 { echo "$as_me:$LINENO: result: $ac_res" >&5
5568 echo "${ECHO_T}$ac_res" >&6; }
5569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5572 _ACEOF
5573
5574 fi
5575
5576 done
5577
5578 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5579 #
5580 # The simple test didn't work.
5581 # Do we need to include <net/if.h> first?
5582 # Unset ac_cv_header_netinet_if_ether_h so we don't
5583 # treat the previous failure as a cached value and
5584 # suppress the next test.
5585 #
5586 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5587 echo "$as_me: Rechecking with some additional includes" >&6;}
5588 unset ac_cv_header_netinet_if_ether_h
5589
5590 for ac_header in netinet/if_ether.h
5591 do
5592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h. */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <sys/types.h>
5605 #include <sys/socket.h>
5606 #include <netinet/in.h>
5607 struct mbuf;
5608 struct rtentry;
5609 #include <net/if.h>
5610
5611 #include <$ac_header>
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 eval "$as_ac_Header=yes"
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5634
5635 eval "$as_ac_Header=no"
5636 fi
5637
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 fi
5640 ac_res=`eval echo '${'$as_ac_Header'}'`
5641 { echo "$as_me:$LINENO: result: $ac_res" >&5
5642 echo "${ECHO_T}$ac_res" >&6; }
5643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5644 cat >>confdefs.h <<_ACEOF
5645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5646 _ACEOF
5647
5648 fi
5649
5650 done
5651
5652 fi
5653
5654 if test "$GCC" = yes ; then
5655 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5656 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5657 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 /*
5667 * This generates a "duplicate case value" when fixincludes
5668 * has not be run.
5669 */
5670 # include <sys/types.h>
5671 # include <sys/time.h>
5672 # include <sys/ioctl.h>
5673 # ifdef HAVE_SYS_IOCCOM_H
5674 # include <sys/ioccom.h>
5675 # endif
5676 int
5677 main ()
5678 {
5679 switch (0) {
5680 case _IO('A', 1):;
5681 case _IO('B', 1):;
5682 }
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5689 case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5704 ac_cv_lbl_gcc_fixincludes=yes
5705 else
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_cv_lbl_gcc_fixincludes=no
5710 fi
5711
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 fi
5714
5715 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5716 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5717 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5718 # Don't cache failure
5719 unset ac_cv_lbl_gcc_fixincludes
5720 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5721 echo "$as_me: error: see the INSTALL for more info" >&2;}
5722 { (exit 1); exit 1; }; }
5723 fi
5724 fi
5725
5726
5727
5728 for ac_func in strerror strlcpy
5729 do
5730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5744 #define $ac_func innocuous_$ac_func
5745
5746 /* System header to define __stub macros and hopefully few prototypes,
5747 which can conflict with char $ac_func (); below.
5748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5749 <limits.h> exists even on freestanding compilers. */
5750
5751 #ifdef __STDC__
5752 # include <limits.h>
5753 #else
5754 # include <assert.h>
5755 #endif
5756
5757 #undef $ac_func
5758
5759 /* Override any GCC internal prototype to avoid an error.
5760 Use char because int might match the return type of a GCC
5761 builtin and then its argument prototype would still apply. */
5762 #ifdef __cplusplus
5763 extern "C"
5764 #endif
5765 char $ac_func ();
5766 /* The GNU C library defines this for functions which it implements
5767 to always fail with ENOSYS. Some functions are actually named
5768 something starting with __ and the normal name is an alias. */
5769 #if defined __stub_$ac_func || defined __stub___$ac_func
5770 choke me
5771 #endif
5772
5773 int
5774 main ()
5775 {
5776 return $ac_func ();
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (ac_try="$ac_link"
5783 case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_link") 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } && {
5795 test -z "$ac_c_werror_flag" ||
5796 test ! -s conftest.err
5797 } && test -s conftest$ac_exeext &&
5798 $as_test_x conftest$ac_exeext; then
5799 eval "$as_ac_var=yes"
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 eval "$as_ac_var=no"
5805 fi
5806
5807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5808 conftest$ac_exeext conftest.$ac_ext
5809 fi
5810 ac_res=`eval echo '${'$as_ac_var'}'`
5811 { echo "$as_me:$LINENO: result: $ac_res" >&5
5812 echo "${ECHO_T}$ac_res" >&6; }
5813 if test `eval echo '${'$as_ac_var'}'` = yes; then
5814 cat >>confdefs.h <<_ACEOF
5815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5816 _ACEOF
5817
5818 fi
5819 done
5820
5821
5822 needsnprintf=no
5823
5824
5825 for ac_func in vsnprintf snprintf
5826 do
5827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5841 #define $ac_func innocuous_$ac_func
5842
5843 /* System header to define __stub macros and hopefully few prototypes,
5844 which can conflict with char $ac_func (); below.
5845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5846 <limits.h> exists even on freestanding compilers. */
5847
5848 #ifdef __STDC__
5849 # include <limits.h>
5850 #else
5851 # include <assert.h>
5852 #endif
5853
5854 #undef $ac_func
5855
5856 /* Override any GCC internal prototype to avoid an error.
5857 Use char because int might match the return type of a GCC
5858 builtin and then its argument prototype would still apply. */
5859 #ifdef __cplusplus
5860 extern "C"
5861 #endif
5862 char $ac_func ();
5863 /* The GNU C library defines this for functions which it implements
5864 to always fail with ENOSYS. Some functions are actually named
5865 something starting with __ and the normal name is an alias. */
5866 #if defined __stub_$ac_func || defined __stub___$ac_func
5867 choke me
5868 #endif
5869
5870 int
5871 main ()
5872 {
5873 return $ac_func ();
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (ac_try="$ac_link"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_link") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest$ac_exeext &&
5895 $as_test_x conftest$ac_exeext; then
5896 eval "$as_ac_var=yes"
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 eval "$as_ac_var=no"
5902 fi
5903
5904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5905 conftest$ac_exeext conftest.$ac_ext
5906 fi
5907 ac_res=`eval echo '${'$as_ac_var'}'`
5908 { echo "$as_me:$LINENO: result: $ac_res" >&5
5909 echo "${ECHO_T}$ac_res" >&6; }
5910 if test `eval echo '${'$as_ac_var'}'` = yes; then
5911 cat >>confdefs.h <<_ACEOF
5912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5913 _ACEOF
5914
5915 else
5916 needsnprintf=yes
5917 fi
5918 done
5919
5920 if test $needsnprintf = yes; then
5921 case " $LIBOBJS " in
5922 *" snprintf.$ac_objext "* ) ;;
5923 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5924 ;;
5925 esac
5926
5927 fi
5928
5929 #
5930 # Do this before checking for ether_hostton(), as it's a
5931 # "gethostbyname() -ish function".
5932 #
5933
5934 # Most operating systems have gethostbyname() in the default searched
5935 # libraries (i.e. libc):
5936 # Some OSes (eg. Solaris) place it in libnsl
5937 # Some strange OSes (SINIX) have it in libsocket:
5938 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5939 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5940 if test "${ac_cv_search_gethostbyname+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943 ac_func_search_save_LIBS=$LIBS
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950
5951 /* Override any GCC internal prototype to avoid an error.
5952 Use char because int might match the return type of a GCC
5953 builtin and then its argument prototype would still apply. */
5954 #ifdef __cplusplus
5955 extern "C"
5956 #endif
5957 char gethostbyname ();
5958 int
5959 main ()
5960 {
5961 return gethostbyname ();
5962 ;
5963 return 0;
5964 }
5965 _ACEOF
5966 for ac_lib in '' nsl socket resolv; do
5967 if test -z "$ac_lib"; then
5968 ac_res="none required"
5969 else
5970 ac_res=-l$ac_lib
5971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5972 fi
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_link") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest$ac_exeext &&
5990 $as_test_x conftest$ac_exeext; then
5991 ac_cv_search_gethostbyname=$ac_res
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996
5997 fi
5998
5999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6000 conftest$ac_exeext
6001 if test "${ac_cv_search_gethostbyname+set}" = set; then
6002 break
6003 fi
6004 done
6005 if test "${ac_cv_search_gethostbyname+set}" = set; then
6006 :
6007 else
6008 ac_cv_search_gethostbyname=no
6009 fi
6010 rm conftest.$ac_ext
6011 LIBS=$ac_func_search_save_LIBS
6012 fi
6013 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6014 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6015 ac_res=$ac_cv_search_gethostbyname
6016 if test "$ac_res" != no; then
6017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6018
6019 fi
6020
6021 # Unfortunately libsocket sometimes depends on libnsl and
6022 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6023 if test "$ac_cv_search_gethostbyname" = "no"
6024 then
6025 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6026 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6027 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 ac_check_lib_save_LIBS=$LIBS
6031 LIBS="-lsocket -lnsl $LIBS"
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038
6039 /* Override any GCC internal prototype to avoid an error.
6040 Use char because int might match the return type of a GCC
6041 builtin and then its argument prototype would still apply. */
6042 #ifdef __cplusplus
6043 extern "C"
6044 #endif
6045 char gethostbyname ();
6046 int
6047 main ()
6048 {
6049 return gethostbyname ();
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (ac_try="$ac_link"
6056 case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_link") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest$ac_exeext &&
6071 $as_test_x conftest$ac_exeext; then
6072 ac_cv_lib_socket_gethostbyname=yes
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 ac_cv_lib_socket_gethostbyname=no
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6081 conftest$ac_exeext conftest.$ac_ext
6082 LIBS=$ac_check_lib_save_LIBS
6083 fi
6084 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6085 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6086 if test $ac_cv_lib_socket_gethostbyname = yes; then
6087 LIBS="-lsocket -lnsl $LIBS"
6088 fi
6089
6090 fi
6091 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6092 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6093 if test "${ac_cv_search_socket+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 ac_func_search_save_LIBS=$LIBS
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103
6104 /* Override any GCC internal prototype to avoid an error.
6105 Use char because int might match the return type of a GCC
6106 builtin and then its argument prototype would still apply. */
6107 #ifdef __cplusplus
6108 extern "C"
6109 #endif
6110 char socket ();
6111 int
6112 main ()
6113 {
6114 return socket ();
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 for ac_lib in '' socket; do
6120 if test -z "$ac_lib"; then
6121 ac_res="none required"
6122 else
6123 ac_res=-l$ac_lib
6124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6125 fi
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (ac_try="$ac_link"
6128 case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131 esac
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_link") 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } && {
6140 test -z "$ac_c_werror_flag" ||
6141 test ! -s conftest.err
6142 } && test -s conftest$ac_exeext &&
6143 $as_test_x conftest$ac_exeext; then
6144 ac_cv_search_socket=$ac_res
6145 else
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6153 conftest$ac_exeext
6154 if test "${ac_cv_search_socket+set}" = set; then
6155 break
6156 fi
6157 done
6158 if test "${ac_cv_search_socket+set}" = set; then
6159 :
6160 else
6161 ac_cv_search_socket=no
6162 fi
6163 rm conftest.$ac_ext
6164 LIBS=$ac_func_search_save_LIBS
6165 fi
6166 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6167 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6168 ac_res=$ac_cv_search_socket
6169 if test "$ac_res" != no; then
6170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6171
6172 else
6173 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6174 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6175 if test "${ac_cv_lib_socket_socket+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 ac_check_lib_save_LIBS=$LIBS
6179 LIBS="-lsocket -lnsl $LIBS"
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
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 socket ();
6194 int
6195 main ()
6196 {
6197 return socket ();
6198 ;
6199 return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest.$ac_objext conftest$ac_exeext
6203 if { (ac_try="$ac_link"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_link") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest$ac_exeext &&
6219 $as_test_x conftest$ac_exeext; then
6220 ac_cv_lib_socket_socket=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cv_lib_socket_socket=no
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6229 conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6231 fi
6232 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6233 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6234 if test $ac_cv_lib_socket_socket = yes; then
6235 LIBS="-lsocket -lnsl $LIBS"
6236 fi
6237
6238 fi
6239
6240 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6241 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6242 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6243 if test "${ac_cv_search_putmsg+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246 ac_func_search_save_LIBS=$LIBS
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h. */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253
6254 /* Override any GCC internal prototype to avoid an error.
6255 Use char because int might match the return type of a GCC
6256 builtin and then its argument prototype would still apply. */
6257 #ifdef __cplusplus
6258 extern "C"
6259 #endif
6260 char putmsg ();
6261 int
6262 main ()
6263 {
6264 return putmsg ();
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 for ac_lib in '' str; do
6270 if test -z "$ac_lib"; then
6271 ac_res="none required"
6272 else
6273 ac_res=-l$ac_lib
6274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6275 fi
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest$ac_exeext &&
6293 $as_test_x conftest$ac_exeext; then
6294 ac_cv_search_putmsg=$ac_res
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299
6300 fi
6301
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303 conftest$ac_exeext
6304 if test "${ac_cv_search_putmsg+set}" = set; then
6305 break
6306 fi
6307 done
6308 if test "${ac_cv_search_putmsg+set}" = set; then
6309 :
6310 else
6311 ac_cv_search_putmsg=no
6312 fi
6313 rm conftest.$ac_ext
6314 LIBS=$ac_func_search_save_LIBS
6315 fi
6316 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6317 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6318 ac_res=$ac_cv_search_putmsg
6319 if test "$ac_res" != no; then
6320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6321
6322 fi
6323
6324
6325
6326 #
6327 # You are in a twisty little maze of UN*Xes, all different.
6328 # Some might not have ether_hostton().
6329 # Some might have it, but not declare it in any header file.
6330 # Some might have it, but declare it in <netinet/if_ether.h>.
6331 # Some might have it, but declare it in <netinet/ether.h>
6332 # (And some might have it but document it as something declared in
6333 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6334 #
6335 # Before you is a C compiler.
6336 #
6337
6338 for ac_func in ether_hostton
6339 do
6340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h. */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6354 #define $ac_func innocuous_$ac_func
6355
6356 /* System header to define __stub macros and hopefully few prototypes,
6357 which can conflict with char $ac_func (); below.
6358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359 <limits.h> exists even on freestanding compilers. */
6360
6361 #ifdef __STDC__
6362 # include <limits.h>
6363 #else
6364 # include <assert.h>
6365 #endif
6366
6367 #undef $ac_func
6368
6369 /* Override any GCC internal prototype to avoid an error.
6370 Use char because int might match the return type of a GCC
6371 builtin and then its argument prototype would still apply. */
6372 #ifdef __cplusplus
6373 extern "C"
6374 #endif
6375 char $ac_func ();
6376 /* The GNU C library defines this for functions which it implements
6377 to always fail with ENOSYS. Some functions are actually named
6378 something starting with __ and the normal name is an alias. */
6379 #if defined __stub_$ac_func || defined __stub___$ac_func
6380 choke me
6381 #endif
6382
6383 int
6384 main ()
6385 {
6386 return $ac_func ();
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext conftest$ac_exeext
6392 if { (ac_try="$ac_link"
6393 case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_link") 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest$ac_exeext &&
6408 $as_test_x conftest$ac_exeext; then
6409 eval "$as_ac_var=yes"
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 eval "$as_ac_var=no"
6415 fi
6416
6417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6418 conftest$ac_exeext conftest.$ac_ext
6419 fi
6420 ac_res=`eval echo '${'$as_ac_var'}'`
6421 { echo "$as_me:$LINENO: result: $ac_res" >&5
6422 echo "${ECHO_T}$ac_res" >&6; }
6423 if test `eval echo '${'$as_ac_var'}'` = yes; then
6424 cat >>confdefs.h <<_ACEOF
6425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6426 _ACEOF
6427
6428 fi
6429 done
6430
6431 if test "$ac_cv_func_ether_hostton" = yes; then
6432 #
6433 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6434 #
6435 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6436 #
6437 # Yes. Does it declare ether_hostton()?
6438 #
6439 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6440 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6441 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450
6451 #include <sys/types.h>
6452 #include <sys/socket.h>
6453 #include <netinet/in.h>
6454 #include <arpa/inet.h>
6455 struct mbuf;
6456 struct rtentry;
6457 #include <net/if.h>
6458 #include <netinet/if_ether.h>
6459
6460
6461 int
6462 main ()
6463 {
6464 #ifndef ether_hostton
6465 (void) ether_hostton;
6466 #endif
6467
6468 ;
6469 return 0;
6470 }
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6474 case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.$ac_objext; then
6489 ac_cv_have_decl_ether_hostton=yes
6490 else
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6493
6494 ac_cv_have_decl_ether_hostton=no
6495 fi
6496
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 fi
6499 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6500 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6501 if test $ac_cv_have_decl_ether_hostton = yes; then
6502
6503
6504 cat >>confdefs.h <<\_ACEOF
6505 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6506 _ACEOF
6507
6508
6509 fi
6510
6511 fi
6512 #
6513 # Did that succeed?
6514 #
6515 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6516 #
6517 # No, how about <netinet/ether.h>, as on Linux?
6518 #
6519
6520 for ac_header in netinet/ether.h
6521 do
6522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 fi
6529 ac_res=`eval echo '${'$as_ac_Header'}'`
6530 { echo "$as_me:$LINENO: result: $ac_res" >&5
6531 echo "${ECHO_T}$ac_res" >&6; }
6532 else
6533 # Is the header compilable?
6534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 $ac_includes_default
6543 #include <$ac_header>
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (ac_try="$ac_compile"
6547 case "(($ac_try" in
6548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6549 *) ac_try_echo=$ac_try;;
6550 esac
6551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_header_compiler=yes
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 ac_header_compiler=no
6568 fi
6569
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6572 echo "${ECHO_T}$ac_header_compiler" >&6; }
6573
6574 # Is the header present?
6575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 #include <$ac_header>
6584 _ACEOF
6585 if { (ac_try="$ac_cpp conftest.$ac_ext"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } >/dev/null && {
6598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 }; then
6601 ac_header_preproc=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ac_header_preproc=no
6607 fi
6608
6609 rm -f conftest.err conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6611 echo "${ECHO_T}$ac_header_preproc" >&6; }
6612
6613 # So? What about this header?
6614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6615 yes:no: )
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6620 ac_header_preproc=yes
6621 ;;
6622 no:yes:* )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6635
6636 ;;
6637 esac
6638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 eval "$as_ac_Header=\$ac_header_preproc"
6644 fi
6645 ac_res=`eval echo '${'$as_ac_Header'}'`
6646 { echo "$as_me:$LINENO: result: $ac_res" >&5
6647 echo "${ECHO_T}$ac_res" >&6; }
6648
6649 fi
6650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6651 cat >>confdefs.h <<_ACEOF
6652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6653 _ACEOF
6654
6655 fi
6656
6657 done
6658
6659 if test "$ac_cv_header_netinet_ether_h" = yes; then
6660 #
6661 # We have it - does it declare ether_hostton()?
6662 # Unset ac_cv_have_decl_ether_hostton so we don't
6663 # treat the previous failure as a cached value and
6664 # suppress the next test.
6665 #
6666 unset ac_cv_have_decl_ether_hostton
6667 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6668 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6669 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678
6679 #include <netinet/ether.h>
6680
6681
6682 int
6683 main ()
6684 {
6685 #ifndef ether_hostton
6686 (void) ether_hostton;
6687 #endif
6688
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (ac_try="$ac_compile"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 ac_cv_have_decl_ether_hostton=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 ac_cv_have_decl_ether_hostton=no
6716 fi
6717
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 fi
6720 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6721 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6722 if test $ac_cv_have_decl_ether_hostton = yes; then
6723
6724
6725 cat >>confdefs.h <<\_ACEOF
6726 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6727 _ACEOF
6728
6729
6730 fi
6731
6732 fi
6733 fi
6734 #
6735 # Is ether_hostton() declared?
6736 #
6737 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6738 #
6739 # No, we'll have to declare it ourselves.
6740 # Do we have "struct ether_addr"?
6741 #
6742 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6743 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6744 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753
6754 #include <sys/types.h>
6755 #include <sys/socket.h>
6756 #include <netinet/in.h>
6757 #include <arpa/inet.h>
6758 struct mbuf;
6759 struct rtentry;
6760 #include <net/if.h>
6761 #include <netinet/if_ether.h>
6762
6763
6764 typedef struct ether_addr ac__type_new_;
6765 int
6766 main ()
6767 {
6768 if ((ac__type_new_ *) 0)
6769 return 0;
6770 if (sizeof (ac__type_new_))
6771 return 0;
6772 ;
6773 return 0;
6774 }
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6778 case "(($ac_try" in
6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6781 esac
6782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_cv_type_struct_ether_addr=yes
6794 else
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6797
6798 ac_cv_type_struct_ether_addr=no
6799 fi
6800
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 fi
6803 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6804 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6805 if test $ac_cv_type_struct_ether_addr = yes; then
6806
6807 cat >>confdefs.h <<_ACEOF
6808 #define HAVE_STRUCT_ETHER_ADDR 1
6809 _ACEOF
6810
6811
6812 fi
6813
6814
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_DECL_ETHER_HOSTTON 0
6817 _ACEOF
6818
6819 else
6820
6821 cat >>confdefs.h <<\_ACEOF
6822 #define HAVE_DECL_ETHER_HOSTTON 1
6823 _ACEOF
6824
6825 fi
6826 fi
6827
6828 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6829 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6830 # Check whether --enable-protochain was given.
6831 if test "${enable_protochain+set}" = set; then
6832 enableval=$enable_protochain;
6833 fi
6834
6835 case "x$enable_protochain" in
6836 xyes) enable_protochain=enabled ;;
6837 xno) enable_protochain=disabled ;;
6838 x) enable_protochain=enabled ;;
6839 esac
6840
6841 if test "$enable_protochain" = "disabled"; then
6842
6843 cat >>confdefs.h <<\_ACEOF
6844 #define NO_PROTOCHAIN 1
6845 _ACEOF
6846
6847 fi
6848 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6849 echo "${ECHO_T}${enable_protochain}" >&6; }
6850
6851 #
6852 # SITA support is mutually exclusive with native capture support;
6853 # "--with-sita" selects SITA support.
6854 #
6855
6856 # Check whether --with-sita was given.
6857 if test "${with_sita+set}" = set; then
6858 withval=$with_sita;
6859 if test ! "x$withval" = "xno" ; then
6860
6861 cat >>confdefs.h <<\_ACEOF
6862 #define SITA 1
6863 _ACEOF
6864
6865 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6866 echo "$as_me: Enabling SITA ACN support" >&6;}
6867 V_PCAP=sita
6868 V_FINDALLDEVS=sita
6869 fi
6870
6871 else
6872
6873 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6874 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6875 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6876 { (exit 1); exit 1; }; }
6877 fi
6878
6879 # Check whether --with-pcap was given.
6880 if test "${with_pcap+set}" = set; then
6881 withval=$with_pcap;
6882 fi
6883
6884 { echo "$as_me:$LINENO: checking packet capture type" >&5
6885 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6886 if test ! -z "$with_pcap" ; then
6887 V_PCAP="$withval"
6888 elif test -r /dev/bpf -o -h /dev/bpf ; then
6889 #
6890 # Cloning BPF device.
6891 #
6892 V_PCAP=bpf
6893
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE_CLONING_BPF 1
6896 _ACEOF
6897
6898 elif test -r /dev/bpf0 ; then
6899 V_PCAP=bpf
6900 elif test -r /usr/include/net/pfilt.h ; then
6901 V_PCAP=pf
6902 elif test -r /dev/enet ; then
6903 V_PCAP=enet
6904 elif test -r /dev/nit ; then
6905 V_PCAP=snit
6906 elif test -r /usr/include/sys/net/nit.h ; then
6907 V_PCAP=nit
6908 elif test -r /usr/include/linux/socket.h ; then
6909 V_PCAP=linux
6910 elif test -r /usr/include/net/raw.h ; then
6911 V_PCAP=snoop
6912 elif test -r /usr/include/odmi.h ; then
6913 #
6914 # On AIX, the BPF devices might not yet be present - they're
6915 # created the first time libpcap runs after booting.
6916 # We check for odmi.h instead.
6917 #
6918 V_PCAP=bpf
6919 elif test -c /dev/bpf0 ; then # check again in case not readable
6920 V_PCAP=bpf
6921 elif test -r /usr/include/sys/dlpi.h ; then
6922 V_PCAP=dlpi
6923 elif test -c /dev/enet ; then # check again in case not readable
6924 V_PCAP=enet
6925 elif test -c /dev/nit ; then # check again in case not readable
6926 V_PCAP=snit
6927 else
6928 V_PCAP=null
6929 fi
6930 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
6931 echo "${ECHO_T}$V_PCAP" >&6; }
6932
6933 #
6934 # Do capture-mechanism-dependent tests.
6935 #
6936 case "$V_PCAP" in
6937 dlpi)
6938 #
6939 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6940 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6941 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6942 # private version also existed, which did not have the same APIs.
6943 # Due to a gcc bug, the default search path for 32-bit libraries does
6944 # not include /lib, we add it explicitly here.
6945 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6946 # Also, due to the bug above applications that link to libpcap with
6947 # libdlpi will have to add "-L/lib" option to "configure".
6948 #
6949 saved_ldflags=$LDFLAGS
6950 LDFLAGS="$LIBS -L/lib"
6951 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6952 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
6953 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 ac_check_lib_save_LIBS=$LIBS
6957 LIBS="-ldlpi $LIBS"
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964
6965 /* Override any GCC internal prototype to avoid an error.
6966 Use char because int might match the return type of a GCC
6967 builtin and then its argument prototype would still apply. */
6968 #ifdef __cplusplus
6969 extern "C"
6970 #endif
6971 char dlpi_walk ();
6972 int
6973 main ()
6974 {
6975 return dlpi_walk ();
6976 ;
6977 return 0;
6978 }
6979 _ACEOF
6980 rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (ac_try="$ac_link"
6982 case "(($ac_try" in
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6985 esac
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_link") 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest$ac_exeext &&
6997 $as_test_x conftest$ac_exeext; then
6998 ac_cv_lib_dlpi_dlpi_walk=yes
6999 else
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003 ac_cv_lib_dlpi_dlpi_walk=no
7004 fi
7005
7006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7007 conftest$ac_exeext conftest.$ac_ext
7008 LIBS=$ac_check_lib_save_LIBS
7009 fi
7010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7011 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7012 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7013 LIBS="-ldlpi $LIBS"
7014 V_PCAP=libdlpi
7015
7016 cat >>confdefs.h <<\_ACEOF
7017 #define HAVE_LIBDLPI 1
7018 _ACEOF
7019
7020 else
7021 V_PCAP=dlpi
7022 fi
7023
7024 LDFLAGS=$saved_ldflags
7025
7026 #
7027 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7028 # versions of DLPI.
7029 #
7030 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7031 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7032 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h. */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041
7042 #include <sys/types.h>
7043 #include <sys/time.h>
7044 #include <sys/dlpi.h>
7045
7046 int
7047 main ()
7048 {
7049 int i = DL_PROMISC_PHYS;
7050 ;
7051 return 0;
7052 }
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (ac_try="$ac_compile"
7056 case "(($ac_try" in
7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058 *) ac_try_echo=$ac_try;;
7059 esac
7060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061 (eval "$ac_compile") 2>conftest.er1
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } && {
7068 test -z "$ac_c_werror_flag" ||
7069 test ! -s conftest.err
7070 } && test -s conftest.$ac_objext; then
7071 ac_cv_sys_dlpi_usable=yes
7072 else
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 ac_cv_sys_dlpi_usable=no
7077 fi
7078
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 fi
7081
7082 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7083 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7084 if test $ac_cv_sys_dlpi_usable = no ; then
7085 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7086 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7087 { (exit 1); exit 1; }; }
7088 fi
7089
7090 #
7091 # Check whether we have a /dev/dlpi device or have multiple devices.
7092 #
7093 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7094 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7095 if test -c /dev/dlpi ; then
7096 { echo "$as_me:$LINENO: result: yes" >&5
7097 echo "${ECHO_T}yes" >&6; }
7098
7099 cat >>confdefs.h <<\_ACEOF
7100 #define HAVE_DEV_DLPI 1
7101 _ACEOF
7102
7103 else
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7106 dir="/dev/dlpi"
7107 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7108 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7109 if test -d $dir ; then
7110 { echo "$as_me:$LINENO: result: yes" >&5
7111 echo "${ECHO_T}yes" >&6; }
7112
7113 cat >>confdefs.h <<_ACEOF
7114 #define PCAP_DEV_PREFIX "$dir"
7115 _ACEOF
7116
7117 else
7118 { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7120 fi
7121 fi
7122
7123 #
7124 # This check is for Solaris with DLPI support for passive modes.
7125 # See dlpi(7P) for more details.
7126 #
7127 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7128 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7129 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138
7139 # include <sys/types.h>
7140 # include <sys/dlpi.h>
7141 int
7142 main ()
7143 {
7144 u_int i = sizeof(dl_passive_req_t)
7145 ;
7146 return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (ac_try="$ac_compile"
7151 case "(($ac_try" in
7152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153 *) ac_try_echo=$ac_try;;
7154 esac
7155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156 (eval "$ac_compile") 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } && {
7163 test -z "$ac_c_werror_flag" ||
7164 test ! -s conftest.err
7165 } && test -s conftest.$ac_objext; then
7166 ac_cv_lbl_has_dl_passive_req_t=yes
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7170
7171 ac_cv_lbl_has_dl_passive_req_t=no
7172 fi
7173
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 fi
7176
7177 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7178 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7179 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7180
7181 cat >>confdefs.h <<\_ACEOF
7182 #define HAVE_DLPI_PASSIVE 1
7183 _ACEOF
7184
7185 fi
7186 ;;
7187
7188 linux)
7189 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
7190 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
7191 if test "$cross_compiling" = yes; then
7192 if test "${ac_cv_linux_vers+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 ac_cv_linux_vers=unknown
7196 fi
7197
7198 else
7199 if test "${ac_cv_linux_vers+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 ac_cv_linux_vers=`uname -r 2>&1 | \
7203 sed -n -e '$s/.* //' -e '$s/\..*//p'`
7204 fi
7205
7206 fi
7207 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
7208 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
7209 if test $ac_cv_linux_vers = unknown ; then
7210 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
7211 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
7212 { (exit 1); exit 1; }; }
7213 fi
7214 if test $ac_cv_linux_vers -lt 2 ; then
7215 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
7216 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
7217 { (exit 1); exit 1; }; }
7218 fi
7219
7220 #
7221 # Do we have the wireless extensions?
7222 #
7223
7224 for ac_header in linux/wireless.h
7225 do
7226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238
7239 #include <sys/socket.h>
7240 #include <linux/if.h>
7241 #include <linux/types.h>
7242
7243
7244 #include <$ac_header>
7245 _ACEOF
7246 rm -f conftest.$ac_objext
7247 if { (ac_try="$ac_compile"
7248 case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251 esac
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_compile") 2>conftest.er1
7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } && {
7260 test -z "$ac_c_werror_flag" ||
7261 test ! -s conftest.err
7262 } && test -s conftest.$ac_objext; then
7263 eval "$as_ac_Header=yes"
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 eval "$as_ac_Header=no"
7269 fi
7270
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 fi
7273 ac_res=`eval echo '${'$as_ac_Header'}'`
7274 { echo "$as_me:$LINENO: result: $ac_res" >&5
7275 echo "${ECHO_T}$ac_res" >&6; }
7276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7277 cat >>confdefs.h <<_ACEOF
7278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7279 _ACEOF
7280
7281 fi
7282
7283 done
7284
7285
7286 #
7287 # Do we have libnl?
7288 #
7289
7290 # Check whether --with-libnl was given.
7291 if test "${with_libnl+set}" = set; then
7292 withval=$with_libnl; with_libnl=$withval
7293 fi
7294
7295
7296 if test x$with_libnl != xno ; then
7297 { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7298 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7299 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 ac_check_lib_save_LIBS=$LIBS
7303 LIBS="-lnl $LIBS"
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310
7311 /* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7314 #ifdef __cplusplus
7315 extern "C"
7316 #endif
7317 char nl_handle_alloc ();
7318 int
7319 main ()
7320 {
7321 return nl_handle_alloc ();
7322 ;
7323 return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (ac_try="$ac_link"
7328 case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_link") 2>conftest.er1
7334 ac_status=$?
7335 grep -v '^ *+' conftest.er1 >conftest.err
7336 rm -f conftest.er1
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest$ac_exeext &&
7343 $as_test_x conftest$ac_exeext; then
7344 ac_cv_lib_nl_nl_handle_alloc=yes
7345 else
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349 ac_cv_lib_nl_nl_handle_alloc=no
7350 fi
7351
7352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7353 conftest$ac_exeext conftest.$ac_ext
7354 LIBS=$ac_check_lib_save_LIBS
7355 fi
7356 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7357 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7358 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7359 LIBS="-lnl $LIBS"
7360
7361 cat >>confdefs.h <<\_ACEOF
7362 #define HAVE_LIBNL 1
7363 _ACEOF
7364
7365 else
7366 if test x$with_libnl = xyes ; then
7367 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7368 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7369 { (exit 1); exit 1; }; }
7370 fi
7371
7372 fi
7373
7374 fi
7375
7376 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7377 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7378 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387
7388 # include <linux/if_packet.h>
7389 int
7390 main ()
7391 {
7392 struct tpacket_stats stats
7393 ;
7394 return 0;
7395 }
7396 _ACEOF
7397 rm -f conftest.$ac_objext
7398 if { (ac_try="$ac_compile"
7399 case "(($ac_try" in
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7402 esac
7403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_compile") 2>conftest.er1
7405 ac_status=$?
7406 grep -v '^ *+' conftest.er1 >conftest.err
7407 rm -f conftest.er1
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && {
7411 test -z "$ac_c_werror_flag" ||
7412 test ! -s conftest.err
7413 } && test -s conftest.$ac_objext; then
7414 ac_cv_lbl_tpacket_stats=yes
7415 else
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_cv_lbl_tpacket_stats=no
7420 fi
7421
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 fi
7424
7425 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7426 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7427 if test $ac_cv_lbl_tpacket_stats = yes; then
7428
7429 cat >>confdefs.h <<\_ACEOF
7430 #define HAVE_TPACKET_STATS 1
7431 _ACEOF
7432
7433 fi
7434 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7435 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7436 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445
7446 # include <linux/if_packet.h>
7447 int
7448 main ()
7449 {
7450 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7451 ;
7452 return 0;
7453 }
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7457 case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_compile") 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest.$ac_objext; then
7472 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7478 fi
7479
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 fi
7482
7483 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7484 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7485 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7486 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7487
7488
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7491 _ACEOF
7492
7493 fi
7494 ;;
7495
7496 bpf)
7497 #
7498 # Check whether we have the *BSD-style ioctls.
7499 #
7500
7501 for ac_header in net/if_media.h
7502 do
7503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 fi
7510 ac_res=`eval echo '${'$as_ac_Header'}'`
7511 { echo "$as_me:$LINENO: result: $ac_res" >&5
7512 echo "${ECHO_T}$ac_res" >&6; }
7513 else
7514 # Is the header compilable?
7515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7517 cat >conftest.$ac_ext <<_ACEOF
7518 /* confdefs.h. */
7519 _ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7523 $ac_includes_default
7524 #include <$ac_header>
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (ac_try="$ac_compile"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_compile") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.$ac_objext; then
7543 ac_header_compiler=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 ac_header_compiler=no
7549 fi
7550
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7553 echo "${ECHO_T}$ac_header_compiler" >&6; }
7554
7555 # Is the header present?
7556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 #include <$ac_header>
7565 _ACEOF
7566 if { (ac_try="$ac_cpp conftest.$ac_ext"
7567 case "(($ac_try" in
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7570 esac
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } >/dev/null && {
7579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7581 }; then
7582 ac_header_preproc=yes
7583 else
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 ac_header_preproc=no
7588 fi
7589
7590 rm -f conftest.err conftest.$ac_ext
7591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7592 echo "${ECHO_T}$ac_header_preproc" >&6; }
7593
7594 # So? What about this header?
7595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7596 yes:no: )
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7601 ac_header_preproc=yes
7602 ;;
7603 no:yes:* )
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7616
7617 ;;
7618 esac
7619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 eval "$as_ac_Header=\$ac_header_preproc"
7625 fi
7626 ac_res=`eval echo '${'$as_ac_Header'}'`
7627 { echo "$as_me:$LINENO: result: $ac_res" >&5
7628 echo "${ECHO_T}$ac_res" >&6; }
7629
7630 fi
7631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634 _ACEOF
7635
7636 fi
7637
7638 done
7639
7640
7641 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7642 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #include <sys/socket.h>
7650 #include <sys/ioctl.h>
7651 #include <net/if.h>
7652 #include <net/bpf.h>
7653 int
7654 main ()
7655 {
7656 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7663 case "(($ac_try" in
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7666 esac
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_compile") 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
7678
7679 { echo "$as_me:$LINENO: result: yes" >&5
7680 echo "${ECHO_T}yes" >&6; }
7681
7682 cat >>confdefs.h <<\_ACEOF
7683 #define HAVE_ZEROCOPY_BPF 1
7684 _ACEOF
7685
7686
7687 else
7688 echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 { echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6; }
7693 fi
7694
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696
7697 #
7698 # Check whether we have struct BPF_TIMEVAL.
7699 #
7700 { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
7701 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
7702 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711
7712 #include <sys/types.h>
7713 #include <sys/ioctl.h>
7714 #ifdef HAVE_SYS_IOCCOM_H
7715 #include <sys/ioccom.h>
7716 #endif
7717 #include <net/bpf.h>
7718
7719
7720 typedef struct BPF_TIMEVAL ac__type_new_;
7721 int
7722 main ()
7723 {
7724 if ((ac__type_new_ *) 0)
7725 return 0;
7726 if (sizeof (ac__type_new_))
7727 return 0;
7728 ;
7729 return 0;
7730 }
7731 _ACEOF
7732 rm -f conftest.$ac_objext
7733 if { (ac_try="$ac_compile"
7734 case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737 esac
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_compile") 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } && {
7746 test -z "$ac_c_werror_flag" ||
7747 test ! -s conftest.err
7748 } && test -s conftest.$ac_objext; then
7749 ac_cv_type_struct_BPF_TIMEVAL=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 ac_cv_type_struct_BPF_TIMEVAL=no
7755 fi
7756
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 fi
7759 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
7760 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
7761 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
7762
7763 cat >>confdefs.h <<_ACEOF
7764 #define HAVE_STRUCT_BPF_TIMEVAL 1
7765 _ACEOF
7766
7767
7768 fi
7769
7770 ;;
7771
7772 dag)
7773 V_DEFS="$V_DEFS -DDAG_ONLY"
7774 ;;
7775
7776 septel)
7777 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7778 ;;
7779
7780 null)
7781 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7782 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7784 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7785 ;;
7786 esac
7787
7788 if test "$V_PCAP" = null
7789 then
7790 #
7791 # We can't capture, so we can't open any capture
7792 # devices, so we won't return any interfaces.
7793 #
7794 V_FINDALLDEVS=null
7795 else
7796 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
7797 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
7798 if test "${ac_cv_func_getifaddrs+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h. */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7809 #define getifaddrs innocuous_getifaddrs
7810
7811 /* System header to define __stub macros and hopefully few prototypes,
7812 which can conflict with char getifaddrs (); below.
7813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7814 <limits.h> exists even on freestanding compilers. */
7815
7816 #ifdef __STDC__
7817 # include <limits.h>
7818 #else
7819 # include <assert.h>
7820 #endif
7821
7822 #undef getifaddrs
7823
7824 /* Override any GCC internal prototype to avoid an error.
7825 Use char because int might match the return type of a GCC
7826 builtin and then its argument prototype would still apply. */
7827 #ifdef __cplusplus
7828 extern "C"
7829 #endif
7830 char getifaddrs ();
7831 /* The GNU C library defines this for functions which it implements
7832 to always fail with ENOSYS. Some functions are actually named
7833 something starting with __ and the normal name is an alias. */
7834 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7835 choke me
7836 #endif
7837
7838 int
7839 main ()
7840 {
7841 return getifaddrs ();
7842 ;
7843 return 0;
7844 }
7845 _ACEOF
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7848 case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851 esac
7852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853 (eval "$ac_link") 2>conftest.er1
7854 ac_status=$?
7855 grep -v '^ *+' conftest.er1 >conftest.err
7856 rm -f conftest.er1
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } && {
7860 test -z "$ac_c_werror_flag" ||
7861 test ! -s conftest.err
7862 } && test -s conftest$ac_exeext &&
7863 $as_test_x conftest$ac_exeext; then
7864 ac_cv_func_getifaddrs=yes
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ac_cv_func_getifaddrs=no
7870 fi
7871
7872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7873 conftest$ac_exeext conftest.$ac_ext
7874 fi
7875 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
7876 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7877 if test $ac_cv_func_getifaddrs = yes; then
7878
7879 #
7880 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
7881 # as well, just in case some platform is really weird.
7882 #
7883 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7884 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7885 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7886 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 fi
7889 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7890 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7891 else
7892 # Is the header compilable?
7893 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
7894 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
7895 cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 $ac_includes_default
7902 #include <ifaddrs.h>
7903 _ACEOF
7904 rm -f conftest.$ac_objext
7905 if { (ac_try="$ac_compile"
7906 case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_compile") 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest.$ac_objext; then
7921 ac_header_compiler=yes
7922 else
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7925
7926 ac_header_compiler=no
7927 fi
7928
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7931 echo "${ECHO_T}$ac_header_compiler" >&6; }
7932
7933 # Is the header present?
7934 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
7935 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
7936 cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h. */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 #include <ifaddrs.h>
7943 _ACEOF
7944 if { (ac_try="$ac_cpp conftest.$ac_ext"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } >/dev/null && {
7957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 }; then
7960 ac_header_preproc=yes
7961 else
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965 ac_header_preproc=no
7966 fi
7967
7968 rm -f conftest.err conftest.$ac_ext
7969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7970 echo "${ECHO_T}$ac_header_preproc" >&6; }
7971
7972 # So? What about this header?
7973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7974 yes:no: )
7975 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7976 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7977 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
7978 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
7979 ac_header_preproc=yes
7980 ;;
7981 no:yes:* )
7982 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
7983 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
7984 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
7985 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
7987 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
7989 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
7991 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
7992 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
7993 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
7994
7995 ;;
7996 esac
7997 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7998 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7999 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002 ac_cv_header_ifaddrs_h=$ac_header_preproc
8003 fi
8004 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8005 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8006
8007 fi
8008 if test $ac_cv_header_ifaddrs_h = yes; then
8009
8010 #
8011 # We have the header, so we use "getifaddrs()" to
8012 # get the list of interfaces.
8013 #
8014 V_FINDALLDEVS=getad
8015
8016 else
8017
8018 #
8019 # We don't have the header - give up.
8020 # XXX - we could also fall back on some other
8021 # mechanism, but, for now, this'll catch this
8022 # problem so that we can at least try to figure
8023 # out something to do on systems with "getifaddrs()"
8024 # but without "ifaddrs.h", if there is something
8025 # we can do on those systems.
8026 #
8027 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8028 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8029 { (exit 1); exit 1; }; }
8030
8031 fi
8032
8033
8034
8035 else
8036
8037 #
8038 # Well, we don't have "getifaddrs()", so we have to use
8039 # some other mechanism; determine what that mechanism is.
8040 #
8041 # The first thing we use is the type of capture mechanism,
8042 # which is somewhat of a proxy for the OS we're using.
8043 #
8044 case "$V_PCAP" in
8045
8046 dlpi|libdlpi)
8047
8048
8049 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8050 do
8051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 fi
8058 ac_res=`eval echo '${'$as_ac_Header'}'`
8059 { echo "$as_me:$LINENO: result: $ac_res" >&5
8060 echo "${ECHO_T}$ac_res" >&6; }
8061 else
8062 # Is the header compilable?
8063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 $ac_includes_default
8072 #include <$ac_header>
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8076 case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8079 esac
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.$ac_objext; then
8091 ac_header_compiler=yes
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ac_header_compiler=no
8097 fi
8098
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8101 echo "${ECHO_T}$ac_header_compiler" >&6; }
8102
8103 # Is the header present?
8104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 #include <$ac_header>
8113 _ACEOF
8114 if { (ac_try="$ac_cpp conftest.$ac_ext"
8115 case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } >/dev/null && {
8127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 }; then
8130 ac_header_preproc=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 ac_header_preproc=no
8136 fi
8137
8138 rm -f conftest.err conftest.$ac_ext
8139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8140 echo "${ECHO_T}$ac_header_preproc" >&6; }
8141
8142 # So? What about this header?
8143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8144 yes:no: )
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8149 ac_header_preproc=yes
8150 ;;
8151 no:yes:* )
8152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8164
8165 ;;
8166 esac
8167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172 eval "$as_ac_Header=\$ac_header_preproc"
8173 fi
8174 ac_res=`eval echo '${'$as_ac_Header'}'`
8175 { echo "$as_me:$LINENO: result: $ac_res" >&5
8176 echo "${ECHO_T}$ac_res" >&6; }
8177
8178 fi
8179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8180 cat >>confdefs.h <<_ACEOF
8181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8182 _ACEOF
8183
8184 fi
8185
8186 done
8187
8188 #
8189 # This might be Solaris 8 or later, with
8190 # SIOCGLIFCONF, or it might be some other OS
8191 # or some older version of Solaris, with
8192 # just SIOCGIFCONF.
8193 #
8194 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8195 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8196 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h. */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 #include <sys/param.h>
8206 #include <sys/file.h>
8207 #include <sys/ioctl.h>
8208 #include <sys/socket.h>
8209 #include <sys/sockio.h>
8210 int
8211 main ()
8212 {
8213 ioctl(0, SIOCGLIFCONF, (char *)0);
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext
8219 if { (ac_try="$ac_compile"
8220 case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_compile") 2>conftest.er1
8226 ac_status=$?
8227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest.$ac_objext; then
8235 ac_cv_lbl_have_siocglifconf=yes
8236 else
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8239
8240 ac_cv_lbl_have_siocglifconf=no
8241 fi
8242
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 fi
8245
8246 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8247 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8248 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8249 V_FINDALLDEVS=glifc
8250 else
8251 V_FINDALLDEVS=gifc
8252 fi
8253 #
8254 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8255 #
8256 SSRC="dlpisubs.c"
8257 ;;
8258
8259 *)
8260 #
8261 # Assume we just have SIOCGIFCONF.
8262 # (XXX - on at least later Linux kernels, there's
8263 # another mechanism, and we should be using that
8264 # instead.)
8265 #
8266 V_FINDALLDEVS=gifc
8267 ;;
8268 esac
8269 fi
8270
8271 fi
8272
8273 fi
8274
8275
8276 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8277 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h. */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284
8285 #include <sys/types.h>
8286 #include <sys/socket.h>
8287
8288 int
8289 main ()
8290 {
8291 socklen_t x;
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext
8297 if { (ac_try="$ac_compile"
8298 case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_compile") 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest.$ac_objext; then
8313 have_socklen_t=yes
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 have_socklen_t=no
8319 fi
8320
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 if test "x$have_socklen_t" = "xyes"; then
8323
8324 cat >>confdefs.h <<\_ACEOF
8325 #define HAVE_SOCKLEN_T 1
8326 _ACEOF
8327
8328 fi
8329 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8330 echo "${ECHO_T}$have_socklen_t" >&6; }
8331
8332 # Check whether --enable-ipv6 was given.
8333 if test "${enable_ipv6+set}" = set; then
8334 enableval=$enable_ipv6;
8335 else
8336 enable_ipv6=ifavailable
8337 fi
8338
8339 if test "$enable_ipv6" != "no"; then
8340 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8341 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8342 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h. */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8353 #define getaddrinfo innocuous_getaddrinfo
8354
8355 /* System header to define __stub macros and hopefully few prototypes,
8356 which can conflict with char getaddrinfo (); below.
8357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8358 <limits.h> exists even on freestanding compilers. */
8359
8360 #ifdef __STDC__
8361 # include <limits.h>
8362 #else
8363 # include <assert.h>
8364 #endif
8365
8366 #undef getaddrinfo
8367
8368 /* Override any GCC internal prototype to avoid an error.
8369 Use char because int might match the return type of a GCC
8370 builtin and then its argument prototype would still apply. */
8371 #ifdef __cplusplus
8372 extern "C"
8373 #endif
8374 char getaddrinfo ();
8375 /* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8379 choke me
8380 #endif
8381
8382 int
8383 main ()
8384 {
8385 return getaddrinfo ();
8386 ;
8387 return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (ac_try="$ac_link"
8392 case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_link") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest$ac_exeext &&
8407 $as_test_x conftest$ac_exeext; then
8408 ac_cv_func_getaddrinfo=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_cv_func_getaddrinfo=no
8414 fi
8415
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417 conftest$ac_exeext conftest.$ac_ext
8418 fi
8419 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8420 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8421 if test $ac_cv_func_getaddrinfo = yes; then
8422
8423
8424 cat >>confdefs.h <<\_ACEOF
8425 #define INET6 1
8426 _ACEOF
8427
8428
8429 else
8430
8431 if test "$enable_ipv6" != "ifavailable"; then
8432 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8433 See \`config.log' for more details." >&5
8434 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8435 See \`config.log' for more details." >&2;}
8436 { (exit 1); exit 1; }; }
8437 fi
8438
8439 fi
8440
8441 fi
8442
8443 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8444 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8445 # Check whether --enable-optimizer-dbg was given.
8446 if test "${enable_optimizer_dbg+set}" = set; then
8447 enableval=$enable_optimizer_dbg;
8448 fi
8449
8450 if test "$enable_optimizer_dbg" = "yes"; then
8451
8452 cat >>confdefs.h <<\_ACEOF
8453 #define BDEBUG 1
8454 _ACEOF
8455
8456 fi
8457 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8458 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8459
8460 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8461 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8462 # Check whether --enable-yydebug was given.
8463 if test "${enable_yydebug+set}" = set; then
8464 enableval=$enable_yydebug;
8465 fi
8466
8467 if test "$enable_yydebug" = "yes"; then
8468
8469 cat >>confdefs.h <<\_ACEOF
8470 #define YYDEBUG 1
8471 _ACEOF
8472
8473 fi
8474 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8475 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8476
8477 { echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
8478 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6; }
8479 if test -r /proc/net/dev ; then
8480 ac_cv_lbl_proc_net_dev=yes
8481 else
8482 ac_cv_lbl_proc_net_dev=no
8483 fi
8484 if test $ac_cv_lbl_proc_net_dev = yes; then
8485
8486 cat >>confdefs.h <<\_ACEOF
8487 #define HAVE_PROC_NET_DEV 1
8488 _ACEOF
8489
8490 fi
8491 { echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
8492 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
8493
8494 # Check for Endace DAG card support.
8495
8496 # Check whether --with-dag was given.
8497 if test "${with_dag+set}" = set; then
8498 withval=$with_dag;
8499 if test "$withval" = no
8500 then
8501 # User doesn't want DAG support.
8502 want_dag=no
8503 elif test "$withval" = yes
8504 then
8505 # User wants DAG support but hasn't specified a directory.
8506 want_dag=yes
8507 else
8508 # User wants DAG support and has specified a directory, so use the provided value.
8509 want_dag=yes
8510 dag_root=$withval
8511 fi
8512
8513 else
8514
8515 #
8516 # Use DAG API if present, otherwise don't
8517 #
8518 want_dag=ifpresent
8519
8520 fi
8521
8522
8523
8524 # Check whether --with-dag-includes was given.
8525 if test "${with_dag_includes+set}" = set; then
8526 withval=$with_dag_includes;
8527 # User wants DAG support and has specified a header directory, so use the provided value.
8528 want_dag=yes
8529 dag_include_dir=$withval
8530
8531 fi
8532
8533
8534
8535 # Check whether --with-dag-libraries was given.
8536 if test "${with_dag_libraries+set}" = set; then
8537 withval=$with_dag_libraries;
8538 # User wants DAG support and has specified a library directory, so use the provided value.
8539 want_dag=yes
8540 dag_lib_dir=$withval
8541
8542 fi
8543
8544
8545 case "$V_PCAP" in
8546 linux|bpf|dag)
8547 #
8548 # We support the DAG API if we're on Linux or BSD, or if we're
8549 # building a DAG-only libpcap.
8550 #
8551 ;;
8552 *)
8553 #
8554 # If the user explicitly requested DAG, tell them it's not
8555 # supported.
8556 #
8557 # If they expressed no preference, don't include it.
8558 #
8559 if test $want_dag = yes; then
8560 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
8561 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
8562 { (exit 1); exit 1; }; }
8563 elif test $want_dag = yes; then
8564 want_dag=no
8565 fi
8566 ;;
8567 esac
8568
8569 ac_cv_lbl_dag_api=no
8570 if test "$want_dag" != no; then
8571
8572 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
8573 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
8574
8575 # If necessary, set default paths for DAG API headers and libraries.
8576 if test -z "$dag_root"; then
8577 dag_root=/usr/local
8578 fi
8579
8580 if test -z "$dag_include_dir"; then
8581 dag_include_dir="$dag_root/include"
8582 fi
8583
8584 if test -z "$dag_lib_dir"; then
8585 dag_lib_dir="$dag_root/lib"
8586 fi
8587
8588 if test -z "$dag_tools_dir"; then
8589 dag_tools_dir="$dag_root/tools"
8590 fi
8591
8592 if test -r $dag_include_dir/dagapi.h; then
8593 ac_cv_lbl_dag_api=yes
8594 fi
8595 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8596 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8597 fi
8598
8599 if test $ac_cv_lbl_dag_api = yes; then
8600
8601 { echo "$as_me:$LINENO: checking dagapi.o" >&5
8602 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
8603 dagapi_obj=no
8604 if test -r $dag_tools_dir/dagapi.o; then
8605 # 2.4.x.
8606 dagapi_obj=$dag_tools_dir/dagapi.o
8607 elif test -r $dag_lib_dir/dagapi.o; then
8608 # 2.5.x.
8609 dagapi_obj=$dag_lib_dir/dagapi.o
8610 elif test -r $dag_lib_dir/libdag.a; then
8611 # 2.5.x.
8612 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
8613 if test -r ./dagapi.o; then
8614 dagapi_obj=./dagapi.o
8615 else
8616 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
8617 if test -r ./libdag_la-dagapi.o; then
8618 dagapi_obj=./libdag_la-dagapi.o
8619 fi
8620 fi
8621 fi
8622
8623 if test $dagapi_obj = no; then
8624 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
8625 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
8626 ac_cv_lbl_dag_api=no
8627 else
8628 { echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
8629 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
8630 fi
8631 fi
8632
8633 if test $ac_cv_lbl_dag_api = yes; then
8634
8635 { echo "$as_me:$LINENO: checking dagopts.o" >&5
8636 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
8637 dagopts_obj=no
8638 if test -r $dag_tools_dir/dagopts.o; then
8639 # 2.4.x.
8640 dagopts_obj=$dag_tools_dir/dagopts.o
8641 elif test -r $dag_lib_dir/dagopts.o; then
8642 # 2.5.x.
8643 dagopts_obj=$dag_lib_dir/dagopts.o
8644 elif test -r $dag_lib_dir/libdag.a; then
8645 # 2.5.x.
8646 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
8647 if test -r ./dagopts.o; then
8648 dagopts_obj=./dagopts.o
8649 else
8650 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
8651 if test -r ./libdag_la-dagopts.o; then
8652 dagopts_obj=./libdag_la-dagopts.o
8653 fi
8654 fi
8655 fi
8656
8657 if test $dagopts_obj = no; then
8658 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
8659 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
8660 ac_cv_lbl_dag_api=no
8661 else
8662 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
8663 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8664 fi
8665 fi
8666
8667 if test $ac_cv_lbl_dag_api = yes; then
8668 # Under 2.5.x only we need to add dagreg.o.
8669 if test -r $dag_include_dir/dagreg.h; then
8670 { echo "$as_me:$LINENO: checking dagreg.o" >&5
8671 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
8672 dagreg_obj=no
8673 if test -r $dag_lib_dir/dagreg.o; then
8674 # Object file is ready and waiting.
8675 dagreg_obj=$dag_lib_dir/dagreg.o
8676 elif test -r $dag_lib_dir/libdag.a; then
8677 # Extract from libdag.a.
8678 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8679 if test -r ./dagreg.o; then
8680 dagreg_obj=./dagreg.o
8681 else
8682 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8683 if test -r ./libdag_la-dagreg.o; then
8684 dagreg_obj=./libdag_la-dagreg.o
8685 fi
8686 fi
8687 fi
8688
8689 if test $dagreg_obj = no; then
8690 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8691 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8692 ac_cv_lbl_dag_api=no
8693 else
8694 { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
8695 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8696 fi
8697 fi
8698 fi
8699
8700 if test $ac_cv_lbl_dag_api = yes; then
8701 # Under 2.5.x only we need to add dagutil.o.
8702 if test -r $dag_include_dir/dagutil.h; then
8703 { echo "$as_me:$LINENO: checking dagutil.o" >&5
8704 echo $ECHO_N "checking dagutil.o... $ECHO_C" >&6; }
8705 dagutil_obj=no
8706 if test -r $dag_lib_dir/dagutil.o; then
8707 # Object file is ready and waiting.
8708 dagutil_obj=$dag_lib_dir/dagutil.o
8709 elif test -r $dag_lib_dir/libdag.a; then
8710 # Extract from libdag.a.
8711 ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
8712 if test -r ./dagutil.o; then
8713 dagutil_obj=./dagutil.o
8714 else
8715 ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
8716 if test -r ./libdag_la-dagutil.o; then
8717 dagutil_obj=./libdag_la-dagutil.o
8718 fi
8719 fi
8720 fi
8721
8722 if test $dagutil_obj = no; then
8723 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8724 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8725 ac_cv_lbl_dag_api=no
8726 else
8727 { echo "$as_me:$LINENO: result: yes ($dagutil_obj)" >&5
8728 echo "${ECHO_T}yes ($dagutil_obj)" >&6; }
8729 fi
8730 fi
8731 fi
8732
8733 if test $ac_cv_lbl_dag_api = yes; then
8734 V_INCLS="$V_INCLS -I$dag_include_dir"
8735 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
8736 if test $V_PCAP != dag ; then
8737 SSRC="pcap-dag.c"
8738 fi
8739
8740 # See if we can find a general version string.
8741 # Don't need to save and restore LIBS to prevent -ldag being
8742 # included if there's a found-action (arg 3).
8743 saved_ldflags=$LDFLAGS
8744 LDFLAGS="-L$dag_lib_dir"
8745 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8746 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8747 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 else
8750 ac_check_lib_save_LIBS=$LIBS
8751 LIBS="-ldag $LIBS"
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758
8759 /* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8762 #ifdef __cplusplus
8763 extern "C"
8764 #endif
8765 char dag_attach_stream ();
8766 int
8767 main ()
8768 {
8769 return dag_attach_stream ();
8770 ;
8771 return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8776 case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8779 esac
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_link") 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest$ac_exeext &&
8791 $as_test_x conftest$ac_exeext; then
8792 ac_cv_lib_dag_dag_attach_stream=yes
8793 else
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797 ac_cv_lib_dag_dag_attach_stream=no
8798 fi
8799
8800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8803 fi
8804 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8805 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8806 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8807 dag_streams="1"
8808 else
8809 dag_streams="0"
8810 fi
8811
8812 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8813 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8814 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817 ac_check_lib_save_LIBS=$LIBS
8818 LIBS="-ldag $LIBS"
8819 cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h. */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825
8826 /* Override any GCC internal prototype to avoid an error.
8827 Use char because int might match the return type of a GCC
8828 builtin and then its argument prototype would still apply. */
8829 #ifdef __cplusplus
8830 extern "C"
8831 #endif
8832 char dag_get_erf_types ();
8833 int
8834 main ()
8835 {
8836 return dag_get_erf_types ();
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (ac_try="$ac_link"
8843 case "(($ac_try" in
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_link") 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && {
8855 test -z "$ac_c_werror_flag" ||
8856 test ! -s conftest.err
8857 } && test -s conftest$ac_exeext &&
8858 $as_test_x conftest$ac_exeext; then
8859 ac_cv_lib_dag_dag_get_erf_types=yes
8860 else
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864 ac_cv_lib_dag_dag_get_erf_types=no
8865 fi
8866
8867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8870 fi
8871 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8872 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8873 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8874
8875
8876 cat >>confdefs.h <<\_ACEOF
8877 #define HAVE_DAG_GET_ERF_TYPES 1
8878 _ACEOF
8879
8880 fi
8881
8882 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8883 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8884 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 ac_check_lib_save_LIBS=$LIBS
8888 LIBS="-ldag $LIBS"
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 char dag_get_stream_erf_types ();
8903 int
8904 main ()
8905 {
8906 return dag_get_stream_erf_types ();
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8913 case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_link") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest$ac_exeext &&
8928 $as_test_x conftest$ac_exeext; then
8929 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 ac_cv_lib_dag_dag_get_stream_erf_types=no
8935 fi
8936
8937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8938 conftest$ac_exeext conftest.$ac_ext
8939 LIBS=$ac_check_lib_save_LIBS
8940 fi
8941 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8942 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8943 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8944
8945
8946 cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8948 _ACEOF
8949
8950 fi
8951
8952 LDFLAGS=$saved_ldflags
8953
8954 if test "$dag_streams" = 1; then
8955
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_DAG_STREAMS_API 1
8958 _ACEOF
8959
8960 LIBS="$LIBS -ldag"
8961 fi
8962
8963
8964 cat >>confdefs.h <<\_ACEOF
8965 #define HAVE_DAG_API 1
8966 _ACEOF
8967
8968 fi
8969
8970 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
8971 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
8972
8973 if test $ac_cv_lbl_dag_api = no; then
8974 { echo "$as_me:$LINENO: result: no" >&5
8975 echo "${ECHO_T}no" >&6; }
8976 if test "$want_dag" = yes; then
8977 # User wanted DAG support but we couldn't find it.
8978 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
8979 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
8980 { (exit 1); exit 1; }; }
8981 fi
8982
8983 if test "$V_PCAP" = dag; then
8984 # User requested "dag" capture type but the DAG API wasn't
8985 # found.
8986 { { 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
8987 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;}
8988 { (exit 1); exit 1; }; }
8989 fi
8990 else
8991 { echo "$as_me:$LINENO: result: yes" >&5
8992 echo "${ECHO_T}yes" >&6; }
8993 fi
8994
8995
8996 # Check whether --with-septel was given.
8997 if test "${with_septel+set}" = set; then
8998 withval=$with_septel;
8999 if test "$withval" = no
9000 then
9001 want_septel=no
9002 elif test "$withval" = yes
9003 then
9004 want_septel=yes
9005 septel_root=
9006 else
9007 want_septel=yes
9008 septel_root=$withval
9009 fi
9010
9011 else
9012
9013 #
9014 # Use Septel API if present, otherwise don't
9015 #
9016 want_septel=ifpresent
9017 septel_root=./../septel
9018
9019 fi
9020
9021 ac_cv_lbl_septel_api=no
9022 case "$V_PCAP" in
9023 linux|septel)
9024 #
9025 # We support the Septel API if we're on Linux, or if we're building
9026 # a Septel-only libpcap.
9027 #
9028 ;;
9029 *)
9030 #
9031 # If the user explicitly requested Septel, tell them it's not
9032 # supported.
9033 #
9034 # If they expressed no preference, don't include it.
9035 #
9036 if test $want_septel = yes; then
9037 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9038 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9039 { (exit 1); exit 1; }; }
9040 elif test $want_septel = yes; then
9041 want_septel=no
9042 fi
9043 ;;
9044 esac
9045
9046 if test "$with_septel" != no; then
9047 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9048 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9049
9050 if test -z "$septel_root"; then
9051 septel_root=$srcdir/../septel
9052 fi
9053
9054 septel_tools_dir="$septel_root"
9055 septel_include_dir="$septel_root/INC"
9056
9057 ac_cv_lbl_septel_api=no
9058 if test -r "$septel_include_dir/msg.h"; then
9059 V_INCLS="$V_INCLS -I$septel_include_dir"
9060 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"
9061 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"
9062
9063 if test "$V_PCAP" != septel ; then
9064 SSRC="pcap-septel.c"
9065 fi
9066 ac_cv_lbl_septel_api=yes
9067 fi
9068
9069 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9070 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9071 if test $ac_cv_lbl_septel_api = no; then
9072 if test "$want_septel" = yes; then
9073 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9074 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9075 { (exit 1); exit 1; }; }
9076 fi
9077 else
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_SEPTEL_API 1
9081 _ACEOF
9082
9083 fi
9084 fi
9085
9086 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9087 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9088 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9089 { (exit 1); exit 1; }; }
9090 fi
9091
9092
9093
9094 # Check whether --with-flex was given.
9095 if test "${with_flex+set}" = set; then
9096 withval=$with_flex;
9097 fi
9098
9099
9100 # Check whether --with-bison was given.
9101 if test "${with_bison+set}" = set; then
9102 withval=$with_bison;
9103 fi
9104
9105 if test "$with_flex" = no ; then
9106 V_LEX=lex
9107 else
9108 for ac_prog in flex
9109 do
9110 # Extract the first word of "$ac_prog", so it can be a program name with args.
9111 set dummy $ac_prog; ac_word=$2
9112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9114 if test "${ac_cv_prog_V_LEX+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117 if test -n "$V_LEX"; then
9118 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9122 do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127 ac_cv_prog_V_LEX="$ac_prog"
9128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9130 fi
9131 done
9132 done
9133 IFS=$as_save_IFS
9134
9135 fi
9136 fi
9137 V_LEX=$ac_cv_prog_V_LEX
9138 if test -n "$V_LEX"; then
9139 { echo "$as_me:$LINENO: result: $V_LEX" >&5
9140 echo "${ECHO_T}$V_LEX" >&6; }
9141 else
9142 { echo "$as_me:$LINENO: result: no" >&5
9143 echo "${ECHO_T}no" >&6; }
9144 fi
9145
9146
9147 test -n "$V_LEX" && break
9148 done
9149 test -n "$V_LEX" || V_LEX="lex"
9150
9151 fi
9152 if test "$V_LEX" = flex ; then
9153 # The -V flag was added in 2.4
9154 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9155 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9156 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 if flex -V >/dev/null 2>&1; then
9160 ac_cv_lbl_flex_v24=yes
9161 else
9162 ac_cv_lbl_flex_v24=no
9163 fi
9164 fi
9165
9166 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9167 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9168 if test $ac_cv_lbl_flex_v24 = no ; then
9169 s="2.4 or higher required"
9170 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9171 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9172 V_LEX=lex
9173 fi
9174 fi
9175 if test "$with_bison" = no ; then
9176 V_YACC=yacc
9177 else
9178 for ac_prog in bison
9179 do
9180 # Extract the first word of "$ac_prog", so it can be a program name with args.
9181 set dummy $ac_prog; ac_word=$2
9182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9184 if test "${ac_cv_prog_V_YACC+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187 if test -n "$V_YACC"; then
9188 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9192 do
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197 ac_cv_prog_V_YACC="$ac_prog"
9198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 break 2
9200 fi
9201 done
9202 done
9203 IFS=$as_save_IFS
9204
9205 fi
9206 fi
9207 V_YACC=$ac_cv_prog_V_YACC
9208 if test -n "$V_YACC"; then
9209 { echo "$as_me:$LINENO: result: $V_YACC" >&5
9210 echo "${ECHO_T}$V_YACC" >&6; }
9211 else
9212 { echo "$as_me:$LINENO: result: no" >&5
9213 echo "${ECHO_T}no" >&6; }
9214 fi
9215
9216
9217 test -n "$V_YACC" && break
9218 done
9219 test -n "$V_YACC" || V_YACC="yacc"
9220
9221 fi
9222 if test "$V_YACC" = bison ; then
9223 V_YACC="$V_YACC -y"
9224 fi
9225 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9226 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9227 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9228 V_LEX=lex
9229 V_YACC=yacc
9230 fi
9231 if test "$V_LEX" = flex -a -n "pcap_" ; then
9232 V_LEX="$V_LEX -Ppcap_"
9233 V_YACC="$V_YACC -p pcap_"
9234 fi
9235 if test "$V_LEX" = lex ; then
9236 # Some versions of lex can't handle the definitions section of scanner.l .
9237 # Try lexing it and complain if it can't deal.
9238 { echo "$as_me:$LINENO: checking for capable lex" >&5
9239 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9240 if test "${tcpdump_cv_capable_lex+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243 if lex -t scanner.l > /dev/null 2>&1; then
9244 tcpdump_cv_capable_lex=yes
9245 else
9246 tcpdump_cv_capable_lex=insufficient
9247 fi
9248 fi
9249 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9250 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9251 if test $tcpdump_cv_capable_lex = insufficient ; then
9252 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9253 libpcap. flex is a lex replacement that has many advantages, including
9254 being able to compile libpcap. For more information, see
9255 http://www.gnu.org/software/flex/flex.html ." >&5
9256 echo "$as_me: error: Your operating system's lex is insufficient to compile
9257 libpcap. flex is a lex replacement that has many advantages, including
9258 being able to compile libpcap. For more information, see
9259 http://www.gnu.org/software/flex/flex.html ." >&2;}
9260 { (exit 1); exit 1; }; }
9261 fi
9262 fi
9263
9264 #
9265 # Assume, by default, no support for shared libraries and V7/BSD convention
9266 # for man pages (file formats in section 5, miscellaneous info in section 7).
9267 # Individual cases can override this.
9268 #
9269 DYEXT="none"
9270 MAN_FILE_FORMATS=5
9271 MAN_MISC_INFO=7
9272 case "$host_os" in
9273
9274 aix*)
9275
9276 cat >>confdefs.h <<\_ACEOF
9277 #define _SUN 1
9278 _ACEOF
9279
9280
9281 #
9282 # AIX makes it fun to build shared and static libraries,
9283 # because they're *both* ".a" archive libraries. We
9284 # build the static library for the benefit of the traditional
9285 # scheme of building libpcap and tcpdump in subdirectories of
9286 # the same directory, with tcpdump statically linked with the
9287 # libpcap in question, but we also build a shared library as
9288 # "libpcap.shareda" and install *it*, rather than the static
9289 # library, as "libpcap.a".
9290 #
9291 DYEXT="shareda"
9292
9293 case "$V_PCAP" in
9294
9295 dlpi)
9296 #
9297 # If we're using DLPI, applications will need to
9298 # use /lib/pse.exp if present, as we use the
9299 # STREAMS routines.
9300 #
9301 pseexe="/lib/pse.exp"
9302 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9303 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9304 if test -f $pseexe ; then
9305 { echo "$as_me:$LINENO: result: yes" >&5
9306 echo "${ECHO_T}yes" >&6; }
9307 LIBS="-I:$pseexe"
9308 fi
9309 ;;
9310
9311 bpf)
9312 #
9313 # If we're using BPF, we need "-lodm" and "-lcfg", as
9314 # we use them to load the BPF module.
9315 #
9316 LIBS="-lodm -lcfg"
9317 ;;
9318 esac
9319 ;;
9320
9321 darwin*)
9322 DYEXT="dylib"
9323 V_CCOPT="$V_CCOPT -fno-common"
9324 ;;
9325
9326 hpux9*)
9327
9328 cat >>confdefs.h <<\_ACEOF
9329 #define HAVE_HPUX9 1
9330 _ACEOF
9331
9332
9333 #
9334 # Use System V conventions for man pages.
9335 #
9336 MAN_FILE_FORMATS=4
9337 MAN_MISC_INFO=5
9338 ;;
9339
9340 hpux10.0*)
9341
9342 #
9343 # Use System V conventions for man pages.
9344 #
9345 MAN_FILE_FORMATS=4
9346 MAN_MISC_INFO=5
9347 ;;
9348
9349 hpux10.1*)
9350
9351 #
9352 # Use System V conventions for man pages.
9353 #
9354 MAN_FILE_FORMATS=4
9355 MAN_MISC_INFO=5
9356 ;;
9357
9358 hpux*)
9359
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_HPUX10_20_OR_LATER 1
9362 _ACEOF
9363
9364 if test "`uname -m`" = "ia64"; then
9365 DYEXT="so"
9366 else
9367 DYEXT="sl"
9368 fi
9369
9370 #
9371 # "-b" builds a shared library; "+h" sets the soname.
9372 #
9373 SHLIB_OPT="-b"
9374 SONAME_OPT="+h"
9375
9376 #
9377 # Use System V conventions for man pages.
9378 #
9379 MAN_FILE_FORMATS=4
9380 MAN_MISC_INFO=5
9381 ;;
9382
9383 irix*)
9384 #
9385 # Use System V conventions for man pages.
9386 #
9387 MAN_FILE_FORMATS=4
9388 MAN_MISC_INFO=5
9389 ;;
9390
9391 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9392 DYEXT="so"
9393
9394 #
9395 # Compiler assumed to be GCC; run-time linker may require a -R
9396 # flag.
9397 #
9398 if test "$libdir" != "/usr/lib"; then
9399 V_RFLAGS=-Wl,-R$libdir
9400 fi
9401 ;;
9402
9403 osf*)
9404 DYEXT="so"
9405
9406 #
9407 # Use System V conventions for man pages.
9408 #
9409 MAN_FILE_FORMATS=4
9410 MAN_MISC_INFO=5
9411 ;;
9412
9413 sinix*)
9414 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
9415 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
9416 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425
9426 int
9427 main ()
9428 {
9429 int i = sinix;
9430 ;
9431 return 0;
9432 }
9433 _ACEOF
9434 rm -f conftest.$ac_objext
9435 if { (ac_try="$ac_compile"
9436 case "(($ac_try" in
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9439 esac
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_compile") 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } && {
9448 test -z "$ac_c_werror_flag" ||
9449 test ! -s conftest.err
9450 } && test -s conftest.$ac_objext; then
9451 ac_cv_cc_sinix_defined=yes
9452 else
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9455
9456 ac_cv_cc_sinix_defined=no
9457 fi
9458
9459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460 fi
9461
9462 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
9463 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9464 if test $ac_cv_cc_sinix_defined = no ; then
9465
9466 cat >>confdefs.h <<\_ACEOF
9467 #define sinix 1
9468 _ACEOF
9469
9470 fi
9471 ;;
9472
9473 solaris*)
9474
9475 cat >>confdefs.h <<\_ACEOF
9476 #define HAVE_SOLARIS 1
9477 _ACEOF
9478
9479
9480 DYEXT="so"
9481 #
9482 # Use System V conventions for man pages.
9483 #
9484 MAN_FILE_FORMATS=4
9485 MAN_MISC_INFO=5
9486 ;;
9487 esac
9488
9489 if test -n "$ac_tool_prefix"; then
9490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9494 if test "${ac_cv_prog_RANLIB+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 if test -n "$RANLIB"; then
9498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9499 else
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9502 do
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9510 fi
9511 done
9512 done
9513 IFS=$as_save_IFS
9514
9515 fi
9516 fi
9517 RANLIB=$ac_cv_prog_RANLIB
9518 if test -n "$RANLIB"; then
9519 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9520 echo "${ECHO_T}$RANLIB" >&6; }
9521 else
9522 { echo "$as_me:$LINENO: result: no" >&5
9523 echo "${ECHO_T}no" >&6; }
9524 fi
9525
9526
9527 fi
9528 if test -z "$ac_cv_prog_RANLIB"; then
9529 ac_ct_RANLIB=$RANLIB
9530 # Extract the first word of "ranlib", so it can be a program name with args.
9531 set dummy ranlib; ac_word=$2
9532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 if test -n "$ac_ct_RANLIB"; then
9538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9539 else
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9542 do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_prog_ac_ct_RANLIB="ranlib"
9548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9550 fi
9551 done
9552 done
9553 IFS=$as_save_IFS
9554
9555 fi
9556 fi
9557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9558 if test -n "$ac_ct_RANLIB"; then
9559 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9560 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9561 else
9562 { echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6; }
9564 fi
9565
9566 if test "x$ac_ct_RANLIB" = x; then
9567 RANLIB=":"
9568 else
9569 case $cross_compiling:$ac_tool_warned in
9570 yes:)
9571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9572 whose name does not start with the host triplet. If you think this
9573 configuration is useful to you, please write to autoconf@gnu.org." >&5
9574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9575 whose name does not start with the host triplet. If you think this
9576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9577 ac_tool_warned=yes ;;
9578 esac
9579 RANLIB=$ac_ct_RANLIB
9580 fi
9581 else
9582 RANLIB="$ac_cv_prog_RANLIB"
9583 fi
9584
9585
9586 rm -f os-proto.h
9587 if test "${LBL_CFLAGS+set}" = set; then
9588 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9589 fi
9590 if test -f .devel ; then
9591 if test "$GCC" = yes ; then
9592 if test "${LBL_CFLAGS+set}" != set; then
9593 if test "$ac_cv_prog_cc_g" = yes ; then
9594 V_CCOPT="-g $V_CCOPT"
9595 fi
9596 V_CCOPT="$V_CCOPT -Wall"
9597 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9598 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
9599 fi
9600 fi
9601 else
9602 case "$host_os" in
9603
9604 irix6*)
9605 V_CCOPT="$V_CCOPT -n32"
9606 ;;
9607
9608 *)
9609 ;;
9610 esac
9611 fi
9612 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9613 name="lbl/os-$os.h"
9614 if test -f $name ; then
9615 ln -s $name os-proto.h
9616
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_OS_PROTO_H 1
9619 _ACEOF
9620
9621 else
9622 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9623 echo "$as_me: WARNING: can't find $name" >&2;}
9624 fi
9625 fi
9626
9627 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
9628 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
9629 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638
9639 # include <sys/types.h>
9640 # include <sys/socket.h>
9641 int
9642 main ()
9643 {
9644 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9645 ;
9646 return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext
9650 if { (ac_try="$ac_compile"
9651 case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_compile") 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest.$ac_objext; then
9666 ac_cv_lbl_sockaddr_has_sa_len=yes
9667 else
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 ac_cv_lbl_sockaddr_has_sa_len=no
9672 fi
9673
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 fi
9676
9677 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9678 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
9679 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9680
9681 cat >>confdefs.h <<\_ACEOF
9682 #define HAVE_SOCKADDR_SA_LEN 1
9683 _ACEOF
9684
9685 fi
9686
9687 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
9688 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
9689 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h. */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698
9699 # include <sys/types.h>
9700 # include <sys/socket.h>
9701 int
9702 main ()
9703 {
9704 u_int i = sizeof (struct sockaddr_storage)
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 rm -f conftest.$ac_objext
9710 if { (ac_try="$ac_compile"
9711 case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9714 esac
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_cv_lbl_has_sockaddr_storage=yes
9727 else
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_cv_lbl_has_sockaddr_storage=no
9732 fi
9733
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 fi
9736
9737 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
9738 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
9739 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
9740
9741 cat >>confdefs.h <<\_ACEOF
9742 #define HAVE_SOCKADDR_STORAGE 1
9743 _ACEOF
9744
9745 fi
9746
9747 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
9748 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
9749 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758
9759 # include <sys/types.h>
9760 # include <sys/dlpi.h>
9761 # include <sys/dlpi_ext.h>
9762 int
9763 main ()
9764 {
9765 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (ac_try="$ac_compile"
9772 case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_compile") 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest.$ac_objext; then
9787 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
9793 fi
9794
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 fi
9797
9798 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
9799 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
9800 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
9801
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
9804 _ACEOF
9805
9806 fi
9807
9808 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9809 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
9810 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813 case "$host_cpu" in
9814
9815 #
9816 # These are CPU types where:
9817 #
9818 # the CPU faults on an unaligned access, but at least some
9819 # OSes that support that CPU catch the fault and simulate
9820 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9821 # the simulation is slow, so we don't want to use it;
9822 #
9823 # the CPU, I infer (from the old
9824 #
9825 # XXX: should also check that they don't do weird things (like on arm)
9826 #
9827 # comment) doesn't fault on unaligned accesses, but doesn't
9828 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9829 #
9830 # for whatever reason, the test program doesn't work
9831 # (this has been claimed to be the case for several of those
9832 # CPUs - I don't know what the problem is; the problem
9833 # was reported as "the test program dumps core" for SuperH,
9834 # but that's what the test program is *supposed* to do -
9835 # it dumps core before it writes anything, so the test
9836 # for an empty output file should find an empty output
9837 # file and conclude that unaligned accesses don't work).
9838 #
9839 # This run-time test won't work if you're cross-compiling, so
9840 # in order to support cross-compiling for a particular CPU,
9841 # we have to wire in the list of CPU types anyway, as far as
9842 # I know, so perhaps we should just have a set of CPUs on
9843 # which we know it doesn't work, a set of CPUs on which we
9844 # know it does work, and have the script just fail on other
9845 # cpu types and update it when such a failure occurs.
9846 #
9847 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
9848 ac_cv_lbl_unaligned_fail=yes
9849 ;;
9850
9851 *)
9852 cat >conftest.c <<EOF
9853 # include <sys/types.h>
9854 # include <sys/wait.h>
9855 # include <stdio.h>
9856 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9857 main() {
9858 unsigned int i;
9859 pid_t pid;
9860 int status;
9861 /* avoid "core dumped" message */
9862 pid = fork();
9863 if (pid < 0)
9864 exit(2);
9865 if (pid > 0) {
9866 /* parent */
9867 pid = waitpid(pid, &status, 0);
9868 if (pid < 0)
9869 exit(3);
9870 exit(!WIFEXITED(status));
9871 }
9872 /* child */
9873 i = *(unsigned int *)&a[1];
9874 printf("%d\n", i);
9875 exit(0);
9876 }
9877 EOF
9878 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9879 conftest.c $LIBS >/dev/null 2>&1
9880 if test ! -x conftest ; then
9881 ac_cv_lbl_unaligned_fail=yes
9882 else
9883 ./conftest >conftest.out
9884 if test ! -s conftest.out ; then
9885 ac_cv_lbl_unaligned_fail=yes
9886 else
9887 ac_cv_lbl_unaligned_fail=no
9888 fi
9889 fi
9890 rm -f conftest* core core.conftest
9891 ;;
9892 esac
9893 fi
9894
9895 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9896 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
9897 if test $ac_cv_lbl_unaligned_fail = yes ; then
9898
9899 cat >>confdefs.h <<\_ACEOF
9900 #define LBL_ALIGN 1
9901 _ACEOF
9902
9903 fi
9904
9905 #
9906 # Makefile.in includes rules to generate version.h, so we assume
9907 # that it will be generated if autoconf is used.
9908 #
9909
9910 cat >>confdefs.h <<\_ACEOF
9911 #define HAVE_VERSION_H 1
9912 _ACEOF
9913
9914
9915 rm -f net
9916 ln -s ${srcdir}/bpf/net net
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
9937 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
9938 case "$host_os" in
9939 linux*)
9940
9941 cat >>confdefs.h <<\_ACEOF
9942 #define PCAP_SUPPORT_USB 1
9943 _ACEOF
9944
9945 USB_SRC=pcap-usb-linux.c
9946 { echo "$as_me:$LINENO: result: yes" >&5
9947 echo "${ECHO_T}yes" >&6; }
9948 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9949 if test $? -ne 0 ; then
9950 ac_usb_dev_name="usbmon"
9951 fi
9952
9953 cat >>confdefs.h <<_ACEOF
9954 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
9955 _ACEOF
9956
9957 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
9958 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
9959
9960 for ac_header in linux/usbdevice_fs.h
9961 do
9962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 fi
9969 ac_res=`eval echo '${'$as_ac_Header'}'`
9970 { echo "$as_me:$LINENO: result: $ac_res" >&5
9971 echo "${ECHO_T}$ac_res" >&6; }
9972 else
9973 # Is the header compilable?
9974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 $ac_includes_default
9983 #include <$ac_header>
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (ac_try="$ac_compile"
9987 case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_compile") 2>conftest.er1
9993 ac_status=$?
9994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest.$ac_objext; then
10002 ac_header_compiler=yes
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 ac_header_compiler=no
10008 fi
10009
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10012 echo "${ECHO_T}$ac_header_compiler" >&6; }
10013
10014 # Is the header present?
10015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <$ac_header>
10024 _ACEOF
10025 if { (ac_try="$ac_cpp conftest.$ac_ext"
10026 case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029 esac
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } >/dev/null && {
10038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10039 test ! -s conftest.err
10040 }; then
10041 ac_header_preproc=yes
10042 else
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 ac_header_preproc=no
10047 fi
10048
10049 rm -f conftest.err conftest.$ac_ext
10050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10051 echo "${ECHO_T}$ac_header_preproc" >&6; }
10052
10053 # So? What about this header?
10054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10055 yes:no: )
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10060 ac_header_preproc=yes
10061 ;;
10062 no:yes:* )
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10075
10076 ;;
10077 esac
10078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083 eval "$as_ac_Header=\$ac_header_preproc"
10084 fi
10085 ac_res=`eval echo '${'$as_ac_Header'}'`
10086 { echo "$as_me:$LINENO: result: $ac_res" >&5
10087 echo "${ECHO_T}$ac_res" >&6; }
10088
10089 fi
10090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10093 _ACEOF
10094
10095 fi
10096
10097 done
10098
10099 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10100 #
10101 # OK, does it define bRequestType? Older versions of the kernel
10102 # define fields with names like "requesttype, "request", and
10103 # "value", rather than "bRequestType", "bRequest", and
10104 # "wValue".
10105 #
10106 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10107 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10108 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117
10118 $ac_includes_default
10119 #ifdef HAVE_SYS_BITYPES_H
10120 #include <sys/bitypes.h>
10121 #endif
10122 # include <linux/usbdevice_fs.h>
10123 int
10124 main ()
10125 {
10126 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10127 ;
10128 return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest.$ac_objext
10132 if { (ac_try="$ac_compile"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
10148 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10154 fi
10155
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 fi
10158
10159 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10160 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10161 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10162
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10165 _ACEOF
10166
10167 fi
10168 fi
10169 ;;
10170 *)
10171 { echo "$as_me:$LINENO: result: no" >&5
10172 echo "${ECHO_T}no" >&6; }
10173 ;;
10174 esac
10175
10176
10177
10178 # Check whether --enable-bluetooth was given.
10179 if test "${enable_bluetooth+set}" = set; then
10180 enableval=$enable_bluetooth;
10181 else
10182 enable_bluetooth=yes
10183 fi
10184
10185
10186 if test "x$enable_bluetooth" != "xno" ; then
10187 case "$host_os" in
10188 linux*)
10189 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10190 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10191 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10192 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 fi
10195 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10196 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10197 else
10198 # Is the header compilable?
10199 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10200 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 $ac_includes_default
10208 #include <bluetooth/bluetooth.h>
10209 _ACEOF
10210 rm -f conftest.$ac_objext
10211 if { (ac_try="$ac_compile"
10212 case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_compile") 2>conftest.er1
10218 ac_status=$?
10219 grep -v '^ *+' conftest.er1 >conftest.err
10220 rm -f conftest.er1
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } && {
10224 test -z "$ac_c_werror_flag" ||
10225 test ! -s conftest.err
10226 } && test -s conftest.$ac_objext; then
10227 ac_header_compiler=yes
10228 else
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ac_header_compiler=no
10233 fi
10234
10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10237 echo "${ECHO_T}$ac_header_compiler" >&6; }
10238
10239 # Is the header present?
10240 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10241 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 #include <bluetooth/bluetooth.h>
10249 _ACEOF
10250 if { (ac_try="$ac_cpp conftest.$ac_ext"
10251 case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10257 ac_status=$?
10258 grep -v '^ *+' conftest.er1 >conftest.err
10259 rm -f conftest.er1
10260 cat conftest.err >&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } >/dev/null && {
10263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10264 test ! -s conftest.err
10265 }; then
10266 ac_header_preproc=yes
10267 else
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271 ac_header_preproc=no
10272 fi
10273
10274 rm -f conftest.err conftest.$ac_ext
10275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10276 echo "${ECHO_T}$ac_header_preproc" >&6; }
10277
10278 # So? What about this header?
10279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10280 yes:no: )
10281 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
10282 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
10284 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
10285 ac_header_preproc=yes
10286 ;;
10287 no:yes:* )
10288 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
10289 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
10291 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
10293 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
10295 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
10297 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
10299 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
10300
10301 ;;
10302 esac
10303 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10304 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10305 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
10309 fi
10310 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10311 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10312
10313 fi
10314 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
10315
10316
10317 cat >>confdefs.h <<\_ACEOF
10318 #define PCAP_SUPPORT_BT 1
10319 _ACEOF
10320
10321 BT_SRC=pcap-bt-linux.c
10322 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
10323 echo "$as_me: Bluetooth sniffing is supported" >&6;}
10324
10325 else
10326 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10327 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10328
10329 fi
10330
10331
10332 ;;
10333 *)
10334 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
10335 echo "$as_me: no Bluetooth sniffing support" >&6;}
10336 ;;
10337 esac
10338
10339
10340 fi
10341
10342 # Find a good install program. We prefer a C program (faster),
10343 # so one script is as good as another. But avoid the broken or
10344 # incompatible versions:
10345 # SysV /etc/install, /usr/sbin/install
10346 # SunOS /usr/etc/install
10347 # IRIX /sbin/install
10348 # AIX /bin/install
10349 # AmigaOS /C/install, which installs bootblocks on floppy discs
10350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10353 # OS/2's system install, which has a completely different semantic
10354 # ./install, which can be erroneously created by make from ./install.sh.
10355 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10357 if test -z "$INSTALL"; then
10358 if test "${ac_cv_path_install+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10363 do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 # Account for people who put trailing slashes in PATH elements.
10367 case $as_dir/ in
10368 ./ | .// | /cC/* | \
10369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10370 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10371 /usr/ucb/* ) ;;
10372 *)
10373 # OSF1 and SCO ODT 3.0 have their own names for install.
10374 # Don't use installbsd from OSF since it installs stuff as root
10375 # by default.
10376 for ac_prog in ginstall scoinst install; do
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10379 if test $ac_prog = install &&
10380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10381 # AIX install. It has an incompatible calling convention.
10382 :
10383 elif test $ac_prog = install &&
10384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10385 # program-specific install script used by HP pwplus--don't use.
10386 :
10387 else
10388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10389 break 3
10390 fi
10391 fi
10392 done
10393 done
10394 ;;
10395 esac
10396 done
10397 IFS=$as_save_IFS
10398
10399
10400 fi
10401 if test "${ac_cv_path_install+set}" = set; then
10402 INSTALL=$ac_cv_path_install
10403 else
10404 # As a last resort, use the slow shell script. Don't cache a
10405 # value for INSTALL within a source directory, because that will
10406 # break other packages using the cache if that directory is
10407 # removed, or if the value is a relative name.
10408 INSTALL=$ac_install_sh
10409 fi
10410 fi
10411 { echo "$as_me:$LINENO: result: $INSTALL" >&5
10412 echo "${ECHO_T}$INSTALL" >&6; }
10413
10414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10415 # It thinks the first close brace ends the variable substitution.
10416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10417
10418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10419
10420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10421
10422
10423 ac_config_headers="$ac_config_headers config.h"
10424
10425
10426 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap"
10427
10428 cat >confcache <<\_ACEOF
10429 # This file is a shell script that caches the results of configure
10430 # tests run on this system so they can be shared between configure
10431 # scripts and configure runs, see configure's option --config-cache.
10432 # It is not useful on other systems. If it contains results you don't
10433 # want to keep, you may remove or edit it.
10434 #
10435 # config.status only pays attention to the cache file if you give it
10436 # the --recheck option to rerun configure.
10437 #
10438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10440 # following values.
10441
10442 _ACEOF
10443
10444 # The following way of writing the cache mishandles newlines in values,
10445 # but we know of no workaround that is simple, portable, and efficient.
10446 # So, we kill variables containing newlines.
10447 # Ultrix sh set writes to stderr and can't be redirected directly,
10448 # and sets the high bit in the cache file unless we assign to the vars.
10449 (
10450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10451 eval ac_val=\$$ac_var
10452 case $ac_val in #(
10453 *${as_nl}*)
10454 case $ac_var in #(
10455 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10456 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10457 esac
10458 case $ac_var in #(
10459 _ | IFS | as_nl) ;; #(
10460 *) $as_unset $ac_var ;;
10461 esac ;;
10462 esac
10463 done
10464
10465 (set) 2>&1 |
10466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10467 *${as_nl}ac_space=\ *)
10468 # `set' does not quote correctly, so add quotes (double-quote
10469 # substitution turns \\\\ into \\, and sed turns \\ into \).
10470 sed -n \
10471 "s/'/'\\\\''/g;
10472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10473 ;; #(
10474 *)
10475 # `set' quotes correctly as required by POSIX, so do not add quotes.
10476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10477 ;;
10478 esac |
10479 sort
10480 ) |
10481 sed '
10482 /^ac_cv_env_/b end
10483 t clear
10484 :clear
10485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10486 t end
10487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10488 :end' >>confcache
10489 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10490 if test -w "$cache_file"; then
10491 test "x$cache_file" != "x/dev/null" &&
10492 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10493 echo "$as_me: updating cache $cache_file" >&6;}
10494 cat confcache >$cache_file
10495 else
10496 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10497 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10498 fi
10499 fi
10500 rm -f confcache
10501
10502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10503 # Let make expand exec_prefix.
10504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10505
10506 DEFS=-DHAVE_CONFIG_H
10507
10508 ac_libobjs=
10509 ac_ltlibobjs=
10510 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10511 # 1. Remove the extension, and $U if already installed.
10512 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10513 ac_i=`echo "$ac_i" | sed "$ac_script"`
10514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10515 # will be set to the directory where LIBOBJS objects are built.
10516 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10517 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10518 done
10519 LIBOBJS=$ac_libobjs
10520
10521 LTLIBOBJS=$ac_ltlibobjs
10522
10523
10524
10525 : ${CONFIG_STATUS=./config.status}
10526 ac_clean_files_save=$ac_clean_files
10527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10530 cat >$CONFIG_STATUS <<_ACEOF
10531 #! $SHELL
10532 # Generated by $as_me.
10533 # Run this file to recreate the current configuration.
10534 # Compiler output produced by configure, useful for debugging
10535 # configure, is in config.log if it exists.
10536
10537 debug=false
10538 ac_cs_recheck=false
10539 ac_cs_silent=false
10540 SHELL=\${CONFIG_SHELL-$SHELL}
10541 _ACEOF
10542
10543 cat >>$CONFIG_STATUS <<\_ACEOF
10544 ## --------------------- ##
10545 ## M4sh Initialization. ##
10546 ## --------------------- ##
10547
10548 # Be more Bourne compatible
10549 DUALCASE=1; export DUALCASE # for MKS sh
10550 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10551 emulate sh
10552 NULLCMD=:
10553 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10554 # is contrary to our usage. Disable this feature.
10555 alias -g '${1+"$@"}'='"$@"'
10556 setopt NO_GLOB_SUBST
10557 else
10558 case `(set -o) 2>/dev/null` in
10559 *posix*) set -o posix ;;
10560 esac
10561
10562 fi
10563
10564
10565
10566
10567 # PATH needs CR
10568 # Avoid depending upon Character Ranges.
10569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10572 as_cr_digits='0123456789'
10573 as_cr_alnum=$as_cr_Letters$as_cr_digits
10574
10575 # The user is always right.
10576 if test "${PATH_SEPARATOR+set}" != set; then
10577 echo "#! /bin/sh" >conf$$.sh
10578 echo "exit 0" >>conf$$.sh
10579 chmod +x conf$$.sh
10580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10581 PATH_SEPARATOR=';'
10582 else
10583 PATH_SEPARATOR=:
10584 fi
10585 rm -f conf$$.sh
10586 fi
10587
10588 # Support unset when possible.
10589 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10590 as_unset=unset
10591 else
10592 as_unset=false
10593 fi
10594
10595
10596 # IFS
10597 # We need space, tab and new line, in precisely that order. Quoting is
10598 # there to prevent editors from complaining about space-tab.
10599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10600 # splitting by setting IFS to empty value.)
10601 as_nl='
10602 '
10603 IFS=" "" $as_nl"
10604
10605 # Find who we are. Look in the path if we contain no directory separator.
10606 case $0 in
10607 *[\\/]* ) as_myself=$0 ;;
10608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10614 done
10615 IFS=$as_save_IFS
10616
10617 ;;
10618 esac
10619 # We did not find ourselves, most probably we were run as `sh COMMAND'
10620 # in which case we are not to be found in the path.
10621 if test "x$as_myself" = x; then
10622 as_myself=$0
10623 fi
10624 if test ! -f "$as_myself"; then
10625 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10626 { (exit 1); exit 1; }
10627 fi
10628
10629 # Work around bugs in pre-3.0 UWIN ksh.
10630 for as_var in ENV MAIL MAILPATH
10631 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10632 done
10633 PS1='$ '
10634 PS2='> '
10635 PS4='+ '
10636
10637 # NLS nuisances.
10638 for as_var in \
10639 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10640 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10641 LC_TELEPHONE LC_TIME
10642 do
10643 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10644 eval $as_var=C; export $as_var
10645 else
10646 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10647 fi
10648 done
10649
10650 # Required to use basename.
10651 if expr a : '\(a\)' >/dev/null 2>&1 &&
10652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10653 as_expr=expr
10654 else
10655 as_expr=false
10656 fi
10657
10658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10659 as_basename=basename
10660 else
10661 as_basename=false
10662 fi
10663
10664
10665 # Name of the executable.
10666 as_me=`$as_basename -- "$0" ||
10667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10668 X"$0" : 'X\(//\)$' \| \
10669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10670 echo X/"$0" |
10671 sed '/^.*\/\([^/][^/]*\)\/*$/{
10672 s//\1/
10673 q
10674 }
10675 /^X\/\(\/\/\)$/{
10676 s//\1/
10677 q
10678 }
10679 /^X\/\(\/\).*/{
10680 s//\1/
10681 q
10682 }
10683 s/.*/./; q'`
10684
10685 # CDPATH.
10686 $as_unset CDPATH
10687
10688
10689
10690 as_lineno_1=$LINENO
10691 as_lineno_2=$LINENO
10692 test "x$as_lineno_1" != "x$as_lineno_2" &&
10693 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10694
10695 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10696 # uniformly replaced by the line number. The first 'sed' inserts a
10697 # line-number line after each line using $LINENO; the second 'sed'
10698 # does the real work. The second script uses 'N' to pair each
10699 # line-number line with the line containing $LINENO, and appends
10700 # trailing '-' during substitution so that $LINENO is not a special
10701 # case at line end.
10702 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10703 # scripts with optimization help from Paolo Bonzini. Blame Lee
10704 # E. McMahon (1931-1989) for sed's syntax. :-)
10705 sed -n '
10706 p
10707 /[$]LINENO/=
10708 ' <$as_myself |
10709 sed '
10710 s/[$]LINENO.*/&-/
10711 t lineno
10712 b
10713 :lineno
10714 N
10715 :loop
10716 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10717 t loop
10718 s/-\n.*//
10719 ' >$as_me.lineno &&
10720 chmod +x "$as_me.lineno" ||
10721 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10722 { (exit 1); exit 1; }; }
10723
10724 # Don't try to exec as it changes $[0], causing all sort of problems
10725 # (the dirname of $[0] is not the place where we might find the
10726 # original and so on. Autoconf is especially sensitive to this).
10727 . "./$as_me.lineno"
10728 # Exit status is that of the last command.
10729 exit
10730 }
10731
10732
10733 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10734 as_dirname=dirname
10735 else
10736 as_dirname=false
10737 fi
10738
10739 ECHO_C= ECHO_N= ECHO_T=
10740 case `echo -n x` in
10741 -n*)
10742 case `echo 'x\c'` in
10743 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10744 *) ECHO_C='\c';;
10745 esac;;
10746 *)
10747 ECHO_N='-n';;
10748 esac
10749
10750 if expr a : '\(a\)' >/dev/null 2>&1 &&
10751 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10752 as_expr=expr
10753 else
10754 as_expr=false
10755 fi
10756
10757 rm -f conf$$ conf$$.exe conf$$.file
10758 if test -d conf$$.dir; then
10759 rm -f conf$$.dir/conf$$.file
10760 else
10761 rm -f conf$$.dir
10762 mkdir conf$$.dir
10763 fi
10764 echo >conf$$.file
10765 if ln -s conf$$.file conf$$ 2>/dev/null; then
10766 as_ln_s='ln -s'
10767 # ... but there are two gotchas:
10768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10770 # In both cases, we have to default to `cp -p'.
10771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10772 as_ln_s='cp -p'
10773 elif ln conf$$.file conf$$ 2>/dev/null; then
10774 as_ln_s=ln
10775 else
10776 as_ln_s='cp -p'
10777 fi
10778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10779 rmdir conf$$.dir 2>/dev/null
10780
10781 if mkdir -p . 2>/dev/null; then
10782 as_mkdir_p=:
10783 else
10784 test -d ./-p && rmdir ./-p
10785 as_mkdir_p=false
10786 fi
10787
10788 if test -x / >/dev/null 2>&1; then
10789 as_test_x='test -x'
10790 else
10791 if ls -dL / >/dev/null 2>&1; then
10792 as_ls_L_option=L
10793 else
10794 as_ls_L_option=
10795 fi
10796 as_test_x='
10797 eval sh -c '\''
10798 if test -d "$1"; then
10799 test -d "$1/.";
10800 else
10801 case $1 in
10802 -*)set "./$1";;
10803 esac;
10804 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10805 ???[sx]*):;;*)false;;esac;fi
10806 '\'' sh
10807 '
10808 fi
10809 as_executable_p=$as_test_x
10810
10811 # Sed expression to map a string onto a valid CPP name.
10812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10813
10814 # Sed expression to map a string onto a valid variable name.
10815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10816
10817
10818 exec 6>&1
10819
10820 # Save the log message, to keep $[0] and so on meaningful, and to
10821 # report actual input values of CONFIG_FILES etc. instead of their
10822 # values after options handling.
10823 ac_log="
10824 This file was extended by $as_me, which was
10825 generated by GNU Autoconf 2.61. Invocation command line was
10826
10827 CONFIG_FILES = $CONFIG_FILES
10828 CONFIG_HEADERS = $CONFIG_HEADERS
10829 CONFIG_LINKS = $CONFIG_LINKS
10830 CONFIG_COMMANDS = $CONFIG_COMMANDS
10831 $ $0 $@
10832
10833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10834 "
10835
10836 _ACEOF
10837
10838 cat >>$CONFIG_STATUS <<_ACEOF
10839 # Files that config.status was made for.
10840 config_files="$ac_config_files"
10841 config_headers="$ac_config_headers"
10842
10843 _ACEOF
10844
10845 cat >>$CONFIG_STATUS <<\_ACEOF
10846 ac_cs_usage="\
10847 \`$as_me' instantiates files from templates according to the
10848 current configuration.
10849
10850 Usage: $0 [OPTIONS] [FILE]...
10851
10852 -h, --help print this help, then exit
10853 -V, --version print version number and configuration settings, then exit
10854 -q, --quiet do not print progress messages
10855 -d, --debug don't remove temporary files
10856 --recheck update $as_me by reconfiguring in the same conditions
10857 --file=FILE[:TEMPLATE]
10858 instantiate the configuration file FILE
10859 --header=FILE[:TEMPLATE]
10860 instantiate the configuration header FILE
10861
10862 Configuration files:
10863 $config_files
10864
10865 Configuration headers:
10866 $config_headers
10867
10868 Report bugs to <bug-autoconf@gnu.org>."
10869
10870 _ACEOF
10871 cat >>$CONFIG_STATUS <<_ACEOF
10872 ac_cs_version="\\
10873 config.status
10874 configured by $0, generated by GNU Autoconf 2.61,
10875 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10876
10877 Copyright (C) 2006 Free Software Foundation, Inc.
10878 This config.status script is free software; the Free Software Foundation
10879 gives unlimited permission to copy, distribute and modify it."
10880
10881 ac_pwd='$ac_pwd'
10882 srcdir='$srcdir'
10883 INSTALL='$INSTALL'
10884 _ACEOF
10885
10886 cat >>$CONFIG_STATUS <<\_ACEOF
10887 # If no file are specified by the user, then we need to provide default
10888 # value. By we need to know if files were specified by the user.
10889 ac_need_defaults=:
10890 while test $# != 0
10891 do
10892 case $1 in
10893 --*=*)
10894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10896 ac_shift=:
10897 ;;
10898 *)
10899 ac_option=$1
10900 ac_optarg=$2
10901 ac_shift=shift
10902 ;;
10903 esac
10904
10905 case $ac_option in
10906 # Handling of the options.
10907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10908 ac_cs_recheck=: ;;
10909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10910 echo "$ac_cs_version"; exit ;;
10911 --debug | --debu | --deb | --de | --d | -d )
10912 debug=: ;;
10913 --file | --fil | --fi | --f )
10914 $ac_shift
10915 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10916 ac_need_defaults=false;;
10917 --header | --heade | --head | --hea )
10918 $ac_shift
10919 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10920 ac_need_defaults=false;;
10921 --he | --h)
10922 # Conflict between --help and --header
10923 { echo "$as_me: error: ambiguous option: $1
10924 Try \`$0 --help' for more information." >&2
10925 { (exit 1); exit 1; }; };;
10926 --help | --hel | -h )
10927 echo "$ac_cs_usage"; exit ;;
10928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10929 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10930 ac_cs_silent=: ;;
10931
10932 # This is an error.
10933 -*) { echo "$as_me: error: unrecognized option: $1
10934 Try \`$0 --help' for more information." >&2
10935 { (exit 1); exit 1; }; } ;;
10936
10937 *) ac_config_targets="$ac_config_targets $1"
10938 ac_need_defaults=false ;;
10939
10940 esac
10941 shift
10942 done
10943
10944 ac_configure_extra_args=
10945
10946 if $ac_cs_silent; then
10947 exec 6>/dev/null
10948 ac_configure_extra_args="$ac_configure_extra_args --silent"
10949 fi
10950
10951 _ACEOF
10952 cat >>$CONFIG_STATUS <<_ACEOF
10953 if \$ac_cs_recheck; then
10954 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10955 CONFIG_SHELL=$SHELL
10956 export CONFIG_SHELL
10957 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10958 fi
10959
10960 _ACEOF
10961 cat >>$CONFIG_STATUS <<\_ACEOF
10962 exec 5>>config.log
10963 {
10964 echo
10965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10966 ## Running $as_me. ##
10967 _ASBOX
10968 echo "$ac_log"
10969 } >&5
10970
10971 _ACEOF
10972 cat >>$CONFIG_STATUS <<_ACEOF
10973 _ACEOF
10974
10975 cat >>$CONFIG_STATUS <<\_ACEOF
10976
10977 # Handling of arguments.
10978 for ac_config_target in $ac_config_targets
10979 do
10980 case $ac_config_target in
10981 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10982 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10983 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
10984 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
10985 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
10986 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
10987 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
10988 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
10989 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
10990 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
10991 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
10992 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
10993
10994 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10995 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10996 { (exit 1); exit 1; }; };;
10997 esac
10998 done
10999
11000
11001 # If the user did not use the arguments to specify the items to instantiate,
11002 # then the envvar interface is used. Set only those that are not.
11003 # We use the long form for the default assignment because of an extremely
11004 # bizarre bug on SunOS 4.1.3.
11005 if $ac_need_defaults; then
11006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11008 fi
11009
11010 # Have a temporary directory for convenience. Make it in the build tree
11011 # simply because there is no reason against having it here, and in addition,
11012 # creating and moving files from /tmp can sometimes cause problems.
11013 # Hook for its removal unless debugging.
11014 # Note that there is a small window in which the directory will not be cleaned:
11015 # after its creation but before its name has been assigned to `$tmp'.
11016 $debug ||
11017 {
11018 tmp=
11019 trap 'exit_status=$?
11020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11021 ' 0
11022 trap '{ (exit 1); exit 1; }' 1 2 13 15
11023 }
11024 # Create a (secure) tmp directory for tmp files.
11025
11026 {
11027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11028 test -n "$tmp" && test -d "$tmp"
11029 } ||
11030 {
11031 tmp=./conf$$-$RANDOM
11032 (umask 077 && mkdir "$tmp")
11033 } ||
11034 {
11035 echo "$me: cannot create a temporary directory in ." >&2
11036 { (exit 1); exit 1; }
11037 }
11038
11039 #
11040 # Set up the sed scripts for CONFIG_FILES section.
11041 #
11042
11043 # No need to generate the scripts if there are no CONFIG_FILES.
11044 # This happens for instance when ./config.status config.h
11045 if test -n "$CONFIG_FILES"; then
11046
11047 _ACEOF
11048
11049
11050
11051 ac_delim='%!_!# '
11052 for ac_last_try in false false false false false :; do
11053 cat >conf$$subs.sed <<_ACEOF
11054 SHELL!$SHELL$ac_delim
11055 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11056 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11057 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11058 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11059 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11060 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11061 exec_prefix!$exec_prefix$ac_delim
11062 prefix!$prefix$ac_delim
11063 program_transform_name!$program_transform_name$ac_delim
11064 bindir!$bindir$ac_delim
11065 sbindir!$sbindir$ac_delim
11066 libexecdir!$libexecdir$ac_delim
11067 datarootdir!$datarootdir$ac_delim
11068 datadir!$datadir$ac_delim
11069 sysconfdir!$sysconfdir$ac_delim
11070 sharedstatedir!$sharedstatedir$ac_delim
11071 localstatedir!$localstatedir$ac_delim
11072 includedir!$includedir$ac_delim
11073 oldincludedir!$oldincludedir$ac_delim
11074 docdir!$docdir$ac_delim
11075 infodir!$infodir$ac_delim
11076 htmldir!$htmldir$ac_delim
11077 dvidir!$dvidir$ac_delim
11078 pdfdir!$pdfdir$ac_delim
11079 psdir!$psdir$ac_delim
11080 libdir!$libdir$ac_delim
11081 localedir!$localedir$ac_delim
11082 mandir!$mandir$ac_delim
11083 DEFS!$DEFS$ac_delim
11084 ECHO_C!$ECHO_C$ac_delim
11085 ECHO_N!$ECHO_N$ac_delim
11086 ECHO_T!$ECHO_T$ac_delim
11087 LIBS!$LIBS$ac_delim
11088 build_alias!$build_alias$ac_delim
11089 host_alias!$host_alias$ac_delim
11090 target_alias!$target_alias$ac_delim
11091 build!$build$ac_delim
11092 build_cpu!$build_cpu$ac_delim
11093 build_vendor!$build_vendor$ac_delim
11094 build_os!$build_os$ac_delim
11095 host!$host$ac_delim
11096 host_cpu!$host_cpu$ac_delim
11097 host_vendor!$host_vendor$ac_delim
11098 host_os!$host_os$ac_delim
11099 target!$target$ac_delim
11100 target_cpu!$target_cpu$ac_delim
11101 target_vendor!$target_vendor$ac_delim
11102 target_os!$target_os$ac_delim
11103 SHLICC2!$SHLICC2$ac_delim
11104 CC!$CC$ac_delim
11105 CFLAGS!$CFLAGS$ac_delim
11106 LDFLAGS!$LDFLAGS$ac_delim
11107 CPPFLAGS!$CPPFLAGS$ac_delim
11108 ac_ct_CC!$ac_ct_CC$ac_delim
11109 EXEEXT!$EXEEXT$ac_delim
11110 OBJEXT!$OBJEXT$ac_delim
11111 CPP!$CPP$ac_delim
11112 GREP!$GREP$ac_delim
11113 EGREP!$EGREP$ac_delim
11114 LIBOBJS!$LIBOBJS$ac_delim
11115 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
11116 V_LEX!$V_LEX$ac_delim
11117 V_YACC!$V_YACC$ac_delim
11118 RANLIB!$RANLIB$ac_delim
11119 V_CCOPT!$V_CCOPT$ac_delim
11120 V_DEFS!$V_DEFS$ac_delim
11121 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
11122 V_INCLS!$V_INCLS$ac_delim
11123 V_PCAP!$V_PCAP$ac_delim
11124 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
11125 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
11126 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
11127 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
11128 ADDLOBJS!$ADDLOBJS$ac_delim
11129 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
11130 SSRC!$SSRC$ac_delim
11131 DYEXT!$DYEXT$ac_delim
11132 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
11133 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
11134 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
11135 USB_SRC!$USB_SRC$ac_delim
11136 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
11137 BT_SRC!$BT_SRC$ac_delim
11138 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11139 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11140 INSTALL_DATA!$INSTALL_DATA$ac_delim
11141 LTLIBOBJS!$LTLIBOBJS$ac_delim
11142 _ACEOF
11143
11144 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
11145 break
11146 elif $ac_last_try; then
11147 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11148 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11149 { (exit 1); exit 1; }; }
11150 else
11151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11152 fi
11153 done
11154
11155 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11156 if test -n "$ac_eof"; then
11157 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11158 ac_eof=`expr $ac_eof + 1`
11159 fi
11160
11161 cat >>$CONFIG_STATUS <<_ACEOF
11162 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11164 _ACEOF
11165 sed '
11166 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11167 s/^/s,@/; s/!/@,|#_!!_#|/
11168 :n
11169 t n
11170 s/'"$ac_delim"'$/,g/; t
11171 s/$/\\/; p
11172 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11173 ' >>$CONFIG_STATUS <conf$$subs.sed
11174 rm -f conf$$subs.sed
11175 cat >>$CONFIG_STATUS <<_ACEOF
11176 :end
11177 s/|#_!!_#|//g
11178 CEOF$ac_eof
11179 _ACEOF
11180
11181
11182 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11183 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11184 # trailing colons and then remove the whole line if VPATH becomes empty
11185 # (actually we leave an empty line to preserve line numbers).
11186 if test "x$srcdir" = x.; then
11187 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11188 s/:*\$(srcdir):*/:/
11189 s/:*\${srcdir}:*/:/
11190 s/:*@srcdir@:*/:/
11191 s/^\([^=]*=[ ]*\):*/\1/
11192 s/:*$//
11193 s/^[^=]*=[ ]*$//
11194 }'
11195 fi
11196
11197 cat >>$CONFIG_STATUS <<\_ACEOF
11198 fi # test -n "$CONFIG_FILES"
11199
11200
11201 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11202 do
11203 case $ac_tag in
11204 :[FHLC]) ac_mode=$ac_tag; continue;;
11205 esac
11206 case $ac_mode$ac_tag in
11207 :[FHL]*:*);;
11208 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11209 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11210 { (exit 1); exit 1; }; };;
11211 :[FH]-) ac_tag=-:-;;
11212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11213 esac
11214 ac_save_IFS=$IFS
11215 IFS=:
11216 set x $ac_tag
11217 IFS=$ac_save_IFS
11218 shift
11219 ac_file=$1
11220 shift
11221
11222 case $ac_mode in
11223 :L) ac_source=$1;;
11224 :[FH])
11225 ac_file_inputs=
11226 for ac_f
11227 do
11228 case $ac_f in
11229 -) ac_f="$tmp/stdin";;
11230 *) # Look for the file first in the build tree, then in the source tree
11231 # (if the path is not absolute). The absolute path cannot be DOS-style,
11232 # because $ac_f cannot contain `:'.
11233 test -f "$ac_f" ||
11234 case $ac_f in
11235 [\\/$]*) false;;
11236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11237 esac ||
11238 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11239 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11240 { (exit 1); exit 1; }; };;
11241 esac
11242 ac_file_inputs="$ac_file_inputs $ac_f"
11243 done
11244
11245 # Let's still pretend it is `configure' which instantiates (i.e., don't
11246 # use $as_me), people would be surprised to read:
11247 # /* config.h. Generated by config.status. */
11248 configure_input="Generated from "`IFS=:
11249 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11250 if test x"$ac_file" != x-; then
11251 configure_input="$ac_file. $configure_input"
11252 { echo "$as_me:$LINENO: creating $ac_file" >&5
11253 echo "$as_me: creating $ac_file" >&6;}
11254 fi
11255
11256 case $ac_tag in
11257 *:-:* | *:-) cat >"$tmp/stdin";;
11258 esac
11259 ;;
11260 esac
11261
11262 ac_dir=`$as_dirname -- "$ac_file" ||
11263 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11264 X"$ac_file" : 'X\(//\)[^/]' \| \
11265 X"$ac_file" : 'X\(//\)$' \| \
11266 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11267 echo X"$ac_file" |
11268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11269 s//\1/
11270 q
11271 }
11272 /^X\(\/\/\)[^/].*/{
11273 s//\1/
11274 q
11275 }
11276 /^X\(\/\/\)$/{
11277 s//\1/
11278 q
11279 }
11280 /^X\(\/\).*/{
11281 s//\1/
11282 q
11283 }
11284 s/.*/./; q'`
11285 { as_dir="$ac_dir"
11286 case $as_dir in #(
11287 -*) as_dir=./$as_dir;;
11288 esac
11289 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11290 as_dirs=
11291 while :; do
11292 case $as_dir in #(
11293 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11294 *) as_qdir=$as_dir;;
11295 esac
11296 as_dirs="'$as_qdir' $as_dirs"
11297 as_dir=`$as_dirname -- "$as_dir" ||
11298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11299 X"$as_dir" : 'X\(//\)[^/]' \| \
11300 X"$as_dir" : 'X\(//\)$' \| \
11301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11302 echo X"$as_dir" |
11303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11304 s//\1/
11305 q
11306 }
11307 /^X\(\/\/\)[^/].*/{
11308 s//\1/
11309 q
11310 }
11311 /^X\(\/\/\)$/{
11312 s//\1/
11313 q
11314 }
11315 /^X\(\/\).*/{
11316 s//\1/
11317 q
11318 }
11319 s/.*/./; q'`
11320 test -d "$as_dir" && break
11321 done
11322 test -z "$as_dirs" || eval "mkdir $as_dirs"
11323 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11324 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11325 { (exit 1); exit 1; }; }; }
11326 ac_builddir=.
11327
11328 case "$ac_dir" in
11329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11330 *)
11331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11332 # A ".." for each directory in $ac_dir_suffix.
11333 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11334 case $ac_top_builddir_sub in
11335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11337 esac ;;
11338 esac
11339 ac_abs_top_builddir=$ac_pwd
11340 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11341 # for backward compatibility:
11342 ac_top_builddir=$ac_top_build_prefix
11343
11344 case $srcdir in
11345 .) # We are building in place.
11346 ac_srcdir=.
11347 ac_top_srcdir=$ac_top_builddir_sub
11348 ac_abs_top_srcdir=$ac_pwd ;;
11349 [\\/]* | ?:[\\/]* ) # Absolute name.
11350 ac_srcdir=$srcdir$ac_dir_suffix;
11351 ac_top_srcdir=$srcdir
11352 ac_abs_top_srcdir=$srcdir ;;
11353 *) # Relative name.
11354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11355 ac_top_srcdir=$ac_top_build_prefix$srcdir
11356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11357 esac
11358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11359
11360
11361 case $ac_mode in
11362 :F)
11363 #
11364 # CONFIG_FILE
11365 #
11366
11367 case $INSTALL in
11368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11370 esac
11371 _ACEOF
11372
11373 cat >>$CONFIG_STATUS <<\_ACEOF
11374 # If the template does not know about datarootdir, expand it.
11375 # FIXME: This hack should be removed a few years after 2.60.
11376 ac_datarootdir_hack=; ac_datarootdir_seen=
11377
11378 case `sed -n '/datarootdir/ {
11379 p
11380 q
11381 }
11382 /@datadir@/p
11383 /@docdir@/p
11384 /@infodir@/p
11385 /@localedir@/p
11386 /@mandir@/p
11387 ' $ac_file_inputs` in
11388 *datarootdir*) ac_datarootdir_seen=yes;;
11389 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11390 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11391 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11392 _ACEOF
11393 cat >>$CONFIG_STATUS <<_ACEOF
11394 ac_datarootdir_hack='
11395 s&@datadir@&$datadir&g
11396 s&@docdir@&$docdir&g
11397 s&@infodir@&$infodir&g
11398 s&@localedir@&$localedir&g
11399 s&@mandir@&$mandir&g
11400 s&\\\${datarootdir}&$datarootdir&g' ;;
11401 esac
11402 _ACEOF
11403
11404 # Neutralize VPATH when `$srcdir' = `.'.
11405 # Shell code in configure.ac might set extrasub.
11406 # FIXME: do we really want to maintain this feature?
11407 cat >>$CONFIG_STATUS <<_ACEOF
11408 sed "$ac_vpsub
11409 $extrasub
11410 _ACEOF
11411 cat >>$CONFIG_STATUS <<\_ACEOF
11412 :t
11413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11414 s&@configure_input@&$configure_input&;t t
11415 s&@top_builddir@&$ac_top_builddir_sub&;t t
11416 s&@srcdir@&$ac_srcdir&;t t
11417 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11418 s&@top_srcdir@&$ac_top_srcdir&;t t
11419 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11420 s&@builddir@&$ac_builddir&;t t
11421 s&@abs_builddir@&$ac_abs_builddir&;t t
11422 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11423 s&@INSTALL@&$ac_INSTALL&;t t
11424 $ac_datarootdir_hack
11425 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
11426
11427 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11428 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11429 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11430 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11431 which seems to be undefined. Please make sure it is defined." >&5
11432 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11433 which seems to be undefined. Please make sure it is defined." >&2;}
11434
11435 rm -f "$tmp/stdin"
11436 case $ac_file in
11437 -) cat "$tmp/out"; rm -f "$tmp/out";;
11438 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11439 esac
11440 ;;
11441 :H)
11442 #
11443 # CONFIG_HEADER
11444 #
11445 _ACEOF
11446
11447 # Transform confdefs.h into a sed script `conftest.defines', that
11448 # substitutes the proper values into config.h.in to produce config.h.
11449 rm -f conftest.defines conftest.tail
11450 # First, append a space to every undef/define line, to ease matching.
11451 echo 's/$/ /' >conftest.defines
11452 # Then, protect against being on the right side of a sed subst, or in
11453 # an unquoted here document, in config.status. If some macros were
11454 # called several times there might be several #defines for the same
11455 # symbol, which is useless. But do not sort them, since the last
11456 # AC_DEFINE must be honored.
11457 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11458 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11459 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11460 # PARAMS is the parameter list in the macro definition--in most cases, it's
11461 # just an empty string.
11462 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11463 ac_dB='\\)[ (].*,\\1define\\2'
11464 ac_dC=' '
11465 ac_dD=' ,'
11466
11467 uniq confdefs.h |
11468 sed -n '
11469 t rset
11470 :rset
11471 s/^[ ]*#[ ]*define[ ][ ]*//
11472 t ok
11473 d
11474 :ok
11475 s/[\\&,]/\\&/g
11476 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11477 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11478 ' >>conftest.defines
11479
11480 # Remove the space that was appended to ease matching.
11481 # Then replace #undef with comments. This is necessary, for
11482 # example, in the case of _POSIX_SOURCE, which is predefined and required
11483 # on some systems where configure will not decide to define it.
11484 # (The regexp can be short, since the line contains either #define or #undef.)
11485 echo 's/ $//
11486 s,^[ #]*u.*,/* & */,' >>conftest.defines
11487
11488 # Break up conftest.defines:
11489 ac_max_sed_lines=50
11490
11491 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11492 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11493 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11494 # et cetera.
11495 ac_in='$ac_file_inputs'
11496 ac_out='"$tmp/out1"'
11497 ac_nxt='"$tmp/out2"'
11498
11499 while :
11500 do
11501 # Write a here document:
11502 cat >>$CONFIG_STATUS <<_ACEOF
11503 # First, check the format of the line:
11504 cat >"\$tmp/defines.sed" <<\\CEOF
11505 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11506 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11507 b
11508 :def
11509 _ACEOF
11510 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11511 echo 'CEOF
11512 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11513 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11514 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11515 grep . conftest.tail >/dev/null || break
11516 rm -f conftest.defines
11517 mv conftest.tail conftest.defines
11518 done
11519 rm -f conftest.defines conftest.tail
11520
11521 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11522 cat >>$CONFIG_STATUS <<\_ACEOF
11523 if test x"$ac_file" != x-; then
11524 echo "/* $configure_input */" >"$tmp/config.h"
11525 cat "$ac_result" >>"$tmp/config.h"
11526 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11527 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11528 echo "$as_me: $ac_file is unchanged" >&6;}
11529 else
11530 rm -f $ac_file
11531 mv "$tmp/config.h" $ac_file
11532 fi
11533 else
11534 echo "/* $configure_input */"
11535 cat "$ac_result"
11536 fi
11537 rm -f "$tmp/out12"
11538 ;;
11539
11540
11541 esac
11542
11543 done # for ac_tag
11544
11545
11546 { (exit 0); exit 0; }
11547 _ACEOF
11548 chmod +x $CONFIG_STATUS
11549 ac_clean_files=$ac_clean_files_save
11550
11551
11552 # configure is writing to config.log, and then calls config.status.
11553 # config.status does its own redirection, appending to config.log.
11554 # Unfortunately, on DOS this fails, as config.log is still kept open
11555 # by configure, so config.status won't be able to write to it; its
11556 # output is simply discarded. So we exec the FD to /dev/null,
11557 # effectively closing config.log, so it can be properly (re)opened and
11558 # appended to by config.status. When coming back to configure, we
11559 # need to make the FD available again.
11560 if test "$no_create" != yes; then
11561 ac_cs_success=:
11562 ac_config_status_args=
11563 test "$silent" = yes &&
11564 ac_config_status_args="$ac_config_status_args --quiet"
11565 exec 5>/dev/null
11566 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11567 exec 5>>config.log
11568 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11569 # would make configure fail if this is the last instruction.
11570 $ac_cs_success || { (exit 1); exit 1; }
11571 fi
11572
11573
11574 if test -f .devel ; then
11575 make depend
11576 fi
11577 exit 0