]> The Tcpdump Group git mirrors - libpcap/blob - configure
Add support for setting the time stamp type for a capture.
[libpcap] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.168 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="pcap.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 SHLICC2
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LIBOBJS
678 HAVE_LINUX_TPACKET_AUXDATA
679 V_LEX
680 V_YACC
681 RANLIB
682 AR
683 V_CCOPT
684 V_DEFS
685 V_FINDALLDEVS
686 V_INCLS
687 V_PCAP
688 V_SHLIB_CMD
689 V_SHLIB_OPT
690 V_SONAME_OPT
691 V_RPATH_OPT
692 ADDLOBJS
693 ADDLARCHIVEOBJS
694 SSRC
695 DYEXT
696 MAN_FILE_FORMATS
697 MAN_MISC_INFO
698 PCAP_SUPPORT_USB
699 USB_SRC
700 PCAP_SUPPORT_BT
701 BT_SRC
702 PCAP_SUPPORT_CAN
703 CAN_SRC
704 INSTALL_PROGRAM
705 INSTALL_SCRIPT
706 INSTALL_DATA
707 LTLIBOBJS'
708 ac_subst_files=''
709 ac_precious_vars='build_alias
710 host_alias
711 target_alias
712 CC
713 CFLAGS
714 LDFLAGS
715 LIBS
716 CPPFLAGS
717 CPP'
718
719
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
739
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
765
766 ac_prev=
767 ac_dashdash=
768 for ac_option
769 do
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
775 fi
776
777 case $ac_option in
778 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *) ac_optarg=yes ;;
780 esac
781
782 # Accept the important Cygnus configure options, so we can diagnose typos.
783
784 case $ac_dashdash$ac_option in
785 --)
786 ac_dashdash=yes ;;
787
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
792
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
797
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
804
805 --config-cache | -C)
806 cache_file=config.cache ;;
807
808 -datadir | --datadir | --datadi | --datad)
809 ac_prev=datadir ;;
810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
811 datadir=$ac_optarg ;;
812
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
819
820 -disable-* | --disable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=no ;;
828
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
833
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
838
839 -enable-* | --enable-*)
840 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_$ac_feature=\$ac_optarg ;;
847
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev=exec_prefix ;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
855 exec_prefix=$ac_optarg ;;
856
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
859 with_gas=yes ;;
860
861 -help | --help | --hel | --he | -h)
862 ac_init_help=long ;;
863 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864 ac_init_help=recursive ;;
865 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866 ac_init_help=short ;;
867
868 -host | --host | --hos | --ho)
869 ac_prev=host_alias ;;
870 -host=* | --host=* | --hos=* | --ho=*)
871 host_alias=$ac_optarg ;;
872
873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 ac_prev=htmldir ;;
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 | --ht=*)
877 htmldir=$ac_optarg ;;
878
879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev=includedir ;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
884 includedir=$ac_optarg ;;
885
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 ac_prev=infodir ;;
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889 infodir=$ac_optarg ;;
890
891 -libdir | --libdir | --libdi | --libd)
892 ac_prev=libdir ;;
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
894 libdir=$ac_optarg ;;
895
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev=libexecdir ;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
901 libexecdir=$ac_optarg ;;
902
903 -localedir | --localedir | --localedi | --localed | --locale)
904 ac_prev=localedir ;;
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir=$ac_optarg ;;
907
908 -localstatedir | --localstatedir | --localstatedi | --localstated \
909 | --localstate | --localstat | --localsta | --localst | --locals)
910 ac_prev=localstatedir ;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
913 localstatedir=$ac_optarg ;;
914
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 ac_prev=mandir ;;
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918 mandir=$ac_optarg ;;
919
920 -nfp | --nfp | --nf)
921 # Obsolete; use --without-fp.
922 with_fp=no ;;
923
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c | -n)
926 no_create=yes ;;
927
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930 no_recursion=yes ;;
931
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev=oldincludedir ;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939 oldincludedir=$ac_optarg ;;
940
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 ac_prev=prefix ;;
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944 prefix=$ac_optarg ;;
945
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev=program_prefix ;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951 program_prefix=$ac_optarg ;;
952
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev=program_suffix ;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958 program_suffix=$ac_optarg ;;
959
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev=program_transform_name ;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
975 program_transform_name=$ac_optarg ;;
976
977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 ac_prev=pdfdir ;;
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980 pdfdir=$ac_optarg ;;
981
982 -psdir | --psdir | --psdi | --psd | --ps)
983 ac_prev=psdir ;;
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985 psdir=$ac_optarg ;;
986
987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
989 silent=yes ;;
990
991 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 ac_prev=sbindir ;;
993 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 | --sbi=* | --sb=*)
995 sbindir=$ac_optarg ;;
996
997 -sharedstatedir | --sharedstatedir | --sharedstatedi \
998 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999 | --sharedst | --shareds | --shared | --share | --shar \
1000 | --sha | --sh)
1001 ac_prev=sharedstatedir ;;
1002 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 | --sha=* | --sh=*)
1006 sharedstatedir=$ac_optarg ;;
1007
1008 -site | --site | --sit)
1009 ac_prev=site ;;
1010 -site=* | --site=* | --sit=*)
1011 site=$ac_optarg ;;
1012
1013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 ac_prev=srcdir ;;
1015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1016 srcdir=$ac_optarg ;;
1017
1018 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019 | --syscon | --sysco | --sysc | --sys | --sy)
1020 ac_prev=sysconfdir ;;
1021 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1023 sysconfdir=$ac_optarg ;;
1024
1025 -target | --target | --targe | --targ | --tar | --ta | --t)
1026 ac_prev=target_alias ;;
1027 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1028 target_alias=$ac_optarg ;;
1029
1030 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031 verbose=yes ;;
1032
1033 -version | --version | --versio | --versi | --vers | -V)
1034 ac_init_version=: ;;
1035
1036 -with-* | --with-*)
1037 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_$ac_package=\$ac_optarg ;;
1044
1045 -without-* | --without-*)
1046 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_$ac_package=no ;;
1053
1054 --x)
1055 # Obsolete; use --with-x.
1056 with_x=yes ;;
1057
1058 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059 | --x-incl | --x-inc | --x-in | --x-i)
1060 ac_prev=x_includes ;;
1061 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1063 x_includes=$ac_optarg ;;
1064
1065 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067 ac_prev=x_libraries ;;
1068 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1070 x_libraries=$ac_optarg ;;
1071
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1075 ;;
1076
1077 *=*)
1078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\$ac_optarg
1084 export $ac_envvar ;;
1085
1086 *)
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1092 ;;
1093
1094 esac
1095 done
1096
1097 if test -n "$ac_prev"; then
1098 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1101 fi
1102
1103 # Be sure to have absolute directory names.
1104 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1108 do
1109 eval ac_val=\$$ac_var
1110 case $ac_val in
1111 [\\/$]* | ?:[\\/]* ) continue;;
1112 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1113 esac
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1116 done
1117
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1121 build=$build_alias
1122 host=$host_alias
1123 target=$target_alias
1124
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1133 fi
1134 fi
1135
1136 ac_tool_prefix=
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138
1139 test "$silent" = yes && exec 6>/dev/null
1140
1141
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1150
1151
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161 echo X"$0" |
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)[^/].*/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\/\)$/{
1171 s//\1/
1172 q
1173 }
1174 /^X\(\/\).*/{
1175 s//\1/
1176 q
1177 }
1178 s/.*/./; q'`
1179 srcdir=$ac_confdir
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 srcdir=..
1182 fi
1183 else
1184 ac_srcdir_defaulted=no
1185 fi
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1190 fi
1191 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192 ac_abs_confdir=`(
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1195 pwd)`
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1199 fi
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1203 case $srcdir in
1204 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 esac
1206 for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 done
1212
1213 #
1214 # Report the --help message.
1215 #
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220 \`configure' configures this package to adapt to many kinds of systems.
1221
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1223
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1226
1227 Defaults for the options are specified in brackets.
1228
1229 Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 [PREFIX]
1245
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1250
1251 For better control, use the options below.
1252
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1273 _ACEOF
1274
1275 cat <<\_ACEOF
1276
1277 System types:
1278 --build=BUILD configure for building on BUILD [guessed]
1279 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1280 --target=TARGET configure for building compilers for TARGET [HOST]
1281 _ACEOF
1282 fi
1283
1284 if test -n "$ac_init_help"; then
1285
1286 cat <<\_ACEOF
1287
1288 Optional Features:
1289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1291 --disable-largefile omit support for large files
1292 --disable-protochain disable \"protochain\" insn
1293 --enable-ipv6 build IPv6-capable version [default=yes, if
1294 getaddrinfo available]
1295 --enable-optimizer-dbg build optimizer debugging code
1296 --enable-yydebug build parser debugging code
1297 --disable-universal don't build universal on OS X
1298 --enable-bluetooth enable Bluetooth support [default=yes, if support
1299 available]
1300 --enable-can enable CAN support [default=yes, if support
1301 available]
1302
1303 Optional Packages:
1304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1306 --without-gcc don't use gcc
1307 --with-sita include SITA support
1308 --with-pcap=TYPE use packet capture TYPE
1309 --without-libnl disable libnl support [default=yes, on Linux, if
1310 present]
1311 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1312 default="yes" on BSD and Linux if present]
1313 --with-dag-includes=DIR Endace DAG include directory
1314 --with-dag-libraries=DIR
1315 Endace DAG library directory
1316 --with-septel[=DIR] include Septel support (located in directory DIR, if
1317 supplied). [default=yes, on Linux, if present]
1318 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1319 default="yes" on BSD and Linux if present]
1320 --with-snf-includes=DIR Myricom SNF include directory
1321 --with-snf-libraries=DIR
1322 Myricom SNF library directory
1323 --without-flex don't use flex
1324 --without-bison don't use bison
1325
1326 Some influential environment variables:
1327 CC C compiler command
1328 CFLAGS C compiler flags
1329 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1330 nonstandard directory <lib dir>
1331 LIBS libraries to pass to the linker, e.g. -l<library>
1332 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1333 you have headers in a nonstandard directory <include dir>
1334 CPP C preprocessor
1335
1336 Use these variables to override the choices made by `configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1338
1339 _ACEOF
1340 ac_status=$?
1341 fi
1342
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" || continue
1347 ac_builddir=.
1348
1349 case "$ac_dir" in
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351 *)
1352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1353 # A ".." for each directory in $ac_dir_suffix.
1354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1355 case $ac_top_builddir_sub in
1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1358 esac ;;
1359 esac
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1364
1365 case $srcdir in
1366 .) # We are building in place.
1367 ac_srcdir=.
1368 ac_top_srcdir=$ac_top_builddir_sub
1369 ac_abs_top_srcdir=$ac_pwd ;;
1370 [\\/]* | ?:[\\/]* ) # Absolute name.
1371 ac_srcdir=$srcdir$ac_dir_suffix;
1372 ac_top_srcdir=$srcdir
1373 ac_abs_top_srcdir=$srcdir ;;
1374 *) # Relative name.
1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376 ac_top_srcdir=$ac_top_build_prefix$srcdir
1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1378 esac
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1380
1381 cd "$ac_dir" || { ac_status=$?; continue; }
1382 # Check for guested configure.
1383 if test -f "$ac_srcdir/configure.gnu"; then
1384 echo &&
1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386 elif test -f "$ac_srcdir/configure"; then
1387 echo &&
1388 $SHELL "$ac_srcdir/configure" --help=recursive
1389 else
1390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1391 fi || ac_status=$?
1392 cd "$ac_pwd" || { ac_status=$?; break; }
1393 done
1394 fi
1395
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1398 cat <<\_ACEOF
1399 configure
1400 generated by GNU Autoconf 2.61
1401
1402 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1403 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1406 _ACEOF
1407 exit
1408 fi
1409 cat >config.log <<_ACEOF
1410 This file contains any messages produced by compilers while
1411 running configure, to aid debugging if configure makes a mistake.
1412
1413 It was created by $as_me, which was
1414 generated by GNU Autoconf 2.61. Invocation command line was
1415
1416 $ $0 $@
1417
1418 _ACEOF
1419 exec 5>>config.log
1420 {
1421 cat <<_ASUNAME
1422 ## --------- ##
1423 ## Platform. ##
1424 ## --------- ##
1425
1426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1431
1432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1433 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1434
1435 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1436 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1438 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1439 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1440 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1441 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1442
1443 _ASUNAME
1444
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 echo "PATH: $as_dir"
1451 done
1452 IFS=$as_save_IFS
1453
1454 } >&5
1455
1456 cat >&5 <<_ACEOF
1457
1458
1459 ## ----------- ##
1460 ## Core tests. ##
1461 ## ----------- ##
1462
1463 _ACEOF
1464
1465
1466 # Keep a trace of the command line.
1467 # Strip out --no-create and --no-recursion so they do not pile up.
1468 # Strip out --silent because we don't want to record it for future runs.
1469 # Also quote any args containing shell meta-characters.
1470 # Make two passes to allow for proper duplicate-argument suppression.
1471 ac_configure_args=
1472 ac_configure_args0=
1473 ac_configure_args1=
1474 ac_must_keep_next=false
1475 for ac_pass in 1 2
1476 do
1477 for ac_arg
1478 do
1479 case $ac_arg in
1480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1483 continue ;;
1484 *\'*)
1485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 esac
1487 case $ac_pass in
1488 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1489 2)
1490 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1491 if test $ac_must_keep_next = true; then
1492 ac_must_keep_next=false # Got value, back to normal.
1493 else
1494 case $ac_arg in
1495 *=* | --config-cache | -C | -disable-* | --disable-* \
1496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1498 | -with-* | --with-* | -without-* | --without-* | --x)
1499 case "$ac_configure_args0 " in
1500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1501 esac
1502 ;;
1503 -* ) ac_must_keep_next=true ;;
1504 esac
1505 fi
1506 ac_configure_args="$ac_configure_args '$ac_arg'"
1507 ;;
1508 esac
1509 done
1510 done
1511 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1512 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1513
1514 # When interrupted or exit'd, cleanup temporary files, and complete
1515 # config.log. We remove comments because anyway the quotes in there
1516 # would cause problems or look ugly.
1517 # WARNING: Use '\'' to represent an apostrophe within the trap.
1518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1519 trap 'exit_status=$?
1520 # Save into config.log some information that might help in debugging.
1521 {
1522 echo
1523
1524 cat <<\_ASBOX
1525 ## ---------------- ##
1526 ## Cache variables. ##
1527 ## ---------------- ##
1528 _ASBOX
1529 echo
1530 # The following way of writing the cache mishandles newlines in values,
1531 (
1532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1533 eval ac_val=\$$ac_var
1534 case $ac_val in #(
1535 *${as_nl}*)
1536 case $ac_var in #(
1537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1539 esac
1540 case $ac_var in #(
1541 _ | IFS | as_nl) ;; #(
1542 *) $as_unset $ac_var ;;
1543 esac ;;
1544 esac
1545 done
1546 (set) 2>&1 |
1547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1548 *${as_nl}ac_space=\ *)
1549 sed -n \
1550 "s/'\''/'\''\\\\'\'''\''/g;
1551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1552 ;; #(
1553 *)
1554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1555 ;;
1556 esac |
1557 sort
1558 )
1559 echo
1560
1561 cat <<\_ASBOX
1562 ## ----------------- ##
1563 ## Output variables. ##
1564 ## ----------------- ##
1565 _ASBOX
1566 echo
1567 for ac_var in $ac_subst_vars
1568 do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in
1571 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1572 esac
1573 echo "$ac_var='\''$ac_val'\''"
1574 done | sort
1575 echo
1576
1577 if test -n "$ac_subst_files"; then
1578 cat <<\_ASBOX
1579 ## ------------------- ##
1580 ## File substitutions. ##
1581 ## ------------------- ##
1582 _ASBOX
1583 echo
1584 for ac_var in $ac_subst_files
1585 do
1586 eval ac_val=\$$ac_var
1587 case $ac_val in
1588 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1589 esac
1590 echo "$ac_var='\''$ac_val'\''"
1591 done | sort
1592 echo
1593 fi
1594
1595 if test -s confdefs.h; then
1596 cat <<\_ASBOX
1597 ## ----------- ##
1598 ## confdefs.h. ##
1599 ## ----------- ##
1600 _ASBOX
1601 echo
1602 cat confdefs.h
1603 echo
1604 fi
1605 test "$ac_signal" != 0 &&
1606 echo "$as_me: caught signal $ac_signal"
1607 echo "$as_me: exit $exit_status"
1608 } >&5
1609 rm -f core *.core core.conftest.* &&
1610 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1611 exit $exit_status
1612 ' 0
1613 for ac_signal in 1 2 13 15; do
1614 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1615 done
1616 ac_signal=0
1617
1618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1619 rm -f -r conftest* confdefs.h
1620
1621 # Predefined preprocessor variables.
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_NAME "$PACKAGE_NAME"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1635 _ACEOF
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_STRING "$PACKAGE_STRING"
1640 _ACEOF
1641
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1645 _ACEOF
1646
1647
1648 # Let the site file select an alternate cache file if it wants to.
1649 # Prefer explicitly selected file to automatically selected ones.
1650 if test -n "$CONFIG_SITE"; then
1651 set x "$CONFIG_SITE"
1652 elif test "x$prefix" != xNONE; then
1653 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1654 else
1655 set x "$ac_default_prefix/share/config.site" \
1656 "$ac_default_prefix/etc/config.site"
1657 fi
1658 shift
1659 for ac_site_file
1660 do
1661 if test -r "$ac_site_file"; then
1662 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1663 echo "$as_me: loading site script $ac_site_file" >&6;}
1664 sed 's/^/| /' "$ac_site_file" >&5
1665 . "$ac_site_file"
1666 fi
1667 done
1668
1669 if test -r "$cache_file"; then
1670 # Some versions of bash will fail to source /dev/null (special
1671 # files actually), so we avoid doing that.
1672 if test -f "$cache_file"; then
1673 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1674 echo "$as_me: loading cache $cache_file" >&6;}
1675 case $cache_file in
1676 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1677 *) . "./$cache_file";;
1678 esac
1679 fi
1680 else
1681 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1682 echo "$as_me: creating cache $cache_file" >&6;}
1683 >$cache_file
1684 fi
1685
1686 # Check that the precious variables saved in the cache have kept the same
1687 # value.
1688 ac_cache_corrupted=false
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1691 eval ac_new_set=\$ac_env_${ac_var}_set
1692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1693 eval ac_new_val=\$ac_env_${ac_var}_value
1694 case $ac_old_set,$ac_new_set in
1695 set,)
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1697 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1699 ,set)
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1703 ,);;
1704 *)
1705 if test "x$ac_old_val" != "x$ac_new_val"; then
1706 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1707 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1708 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1709 echo "$as_me: former value: $ac_old_val" >&2;}
1710 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1711 echo "$as_me: current value: $ac_new_val" >&2;}
1712 ac_cache_corrupted=:
1713 fi;;
1714 esac
1715 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then
1717 case $ac_new_val in
1718 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;;
1720 esac
1721 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1724 esac
1725 fi
1726 done
1727 if $ac_cache_corrupted; then
1728 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1729 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1730 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1731 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1732 { (exit 1); exit 1; }; }
1733 fi
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751 ac_ext=c
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756
1757
1758
1759 ac_aux_dir=
1760 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1761 if test -f "$ac_dir/install-sh"; then
1762 ac_aux_dir=$ac_dir
1763 ac_install_sh="$ac_aux_dir/install-sh -c"
1764 break
1765 elif test -f "$ac_dir/install.sh"; then
1766 ac_aux_dir=$ac_dir
1767 ac_install_sh="$ac_aux_dir/install.sh -c"
1768 break
1769 elif test -f "$ac_dir/shtool"; then
1770 ac_aux_dir=$ac_dir
1771 ac_install_sh="$ac_aux_dir/shtool install -c"
1772 break
1773 fi
1774 done
1775 if test -z "$ac_aux_dir"; then
1776 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1777 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1778 { (exit 1); exit 1; }; }
1779 fi
1780
1781 # These three variables are undocumented and unsupported,
1782 # and are intended to be withdrawn in a future Autoconf release.
1783 # They can cause serious problems if a builder's source tree is in a directory
1784 # whose full name contains unusual characters.
1785 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1786 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1787 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1788
1789
1790 # Make sure we can run config.sub.
1791 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1792 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1793 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1794 { (exit 1); exit 1; }; }
1795
1796 { echo "$as_me:$LINENO: checking build system type" >&5
1797 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_build+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 ac_build_alias=$build_alias
1802 test "x$ac_build_alias" = x &&
1803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1804 test "x$ac_build_alias" = x &&
1805 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1806 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1807 { (exit 1); exit 1; }; }
1808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1809 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1811 { (exit 1); exit 1; }; }
1812
1813 fi
1814 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1815 echo "${ECHO_T}$ac_cv_build" >&6; }
1816 case $ac_cv_build in
1817 *-*-*) ;;
1818 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1819 echo "$as_me: error: invalid value of canonical build" >&2;}
1820 { (exit 1); exit 1; }; };;
1821 esac
1822 build=$ac_cv_build
1823 ac_save_IFS=$IFS; IFS='-'
1824 set x $ac_cv_build
1825 shift
1826 build_cpu=$1
1827 build_vendor=$2
1828 shift; shift
1829 # Remember, the first character of IFS is used to create $*,
1830 # except with old shells:
1831 build_os=$*
1832 IFS=$ac_save_IFS
1833 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1834
1835
1836 { echo "$as_me:$LINENO: checking host system type" >&5
1837 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1838 if test "${ac_cv_host+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 if test "x$host_alias" = x; then
1842 ac_cv_host=$ac_cv_build
1843 else
1844 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1845 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1846 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1847 { (exit 1); exit 1; }; }
1848 fi
1849
1850 fi
1851 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1852 echo "${ECHO_T}$ac_cv_host" >&6; }
1853 case $ac_cv_host in
1854 *-*-*) ;;
1855 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1856 echo "$as_me: error: invalid value of canonical host" >&2;}
1857 { (exit 1); exit 1; }; };;
1858 esac
1859 host=$ac_cv_host
1860 ac_save_IFS=$IFS; IFS='-'
1861 set x $ac_cv_host
1862 shift
1863 host_cpu=$1
1864 host_vendor=$2
1865 shift; shift
1866 # Remember, the first character of IFS is used to create $*,
1867 # except with old shells:
1868 host_os=$*
1869 IFS=$ac_save_IFS
1870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1871
1872
1873 { echo "$as_me:$LINENO: checking target system type" >&5
1874 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1875 if test "${ac_cv_target+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878 if test "x$target_alias" = x; then
1879 ac_cv_target=$ac_cv_host
1880 else
1881 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1882 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1883 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1884 { (exit 1); exit 1; }; }
1885 fi
1886
1887 fi
1888 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1889 echo "${ECHO_T}$ac_cv_target" >&6; }
1890 case $ac_cv_target in
1891 *-*-*) ;;
1892 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1893 echo "$as_me: error: invalid value of canonical target" >&2;}
1894 { (exit 1); exit 1; }; };;
1895 esac
1896 target=$ac_cv_target
1897 ac_save_IFS=$IFS; IFS='-'
1898 set x $ac_cv_target
1899 shift
1900 target_cpu=$1
1901 target_vendor=$2
1902 shift; shift
1903 # Remember, the first character of IFS is used to create $*,
1904 # except with old shells:
1905 target_os=$*
1906 IFS=$ac_save_IFS
1907 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1908
1909
1910 # The aliases save the names the user supplied, while $host etc.
1911 # will get canonicalized.
1912 test -n "$target_alias" &&
1913 test "$program_prefix$program_suffix$program_transform_name" = \
1914 NONENONEs,x,x, &&
1915 program_prefix=${target_alias}-
1916
1917
1918
1919
1920
1921
1922
1923 # Check whether --with-gcc was given.
1924 if test "${with_gcc+set}" = set; then
1925 withval=$with_gcc;
1926 fi
1927
1928 V_CCOPT="-O"
1929 V_INCLS=""
1930 if test "${srcdir}" != "." ; then
1931 V_INCLS="-I\$(srcdir)"
1932 fi
1933 if test "${CFLAGS+set}" = set; then
1934 LBL_CFLAGS="$CFLAGS"
1935 fi
1936 if test -z "$CC" ; then
1937 case "$host_os" in
1938
1939 bsdi*)
1940 # Extract the first word of "shlicc2", so it can be a program name with args.
1941 set dummy shlicc2; ac_word=$2
1942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1944 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$SHLICC2"; then
1948 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1957 ac_cv_prog_SHLICC2="yes"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1960 fi
1961 done
1962 done
1963 IFS=$as_save_IFS
1964
1965 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1966 fi
1967 fi
1968 SHLICC2=$ac_cv_prog_SHLICC2
1969 if test -n "$SHLICC2"; then
1970 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1971 echo "${ECHO_T}$SHLICC2" >&6; }
1972 else
1973 { echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6; }
1975 fi
1976
1977
1978 if test $SHLICC2 = yes ; then
1979 CC=shlicc2
1980 export CC
1981 fi
1982 ;;
1983 esac
1984 fi
1985 if test -z "$CC" -a "$with_gcc" = no ; then
1986 CC=cc
1987 export CC
1988 fi
1989
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2016 fi
2017 done
2018 done
2019 IFS=$as_save_IFS
2020
2021 fi
2022 fi
2023 CC=$ac_cv_prog_CC
2024 if test -n "$CC"; then
2025 { echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6; }
2027 else
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2030 fi
2031
2032
2033 fi
2034 if test -z "$ac_cv_prog_CC"; then
2035 ac_ct_CC=$CC
2036 # Extract the first word of "gcc", so it can be a program name with args.
2037 set dummy gcc; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_ac_ct_CC="gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057 done
2058 done
2059 IFS=$as_save_IFS
2060
2061 fi
2062 fi
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6; }
2067 else
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2070 fi
2071
2072 if test "x$ac_ct_CC" = x; then
2073 CC=""
2074 else
2075 case $cross_compiling:$ac_tool_warned in
2076 yes:)
2077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2078 whose name does not start with the host triplet. If you think this
2079 configuration is useful to you, please write to autoconf@gnu.org." >&5
2080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet. If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2083 ac_tool_warned=yes ;;
2084 esac
2085 CC=$ac_ct_CC
2086 fi
2087 else
2088 CC="$ac_cv_prog_CC"
2089 fi
2090
2091 if test -z "$CC"; then
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}cc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_prog_CC="${ac_tool_prefix}cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2113 fi
2114 done
2115 done
2116 IFS=$as_save_IFS
2117
2118 fi
2119 fi
2120 CC=$ac_cv_prog_CC
2121 if test -n "$CC"; then
2122 { echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6; }
2124 else
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2127 fi
2128
2129
2130 fi
2131 fi
2132 if test -z "$CC"; then
2133 # Extract the first word of "cc", so it can be a program name with args.
2134 set dummy cc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 ac_prog_rejected=no
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2152 ac_prog_rejected=yes
2153 continue
2154 fi
2155 ac_cv_prog_CC="cc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2158 fi
2159 done
2160 done
2161 IFS=$as_save_IFS
2162
2163 if test $ac_prog_rejected = yes; then
2164 # We found a bogon in the path, so make sure we never use it.
2165 set dummy $ac_cv_prog_CC
2166 shift
2167 if test $# != 0; then
2168 # We chose a different compiler from the bogus one.
2169 # However, it has the same basename, so the bogon will be chosen
2170 # first if we set CC to just the basename; use the full file name.
2171 shift
2172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2173 fi
2174 fi
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179 { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2181 else
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187 fi
2188 if test -z "$CC"; then
2189 if test -n "$ac_tool_prefix"; then
2190 for ac_prog in cl.exe
2191 do
2192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213 done
2214 done
2215 IFS=$as_save_IFS
2216
2217 fi
2218 fi
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2223 else
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2226 fi
2227
2228
2229 test -n "$CC" && break
2230 done
2231 fi
2232 if test -z "$CC"; then
2233 ac_ct_CC=$CC
2234 for ac_prog in cl.exe
2235 do
2236 # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_ac_ct_CC="$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2256 fi
2257 done
2258 done
2259 IFS=$as_save_IFS
2260
2261 fi
2262 fi
2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264 if test -n "$ac_ct_CC"; then
2265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266 echo "${ECHO_T}$ac_ct_CC" >&6; }
2267 else
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2270 fi
2271
2272
2273 test -n "$ac_ct_CC" && break
2274 done
2275
2276 if test "x$ac_ct_CC" = x; then
2277 CC=""
2278 else
2279 case $cross_compiling:$ac_tool_warned in
2280 yes:)
2281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2282 whose name does not start with the host triplet. If you think this
2283 configuration is useful to you, please write to autoconf@gnu.org." >&5
2284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2285 whose name does not start with the host triplet. If you think this
2286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2287 ac_tool_warned=yes ;;
2288 esac
2289 CC=$ac_ct_CC
2290 fi
2291 fi
2292
2293 fi
2294
2295
2296 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2297 See \`config.log' for more details." >&5
2298 echo "$as_me: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2301
2302 # Provide some information about the compiler.
2303 echo "$as_me:$LINENO: checking for C compiler version" >&5
2304 ac_compiler=`set X $ac_compile; echo $2`
2305 { (ac_try="$ac_compiler --version >&5"
2306 case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compiler --version >&5") 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }
2315 { (ac_try="$ac_compiler -v >&5"
2316 case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compiler -v >&5") 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }
2325 { (ac_try="$ac_compiler -V >&5"
2326 case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329 esac
2330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2331 (eval "$ac_compiler -V >&5") 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }
2335
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342
2343 int
2344 main ()
2345 {
2346
2347 ;
2348 return 0;
2349 }
2350 _ACEOF
2351 ac_clean_files_save=$ac_clean_files
2352 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2353 # Try to create an executable without -o first, disregard a.out.
2354 # It will help us diagnose broken compilers, and finding out an intuition
2355 # of exeext.
2356 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2357 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2358 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2359 #
2360 # List of possible output files, starting from the most likely.
2361 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2362 # only as a last resort. b.out is created by i960 compilers.
2363 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2364 #
2365 # The IRIX 6 linker writes into existing files which may not be
2366 # executable, retaining their permissions. Remove them first so a
2367 # subsequent execution test works.
2368 ac_rmfiles=
2369 for ac_file in $ac_files
2370 do
2371 case $ac_file in
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2374 esac
2375 done
2376 rm -f $ac_rmfiles
2377
2378 if { (ac_try="$ac_link_default"
2379 case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382 esac
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_link_default") 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2390 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2391 # so that the user can short-circuit this test for compilers unknown to
2392 # Autoconf.
2393 for ac_file in $ac_files ''
2394 do
2395 test -f "$ac_file" || continue
2396 case $ac_file in
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2398 ;;
2399 [ab].out )
2400 # We found the default executable, but exeext='' is most
2401 # certainly right.
2402 break;;
2403 *.* )
2404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2405 then :; else
2406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2407 fi
2408 # We set ac_cv_exeext here because the later test for it is not
2409 # safe: cross compilers may not add the suffix if given an `-o'
2410 # argument, so we may need to know it at that point already.
2411 # Even if this section looks crufty: it has the advantage of
2412 # actually working.
2413 break;;
2414 * )
2415 break;;
2416 esac
2417 done
2418 test "$ac_cv_exeext" = no && ac_cv_exeext=
2419
2420 else
2421 ac_file=''
2422 fi
2423
2424 { echo "$as_me:$LINENO: result: $ac_file" >&5
2425 echo "${ECHO_T}$ac_file" >&6; }
2426 if test -z "$ac_file"; then
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: C compiler cannot create executables
2433 See \`config.log' for more details." >&2;}
2434 { (exit 77); exit 77; }; }
2435 fi
2436
2437 ac_exeext=$ac_cv_exeext
2438
2439 # Check that the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2442 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2443 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444 # If not cross compiling, check that we can run a simple program.
2445 if test "$cross_compiling" != yes; then
2446 if { ac_try='./$ac_file'
2447 { (case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_try") 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 cross_compiling=no
2457 else
2458 if test "$cross_compiling" = maybe; then
2459 cross_compiling=yes
2460 else
2461 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2468 fi
2469 fi
2470 fi
2471 { echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6; }
2473
2474 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475 ac_clean_files=$ac_clean_files_save
2476 # Check that the compiler produces executables we can run. If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2479 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2480 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2481 echo "${ECHO_T}$cross_compiling" >&6; }
2482
2483 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2484 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2485 if { (ac_try="$ac_link"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_link") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; then
2495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2497 # work properly (i.e., refer to `conftest.exe'), while it won't with
2498 # `rm'.
2499 for ac_file in conftest.exe conftest conftest.*; do
2500 test -f "$ac_file" || continue
2501 case $ac_file in
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2504 break;;
2505 * ) break;;
2506 esac
2507 done
2508 else
2509 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&2;}
2513 { (exit 1); exit 1; }; }
2514 fi
2515
2516 rm -f conftest$ac_cv_exeext
2517 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2519
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2522 ac_exeext=$EXEEXT
2523 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534
2535 int
2536 main ()
2537 {
2538
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (ac_try="$ac_compile"
2545 case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compile") 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 for ac_file in conftest.o conftest.obj conftest.*; do
2555 test -f "$ac_file" || continue;
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559 break;;
2560 esac
2561 done
2562 else
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2571 fi
2572
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574 fi
2575 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6; }
2577 OBJEXT=$ac_cv_objext
2578 ac_objext=$OBJEXT
2579 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h. */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2590
2591 int
2592 main ()
2593 {
2594 #ifndef __GNUC__
2595 choke me
2596 #endif
2597
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (ac_try="$ac_compile"
2604 case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_compile") 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } && {
2616 test -z "$ac_c_werror_flag" ||
2617 test ! -s conftest.err
2618 } && test -s conftest.$ac_objext; then
2619 ac_compiler_gnu=yes
2620 else
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 ac_compiler_gnu=no
2625 fi
2626
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629
2630 fi
2631 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2633 GCC=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CFLAGS=${CFLAGS+set}
2635 ac_save_CFLAGS=$CFLAGS
2636 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2637 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_g+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 ac_save_c_werror_flag=$ac_c_werror_flag
2642 ac_c_werror_flag=yes
2643 ac_cv_prog_cc_g=no
2644 CFLAGS="-g"
2645 cat >conftest.$ac_ext <<_ACEOF
2646 /* confdefs.h. */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2651
2652 int
2653 main ()
2654 {
2655
2656 ;
2657 return 0;
2658 }
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (ac_try="$ac_compile"
2662 case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665 esac
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compile") 2>conftest.er1
2668 ac_status=$?
2669 grep -v '^ *+' conftest.er1 >conftest.err
2670 rm -f conftest.er1
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } && {
2674 test -z "$ac_c_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest.$ac_objext; then
2677 ac_cv_prog_cc_g=yes
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 CFLAGS=""
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689
2690 int
2691 main ()
2692 {
2693
2694 ;
2695 return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
2715 :
2716 else
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 ac_c_werror_flag=$ac_save_c_werror_flag
2721 CFLAGS="-g"
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728
2729 int
2730 main ()
2731 {
2732
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2754 ac_cv_prog_cc_g=yes
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759
2760 fi
2761
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 fi
2764
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 fi
2767
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 ac_c_werror_flag=$ac_save_c_werror_flag
2770 fi
2771 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2772 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2773 if test "$ac_test_CFLAGS" = set; then
2774 CFLAGS=$ac_save_CFLAGS
2775 elif test $ac_cv_prog_cc_g = yes; then
2776 if test "$GCC" = yes; then
2777 CFLAGS="-g -O2"
2778 else
2779 CFLAGS="-g"
2780 fi
2781 else
2782 if test "$GCC" = yes; then
2783 CFLAGS="-O2"
2784 else
2785 CFLAGS=
2786 fi
2787 fi
2788 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2789 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_cc_c89+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 ac_cv_prog_cc_c89=no
2794 ac_save_CC=$CC
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2801 #include <stdarg.h>
2802 #include <stdio.h>
2803 #include <sys/types.h>
2804 #include <sys/stat.h>
2805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2806 struct buf { int x; };
2807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2808 static char *e (p, i)
2809 char **p;
2810 int i;
2811 {
2812 return p[i];
2813 }
2814 static char *f (char * (*g) (char **, int), char **p, ...)
2815 {
2816 char *s;
2817 va_list v;
2818 va_start (v,p);
2819 s = g (p, va_arg (v,int));
2820 va_end (v);
2821 return s;
2822 }
2823
2824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2825 function prototypes and stuff, but not '\xHH' hex character constants.
2826 These don't provoke an error unfortunately, instead are silently treated
2827 as 'x'. The following induces an error, until -std is added to get
2828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2829 array size at least. It's necessary to write '\x00'==0 to get something
2830 that's true only with -std. */
2831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2832
2833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2834 inside strings and character constants. */
2835 #define FOO(x) 'x'
2836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2837
2838 int test (int i, double x);
2839 struct s1 {int (*f) (int a);};
2840 struct s2 {int (*f) (double a);};
2841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2842 int argc;
2843 char **argv;
2844 int
2845 main ()
2846 {
2847 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2848 ;
2849 return 0;
2850 }
2851 _ACEOF
2852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2854 do
2855 CC="$ac_save_CC $ac_arg"
2856 rm -f conftest.$ac_objext
2857 if { (ac_try="$ac_compile"
2858 case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_compile") 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } && {
2870 test -z "$ac_c_werror_flag" ||
2871 test ! -s conftest.err
2872 } && test -s conftest.$ac_objext; then
2873 ac_cv_prog_cc_c89=$ac_arg
2874 else
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878
2879 fi
2880
2881 rm -f core conftest.err conftest.$ac_objext
2882 test "x$ac_cv_prog_cc_c89" != "xno" && break
2883 done
2884 rm -f conftest.$ac_ext
2885 CC=$ac_save_CC
2886
2887 fi
2888 # AC_CACHE_VAL
2889 case "x$ac_cv_prog_cc_c89" in
2890 x)
2891 { echo "$as_me:$LINENO: result: none needed" >&5
2892 echo "${ECHO_T}none needed" >&6; } ;;
2893 xno)
2894 { echo "$as_me:$LINENO: result: unsupported" >&5
2895 echo "${ECHO_T}unsupported" >&6; } ;;
2896 *)
2897 CC="$CC $ac_cv_prog_cc_c89"
2898 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2899 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2900 esac
2901
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908
2909
2910
2911
2912
2913 if test "$GCC" = yes ; then
2914 if test "$SHLICC2" = yes ; then
2915 ac_cv_lbl_gcc_vers=2
2916 V_CCOPT="-O2"
2917 else
2918 { echo "$as_me:$LINENO: checking gcc version" >&5
2919 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2920 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2924 sed -e '/^gcc version /!d' \
2925 -e 's/^gcc version //' \
2926 -e 's/ .*//' -e 's/^[^0-9]*//' \
2927 -e 's/\..*//'`
2928 fi
2929
2930 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2931 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2932 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2933 V_CCOPT="-O2"
2934 fi
2935 fi
2936 else
2937 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2938 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2939 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <sys/types.h>
2950 int
2951 main ()
2952 {
2953 int frob(int, char *)
2954 ;
2955 return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2966 ac_status=$?
2967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_c_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2975 ac_cv_lbl_cc_ansi_prototypes=yes
2976 else
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 ac_cv_lbl_cc_ansi_prototypes=no
2981 fi
2982
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 fi
2985
2986 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2987 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2988 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2989 case "$host_os" in
2990
2991 hpux*)
2992 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2993 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2994 savedcflags="$CFLAGS"
2995 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2996 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <sys/types.h>
3006 int
3007 main ()
3008 {
3009 int frob(int, char *)
3010 ;
3011 return 0;
3012 }
3013 _ACEOF
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && {
3028 test -z "$ac_c_werror_flag" ||
3029 test ! -s conftest.err
3030 } && test -s conftest.$ac_objext; then
3031 ac_cv_lbl_cc_hpux_cc_aa=yes
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 ac_cv_lbl_cc_hpux_cc_aa=no
3037 fi
3038
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 fi
3041
3042 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3043 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3044 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3045 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3046 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3047 { (exit 1); exit 1; }; }
3048 fi
3049 CFLAGS="$savedcflags"
3050 V_CCOPT="-Aa $V_CCOPT"
3051
3052 cat >>confdefs.h <<\_ACEOF
3053 #define _HPUX_SOURCE 1
3054 _ACEOF
3055
3056 ;;
3057
3058 osf*)
3059 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3060 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3061 savedcflags="$CFLAGS"
3062 CFLAGS="-std1"
3063 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072 #include <sys/types.h>
3073 int
3074 main ()
3075 {
3076 int frob(int, char *)
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_lbl_cc_osf1_cc_std1=yes
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 ac_cv_lbl_cc_osf1_cc_std1=no
3104 fi
3105
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 fi
3108
3109 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3110 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3111 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3112 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3113 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3114 { (exit 1); exit 1; }; }
3115 fi
3116 CFLAGS="$savedcflags"
3117 V_CCOPT="-std1 $V_CCOPT"
3118 ;;
3119
3120 *)
3121 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3122 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3123 { (exit 1); exit 1; }; }
3124 ;;
3125 esac
3126 fi
3127 V_INCLS="$V_INCLS -I/usr/local/include"
3128 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3129
3130 case "$host_os" in
3131
3132 irix*)
3133 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3134 ;;
3135
3136 osf*)
3137 #
3138 # Presumed to be DEC OSF/1, Digital UNIX, or
3139 # Tru64 UNIX.
3140 #
3141 V_CCOPT="$V_CCOPT -g3"
3142 ;;
3143
3144 ultrix*)
3145 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3146 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3147 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #include <sys/types.h>
3157 int
3158 main ()
3159 {
3160 struct a { int b; };
3161 void c(const struct a *)
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && {
3180 test -z "$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 } && test -s conftest.$ac_objext; then
3183 ac_cv_lbl_cc_const_proto=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 ac_cv_lbl_cc_const_proto=no
3189 fi
3190
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 fi
3193
3194 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3195 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3196 if test $ac_cv_lbl_cc_const_proto = no ; then
3197
3198 cat >>confdefs.h <<\_ACEOF
3199 #define const
3200 _ACEOF
3201
3202 fi
3203 ;;
3204 esac
3205 fi
3206
3207
3208 if test "$GCC" = yes ; then
3209 #
3210 # On platforms where we build a shared library:
3211 #
3212 # add options to generate position-independent code,
3213 # if necessary (it's the default in AIX and Darwin/OS X);
3214 #
3215 # define option to set the soname of the shared library,
3216 # if the OS supports that;
3217 #
3218 # add options to specify, at link time, a directory to
3219 # add to the run-time search path, if that's necessary.
3220 #
3221 V_SHLIB_CMD="\$(CC)"
3222 V_SHLIB_OPT="-shared"
3223 case "$host_os" in
3224
3225 aix*)
3226 ;;
3227
3228 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3229 #
3230 # Platforms where the linker is the GNU linker
3231 # or accepts command-line arguments like
3232 # those the GNU linker accepts.
3233 #
3234 # Some instruction sets require -fPIC on some
3235 # operating systems. Check for them. If you
3236 # have a combination that requires it, add it
3237 # here.
3238 #
3239 PIC_OPT=-fpic
3240 case "$host_cpu" in
3241
3242 sparc64*)
3243 case "$host_os" in
3244
3245 freebsd*)
3246 PIC_OPT=-fPIC
3247 ;;
3248 esac
3249 ;;
3250 esac
3251 V_CCOPT="$V_CCOPT $PIC_OPT"
3252 V_SONAME_OPT="-Wl,-soname,"
3253 V_RPATH_OPT="-Wl,-rpath,"
3254 ;;
3255
3256 hpux*)
3257 V_CCOPT="$V_CCOPT -fpic"
3258 #
3259 # XXX - this assumes GCC is using the HP linker,
3260 # rather than the GNU linker, and that the "+h"
3261 # option is used on all HP-UX platforms, both .sl
3262 # and .so.
3263 #
3264 V_SONAME_OPT="-Wl,+h,"
3265 #
3266 # By default, directories specifed with -L
3267 # are added to the run-time search path, so
3268 # we don't add them in pcap-config.
3269 #
3270 ;;
3271
3272 solaris*)
3273 V_CCOPT="$V_CCOPT -fpic"
3274 #
3275 # XXX - this assumes GCC is using the Sun linker,
3276 # rather than the GNU linker.
3277 #
3278 V_SONAME_OPT="-Wl,-h,"
3279 V_RPATH_OPT="-Wl,-R,"
3280 ;;
3281 esac
3282 else
3283 #
3284 # Set the appropriate compiler flags and, on platforms
3285 # where we build a shared library:
3286 #
3287 # add options to generate position-independent code,
3288 # if necessary (it's the default in Darwin/OS X);
3289 #
3290 # if we generate ".so" shared libraries, define the
3291 # appropriate options for building the shared library;
3292 #
3293 # add options to specify, at link time, a directory to
3294 # add to the run-time search path, if that's necessary.
3295 #
3296 # Note: spaces after V_SONAME_OPT are significant; on
3297 # some platforms the soname is passed with a GCC-like
3298 # "-Wl,-soname,{soname}" option, with the soname part
3299 # of the option, while on other platforms the C compiler
3300 # driver takes it as a regular option with the soname
3301 # following the option. The same applies to V_RPATH_OPT.
3302 #
3303 case "$host_os" in
3304
3305 aix*)
3306 V_SHLIB_CMD="\$(CC)"
3307 V_SHLIB_OPT="-G -bnoentry -bexpall"
3308 ;;
3309
3310 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3311 #
3312 # "cc" is GCC.
3313 #
3314 V_CCOPT="$V_CCOPT -fpic"
3315 V_SHLIB_CMD="\$(CC)"
3316 V_SHLIB_OPT="-shared"
3317 V_SONAME_OPT="-Wl,-soname,"
3318 V_RPATH_OPT="-Wl,-rpath,"
3319 ;;
3320
3321 hpux*)
3322 V_CCOPT="$V_CCOPT +z"
3323 V_SHLIB_CMD="\$(LD)"
3324 V_SHLIB_OPT="-b"
3325 V_SONAME_OPT="+h "
3326 #
3327 # By default, directories specifed with -L
3328 # are added to the run-time search path, so
3329 # we don't add them in pcap-config.
3330 #
3331 ;;
3332
3333 osf*)
3334 #
3335 # Presumed to be DEC OSF/1, Digital UNIX, or
3336 # Tru64 UNIX.
3337 #
3338 V_SHLIB_CMD="\$(CC)"
3339 V_SHLIB_OPT="-shared"
3340 V_SONAME_OPT="-soname "
3341 V_RPATH_OPT="-rpath "
3342 ;;
3343
3344 solaris*)
3345 V_CCOPT="$V_CCOPT -Kpic"
3346 V_SHLIB_CMD="\$(CC)"
3347 V_SHLIB_OPT="-G"
3348 V_SONAME_OPT="-h "
3349 V_RPATH_OPT="-R"
3350 ;;
3351 esac
3352 fi
3353
3354 { echo "$as_me:$LINENO: checking for inline" >&5
3355 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3356 save_CFLAGS="$CFLAGS"
3357 CFLAGS="$V_CCOPT"
3358 if test "${ac_cv_lbl_inline+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361
3362 ac_cv_lbl_inline=""
3363 ac_lbl_cc_inline=no
3364 for ac_lbl_inline in inline __inline__ __inline
3365 do
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #define inline $ac_lbl_inline
3373 static inline struct iltest *foo(void);
3374 struct iltest {
3375 int iltest1;
3376 int iltest2;
3377 };
3378
3379 static inline struct iltest *
3380 foo()
3381 {
3382 static struct iltest xxx;
3383
3384 return &xxx;
3385 }
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_lbl_cc_inline=yes
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417 fi
3418
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 if test "$ac_lbl_cc_inline" = yes ; then
3421 break;
3422 fi
3423 done
3424 if test "$ac_lbl_cc_inline" = yes ; then
3425 ac_cv_lbl_inline=$ac_lbl_inline
3426 fi
3427 fi
3428
3429 CFLAGS="$save_CFLAGS"
3430 if test ! -z "$ac_cv_lbl_inline" ; then
3431 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3432 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3433 else
3434 { echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6; }
3436 fi
3437
3438 cat >>confdefs.h <<_ACEOF
3439 #define inline $ac_cv_lbl_inline
3440 _ACEOF
3441
3442
3443 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3444 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3445 if test "${ac_cv___attribute__+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455
3456 #include <stdlib.h>
3457
3458 static void foo(void) __attribute__ ((noreturn));
3459
3460 static void
3461 foo(void)
3462 {
3463 exit(1);
3464 }
3465
3466 int
3467 main(int argc, char **argv)
3468 {
3469 foo();
3470 }
3471
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3490 ac_cv___attribute__=yes
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 ac_cv___attribute__=no
3496 fi
3497
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 fi
3500
3501 if test "$ac_cv___attribute__" = "yes"; then
3502
3503 cat >>confdefs.h <<\_ACEOF
3504 #define HAVE___ATTRIBUTE__ 1
3505 _ACEOF
3506
3507 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3508 else
3509 V_DEFS="$V_DEFS -D_U_=\"\""
3510 fi
3511 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3512 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3513
3514
3515 ac_ext=c
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3522 # On Suns, sometimes $CPP names a directory.
3523 if test -n "$CPP" && test -d "$CPP"; then
3524 CPP=
3525 fi
3526 if test -z "$CPP"; then
3527 if test "${ac_cv_prog_CPP+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 # Double quotes because CPP needs to be expanded
3531 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3532 do
3533 ac_preproc_ok=false
3534 for ac_c_preproc_warn_flag in '' yes
3535 do
3536 # Use a header file that comes with gcc, so configuring glibc
3537 # with a fresh cross-compiler works.
3538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3539 # <limits.h> exists even on freestanding compilers.
3540 # On the NeXT, cc -E runs the code through the compiler's parser,
3541 # not just through cpp. "Syntax error" is here to catch this case.
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 #ifdef __STDC__
3549 # include <limits.h>
3550 #else
3551 # include <assert.h>
3552 #endif
3553 Syntax error
3554 _ACEOF
3555 if { (ac_try="$ac_cpp conftest.$ac_ext"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null && {
3568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 }; then
3571 :
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 # Broken: fails on valid input.
3577 continue
3578 fi
3579
3580 rm -f conftest.err conftest.$ac_ext
3581
3582 # OK, works on sane cases. Now check whether nonexistent headers
3583 # can be detected and how.
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <ac_nonexistent.h>
3591 _ACEOF
3592 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } >/dev/null && {
3605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 }; then
3608 # Broken: success on invalid input.
3609 continue
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 # Passes both tests.
3615 ac_preproc_ok=:
3616 break
3617 fi
3618
3619 rm -f conftest.err conftest.$ac_ext
3620
3621 done
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then
3625 break
3626 fi
3627
3628 done
3629 ac_cv_prog_CPP=$CPP
3630
3631 fi
3632 CPP=$ac_cv_prog_CPP
3633 else
3634 ac_cv_prog_CPP=$CPP
3635 fi
3636 { echo "$as_me:$LINENO: result: $CPP" >&5
3637 echo "${ECHO_T}$CPP" >&6; }
3638 ac_preproc_ok=false
3639 for ac_c_preproc_warn_flag in '' yes
3640 do
3641 # Use a header file that comes with gcc, so configuring glibc
3642 # with a fresh cross-compiler works.
3643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 # <limits.h> exists even on freestanding compilers.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h. */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 #ifdef __STDC__
3654 # include <limits.h>
3655 #else
3656 # include <assert.h>
3657 #endif
3658 Syntax error
3659 _ACEOF
3660 if { (ac_try="$ac_cpp conftest.$ac_ext"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } >/dev/null && {
3673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 }; then
3676 :
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 # Broken: fails on valid input.
3682 continue
3683 fi
3684
3685 rm -f conftest.err conftest.$ac_ext
3686
3687 # OK, works on sane cases. Now check whether nonexistent headers
3688 # can be detected and how.
3689 cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h. */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #include <ac_nonexistent.h>
3696 _ACEOF
3697 if { (ac_try="$ac_cpp conftest.$ac_ext"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev/null && {
3710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 }; then
3713 # Broken: success on invalid input.
3714 continue
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 # Passes both tests.
3720 ac_preproc_ok=:
3721 break
3722 fi
3723
3724 rm -f conftest.err conftest.$ac_ext
3725
3726 done
3727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3728 rm -f conftest.err conftest.$ac_ext
3729 if $ac_preproc_ok; then
3730 :
3731 else
3732 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&5
3734 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&2;}
3736 { (exit 1); exit 1; }; }
3737 fi
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745
3746 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3747 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_GREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 # Extract the first word of "grep ggrep" to use in msg output
3752 if test -z "$GREP"; then
3753 set dummy grep ggrep; ac_prog_name=$2
3754 if test "${ac_cv_path_GREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 ac_path_GREP_found=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3761 do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_prog in grep ggrep; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3768 # Check for GNU ac_path_GREP and select it if it is found.
3769 # Check for GNU $ac_path_GREP
3770 case `"$ac_path_GREP" --version 2>&1` in
3771 *GNU*)
3772 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3773 *)
3774 ac_count=0
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3776 while :
3777 do
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'GREP' >> "conftest.nl"
3782 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784 ac_count=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_GREP="$ac_path_GREP"
3788 ac_path_GREP_max=$ac_count
3789 fi
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3792 done
3793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3794 esac
3795
3796
3797 $ac_path_GREP_found && break 3
3798 done
3799 done
3800
3801 done
3802 IFS=$as_save_IFS
3803
3804
3805 fi
3806
3807 GREP="$ac_cv_path_GREP"
3808 if test -z "$GREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3812 fi
3813
3814 else
3815 ac_cv_path_GREP=$GREP
3816 fi
3817
3818
3819 fi
3820 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3821 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3822 GREP="$ac_cv_path_GREP"
3823
3824
3825 { echo "$as_me:$LINENO: checking for egrep" >&5
3826 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3827 if test "${ac_cv_path_EGREP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3831 then ac_cv_path_EGREP="$GREP -E"
3832 else
3833 # Extract the first word of "egrep" to use in msg output
3834 if test -z "$EGREP"; then
3835 set dummy egrep; ac_prog_name=$2
3836 if test "${ac_cv_path_EGREP+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839 ac_path_EGREP_found=false
3840 # Loop through the user's path and test for each of PROGNAME-LIST
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3843 do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_prog in egrep; do
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3849 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3850 # Check for GNU ac_path_EGREP and select it if it is found.
3851 # Check for GNU $ac_path_EGREP
3852 case `"$ac_path_EGREP" --version 2>&1` in
3853 *GNU*)
3854 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3855 *)
3856 ac_count=0
3857 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3858 while :
3859 do
3860 cat "conftest.in" "conftest.in" >"conftest.tmp"
3861 mv "conftest.tmp" "conftest.in"
3862 cp "conftest.in" "conftest.nl"
3863 echo 'EGREP' >> "conftest.nl"
3864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3866 ac_count=`expr $ac_count + 1`
3867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3868 # Best one so far, save it but keep looking for a better one
3869 ac_cv_path_EGREP="$ac_path_EGREP"
3870 ac_path_EGREP_max=$ac_count
3871 fi
3872 # 10*(2^10) chars as input seems more than enough
3873 test $ac_count -gt 10 && break
3874 done
3875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3876 esac
3877
3878
3879 $ac_path_EGREP_found && break 3
3880 done
3881 done
3882
3883 done
3884 IFS=$as_save_IFS
3885
3886
3887 fi
3888
3889 EGREP="$ac_cv_path_EGREP"
3890 if test -z "$EGREP"; then
3891 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3892 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3893 { (exit 1); exit 1; }; }
3894 fi
3895
3896 else
3897 ac_cv_path_EGREP=$EGREP
3898 fi
3899
3900
3901 fi
3902 fi
3903 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3904 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3905 EGREP="$ac_cv_path_EGREP"
3906
3907
3908 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3910 if test "${ac_cv_header_stdc+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <stdlib.h>
3920 #include <stdarg.h>
3921 #include <string.h>
3922 #include <float.h>
3923
3924 int
3925 main ()
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compile") 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest.$ac_objext; then
3949 ac_cv_header_stdc=yes
3950 else
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 ac_cv_header_stdc=no
3955 fi
3956
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958
3959 if test $ac_cv_header_stdc = yes; then
3960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 #include <string.h>
3968
3969 _ACEOF
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 $EGREP "memchr" >/dev/null 2>&1; then
3972 :
3973 else
3974 ac_cv_header_stdc=no
3975 fi
3976 rm -f -r conftest*
3977
3978 fi
3979
3980 if test $ac_cv_header_stdc = yes; then
3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 #include <stdlib.h>
3989
3990 _ACEOF
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "free" >/dev/null 2>&1; then
3993 :
3994 else
3995 ac_cv_header_stdc=no
3996 fi
3997 rm -f -r conftest*
3998
3999 fi
4000
4001 if test $ac_cv_header_stdc = yes; then
4002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4003 if test "$cross_compiling" = yes; then
4004 :
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <ctype.h>
4013 #include <stdlib.h>
4014 #if ((' ' & 0x0FF) == 0x020)
4015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4017 #else
4018 # define ISLOWER(c) \
4019 (('a' <= (c) && (c) <= 'i') \
4020 || ('j' <= (c) && (c) <= 'r') \
4021 || ('s' <= (c) && (c) <= 'z'))
4022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4023 #endif
4024
4025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4026 int
4027 main ()
4028 {
4029 int i;
4030 for (i = 0; i < 256; i++)
4031 if (XOR (islower (i), ISLOWER (i))
4032 || toupper (i) != TOUPPER (i))
4033 return 2;
4034 return 0;
4035 }
4036 _ACEOF
4037 rm -f conftest$ac_exeext
4038 if { (ac_try="$ac_link"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 :
4058 else
4059 echo "$as_me: program exited with status $ac_status" >&5
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ( exit $ac_status )
4064 ac_cv_header_stdc=no
4065 fi
4066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4067 fi
4068
4069
4070 fi
4071 fi
4072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4073 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4074 if test $ac_cv_header_stdc = yes; then
4075
4076 cat >>confdefs.h <<\_ACEOF
4077 #define STDC_HEADERS 1
4078 _ACEOF
4079
4080 fi
4081
4082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4093 inttypes.h stdint.h unistd.h
4094 do
4095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 $ac_includes_default
4108
4109 #include <$ac_header>
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4128 eval "$as_ac_Header=yes"
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 eval "$as_ac_Header=no"
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 fi
4138 ac_res=`eval echo '${'$as_ac_Header'}'`
4139 { echo "$as_me:$LINENO: result: $ac_res" >&5
4140 echo "${ECHO_T}$ac_res" >&6; }
4141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4142 cat >>confdefs.h <<_ACEOF
4143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4144 _ACEOF
4145
4146 fi
4147
4148 done
4149
4150
4151
4152 for ac_header in sys/bitypes.h
4153 do
4154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 fi
4161 ac_res=`eval echo '${'$as_ac_Header'}'`
4162 { echo "$as_me:$LINENO: result: $ac_res" >&5
4163 echo "${ECHO_T}$ac_res" >&6; }
4164 else
4165 # Is the header compilable?
4166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h. */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 $ac_includes_default
4175 #include <$ac_header>
4176 _ACEOF
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4179 case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4194 ac_header_compiler=yes
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ac_header_compiler=no
4200 fi
4201
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4204 echo "${ECHO_T}$ac_header_compiler" >&6; }
4205
4206 # Is the header present?
4207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <$ac_header>
4216 _ACEOF
4217 if { (ac_try="$ac_cpp conftest.$ac_ext"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 }; then
4233 ac_header_preproc=yes
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 ac_header_preproc=no
4239 fi
4240
4241 rm -f conftest.err conftest.$ac_ext
4242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4243 echo "${ECHO_T}$ac_header_preproc" >&6; }
4244
4245 # So? What about this header?
4246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4247 yes:no: )
4248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4252 ac_header_preproc=yes
4253 ;;
4254 no:yes:* )
4255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4267
4268 ;;
4269 esac
4270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 eval "$as_ac_Header=\$ac_header_preproc"
4276 fi
4277 ac_res=`eval echo '${'$as_ac_Header'}'`
4278 { echo "$as_me:$LINENO: result: $ac_res" >&5
4279 echo "${ECHO_T}$ac_res" >&6; }
4280
4281 fi
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283 cat >>confdefs.h <<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4285 _ACEOF
4286
4287 fi
4288
4289 done
4290
4291
4292 { echo "$as_me:$LINENO: checking for int8_t" >&5
4293 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4294 if test "${ac_cv_type_int8_t+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4304 #ifdef HAVE_SYS_BITYPES_H
4305 #include <sys/bitypes.h>
4306 #endif
4307
4308 typedef int8_t ac__type_new_;
4309 int
4310 main ()
4311 {
4312 if ((ac__type_new_ *) 0)
4313 return 0;
4314 if (sizeof (ac__type_new_))
4315 return 0;
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 rm -f conftest.$ac_objext
4321 if { (ac_try="$ac_compile"
4322 case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4328 ac_status=$?
4329 grep -v '^ *+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 ac_cv_type_int8_t=yes
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ac_cv_type_int8_t=no
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 fi
4347 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4348 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4349 if test $ac_cv_type_int8_t = yes; then
4350 :
4351 else
4352
4353 cat >>confdefs.h <<\_ACEOF
4354 #define int8_t signed char
4355 _ACEOF
4356
4357 fi
4358
4359 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4360 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4361 if test "${ac_cv_type_u_int8_t+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4371 #ifdef HAVE_SYS_BITYPES_H
4372 #include <sys/bitypes.h>
4373 #endif
4374
4375 typedef u_int8_t ac__type_new_;
4376 int
4377 main ()
4378 {
4379 if ((ac__type_new_ *) 0)
4380 return 0;
4381 if (sizeof (ac__type_new_))
4382 return 0;
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.$ac_objext; then
4404 ac_cv_type_u_int8_t=yes
4405 else
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ac_cv_type_u_int8_t=no
4410 fi
4411
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 fi
4414 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4415 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4416 if test $ac_cv_type_u_int8_t = yes; then
4417 :
4418 else
4419
4420 cat >>confdefs.h <<\_ACEOF
4421 #define u_int8_t unsigned char
4422 _ACEOF
4423
4424 fi
4425
4426 { echo "$as_me:$LINENO: checking for int16_t" >&5
4427 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4428 if test "${ac_cv_type_int16_t+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4438 typedef int16_t ac__type_new_;
4439 int
4440 main ()
4441 {
4442 if ((ac__type_new_ *) 0)
4443 return 0;
4444 if (sizeof (ac__type_new_))
4445 return 0;
4446 ;
4447 return 0;
4448 }
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (ac_try="$ac_compile"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_compile") 2>conftest.er1
4458 ac_status=$?
4459 grep -v '^ *+' conftest.er1 >conftest.err
4460 rm -f conftest.er1
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && {
4464 test -z "$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4466 } && test -s conftest.$ac_objext; then
4467 ac_cv_type_int16_t=yes
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 ac_cv_type_int16_t=no
4473 fi
4474
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 fi
4477 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4478 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4479 if test $ac_cv_type_int16_t = yes; then
4480 :
4481 else
4482
4483 cat >>confdefs.h <<\_ACEOF
4484 #define int16_t short
4485 _ACEOF
4486
4487 $ac_includes_default
4488 #ifdef HAVE_SYS_BITYPES_H
4489 #include <sys/bitypes.h>
4490 #endif
4491 fi
4492
4493 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4494 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4495 if test "${ac_cv_type_u_int16_t+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h. */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 $ac_includes_default
4505 #ifdef HAVE_SYS_BITYPES_H
4506 #include <sys/bitypes.h>
4507 #endif
4508
4509 typedef u_int16_t ac__type_new_;
4510 int
4511 main ()
4512 {
4513 if ((ac__type_new_ *) 0)
4514 return 0;
4515 if (sizeof (ac__type_new_))
4516 return 0;
4517 ;
4518 return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest.$ac_objext
4522 if { (ac_try="$ac_compile"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_compile") 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && {
4535 test -z "$ac_c_werror_flag" ||
4536 test ! -s conftest.err
4537 } && test -s conftest.$ac_objext; then
4538 ac_cv_type_u_int16_t=yes
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 ac_cv_type_u_int16_t=no
4544 fi
4545
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 fi
4548 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4549 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4550 if test $ac_cv_type_u_int16_t = yes; then
4551 :
4552 else
4553
4554 cat >>confdefs.h <<\_ACEOF
4555 #define u_int16_t unsigned short
4556 _ACEOF
4557
4558 fi
4559
4560 { echo "$as_me:$LINENO: checking for int32_t" >&5
4561 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4562 if test "${ac_cv_type_int32_t+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4572 #ifdef HAVE_SYS_BITYPES_H
4573 #include <sys/bitypes.h>
4574 #endif
4575
4576 typedef int32_t ac__type_new_;
4577 int
4578 main ()
4579 {
4580 if ((ac__type_new_ *) 0)
4581 return 0;
4582 if (sizeof (ac__type_new_))
4583 return 0;
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && {
4602 test -z "$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 } && test -s conftest.$ac_objext; then
4605 ac_cv_type_int32_t=yes
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 ac_cv_type_int32_t=no
4611 fi
4612
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 fi
4615 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4616 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4617 if test $ac_cv_type_int32_t = yes; then
4618 :
4619 else
4620
4621 cat >>confdefs.h <<\_ACEOF
4622 #define int32_t int
4623 _ACEOF
4624
4625 fi
4626
4627 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4628 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4629 if test "${ac_cv_type_u_int32_t+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4639 #ifdef HAVE_SYS_BITYPES_H
4640 #include <sys/bitypes.h>
4641 #endif
4642
4643 typedef u_int32_t ac__type_new_;
4644 int
4645 main ()
4646 {
4647 if ((ac__type_new_ *) 0)
4648 return 0;
4649 if (sizeof (ac__type_new_))
4650 return 0;
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_compile") 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest.$ac_objext; then
4672 ac_cv_type_u_int32_t=yes
4673 else
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677 ac_cv_type_u_int32_t=no
4678 fi
4679
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4683 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4684 if test $ac_cv_type_u_int32_t = yes; then
4685 :
4686 else
4687
4688 cat >>confdefs.h <<\_ACEOF
4689 #define u_int32_t unsigned int
4690 _ACEOF
4691
4692 fi
4693
4694 { echo "$as_me:$LINENO: checking for int64_t" >&5
4695 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4696 if test "${ac_cv_type_int64_t+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #ifdef HAVE_SYS_BITYPES_H
4707 #include <sys/bitypes.h>
4708 #endif
4709
4710 typedef int64_t ac__type_new_;
4711 int
4712 main ()
4713 {
4714 if ((ac__type_new_ *) 0)
4715 return 0;
4716 if (sizeof (ac__type_new_))
4717 return 0;
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (ac_try="$ac_compile"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
4739 ac_cv_type_int64_t=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 ac_cv_type_int64_t=no
4745 fi
4746
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4750 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4751 if test $ac_cv_type_int64_t = yes; then
4752 :
4753 else
4754
4755 cat >>confdefs.h <<\_ACEOF
4756 #define int64_t long long
4757 _ACEOF
4758
4759 fi
4760
4761 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4762 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4763 if test "${ac_cv_type_u_int64_t+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 #ifdef HAVE_SYS_BITYPES_H
4774 #include <sys/bitypes.h>
4775 #endif
4776
4777 typedef u_int64_t ac__type_new_;
4778 int
4779 main ()
4780 {
4781 if ((ac__type_new_ *) 0)
4782 return 0;
4783 if (sizeof (ac__type_new_))
4784 return 0;
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4806 ac_cv_type_u_int64_t=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 ac_cv_type_u_int64_t=no
4812 fi
4813
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4817 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4818 if test $ac_cv_type_u_int64_t = yes; then
4819 :
4820 else
4821
4822 cat >>confdefs.h <<\_ACEOF
4823 #define u_int64_t unsigned long long
4824 _ACEOF
4825
4826 fi
4827
4828
4829 #
4830 # Try to arrange for large file support.
4831 #
4832 # Check whether --enable-largefile was given.
4833 if test "${enable_largefile+set}" = set; then
4834 enableval=$enable_largefile;
4835 fi
4836
4837 if test "$enable_largefile" != no; then
4838
4839 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4840 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4841 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844 ac_cv_sys_largefile_CC=no
4845 if test "$GCC" != yes; then
4846 ac_save_CC=$CC
4847 while :; do
4848 # IRIX 6.2 and later do not support large files by default,
4849 # so use the C compiler's -n32 option if that helps.
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #include <sys/types.h>
4857 /* Check that off_t can represent 2**63 - 1 correctly.
4858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4859 since some C++ compilers masquerading as C compilers
4860 incorrectly reject 9223372036854775807. */
4861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4863 && LARGE_OFF_T % 2147483647 == 1)
4864 ? 1 : -1];
4865 int
4866 main ()
4867 {
4868
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4875 case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4890 break
4891 else
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895
4896 fi
4897
4898 rm -f core conftest.err conftest.$ac_objext
4899 CC="$CC -n32"
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
4917 ac_cv_sys_largefile_CC=' -n32'; break
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922
4923 fi
4924
4925 rm -f core conftest.err conftest.$ac_objext
4926 break
4927 done
4928 CC=$ac_save_CC
4929 rm -f conftest.$ac_ext
4930 fi
4931 fi
4932 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4933 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4934 if test "$ac_cv_sys_largefile_CC" != no; then
4935 CC=$CC$ac_cv_sys_largefile_CC
4936 fi
4937
4938 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4939 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4940 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 while :; do
4944 cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h. */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4958 ? 1 : -1];
4959 int
4960 main ()
4961 {
4962
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 rm -f conftest.$ac_objext
4968 if { (ac_try="$ac_compile"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compile") 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest.$ac_objext; then
4984 ac_cv_sys_file_offset_bits=no; break
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989
4990 fi
4991
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 #define _FILE_OFFSET_BITS 64
5000 #include <sys/types.h>
5001 /* Check that off_t can represent 2**63 - 1 correctly.
5002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5003 since some C++ compilers masquerading as C compilers
5004 incorrectly reject 9223372036854775807. */
5005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5007 && LARGE_OFF_T % 2147483647 == 1)
5008 ? 1 : -1];
5009 int
5010 main ()
5011 {
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (ac_try="$ac_compile"
5019 case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_compile") 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest.$ac_objext; then
5034 ac_cv_sys_file_offset_bits=64; break
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5038
5039
5040 fi
5041
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 ac_cv_sys_file_offset_bits=unknown
5044 break
5045 done
5046 fi
5047 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5048 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5049 case $ac_cv_sys_file_offset_bits in #(
5050 no | unknown) ;;
5051 *)
5052 cat >>confdefs.h <<_ACEOF
5053 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5054 _ACEOF
5055 ;;
5056 esac
5057 rm -f -r conftest*
5058 if test $ac_cv_sys_file_offset_bits = unknown; then
5059 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5060 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5061 if test "${ac_cv_sys_large_files+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 while :; do
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5079 ? 1 : -1];
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (ac_try="$ac_compile"
5090 case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5093 esac
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_compile") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest.$ac_objext; then
5105 ac_cv_sys_large_files=no; break
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110
5111 fi
5112
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #define _LARGE_FILES 1
5121 #include <sys/types.h>
5122 /* Check that off_t can represent 2**63 - 1 correctly.
5123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5124 since some C++ compilers masquerading as C compilers
5125 incorrectly reject 9223372036854775807. */
5126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5128 && LARGE_OFF_T % 2147483647 == 1)
5129 ? 1 : -1];
5130 int
5131 main ()
5132 {
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5155 ac_cv_sys_large_files=1; break
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160
5161 fi
5162
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 ac_cv_sys_large_files=unknown
5165 break
5166 done
5167 fi
5168 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5169 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5170 case $ac_cv_sys_large_files in #(
5171 no | unknown) ;;
5172 *)
5173 cat >>confdefs.h <<_ACEOF
5174 #define _LARGE_FILES $ac_cv_sys_large_files
5175 _ACEOF
5176 ;;
5177 esac
5178 rm -f -r conftest*
5179 fi
5180 fi
5181
5182 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5183 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5184 if test "${ac_cv_sys_largefile_source+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 while :; do
5188 cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 #include <stdio.h>
5195 int
5196 main ()
5197 {
5198 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5199 ;
5200 return 0;
5201 }
5202 _ACEOF
5203 rm -f conftest.$ac_objext conftest$ac_exeext
5204 if { (ac_try="$ac_link"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_link") 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest$ac_exeext &&
5220 $as_test_x conftest$ac_exeext; then
5221 ac_cv_sys_largefile_source=no; break
5222 else
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226
5227 fi
5228
5229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5230 conftest$ac_exeext conftest.$ac_ext
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #define _LARGEFILE_SOURCE 1
5238 #include <stdio.h>
5239 int
5240 main ()
5241 {
5242 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (ac_try="$ac_link"
5249 case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_link") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest$ac_exeext &&
5264 $as_test_x conftest$ac_exeext; then
5265 ac_cv_sys_largefile_source=1; break
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270
5271 fi
5272
5273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5274 conftest$ac_exeext conftest.$ac_ext
5275 ac_cv_sys_largefile_source=unknown
5276 break
5277 done
5278 fi
5279 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5280 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5281 case $ac_cv_sys_largefile_source in #(
5282 no | unknown) ;;
5283 *)
5284 cat >>confdefs.h <<_ACEOF
5285 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5286 _ACEOF
5287 ;;
5288 esac
5289 rm -f -r conftest*
5290
5291 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5292 # in glibc 2.1.3, but that breaks too many other things.
5293 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5294 if test $ac_cv_sys_largefile_source != unknown; then
5295
5296 cat >>confdefs.h <<\_ACEOF
5297 #define HAVE_FSEEKO 1
5298 _ACEOF
5299
5300 fi
5301
5302
5303
5304
5305
5306
5307 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5308 do
5309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 fi
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5319 else
5320 # Is the header compilable?
5321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <$ac_header>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_header_compiler=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_header_compiler=no
5355 fi
5356
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6; }
5360
5361 # Is the header present?
5362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5371 _ACEOF
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 }; then
5388 ac_header_preproc=yes
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_header_preproc=no
5394 fi
5395
5396 rm -f conftest.err conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6; }
5399
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5402 yes:no: )
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc=yes
5408 ;;
5409 no:yes:* )
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5422
5423 ;;
5424 esac
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 eval "$as_ac_Header=\$ac_header_preproc"
5431 fi
5432 ac_res=`eval echo '${'$as_ac_Header'}'`
5433 { echo "$as_me:$LINENO: result: $ac_res" >&5
5434 echo "${ECHO_T}$ac_res" >&6; }
5435
5436 fi
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5440 _ACEOF
5441
5442 fi
5443
5444 done
5445
5446
5447 for ac_header in net/pfvar.h
5448 do
5449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <sys/types.h>
5462 #include <sys/socket.h>
5463 #include <net/if.h>
5464
5465 #include <$ac_header>
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (ac_try="$ac_compile"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5484 eval "$as_ac_Header=yes"
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 eval "$as_ac_Header=no"
5490 fi
5491
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 fi
5494 ac_res=`eval echo '${'$as_ac_Header'}'`
5495 { echo "$as_me:$LINENO: result: $ac_res" >&5
5496 echo "${ECHO_T}$ac_res" >&6; }
5497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5498 cat >>confdefs.h <<_ACEOF
5499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 _ACEOF
5501
5502 fi
5503
5504 done
5505
5506 if test "$ac_cv_header_net_pfvar_h" = yes; then
5507 #
5508 # Check for various PF actions.
5509 #
5510 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5511 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <sys/types.h>
5519 #include <sys/socket.h>
5520 #include <net/if.h>
5521 #include <net/pfvar.h>
5522 int
5523 main ()
5524 {
5525 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5532 case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5547
5548 { echo "$as_me:$LINENO: result: yes" >&5
5549 echo "${ECHO_T}yes" >&6; }
5550
5551 cat >>confdefs.h <<\_ACEOF
5552 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5553 _ACEOF
5554
5555
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 fi
5566
5567 for ac_header in netinet/if_ether.h
5568 do
5569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <sys/types.h>
5582 #include <sys/socket.h>
5583
5584 #include <$ac_header>
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 eval "$as_ac_Header=yes"
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 eval "$as_ac_Header=no"
5609 fi
5610
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 ac_res=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615 echo "${ECHO_T}$ac_res" >&6; }
5616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5617 cat >>confdefs.h <<_ACEOF
5618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5619 _ACEOF
5620
5621 fi
5622
5623 done
5624
5625 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5626 #
5627 # The simple test didn't work.
5628 # Do we need to include <net/if.h> first?
5629 # Unset ac_cv_header_netinet_if_ether_h so we don't
5630 # treat the previous failure as a cached value and
5631 # suppress the next test.
5632 #
5633 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5634 echo "$as_me: Rechecking with some additional includes" >&6;}
5635 unset ac_cv_header_netinet_if_ether_h
5636
5637 for ac_header in netinet/if_ether.h
5638 do
5639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <sys/types.h>
5652 #include <sys/socket.h>
5653 #include <netinet/in.h>
5654 struct mbuf;
5655 struct rtentry;
5656 #include <net/if.h>
5657
5658 #include <$ac_header>
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.$ac_objext; then
5677 eval "$as_ac_Header=yes"
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 eval "$as_ac_Header=no"
5683 fi
5684
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 fi
5687 ac_res=`eval echo '${'$as_ac_Header'}'`
5688 { echo "$as_me:$LINENO: result: $ac_res" >&5
5689 echo "${ECHO_T}$ac_res" >&6; }
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h <<_ACEOF
5692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693 _ACEOF
5694
5695 fi
5696
5697 done
5698
5699 fi
5700
5701 if test "$GCC" = yes ; then
5702 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5703 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5704 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 /*
5714 * This generates a "duplicate case value" when fixincludes
5715 * has not be run.
5716 */
5717 # include <sys/types.h>
5718 # include <sys/time.h>
5719 # include <sys/ioctl.h>
5720 # ifdef HAVE_SYS_IOCCOM_H
5721 # include <sys/ioccom.h>
5722 # endif
5723 int
5724 main ()
5725 {
5726 switch (0) {
5727 case _IO('A', 1):;
5728 case _IO('B', 1):;
5729 }
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_cv_lbl_gcc_fixincludes=yes
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_cv_lbl_gcc_fixincludes=no
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5761
5762 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5763 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5764 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5765 # Don't cache failure
5766 unset ac_cv_lbl_gcc_fixincludes
5767 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5768 echo "$as_me: error: see the INSTALL for more info" >&2;}
5769 { (exit 1); exit 1; }; }
5770 fi
5771 fi
5772
5773
5774
5775 for ac_func in strerror strlcpy
5776 do
5777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5791 #define $ac_func innocuous_$ac_func
5792
5793 /* System header to define __stub macros and hopefully few prototypes,
5794 which can conflict with char $ac_func (); below.
5795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 <limits.h> exists even on freestanding compilers. */
5797
5798 #ifdef __STDC__
5799 # include <limits.h>
5800 #else
5801 # include <assert.h>
5802 #endif
5803
5804 #undef $ac_func
5805
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5809 #ifdef __cplusplus
5810 extern "C"
5811 #endif
5812 char $ac_func ();
5813 /* The GNU C library defines this for functions which it implements
5814 to always fail with ENOSYS. Some functions are actually named
5815 something starting with __ and the normal name is an alias. */
5816 #if defined __stub_$ac_func || defined __stub___$ac_func
5817 choke me
5818 #endif
5819
5820 int
5821 main ()
5822 {
5823 return $ac_func ();
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (ac_try="$ac_link"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_link") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest$ac_exeext &&
5845 $as_test_x conftest$ac_exeext; then
5846 eval "$as_ac_var=yes"
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 eval "$as_ac_var=no"
5852 fi
5853
5854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5855 conftest$ac_exeext conftest.$ac_ext
5856 fi
5857 ac_res=`eval echo '${'$as_ac_var'}'`
5858 { echo "$as_me:$LINENO: result: $ac_res" >&5
5859 echo "${ECHO_T}$ac_res" >&6; }
5860 if test `eval echo '${'$as_ac_var'}'` = yes; then
5861 cat >>confdefs.h <<_ACEOF
5862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5863 _ACEOF
5864
5865 fi
5866 done
5867
5868
5869 needsnprintf=no
5870
5871
5872 for ac_func in vsnprintf snprintf
5873 do
5874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5888 #define $ac_func innocuous_$ac_func
5889
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char $ac_func (); below.
5892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893 <limits.h> exists even on freestanding compilers. */
5894
5895 #ifdef __STDC__
5896 # include <limits.h>
5897 #else
5898 # include <assert.h>
5899 #endif
5900
5901 #undef $ac_func
5902
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 char $ac_func ();
5910 /* The GNU C library defines this for functions which it implements
5911 to always fail with ENOSYS. Some functions are actually named
5912 something starting with __ and the normal name is an alias. */
5913 #if defined __stub_$ac_func || defined __stub___$ac_func
5914 choke me
5915 #endif
5916
5917 int
5918 main ()
5919 {
5920 return $ac_func ();
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (ac_try="$ac_link"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest$ac_exeext &&
5942 $as_test_x conftest$ac_exeext; then
5943 eval "$as_ac_var=yes"
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 eval "$as_ac_var=no"
5949 fi
5950
5951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 conftest$ac_exeext conftest.$ac_ext
5953 fi
5954 ac_res=`eval echo '${'$as_ac_var'}'`
5955 { echo "$as_me:$LINENO: result: $ac_res" >&5
5956 echo "${ECHO_T}$ac_res" >&6; }
5957 if test `eval echo '${'$as_ac_var'}'` = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5960 _ACEOF
5961
5962 else
5963 needsnprintf=yes
5964 fi
5965 done
5966
5967 if test $needsnprintf = yes; then
5968 case " $LIBOBJS " in
5969 *" snprintf.$ac_objext "* ) ;;
5970 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5971 ;;
5972 esac
5973
5974 fi
5975
5976 #
5977 # Do this before checking for ether_hostton(), as it's a
5978 # "gethostbyname() -ish function".
5979 #
5980
5981 # Most operating systems have gethostbyname() in the default searched
5982 # libraries (i.e. libc):
5983 # Some OSes (eg. Solaris) place it in libnsl
5984 # Some strange OSes (SINIX) have it in libsocket:
5985 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5986 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5987 if test "${ac_cv_search_gethostbyname+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 ac_func_search_save_LIBS=$LIBS
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6001 #ifdef __cplusplus
6002 extern "C"
6003 #endif
6004 char gethostbyname ();
6005 int
6006 main ()
6007 {
6008 return gethostbyname ();
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 for ac_lib in '' nsl socket resolv; do
6014 if test -z "$ac_lib"; then
6015 ac_res="none required"
6016 else
6017 ac_res=-l$ac_lib
6018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6019 fi
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (ac_try="$ac_link"
6022 case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_link") 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest$ac_exeext &&
6037 $as_test_x conftest$ac_exeext; then
6038 ac_cv_search_gethostbyname=$ac_res
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043
6044 fi
6045
6046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6047 conftest$ac_exeext
6048 if test "${ac_cv_search_gethostbyname+set}" = set; then
6049 break
6050 fi
6051 done
6052 if test "${ac_cv_search_gethostbyname+set}" = set; then
6053 :
6054 else
6055 ac_cv_search_gethostbyname=no
6056 fi
6057 rm conftest.$ac_ext
6058 LIBS=$ac_func_search_save_LIBS
6059 fi
6060 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6061 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6062 ac_res=$ac_cv_search_gethostbyname
6063 if test "$ac_res" != no; then
6064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6065
6066 fi
6067
6068 # Unfortunately libsocket sometimes depends on libnsl and
6069 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6070 if test "$ac_cv_search_gethostbyname" = "no"
6071 then
6072 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6073 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6074 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077 ac_check_lib_save_LIBS=$LIBS
6078 LIBS="-lsocket -lnsl $LIBS"
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085
6086 /* Override any GCC internal prototype to avoid an error.
6087 Use char because int might match the return type of a GCC
6088 builtin and then its argument prototype would still apply. */
6089 #ifdef __cplusplus
6090 extern "C"
6091 #endif
6092 char gethostbyname ();
6093 int
6094 main ()
6095 {
6096 return gethostbyname ();
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (ac_try="$ac_link"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest$ac_exeext &&
6118 $as_test_x conftest$ac_exeext; then
6119 ac_cv_lib_socket_gethostbyname=yes
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 ac_cv_lib_socket_gethostbyname=no
6125 fi
6126
6127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6128 conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6130 fi
6131 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6132 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6133 if test $ac_cv_lib_socket_gethostbyname = yes; then
6134 LIBS="-lsocket -lnsl $LIBS"
6135 fi
6136
6137 fi
6138 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6139 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6140 if test "${ac_cv_search_socket+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 ac_func_search_save_LIBS=$LIBS
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 char socket ();
6158 int
6159 main ()
6160 {
6161 return socket ();
6162 ;
6163 return 0;
6164 }
6165 _ACEOF
6166 for ac_lib in '' socket; do
6167 if test -z "$ac_lib"; then
6168 ac_res="none required"
6169 else
6170 ac_res=-l$ac_lib
6171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6172 fi
6173 rm -f conftest.$ac_objext conftest$ac_exeext
6174 if { (ac_try="$ac_link"
6175 case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_link") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest$ac_exeext &&
6190 $as_test_x conftest$ac_exeext; then
6191 ac_cv_search_socket=$ac_res
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196
6197 fi
6198
6199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6200 conftest$ac_exeext
6201 if test "${ac_cv_search_socket+set}" = set; then
6202 break
6203 fi
6204 done
6205 if test "${ac_cv_search_socket+set}" = set; then
6206 :
6207 else
6208 ac_cv_search_socket=no
6209 fi
6210 rm conftest.$ac_ext
6211 LIBS=$ac_func_search_save_LIBS
6212 fi
6213 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6214 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6215 ac_res=$ac_cv_search_socket
6216 if test "$ac_res" != no; then
6217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6218
6219 else
6220 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6221 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6222 if test "${ac_cv_lib_socket_socket+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lsocket -lnsl $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6237 #ifdef __cplusplus
6238 extern "C"
6239 #endif
6240 char socket ();
6241 int
6242 main ()
6243 {
6244 return socket ();
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && {
6263 test -z "$ac_c_werror_flag" ||
6264 test ! -s conftest.err
6265 } && test -s conftest$ac_exeext &&
6266 $as_test_x conftest$ac_exeext; then
6267 ac_cv_lib_socket_socket=yes
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_cv_lib_socket_socket=no
6273 fi
6274
6275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6276 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6278 fi
6279 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6280 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6281 if test $ac_cv_lib_socket_socket = yes; then
6282 LIBS="-lsocket -lnsl $LIBS"
6283 fi
6284
6285 fi
6286
6287 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6288 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6289 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6290 if test "${ac_cv_search_putmsg+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 ac_func_search_save_LIBS=$LIBS
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300
6301 /* Override any GCC internal prototype to avoid an error.
6302 Use char because int might match the return type of a GCC
6303 builtin and then its argument prototype would still apply. */
6304 #ifdef __cplusplus
6305 extern "C"
6306 #endif
6307 char putmsg ();
6308 int
6309 main ()
6310 {
6311 return putmsg ();
6312 ;
6313 return 0;
6314 }
6315 _ACEOF
6316 for ac_lib in '' str; do
6317 if test -z "$ac_lib"; then
6318 ac_res="none required"
6319 else
6320 ac_res=-l$ac_lib
6321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6322 fi
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (ac_try="$ac_link"
6325 case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_link") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest$ac_exeext &&
6340 $as_test_x conftest$ac_exeext; then
6341 ac_cv_search_putmsg=$ac_res
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346
6347 fi
6348
6349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6350 conftest$ac_exeext
6351 if test "${ac_cv_search_putmsg+set}" = set; then
6352 break
6353 fi
6354 done
6355 if test "${ac_cv_search_putmsg+set}" = set; then
6356 :
6357 else
6358 ac_cv_search_putmsg=no
6359 fi
6360 rm conftest.$ac_ext
6361 LIBS=$ac_func_search_save_LIBS
6362 fi
6363 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6364 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6365 ac_res=$ac_cv_search_putmsg
6366 if test "$ac_res" != no; then
6367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6368
6369 fi
6370
6371
6372
6373 #
6374 # You are in a twisty little maze of UN*Xes, all different.
6375 # Some might not have ether_hostton().
6376 # Some might have it, but not declare it in any header file.
6377 # Some might have it, but declare it in <netinet/if_ether.h>.
6378 # Some might have it, but declare it in <netinet/ether.h>
6379 # (And some might have it but document it as something declared in
6380 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6381 #
6382 # Before you is a C compiler.
6383 #
6384
6385 for ac_func in ether_hostton
6386 do
6387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h. */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401 #define $ac_func innocuous_$ac_func
6402
6403 /* System header to define __stub macros and hopefully few prototypes,
6404 which can conflict with char $ac_func (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6407
6408 #ifdef __STDC__
6409 # include <limits.h>
6410 #else
6411 # include <assert.h>
6412 #endif
6413
6414 #undef $ac_func
6415
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6419 #ifdef __cplusplus
6420 extern "C"
6421 #endif
6422 char $ac_func ();
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined __stub_$ac_func || defined __stub___$ac_func
6427 choke me
6428 #endif
6429
6430 int
6431 main ()
6432 {
6433 return $ac_func ();
6434 ;
6435 return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (ac_try="$ac_link"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_link") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext &&
6455 $as_test_x conftest$ac_exeext; then
6456 eval "$as_ac_var=yes"
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 eval "$as_ac_var=no"
6462 fi
6463
6464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6465 conftest$ac_exeext conftest.$ac_ext
6466 fi
6467 ac_res=`eval echo '${'$as_ac_var'}'`
6468 { echo "$as_me:$LINENO: result: $ac_res" >&5
6469 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_var'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6473 _ACEOF
6474
6475 fi
6476 done
6477
6478 if test "$ac_cv_func_ether_hostton" = yes; then
6479 #
6480 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6481 #
6482 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6483 #
6484 # Yes. Does it declare ether_hostton()?
6485 #
6486 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6487 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6488 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497
6498 #include <sys/types.h>
6499 #include <sys/socket.h>
6500 #include <netinet/in.h>
6501 #include <arpa/inet.h>
6502 struct mbuf;
6503 struct rtentry;
6504 #include <net/if.h>
6505 #include <netinet/if_ether.h>
6506
6507
6508 int
6509 main ()
6510 {
6511 #ifndef ether_hostton
6512 (void) ether_hostton;
6513 #endif
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6521 case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 ac_cv_have_decl_ether_hostton=yes
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 ac_cv_have_decl_ether_hostton=no
6542 fi
6543
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 fi
6546 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6547 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6548 if test $ac_cv_have_decl_ether_hostton = yes; then
6549
6550
6551 cat >>confdefs.h <<\_ACEOF
6552 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6553 _ACEOF
6554
6555
6556 fi
6557
6558 fi
6559 #
6560 # Did that succeed?
6561 #
6562 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6563 #
6564 # No, how about <netinet/ether.h>, as on Linux?
6565 #
6566
6567 for ac_header in netinet/ether.h
6568 do
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 fi
6576 ac_res=`eval echo '${'$as_ac_Header'}'`
6577 { echo "$as_me:$LINENO: result: $ac_res" >&5
6578 echo "${ECHO_T}$ac_res" >&6; }
6579 else
6580 # Is the header compilable?
6581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6590 #include <$ac_header>
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_header_compiler=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_header_compiler=no
6615 fi
6616
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6; }
6620
6621 # Is the header present?
6622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <$ac_header>
6631 _ACEOF
6632 if { (ac_try="$ac_cpp conftest.$ac_ext"
6633 case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636 esac
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } >/dev/null && {
6645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 }; then
6648 ac_header_preproc=yes
6649 else
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 ac_header_preproc=no
6654 fi
6655
6656 rm -f conftest.err conftest.$ac_ext
6657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658 echo "${ECHO_T}$ac_header_preproc" >&6; }
6659
6660 # So? What about this header?
6661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6662 yes:no: )
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6667 ac_header_preproc=yes
6668 ;;
6669 no:yes:* )
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6682
6683 ;;
6684 esac
6685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 eval "$as_ac_Header=\$ac_header_preproc"
6691 fi
6692 ac_res=`eval echo '${'$as_ac_Header'}'`
6693 { echo "$as_me:$LINENO: result: $ac_res" >&5
6694 echo "${ECHO_T}$ac_res" >&6; }
6695
6696 fi
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698 cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6700 _ACEOF
6701
6702 fi
6703
6704 done
6705
6706 if test "$ac_cv_header_netinet_ether_h" = yes; then
6707 #
6708 # We have it - does it declare ether_hostton()?
6709 # Unset ac_cv_have_decl_ether_hostton so we don't
6710 # treat the previous failure as a cached value and
6711 # suppress the next test.
6712 #
6713 unset ac_cv_have_decl_ether_hostton
6714 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6715 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6716 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725
6726 #include <netinet/ether.h>
6727
6728
6729 int
6730 main ()
6731 {
6732 #ifndef ether_hostton
6733 (void) ether_hostton;
6734 #endif
6735
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (ac_try="$ac_compile"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 ac_cv_have_decl_ether_hostton=yes
6758 else
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 ac_cv_have_decl_ether_hostton=no
6763 fi
6764
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 fi
6767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6768 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6769 if test $ac_cv_have_decl_ether_hostton = yes; then
6770
6771
6772 cat >>confdefs.h <<\_ACEOF
6773 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6774 _ACEOF
6775
6776
6777 fi
6778
6779 fi
6780 fi
6781 #
6782 # Is ether_hostton() declared?
6783 #
6784 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6785 #
6786 # No, we'll have to declare it ourselves.
6787 # Do we have "struct ether_addr"?
6788 #
6789 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6790 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6791 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h. */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800
6801 #include <sys/types.h>
6802 #include <sys/socket.h>
6803 #include <netinet/in.h>
6804 #include <arpa/inet.h>
6805 struct mbuf;
6806 struct rtentry;
6807 #include <net/if.h>
6808 #include <netinet/if_ether.h>
6809
6810
6811 typedef struct ether_addr ac__type_new_;
6812 int
6813 main ()
6814 {
6815 if ((ac__type_new_ *) 0)
6816 return 0;
6817 if (sizeof (ac__type_new_))
6818 return 0;
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_type_struct_ether_addr=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 ac_cv_type_struct_ether_addr=no
6846 fi
6847
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 fi
6850 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6851 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6852 if test $ac_cv_type_struct_ether_addr = yes; then
6853
6854 cat >>confdefs.h <<_ACEOF
6855 #define HAVE_STRUCT_ETHER_ADDR 1
6856 _ACEOF
6857
6858
6859 fi
6860
6861
6862 cat >>confdefs.h <<\_ACEOF
6863 #define HAVE_DECL_ETHER_HOSTTON 0
6864 _ACEOF
6865
6866 else
6867
6868 cat >>confdefs.h <<\_ACEOF
6869 #define HAVE_DECL_ETHER_HOSTTON 1
6870 _ACEOF
6871
6872 fi
6873 fi
6874
6875 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6876 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6877 # Check whether --enable-protochain was given.
6878 if test "${enable_protochain+set}" = set; then
6879 enableval=$enable_protochain;
6880 fi
6881
6882 case "x$enable_protochain" in
6883 xyes) enable_protochain=enabled ;;
6884 xno) enable_protochain=disabled ;;
6885 x) enable_protochain=enabled ;;
6886 esac
6887
6888 if test "$enable_protochain" = "disabled"; then
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define NO_PROTOCHAIN 1
6892 _ACEOF
6893
6894 fi
6895 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6896 echo "${ECHO_T}${enable_protochain}" >&6; }
6897
6898 #
6899 # SITA support is mutually exclusive with native capture support;
6900 # "--with-sita" selects SITA support.
6901 #
6902
6903 # Check whether --with-sita was given.
6904 if test "${with_sita+set}" = set; then
6905 withval=$with_sita;
6906 if test ! "x$withval" = "xno" ; then
6907
6908 cat >>confdefs.h <<\_ACEOF
6909 #define SITA 1
6910 _ACEOF
6911
6912 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6913 echo "$as_me: Enabling SITA ACN support" >&6;}
6914 V_PCAP=sita
6915 V_FINDALLDEVS=sita
6916 fi
6917
6918 else
6919
6920 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6921 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6922 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6923 { (exit 1); exit 1; }; }
6924 fi
6925
6926 # Check whether --with-pcap was given.
6927 if test "${with_pcap+set}" = set; then
6928 withval=$with_pcap;
6929 fi
6930
6931 { echo "$as_me:$LINENO: checking packet capture type" >&5
6932 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6933 if test ! -z "$with_pcap" ; then
6934 V_PCAP="$withval"
6935 elif test -r /dev/bpf -o -h /dev/bpf ; then
6936 #
6937 # Cloning BPF device.
6938 #
6939 V_PCAP=bpf
6940
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_CLONING_BPF 1
6943 _ACEOF
6944
6945 elif test -r /dev/bpf0 ; then
6946 V_PCAP=bpf
6947 elif test -r /usr/include/net/pfilt.h ; then
6948 V_PCAP=pf
6949 elif test -r /dev/enet ; then
6950 V_PCAP=enet
6951 elif test -r /dev/nit ; then
6952 V_PCAP=snit
6953 elif test -r /usr/include/sys/net/nit.h ; then
6954 V_PCAP=nit
6955 elif test -r /usr/include/linux/socket.h ; then
6956 V_PCAP=linux
6957 elif test -r /usr/include/net/raw.h ; then
6958 V_PCAP=snoop
6959 elif test -r /usr/include/odmi.h ; then
6960 #
6961 # On AIX, the BPF devices might not yet be present - they're
6962 # created the first time libpcap runs after booting.
6963 # We check for odmi.h instead.
6964 #
6965 V_PCAP=bpf
6966 elif test -c /dev/bpf0 ; then # check again in case not readable
6967 V_PCAP=bpf
6968 elif test -r /usr/include/sys/dlpi.h ; then
6969 V_PCAP=dlpi
6970 elif test -c /dev/enet ; then # check again in case not readable
6971 V_PCAP=enet
6972 elif test -c /dev/nit ; then # check again in case not readable
6973 V_PCAP=snit
6974 else
6975 V_PCAP=null
6976 fi
6977 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
6978 echo "${ECHO_T}$V_PCAP" >&6; }
6979
6980 #
6981 # Do capture-mechanism-dependent tests.
6982 #
6983 case "$V_PCAP" in
6984 dlpi)
6985 #
6986 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6987 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6988 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6989 # private version also existed, which did not have the same APIs.
6990 # Due to a gcc bug, the default search path for 32-bit libraries does
6991 # not include /lib, we add it explicitly here.
6992 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6993 # Also, due to the bug above applications that link to libpcap with
6994 # libdlpi will have to add "-L/lib" option to "configure".
6995 #
6996 saved_ldflags=$LDFLAGS
6997 LDFLAGS="$LIBS -L/lib"
6998 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6999 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7000 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 ac_check_lib_save_LIBS=$LIBS
7004 LIBS="-ldlpi $LIBS"
7005 cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h. */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7011
7012 /* Override any GCC internal prototype to avoid an error.
7013 Use char because int might match the return type of a GCC
7014 builtin and then its argument prototype would still apply. */
7015 #ifdef __cplusplus
7016 extern "C"
7017 #endif
7018 char dlpi_walk ();
7019 int
7020 main ()
7021 {
7022 return dlpi_walk ();
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (ac_try="$ac_link"
7029 case "(($ac_try" in
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7032 esac
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_link") 2>conftest.er1
7035 ac_status=$?
7036 grep -v '^ *+' conftest.er1 >conftest.err
7037 rm -f conftest.er1
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest$ac_exeext &&
7044 $as_test_x conftest$ac_exeext; then
7045 ac_cv_lib_dlpi_dlpi_walk=yes
7046 else
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ac_cv_lib_dlpi_dlpi_walk=no
7051 fi
7052
7053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7054 conftest$ac_exeext conftest.$ac_ext
7055 LIBS=$ac_check_lib_save_LIBS
7056 fi
7057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7058 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7059 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7060 LIBS="-ldlpi $LIBS"
7061 V_PCAP=libdlpi
7062
7063 cat >>confdefs.h <<\_ACEOF
7064 #define HAVE_LIBDLPI 1
7065 _ACEOF
7066
7067 else
7068 V_PCAP=dlpi
7069 fi
7070
7071 LDFLAGS=$saved_ldflags
7072
7073 #
7074 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7075 # versions of DLPI.
7076 #
7077 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7078 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7079 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088
7089 #include <sys/types.h>
7090 #include <sys/time.h>
7091 #include <sys/dlpi.h>
7092
7093 int
7094 main ()
7095 {
7096 int i = DL_PROMISC_PHYS;
7097 ;
7098 return 0;
7099 }
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7103 case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106 esac
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_cv_sys_dlpi_usable=yes
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 ac_cv_sys_dlpi_usable=no
7124 fi
7125
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 fi
7128
7129 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7130 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7131 if test $ac_cv_sys_dlpi_usable = no ; then
7132 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7133 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7134 { (exit 1); exit 1; }; }
7135 fi
7136
7137 #
7138 # Check whether we have a /dev/dlpi device or have multiple devices.
7139 #
7140 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7141 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7142 if test -c /dev/dlpi ; then
7143 { echo "$as_me:$LINENO: result: yes" >&5
7144 echo "${ECHO_T}yes" >&6; }
7145
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DEV_DLPI 1
7148 _ACEOF
7149
7150 else
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 dir="/dev/dlpi"
7154 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7155 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7156 if test -d $dir ; then
7157 { echo "$as_me:$LINENO: result: yes" >&5
7158 echo "${ECHO_T}yes" >&6; }
7159
7160 cat >>confdefs.h <<_ACEOF
7161 #define PCAP_DEV_PREFIX "$dir"
7162 _ACEOF
7163
7164 else
7165 { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7167 fi
7168 fi
7169
7170 #
7171 # This check is for Solaris with DLPI support for passive modes.
7172 # See dlpi(7P) for more details.
7173 #
7174 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7175 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7176 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185
7186 # include <sys/types.h>
7187 # include <sys/dlpi.h>
7188 int
7189 main ()
7190 {
7191 u_int i = sizeof(dl_passive_req_t)
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_cv_lbl_has_dl_passive_req_t=yes
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 ac_cv_lbl_has_dl_passive_req_t=no
7219 fi
7220
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 fi
7223
7224 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7225 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7226 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7227
7228 cat >>confdefs.h <<\_ACEOF
7229 #define HAVE_DLPI_PASSIVE 1
7230 _ACEOF
7231
7232 fi
7233 ;;
7234
7235 linux)
7236 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
7237 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
7238 if test "$cross_compiling" = yes; then
7239 if test "${ac_cv_linux_vers+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 ac_cv_linux_vers=unknown
7243 fi
7244
7245 else
7246 if test "${ac_cv_linux_vers+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249 ac_cv_linux_vers=`uname -r 2>&1 | \
7250 sed -n -e '$s/.* //' -e '$s/\..*//p'`
7251 fi
7252
7253 fi
7254 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
7255 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
7256 if test $ac_cv_linux_vers = unknown ; then
7257 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
7258 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
7259 { (exit 1); exit 1; }; }
7260 fi
7261 if test $ac_cv_linux_vers -lt 2 ; then
7262 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
7263 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
7264 { (exit 1); exit 1; }; }
7265 fi
7266
7267 #
7268 # Do we have the wireless extensions?
7269 #
7270
7271 for ac_header in linux/wireless.h
7272 do
7273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h. */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285
7286 #include <sys/socket.h>
7287 #include <linux/if.h>
7288 #include <linux/types.h>
7289
7290
7291 #include <$ac_header>
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 eval "$as_ac_Header=yes"
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 eval "$as_ac_Header=no"
7316 fi
7317
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 fi
7320 ac_res=`eval echo '${'$as_ac_Header'}'`
7321 { echo "$as_me:$LINENO: result: $ac_res" >&5
7322 echo "${ECHO_T}$ac_res" >&6; }
7323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7324 cat >>confdefs.h <<_ACEOF
7325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7326 _ACEOF
7327
7328 fi
7329
7330 done
7331
7332
7333 #
7334 # Do we have libnl?
7335 #
7336
7337 # Check whether --with-libnl was given.
7338 if test "${with_libnl+set}" = set; then
7339 withval=$with_libnl; with_libnl=$withval
7340 fi
7341
7342
7343 if test x$with_libnl != xno ; then
7344 { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7345 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7346 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 ac_check_lib_save_LIBS=$LIBS
7350 LIBS="-lnl $LIBS"
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357
7358 /* Override any GCC internal prototype to avoid an error.
7359 Use char because int might match the return type of a GCC
7360 builtin and then its argument prototype would still apply. */
7361 #ifdef __cplusplus
7362 extern "C"
7363 #endif
7364 char nl_handle_alloc ();
7365 int
7366 main ()
7367 {
7368 return nl_handle_alloc ();
7369 ;
7370 return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (ac_try="$ac_link"
7375 case "(($ac_try" in
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7378 esac
7379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_link") 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest$ac_exeext &&
7390 $as_test_x conftest$ac_exeext; then
7391 ac_cv_lib_nl_nl_handle_alloc=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 ac_cv_lib_nl_nl_handle_alloc=no
7397 fi
7398
7399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7400 conftest$ac_exeext conftest.$ac_ext
7401 LIBS=$ac_check_lib_save_LIBS
7402 fi
7403 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7404 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7405 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7406 LIBS="-lnl $LIBS"
7407
7408 cat >>confdefs.h <<\_ACEOF
7409 #define HAVE_LIBNL 1
7410 _ACEOF
7411
7412 else
7413 if test x$with_libnl = xyes ; then
7414 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7415 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7416 { (exit 1); exit 1; }; }
7417 fi
7418
7419 fi
7420
7421 fi
7422
7423 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7424 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7425 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434
7435 # include <linux/if_packet.h>
7436 int
7437 main ()
7438 {
7439 struct tpacket_stats stats
7440 ;
7441 return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext
7445 if { (ac_try="$ac_compile"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_compile") 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && {
7458 test -z "$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 } && test -s conftest.$ac_objext; then
7461 ac_cv_lbl_tpacket_stats=yes
7462 else
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7465
7466 ac_cv_lbl_tpacket_stats=no
7467 fi
7468
7469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 fi
7471
7472 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7473 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7474 if test $ac_cv_lbl_tpacket_stats = yes; then
7475
7476 cat >>confdefs.h <<\_ACEOF
7477 #define HAVE_TPACKET_STATS 1
7478 _ACEOF
7479
7480 fi
7481 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7482 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7483 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492
7493 # include <linux/if_packet.h>
7494 int
7495 main ()
7496 {
7497 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7498 ;
7499 return 0;
7500 }
7501 _ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7520 else
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7525 fi
7526
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 fi
7529
7530 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7531 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7532 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7533 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7534
7535
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7538 _ACEOF
7539
7540 fi
7541 ;;
7542
7543 bpf)
7544 #
7545 # Check whether we have the *BSD-style ioctls.
7546 #
7547
7548 for ac_header in net/if_media.h
7549 do
7550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 fi
7557 ac_res=`eval echo '${'$as_ac_Header'}'`
7558 { echo "$as_me:$LINENO: result: $ac_res" >&5
7559 echo "${ECHO_T}$ac_res" >&6; }
7560 else
7561 # Is the header compilable?
7562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #include <$ac_header>
7572 _ACEOF
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_header_compiler=yes
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595 ac_header_compiler=no
7596 fi
7597
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 echo "${ECHO_T}$ac_header_compiler" >&6; }
7601
7602 # Is the header present?
7603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <$ac_header>
7612 _ACEOF
7613 if { (ac_try="$ac_cpp conftest.$ac_ext"
7614 case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617 esac
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } >/dev/null && {
7626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7628 }; then
7629 ac_header_preproc=yes
7630 else
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 ac_header_preproc=no
7635 fi
7636
7637 rm -f conftest.err conftest.$ac_ext
7638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7639 echo "${ECHO_T}$ac_header_preproc" >&6; }
7640
7641 # So? What about this header?
7642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7643 yes:no: )
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7648 ac_header_preproc=yes
7649 ;;
7650 no:yes:* )
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7663
7664 ;;
7665 esac
7666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 eval "$as_ac_Header=\$ac_header_preproc"
7672 fi
7673 ac_res=`eval echo '${'$as_ac_Header'}'`
7674 { echo "$as_me:$LINENO: result: $ac_res" >&5
7675 echo "${ECHO_T}$ac_res" >&6; }
7676
7677 fi
7678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7679 cat >>confdefs.h <<_ACEOF
7680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7681 _ACEOF
7682
7683 fi
7684
7685 done
7686
7687
7688 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7689 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 #include <sys/socket.h>
7697 #include <sys/ioctl.h>
7698 #include <net/if.h>
7699 #include <net/bpf.h>
7700 int
7701 main ()
7702 {
7703 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7704 ;
7705 return 0;
7706 }
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725
7726 { echo "$as_me:$LINENO: result: yes" >&5
7727 echo "${ECHO_T}yes" >&6; }
7728
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_ZEROCOPY_BPF 1
7731 _ACEOF
7732
7733
7734 else
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7737
7738 { echo "$as_me:$LINENO: result: no" >&5
7739 echo "${ECHO_T}no" >&6; }
7740 fi
7741
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743
7744 #
7745 # Check whether we have struct BPF_TIMEVAL.
7746 #
7747 { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
7748 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
7749 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758
7759 #include <sys/types.h>
7760 #include <sys/ioctl.h>
7761 #ifdef HAVE_SYS_IOCCOM_H
7762 #include <sys/ioccom.h>
7763 #endif
7764 #include <net/bpf.h>
7765
7766
7767 typedef struct BPF_TIMEVAL ac__type_new_;
7768 int
7769 main ()
7770 {
7771 if ((ac__type_new_ *) 0)
7772 return 0;
7773 if (sizeof (ac__type_new_))
7774 return 0;
7775 ;
7776 return 0;
7777 }
7778 _ACEOF
7779 rm -f conftest.$ac_objext
7780 if { (ac_try="$ac_compile"
7781 case "(($ac_try" in
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_compile") 2>conftest.er1
7787 ac_status=$?
7788 grep -v '^ *+' conftest.er1 >conftest.err
7789 rm -f conftest.er1
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } && {
7793 test -z "$ac_c_werror_flag" ||
7794 test ! -s conftest.err
7795 } && test -s conftest.$ac_objext; then
7796 ac_cv_type_struct_BPF_TIMEVAL=yes
7797 else
7798 echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7800
7801 ac_cv_type_struct_BPF_TIMEVAL=no
7802 fi
7803
7804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 fi
7806 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
7807 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
7808 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
7809
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_STRUCT_BPF_TIMEVAL 1
7812 _ACEOF
7813
7814
7815 fi
7816
7817 ;;
7818
7819 dag)
7820 V_DEFS="$V_DEFS -DDAG_ONLY"
7821 ;;
7822
7823 septel)
7824 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7825 ;;
7826
7827 snf)
7828 V_DEFS="$V_DEFS -DSNF_ONLY"
7829 ;;
7830
7831 null)
7832 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7833 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7834 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7835 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7836 ;;
7837 esac
7838
7839 if test "$V_PCAP" = null
7840 then
7841 #
7842 # We can't capture, so we can't open any capture
7843 # devices, so we won't return any interfaces.
7844 #
7845 V_FINDALLDEVS=null
7846 else
7847 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
7848 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
7849 if test "${ac_cv_func_getifaddrs+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7860 #define getifaddrs innocuous_getifaddrs
7861
7862 /* System header to define __stub macros and hopefully few prototypes,
7863 which can conflict with char getifaddrs (); below.
7864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7865 <limits.h> exists even on freestanding compilers. */
7866
7867 #ifdef __STDC__
7868 # include <limits.h>
7869 #else
7870 # include <assert.h>
7871 #endif
7872
7873 #undef getifaddrs
7874
7875 /* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 char getifaddrs ();
7882 /* The GNU C library defines this for functions which it implements
7883 to always fail with ENOSYS. Some functions are actually named
7884 something starting with __ and the normal name is an alias. */
7885 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7886 choke me
7887 #endif
7888
7889 int
7890 main ()
7891 {
7892 return getifaddrs ();
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7899 case "(($ac_try" in
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_link") 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest$ac_exeext &&
7914 $as_test_x conftest$ac_exeext; then
7915 ac_cv_func_getifaddrs=yes
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 ac_cv_func_getifaddrs=no
7921 fi
7922
7923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7924 conftest$ac_exeext conftest.$ac_ext
7925 fi
7926 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
7927 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7928 if test $ac_cv_func_getifaddrs = yes; then
7929
7930 #
7931 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
7932 # as well, just in case some platform is really weird.
7933 #
7934 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7935 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7936 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7937 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 fi
7940 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7941 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7942 else
7943 # Is the header compilable?
7944 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
7945 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h. */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 $ac_includes_default
7953 #include <ifaddrs.h>
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_header_compiler=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 ac_header_compiler=no
7978 fi
7979
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7982 echo "${ECHO_T}$ac_header_compiler" >&6; }
7983
7984 # Is the header present?
7985 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
7986 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <ifaddrs.h>
7994 _ACEOF
7995 if { (ac_try="$ac_cpp conftest.$ac_ext"
7996 case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null && {
8008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 }; then
8011 ac_header_preproc=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ac_header_preproc=no
8017 fi
8018
8019 rm -f conftest.err conftest.$ac_ext
8020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8021 echo "${ECHO_T}$ac_header_preproc" >&6; }
8022
8023 # So? What about this header?
8024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8025 yes:no: )
8026 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8027 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8029 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8030 ac_header_preproc=yes
8031 ;;
8032 no:yes:* )
8033 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8034 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
8036 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8038 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
8040 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8042 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8044 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8045
8046 ;;
8047 esac
8048 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8049 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8050 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053 ac_cv_header_ifaddrs_h=$ac_header_preproc
8054 fi
8055 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8056 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8057
8058 fi
8059 if test $ac_cv_header_ifaddrs_h = yes; then
8060
8061 #
8062 # We have the header, so we use "getifaddrs()" to
8063 # get the list of interfaces.
8064 #
8065 V_FINDALLDEVS=getad
8066
8067 else
8068
8069 #
8070 # We don't have the header - give up.
8071 # XXX - we could also fall back on some other
8072 # mechanism, but, for now, this'll catch this
8073 # problem so that we can at least try to figure
8074 # out something to do on systems with "getifaddrs()"
8075 # but without "ifaddrs.h", if there is something
8076 # we can do on those systems.
8077 #
8078 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8079 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8080 { (exit 1); exit 1; }; }
8081
8082 fi
8083
8084
8085
8086 else
8087
8088 #
8089 # Well, we don't have "getifaddrs()", so we have to use
8090 # some other mechanism; determine what that mechanism is.
8091 #
8092 # The first thing we use is the type of capture mechanism,
8093 # which is somewhat of a proxy for the OS we're using.
8094 #
8095 case "$V_PCAP" in
8096
8097 dlpi|libdlpi)
8098
8099
8100 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8101 do
8102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 fi
8109 ac_res=`eval echo '${'$as_ac_Header'}'`
8110 { echo "$as_me:$LINENO: result: $ac_res" >&5
8111 echo "${ECHO_T}$ac_res" >&6; }
8112 else
8113 # Is the header compilable?
8114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8116 cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h. */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 $ac_includes_default
8123 #include <$ac_header>
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (ac_try="$ac_compile"
8127 case "(($ac_try" in
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8130 esac
8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_compile") 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest.$ac_objext; then
8142 ac_header_compiler=yes
8143 else
8144 echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147 ac_header_compiler=no
8148 fi
8149
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8152 echo "${ECHO_T}$ac_header_compiler" >&6; }
8153
8154 # Is the header present?
8155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h. */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 #include <$ac_header>
8164 _ACEOF
8165 if { (ac_try="$ac_cpp conftest.$ac_ext"
8166 case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } >/dev/null && {
8178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 }; then
8181 ac_header_preproc=yes
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 ac_header_preproc=no
8187 fi
8188
8189 rm -f conftest.err conftest.$ac_ext
8190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8191 echo "${ECHO_T}$ac_header_preproc" >&6; }
8192
8193 # So? What about this header?
8194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8195 yes:no: )
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8200 ac_header_preproc=yes
8201 ;;
8202 no:yes:* )
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8215
8216 ;;
8217 esac
8218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 eval "$as_ac_Header=\$ac_header_preproc"
8224 fi
8225 ac_res=`eval echo '${'$as_ac_Header'}'`
8226 { echo "$as_me:$LINENO: result: $ac_res" >&5
8227 echo "${ECHO_T}$ac_res" >&6; }
8228
8229 fi
8230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233 _ACEOF
8234
8235 fi
8236
8237 done
8238
8239 #
8240 # This might be Solaris 8 or later, with
8241 # SIOCGLIFCONF, or it might be some other OS
8242 # or some older version of Solaris, with
8243 # just SIOCGIFCONF.
8244 #
8245 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8246 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8247 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 #include <sys/param.h>
8257 #include <sys/file.h>
8258 #include <sys/ioctl.h>
8259 #include <sys/socket.h>
8260 #include <sys/sockio.h>
8261 int
8262 main ()
8263 {
8264 ioctl(0, SIOCGLIFCONF, (char *)0);
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8271 case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_compile") 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
8285 } && test -s conftest.$ac_objext; then
8286 ac_cv_lbl_have_siocglifconf=yes
8287 else
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291 ac_cv_lbl_have_siocglifconf=no
8292 fi
8293
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 fi
8296
8297 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8298 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8299 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8300 V_FINDALLDEVS=glifc
8301 else
8302 V_FINDALLDEVS=gifc
8303 fi
8304 #
8305 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8306 #
8307 SSRC="dlpisubs.c"
8308 ;;
8309
8310 *)
8311 #
8312 # Assume we just have SIOCGIFCONF.
8313 # (XXX - on at least later Linux kernels, there's
8314 # another mechanism, and we should be using that
8315 # instead.)
8316 #
8317 V_FINDALLDEVS=gifc
8318 ;;
8319 esac
8320 fi
8321
8322 fi
8323
8324 fi
8325
8326
8327 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8328 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8329 cat >conftest.$ac_ext <<_ACEOF
8330 /* confdefs.h. */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8335
8336 #include <sys/types.h>
8337 #include <sys/socket.h>
8338
8339 int
8340 main ()
8341 {
8342 socklen_t x;
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 have_socklen_t=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 have_socklen_t=no
8370 fi
8371
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 if test "x$have_socklen_t" = "xyes"; then
8374
8375 cat >>confdefs.h <<\_ACEOF
8376 #define HAVE_SOCKLEN_T 1
8377 _ACEOF
8378
8379 fi
8380 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8381 echo "${ECHO_T}$have_socklen_t" >&6; }
8382
8383 # Check whether --enable-ipv6 was given.
8384 if test "${enable_ipv6+set}" = set; then
8385 enableval=$enable_ipv6;
8386 else
8387 enable_ipv6=ifavailable
8388 fi
8389
8390 if test "$enable_ipv6" != "no"; then
8391 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8392 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8393 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h. */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8404 #define getaddrinfo innocuous_getaddrinfo
8405
8406 /* System header to define __stub macros and hopefully few prototypes,
8407 which can conflict with char getaddrinfo (); below.
8408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8409 <limits.h> exists even on freestanding compilers. */
8410
8411 #ifdef __STDC__
8412 # include <limits.h>
8413 #else
8414 # include <assert.h>
8415 #endif
8416
8417 #undef getaddrinfo
8418
8419 /* Override any GCC internal prototype to avoid an error.
8420 Use char because int might match the return type of a GCC
8421 builtin and then its argument prototype would still apply. */
8422 #ifdef __cplusplus
8423 extern "C"
8424 #endif
8425 char getaddrinfo ();
8426 /* The GNU C library defines this for functions which it implements
8427 to always fail with ENOSYS. Some functions are actually named
8428 something starting with __ and the normal name is an alias. */
8429 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8430 choke me
8431 #endif
8432
8433 int
8434 main ()
8435 {
8436 return getaddrinfo ();
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (ac_try="$ac_link"
8443 case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_link") 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest$ac_exeext &&
8458 $as_test_x conftest$ac_exeext; then
8459 ac_cv_func_getaddrinfo=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_func_getaddrinfo=no
8465 fi
8466
8467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8468 conftest$ac_exeext conftest.$ac_ext
8469 fi
8470 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8471 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8472 if test $ac_cv_func_getaddrinfo = yes; then
8473
8474
8475 cat >>confdefs.h <<\_ACEOF
8476 #define INET6 1
8477 _ACEOF
8478
8479
8480 else
8481
8482 if test "$enable_ipv6" != "ifavailable"; then
8483 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8484 See \`config.log' for more details." >&5
8485 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8486 See \`config.log' for more details." >&2;}
8487 { (exit 1); exit 1; }; }
8488 fi
8489
8490 fi
8491
8492 fi
8493
8494 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8495 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8496 # Check whether --enable-optimizer-dbg was given.
8497 if test "${enable_optimizer_dbg+set}" = set; then
8498 enableval=$enable_optimizer_dbg;
8499 fi
8500
8501 if test "$enable_optimizer_dbg" = "yes"; then
8502
8503 cat >>confdefs.h <<\_ACEOF
8504 #define BDEBUG 1
8505 _ACEOF
8506
8507 fi
8508 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8509 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8510
8511 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8512 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8513 # Check whether --enable-yydebug was given.
8514 if test "${enable_yydebug+set}" = set; then
8515 enableval=$enable_yydebug;
8516 fi
8517
8518 if test "$enable_yydebug" = "yes"; then
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define YYDEBUG 1
8522 _ACEOF
8523
8524 fi
8525 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8526 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8527
8528 # Check for Endace DAG card support.
8529
8530 # Check whether --with-dag was given.
8531 if test "${with_dag+set}" = set; then
8532 withval=$with_dag;
8533 if test "$withval" = no
8534 then
8535 # User doesn't want DAG support.
8536 want_dag=no
8537 elif test "$withval" = yes
8538 then
8539 # User wants DAG support but hasn't specified a directory.
8540 want_dag=yes
8541 else
8542 # User wants DAG support and has specified a directory, so use the provided value.
8543 want_dag=yes
8544 dag_root=$withval
8545 fi
8546
8547 else
8548
8549 #
8550 # Use DAG API if present, otherwise don't
8551 #
8552 want_dag=ifpresent
8553
8554 fi
8555
8556
8557
8558 # Check whether --with-dag-includes was given.
8559 if test "${with_dag_includes+set}" = set; then
8560 withval=$with_dag_includes;
8561 # User wants DAG support and has specified a header directory, so use the provided value.
8562 want_dag=yes
8563 dag_include_dir=$withval
8564
8565 fi
8566
8567
8568
8569 # Check whether --with-dag-libraries was given.
8570 if test "${with_dag_libraries+set}" = set; then
8571 withval=$with_dag_libraries;
8572 # User wants DAG support and has specified a library directory, so use the provided value.
8573 want_dag=yes
8574 dag_lib_dir=$withval
8575
8576 fi
8577
8578
8579 case "$V_PCAP" in
8580 linux|bpf|dag)
8581 #
8582 # We support the DAG API if we're on Linux or BSD, or if we're
8583 # building a DAG-only libpcap.
8584 #
8585 ;;
8586 *)
8587 #
8588 # If the user explicitly requested DAG, tell them it's not
8589 # supported.
8590 #
8591 # If they expressed no preference, don't include it.
8592 #
8593 if test $want_dag = yes; then
8594 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
8595 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
8596 { (exit 1); exit 1; }; }
8597 elif test $want_dag = yes; then
8598 want_dag=no
8599 fi
8600 ;;
8601 esac
8602
8603 ac_cv_lbl_dag_api=no
8604 if test "$want_dag" != no; then
8605
8606 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
8607 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
8608
8609 # If necessary, set default paths for DAG API headers and libraries.
8610 if test -z "$dag_root"; then
8611 dag_root=/usr/local
8612 fi
8613
8614 if test -z "$dag_include_dir"; then
8615 dag_include_dir="$dag_root/include"
8616 fi
8617
8618 if test -z "$dag_lib_dir"; then
8619 dag_lib_dir="$dag_root/lib"
8620 fi
8621
8622 if test -z "$dag_tools_dir"; then
8623 dag_tools_dir="$dag_root/tools"
8624 fi
8625
8626 if test -r $dag_include_dir/dagapi.h; then
8627 ac_cv_lbl_dag_api=yes
8628 fi
8629 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8630 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8631 fi
8632
8633 if test $ac_cv_lbl_dag_api = yes; then
8634
8635 { echo "$as_me:$LINENO: checking dagapi.o" >&5
8636 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
8637 dagapi_obj=no
8638 if test -r $dag_tools_dir/dagapi.o; then
8639 # 2.4.x.
8640 dagapi_obj=$dag_tools_dir/dagapi.o
8641 elif test -r $dag_lib_dir/dagapi.o; then
8642 # 2.5.x.
8643 dagapi_obj=$dag_lib_dir/dagapi.o
8644 elif test -r $dag_lib_dir/libdag.a; then
8645 # 2.5.x.
8646 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
8647 if test -r ./dagapi.o; then
8648 dagapi_obj=./dagapi.o
8649 else
8650 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
8651 if test -r ./libdag_la-dagapi.o; then
8652 dagapi_obj=./libdag_la-dagapi.o
8653 fi
8654 fi
8655 fi
8656
8657 if test $dagapi_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 ($dagapi_obj)" >&5
8663 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
8664 fi
8665 fi
8666
8667 if test $ac_cv_lbl_dag_api = yes; then
8668
8669 { echo "$as_me:$LINENO: checking dagopts.o" >&5
8670 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
8671 dagopts_obj=no
8672 if test -r $dag_tools_dir/dagopts.o; then
8673 # 2.4.x.
8674 dagopts_obj=$dag_tools_dir/dagopts.o
8675 elif test -r $dag_lib_dir/dagopts.o; then
8676 # 2.5.x.
8677 dagopts_obj=$dag_lib_dir/dagopts.o
8678 elif test -r $dag_lib_dir/libdag.a; then
8679 # 2.5.x.
8680 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
8681 if test -r ./dagopts.o; then
8682 dagopts_obj=./dagopts.o
8683 else
8684 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
8685 if test -r ./libdag_la-dagopts.o; then
8686 dagopts_obj=./libdag_la-dagopts.o
8687 fi
8688 fi
8689 fi
8690
8691 if test $dagopts_obj = no; then
8692 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
8693 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
8694 ac_cv_lbl_dag_api=no
8695 else
8696 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
8697 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8698 fi
8699 fi
8700
8701 if test $ac_cv_lbl_dag_api = yes; then
8702 # Under 2.5.x only we need to add dagreg.o.
8703 if test -r $dag_include_dir/dagreg.h; then
8704 { echo "$as_me:$LINENO: checking dagreg.o" >&5
8705 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
8706 dagreg_obj=no
8707 if test -r $dag_lib_dir/dagreg.o; then
8708 # Object file is ready and waiting.
8709 dagreg_obj=$dag_lib_dir/dagreg.o
8710 elif test -r $dag_lib_dir/libdag.a; then
8711 # Extract from libdag.a.
8712 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8713 if test -r ./dagreg.o; then
8714 dagreg_obj=./dagreg.o
8715 else
8716 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8717 if test -r ./libdag_la-dagreg.o; then
8718 dagreg_obj=./libdag_la-dagreg.o
8719 fi
8720 fi
8721 fi
8722
8723 if test $dagreg_obj = no; then
8724 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8725 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8726 ac_cv_lbl_dag_api=no
8727 else
8728 { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
8729 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8730 fi
8731 fi
8732 fi
8733
8734 if test $ac_cv_lbl_dag_api = yes; then
8735 # Under 2.5.x only we need to add dagutil.o.
8736 if test -r $dag_include_dir/dagutil.h; then
8737 { echo "$as_me:$LINENO: checking dagutil.o" >&5
8738 echo $ECHO_N "checking dagutil.o... $ECHO_C" >&6; }
8739 dagutil_obj=no
8740 if test -r $dag_lib_dir/dagutil.o; then
8741 # Object file is ready and waiting.
8742 dagutil_obj=$dag_lib_dir/dagutil.o
8743 elif test -r $dag_lib_dir/libdag.a; then
8744 # Extract from libdag.a.
8745 ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
8746 if test -r ./dagutil.o; then
8747 dagutil_obj=./dagutil.o
8748 else
8749 ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
8750 if test -r ./libdag_la-dagutil.o; then
8751 dagutil_obj=./libdag_la-dagutil.o
8752 fi
8753 fi
8754 fi
8755
8756 if test $dagutil_obj = no; then
8757 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8758 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8759 ac_cv_lbl_dag_api=no
8760 else
8761 { echo "$as_me:$LINENO: result: yes ($dagutil_obj)" >&5
8762 echo "${ECHO_T}yes ($dagutil_obj)" >&6; }
8763 fi
8764 fi
8765 fi
8766
8767 if test $ac_cv_lbl_dag_api = yes; then
8768 V_INCLS="$V_INCLS -I$dag_include_dir"
8769 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
8770 if test $V_PCAP != dag ; then
8771 SSRC="pcap-dag.c"
8772 fi
8773
8774 # See if we can find a general version string.
8775 # Don't need to save and restore LIBS to prevent -ldag being
8776 # included if there's a found-action (arg 3).
8777 saved_ldflags=$LDFLAGS
8778 LDFLAGS="-L$dag_lib_dir"
8779 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8780 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8781 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 else
8784 ac_check_lib_save_LIBS=$LIBS
8785 LIBS="-ldag $LIBS"
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792
8793 /* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8796 #ifdef __cplusplus
8797 extern "C"
8798 #endif
8799 char dag_attach_stream ();
8800 int
8801 main ()
8802 {
8803 return dag_attach_stream ();
8804 ;
8805 return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (ac_try="$ac_link"
8810 case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813 esac
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_link") 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest$ac_exeext &&
8825 $as_test_x conftest$ac_exeext; then
8826 ac_cv_lib_dag_dag_attach_stream=yes
8827 else
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 ac_cv_lib_dag_dag_attach_stream=no
8832 fi
8833
8834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8835 conftest$ac_exeext conftest.$ac_ext
8836 LIBS=$ac_check_lib_save_LIBS
8837 fi
8838 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8839 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8840 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8841 dag_streams="1"
8842 else
8843 dag_streams="0"
8844 fi
8845
8846 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8847 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8848 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 ac_check_lib_save_LIBS=$LIBS
8852 LIBS="-ldag $LIBS"
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859
8860 /* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 char dag_get_erf_types ();
8867 int
8868 main ()
8869 {
8870 return dag_get_erf_types ();
8871 ;
8872 return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (ac_try="$ac_link"
8877 case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_link") 2>conftest.er1
8883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest$ac_exeext &&
8892 $as_test_x conftest$ac_exeext; then
8893 ac_cv_lib_dag_dag_get_erf_types=yes
8894 else
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898 ac_cv_lib_dag_dag_get_erf_types=no
8899 fi
8900
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8904 fi
8905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8906 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8907 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8908
8909
8910 cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_DAG_GET_ERF_TYPES 1
8912 _ACEOF
8913
8914 fi
8915
8916 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8917 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8918 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 ac_check_lib_save_LIBS=$LIBS
8922 LIBS="-ldag $LIBS"
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929
8930 /* Override any GCC internal prototype to avoid an error.
8931 Use char because int might match the return type of a GCC
8932 builtin and then its argument prototype would still apply. */
8933 #ifdef __cplusplus
8934 extern "C"
8935 #endif
8936 char dag_get_stream_erf_types ();
8937 int
8938 main ()
8939 {
8940 return dag_get_stream_erf_types ();
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (ac_try="$ac_link"
8947 case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_link") 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest$ac_exeext &&
8962 $as_test_x conftest$ac_exeext; then
8963 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8967
8968 ac_cv_lib_dag_dag_get_stream_erf_types=no
8969 fi
8970
8971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8972 conftest$ac_exeext conftest.$ac_ext
8973 LIBS=$ac_check_lib_save_LIBS
8974 fi
8975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8976 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8977 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8978
8979
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8982 _ACEOF
8983
8984 fi
8985
8986 LDFLAGS=$saved_ldflags
8987
8988 if test "$dag_streams" = 1; then
8989
8990 cat >>confdefs.h <<\_ACEOF
8991 #define HAVE_DAG_STREAMS_API 1
8992 _ACEOF
8993
8994 LIBS="$LIBS -ldag"
8995 fi
8996
8997
8998 cat >>confdefs.h <<\_ACEOF
8999 #define HAVE_DAG_API 1
9000 _ACEOF
9001
9002 fi
9003
9004 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9005 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9006
9007 if test $ac_cv_lbl_dag_api = no; then
9008 { echo "$as_me:$LINENO: result: no" >&5
9009 echo "${ECHO_T}no" >&6; }
9010 if test "$want_dag" = yes; then
9011 # User wanted DAG support but we couldn't find it.
9012 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9013 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9014 { (exit 1); exit 1; }; }
9015 fi
9016
9017 if test "$V_PCAP" = dag; then
9018 # User requested "dag" capture type but the DAG API wasn't
9019 # found.
9020 { { 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
9021 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;}
9022 { (exit 1); exit 1; }; }
9023 fi
9024 else
9025 { echo "$as_me:$LINENO: result: yes" >&5
9026 echo "${ECHO_T}yes" >&6; }
9027 fi
9028
9029
9030 # Check whether --with-septel was given.
9031 if test "${with_septel+set}" = set; then
9032 withval=$with_septel;
9033 if test "$withval" = no
9034 then
9035 want_septel=no
9036 elif test "$withval" = yes
9037 then
9038 want_septel=yes
9039 septel_root=
9040 else
9041 want_septel=yes
9042 septel_root=$withval
9043 fi
9044
9045 else
9046
9047 #
9048 # Use Septel API if present, otherwise don't
9049 #
9050 want_septel=ifpresent
9051 septel_root=./../septel
9052
9053 fi
9054
9055 ac_cv_lbl_septel_api=no
9056 case "$V_PCAP" in
9057 linux|septel)
9058 #
9059 # We support the Septel API if we're on Linux, or if we're building
9060 # a Septel-only libpcap.
9061 #
9062 ;;
9063 *)
9064 #
9065 # If the user explicitly requested Septel, tell them it's not
9066 # supported.
9067 #
9068 # If they expressed no preference, don't include it.
9069 #
9070 if test $want_septel = yes; then
9071 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9072 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9073 { (exit 1); exit 1; }; }
9074 elif test $want_septel = yes; then
9075 want_septel=no
9076 fi
9077 ;;
9078 esac
9079
9080 if test "$with_septel" != no; then
9081 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9082 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9083
9084 if test -z "$septel_root"; then
9085 septel_root=$srcdir/../septel
9086 fi
9087
9088 septel_tools_dir="$septel_root"
9089 septel_include_dir="$septel_root/INC"
9090
9091 ac_cv_lbl_septel_api=no
9092 if test -r "$septel_include_dir/msg.h"; then
9093 V_INCLS="$V_INCLS -I$septel_include_dir"
9094 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"
9095 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"
9096
9097 if test "$V_PCAP" != septel ; then
9098 SSRC="pcap-septel.c"
9099 fi
9100 ac_cv_lbl_septel_api=yes
9101 fi
9102
9103 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9104 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9105 if test $ac_cv_lbl_septel_api = no; then
9106 if test "$want_septel" = yes; then
9107 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9108 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9109 { (exit 1); exit 1; }; }
9110 fi
9111 else
9112
9113 cat >>confdefs.h <<\_ACEOF
9114 #define HAVE_SEPTEL_API 1
9115 _ACEOF
9116
9117 fi
9118 fi
9119
9120 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9121 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9122 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9123 { (exit 1); exit 1; }; }
9124 fi
9125
9126 # Check for Myricom SNF support.
9127
9128 # Check whether --with-snf was given.
9129 if test "${with_snf+set}" = set; then
9130 withval=$with_snf;
9131 if test "$withval" = no
9132 then
9133 # User explicitly doesn't want SNF
9134 want_snf=no
9135 elif test "$withval" = yes
9136 then
9137 # User wants SNF support but hasn't specific a directory.
9138 want_snf=yes
9139 else
9140 # User wants SNF support with a specified directory.
9141 want_snf=yes
9142 snf_root=$withval
9143 fi
9144
9145 else
9146
9147 #
9148 # Use Sniffer API if present, otherwise don't
9149 #
9150 want_snf=ifpresent
9151
9152 fi
9153
9154
9155
9156 # Check whether --with-snf-includes was given.
9157 if test "${with_snf_includes+set}" = set; then
9158 withval=$with_snf_includes;
9159 # User wants SNF with specific header directory
9160 want_snf=yes
9161 snf_include_dir=$withval
9162
9163 fi
9164
9165
9166
9167 # Check whether --with-snf-libraries was given.
9168 if test "${with_snf_libraries+set}" = set; then
9169 withval=$with_snf_libraries;
9170 # User wants SNF with specific lib directory
9171 want_snf=yes
9172 snf_lib_dir=$withval
9173
9174 fi
9175
9176
9177 case "$V_PCAP" in
9178 bpf|linux|snf)
9179 #
9180 # We support the Sniffer API if we're on BSD, Linux, or if we're
9181 # building a Sniffer-only libpcap.
9182 #
9183 ;;
9184 *)
9185 #
9186 # If the user explicitly requested Sniffer, tell them it's not
9187 # supported.
9188 #
9189 # If they expressed no preference, don't include it.
9190 #
9191 if test $want_snf = yes; then
9192 { { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9193 echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9194 { (exit 1); exit 1; }; }
9195 elif test $want_snf = yes; then
9196 want_snf=no
9197 fi
9198 ;;
9199 esac
9200
9201 ac_cv_lbl_snf_api=no
9202 if test "$with_snf" != no; then
9203
9204 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9205 echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9206
9207 if test -z "$snf_root"; then
9208 snf_root=/opt/snf
9209 fi
9210
9211 if test -z "$snf_include_dir"; then
9212 snf_include_dir="$snf_root/include"
9213 fi
9214
9215 if test -z "$snf_lib_dir"; then
9216 snf_lib_dir="$snf_root/lib"
9217 fi
9218
9219 if test -f "$snf_include_dir/snf.h"; then
9220 ac_cv_lbl_snf_api=yes
9221 fi
9222 { echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9223 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9224
9225 if test $ac_cv_lbl_snf_api = no; then
9226 if test "$want_snf" = yes; then
9227 { { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9228 echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9229 { (exit 1); exit 1; }; }
9230 fi
9231 else
9232 saved_ldflags=$LDFLAGS
9233 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9234 { echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9235 echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9236 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239 ac_check_lib_save_LIBS=$LIBS
9240 LIBS="-lsnf $LIBS"
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char snf_init ();
9255 int
9256 main ()
9257 {
9258 return snf_init ();
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9265 case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_link") 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && {
9277 test -z "$ac_c_werror_flag" ||
9278 test ! -s conftest.err
9279 } && test -s conftest$ac_exeext &&
9280 $as_test_x conftest$ac_exeext; then
9281 ac_cv_lib_snf_snf_init=yes
9282 else
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_cv_lib_snf_snf_init=no
9287 fi
9288
9289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS=$ac_check_lib_save_LIBS
9292 fi
9293 { echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9294 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9295 if test $ac_cv_lib_snf_snf_init = yes; then
9296 ac_cv_lbl_snf_api="yes"
9297 else
9298 ac_cv_lbl_snf_api="no"
9299 fi
9300
9301 LDFLAGS="$saved_ldflags"
9302
9303 if test $ac_cv_lbl_snf_api = no; then
9304 if test "$want_snf" = yes; then
9305 { { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9306 echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9307 { (exit 1); exit 1; }; }
9308 fi
9309 else
9310 V_INCLS="$V_INCLS -I$snf_include_dir"
9311 LIBS="$LIBS -lsnf"
9312 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9313 if test "$V_PCAP" != snf ; then
9314 SSRC="pcap-snf.c"
9315 fi
9316
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_SNF_API 1
9319 _ACEOF
9320
9321 fi
9322 fi
9323 fi
9324
9325 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9326 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9327 echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9328 { (exit 1); exit 1; }; }
9329 fi
9330
9331
9332 # Check whether --with-flex was given.
9333 if test "${with_flex+set}" = set; then
9334 withval=$with_flex;
9335 fi
9336
9337
9338 # Check whether --with-bison was given.
9339 if test "${with_bison+set}" = set; then
9340 withval=$with_bison;
9341 fi
9342
9343 if test "$with_flex" = no ; then
9344 V_LEX=lex
9345 else
9346 for ac_prog in flex
9347 do
9348 # Extract the first word of "$ac_prog", so it can be a program name with args.
9349 set dummy $ac_prog; ac_word=$2
9350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9352 if test "${ac_cv_prog_V_LEX+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355 if test -n "$V_LEX"; then
9356 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9357 else
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in $PATH
9360 do
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9365 ac_cv_prog_V_LEX="$ac_prog"
9366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9368 fi
9369 done
9370 done
9371 IFS=$as_save_IFS
9372
9373 fi
9374 fi
9375 V_LEX=$ac_cv_prog_V_LEX
9376 if test -n "$V_LEX"; then
9377 { echo "$as_me:$LINENO: result: $V_LEX" >&5
9378 echo "${ECHO_T}$V_LEX" >&6; }
9379 else
9380 { echo "$as_me:$LINENO: result: no" >&5
9381 echo "${ECHO_T}no" >&6; }
9382 fi
9383
9384
9385 test -n "$V_LEX" && break
9386 done
9387 test -n "$V_LEX" || V_LEX="lex"
9388
9389 fi
9390 if test "$V_LEX" = flex ; then
9391 # The -V flag was added in 2.4
9392 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9393 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9394 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397 if flex -V >/dev/null 2>&1; then
9398 ac_cv_lbl_flex_v24=yes
9399 else
9400 ac_cv_lbl_flex_v24=no
9401 fi
9402 fi
9403
9404 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9405 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9406 if test $ac_cv_lbl_flex_v24 = no ; then
9407 s="2.4 or higher required"
9408 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9409 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9410 V_LEX=lex
9411 fi
9412 fi
9413 if test "$with_bison" = no ; then
9414 V_YACC=yacc
9415 else
9416 for ac_prog in bison
9417 do
9418 # Extract the first word of "$ac_prog", so it can be a program name with args.
9419 set dummy $ac_prog; ac_word=$2
9420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9422 if test "${ac_cv_prog_V_YACC+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 if test -n "$V_YACC"; then
9426 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9427 else
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9430 do
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_prog_V_YACC="$ac_prog"
9436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9438 fi
9439 done
9440 done
9441 IFS=$as_save_IFS
9442
9443 fi
9444 fi
9445 V_YACC=$ac_cv_prog_V_YACC
9446 if test -n "$V_YACC"; then
9447 { echo "$as_me:$LINENO: result: $V_YACC" >&5
9448 echo "${ECHO_T}$V_YACC" >&6; }
9449 else
9450 { echo "$as_me:$LINENO: result: no" >&5
9451 echo "${ECHO_T}no" >&6; }
9452 fi
9453
9454
9455 test -n "$V_YACC" && break
9456 done
9457 test -n "$V_YACC" || V_YACC="yacc"
9458
9459 fi
9460 if test "$V_YACC" = bison ; then
9461 V_YACC="$V_YACC -y"
9462 fi
9463 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9464 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9465 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9466 V_LEX=lex
9467 V_YACC=yacc
9468 fi
9469 if test "$V_LEX" = flex -a -n "pcap_" ; then
9470 V_LEX="$V_LEX -Ppcap_"
9471 V_YACC="$V_YACC -p pcap_"
9472 fi
9473 if test "$V_LEX" = lex ; then
9474 # Some versions of lex can't handle the definitions section of scanner.l .
9475 # Try lexing it and complain if it can't deal.
9476 { echo "$as_me:$LINENO: checking for capable lex" >&5
9477 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9478 if test "${tcpdump_cv_capable_lex+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481 if lex -t scanner.l > /dev/null 2>&1; then
9482 tcpdump_cv_capable_lex=yes
9483 else
9484 tcpdump_cv_capable_lex=insufficient
9485 fi
9486 fi
9487 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9488 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9489 if test $tcpdump_cv_capable_lex = insufficient ; then
9490 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9491 libpcap. flex is a lex replacement that has many advantages, including
9492 being able to compile libpcap. For more information, see
9493 http://www.gnu.org/software/flex/flex.html ." >&5
9494 echo "$as_me: error: Your operating system's lex is insufficient to compile
9495 libpcap. flex is a lex replacement that has many advantages, including
9496 being able to compile libpcap. For more information, see
9497 http://www.gnu.org/software/flex/flex.html ." >&2;}
9498 { (exit 1); exit 1; }; }
9499 fi
9500 fi
9501
9502 #
9503 # Assume, by default, no support for shared libraries and V7/BSD convention
9504 # for man pages (file formats in section 5, miscellaneous info in section 7).
9505 # Individual cases can override this.
9506 #
9507 DYEXT="none"
9508 MAN_FILE_FORMATS=5
9509 MAN_MISC_INFO=7
9510 case "$host_os" in
9511
9512 aix*)
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define _SUN 1
9516 _ACEOF
9517
9518
9519 #
9520 # AIX makes it fun to build shared and static libraries,
9521 # because they're *both* ".a" archive libraries. We
9522 # build the static library for the benefit of the traditional
9523 # scheme of building libpcap and tcpdump in subdirectories of
9524 # the same directory, with tcpdump statically linked with the
9525 # libpcap in question, but we also build a shared library as
9526 # "libpcap.shareda" and install *it*, rather than the static
9527 # library, as "libpcap.a".
9528 #
9529 DYEXT="shareda"
9530
9531 case "$V_PCAP" in
9532
9533 dlpi)
9534 #
9535 # If we're using DLPI, applications will need to
9536 # use /lib/pse.exp if present, as we use the
9537 # STREAMS routines.
9538 #
9539 pseexe="/lib/pse.exp"
9540 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9541 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9542 if test -f $pseexe ; then
9543 { echo "$as_me:$LINENO: result: yes" >&5
9544 echo "${ECHO_T}yes" >&6; }
9545 LIBS="-I:$pseexe"
9546 fi
9547 ;;
9548
9549 bpf)
9550 #
9551 # If we're using BPF, we need "-lodm" and "-lcfg", as
9552 # we use them to load the BPF module.
9553 #
9554 LIBS="-lodm -lcfg"
9555 ;;
9556 esac
9557 ;;
9558
9559 darwin*)
9560 DYEXT="dylib"
9561 V_CCOPT="$V_CCOPT -fno-common"
9562 # Check whether --enable-universal was given.
9563 if test "${enable_universal+set}" = set; then
9564 enableval=$enable_universal;
9565 fi
9566
9567 if test "$enable_universal" != "no"; then
9568 case "$host_os" in
9569
9570 darwin9.*)
9571 #
9572 # Leopard. Build for 32-bit PowerPC, 64-bit
9573 # PowerPC, x86, and x86-64, with 32-bit PowerPC
9574 # first. (That's what Apple does.)
9575 #
9576 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9577 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9578 ;;
9579
9580 darwin10.*)
9581 #
9582 # Snow Leopard. Build for x86-64, x86, and
9583 # 32-bit PowerPC, with x86-64 first. (That's
9584 # what Apple does, even though Snow Leopard
9585 # doesn't run on PPC, so PPC libpcap runs under
9586 # Rosetta, and Rosetta doesn't support BPF
9587 # ioctls, so PPC programs can't do live
9588 # captures.)
9589 #
9590 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
9591 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
9592 ;;
9593 esac
9594 fi
9595 ;;
9596
9597 hpux9*)
9598
9599 cat >>confdefs.h <<\_ACEOF
9600 #define HAVE_HPUX9 1
9601 _ACEOF
9602
9603
9604 #
9605 # Use System V conventions for man pages.
9606 #
9607 MAN_FILE_FORMATS=4
9608 MAN_MISC_INFO=5
9609 ;;
9610
9611 hpux10.0*)
9612
9613 #
9614 # Use System V conventions for man pages.
9615 #
9616 MAN_FILE_FORMATS=4
9617 MAN_MISC_INFO=5
9618 ;;
9619
9620 hpux10.1*)
9621
9622 #
9623 # Use System V conventions for man pages.
9624 #
9625 MAN_FILE_FORMATS=4
9626 MAN_MISC_INFO=5
9627 ;;
9628
9629 hpux*)
9630
9631 cat >>confdefs.h <<\_ACEOF
9632 #define HAVE_HPUX10_20_OR_LATER 1
9633 _ACEOF
9634
9635 if test "`uname -m`" = "ia64"; then
9636 DYEXT="so"
9637 else
9638 DYEXT="sl"
9639 fi
9640
9641 #
9642 # "-b" builds a shared library; "+h" sets the soname.
9643 #
9644 SHLIB_OPT="-b"
9645 SONAME_OPT="+h"
9646
9647 #
9648 # Use System V conventions for man pages.
9649 #
9650 MAN_FILE_FORMATS=4
9651 MAN_MISC_INFO=5
9652 ;;
9653
9654 irix*)
9655 #
9656 # Use System V conventions for man pages.
9657 #
9658 MAN_FILE_FORMATS=4
9659 MAN_MISC_INFO=5
9660 ;;
9661
9662 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9663 DYEXT="so"
9664
9665 #
9666 # Compiler assumed to be GCC; run-time linker may require a -R
9667 # flag.
9668 #
9669 if test "$libdir" != "/usr/lib"; then
9670 V_RFLAGS=-Wl,-R$libdir
9671 fi
9672 ;;
9673
9674 osf*)
9675 DYEXT="so"
9676
9677 #
9678 # Use System V conventions for man pages.
9679 #
9680 MAN_FILE_FORMATS=4
9681 MAN_MISC_INFO=5
9682 ;;
9683
9684 sinix*)
9685 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
9686 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
9687 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h. */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696
9697 int
9698 main ()
9699 {
9700 int i = sinix;
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext
9706 if { (ac_try="$ac_compile"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_compile") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest.$ac_objext; then
9722 ac_cv_cc_sinix_defined=yes
9723 else
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 ac_cv_cc_sinix_defined=no
9728 fi
9729
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 fi
9732
9733 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
9734 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9735 if test $ac_cv_cc_sinix_defined = no ; then
9736
9737 cat >>confdefs.h <<\_ACEOF
9738 #define sinix 1
9739 _ACEOF
9740
9741 fi
9742 ;;
9743
9744 solaris*)
9745
9746 cat >>confdefs.h <<\_ACEOF
9747 #define HAVE_SOLARIS 1
9748 _ACEOF
9749
9750
9751 DYEXT="so"
9752 #
9753 # Use System V conventions for man pages.
9754 #
9755 MAN_FILE_FORMATS=4
9756 MAN_MISC_INFO=5
9757 ;;
9758 esac
9759
9760 if test -n "$ac_tool_prefix"; then
9761 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9762 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9765 if test "${ac_cv_prog_RANLIB+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768 if test -n "$RANLIB"; then
9769 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9770 else
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9773 do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782 done
9783 done
9784 IFS=$as_save_IFS
9785
9786 fi
9787 fi
9788 RANLIB=$ac_cv_prog_RANLIB
9789 if test -n "$RANLIB"; then
9790 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9791 echo "${ECHO_T}$RANLIB" >&6; }
9792 else
9793 { echo "$as_me:$LINENO: result: no" >&5
9794 echo "${ECHO_T}no" >&6; }
9795 fi
9796
9797
9798 fi
9799 if test -z "$ac_cv_prog_RANLIB"; then
9800 ac_ct_RANLIB=$RANLIB
9801 # Extract the first word of "ranlib", so it can be a program name with args.
9802 set dummy ranlib; ac_word=$2
9803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9805 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808 if test -n "$ac_ct_RANLIB"; then
9809 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9810 else
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9813 do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_prog_ac_ct_RANLIB="ranlib"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9821 fi
9822 done
9823 done
9824 IFS=$as_save_IFS
9825
9826 fi
9827 fi
9828 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9829 if test -n "$ac_ct_RANLIB"; then
9830 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9831 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9832 else
9833 { echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6; }
9835 fi
9836
9837 if test "x$ac_ct_RANLIB" = x; then
9838 RANLIB=":"
9839 else
9840 case $cross_compiling:$ac_tool_warned in
9841 yes:)
9842 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9843 whose name does not start with the host triplet. If you think this
9844 configuration is useful to you, please write to autoconf@gnu.org." >&5
9845 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9846 whose name does not start with the host triplet. If you think this
9847 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9848 ac_tool_warned=yes ;;
9849 esac
9850 RANLIB=$ac_ct_RANLIB
9851 fi
9852 else
9853 RANLIB="$ac_cv_prog_RANLIB"
9854 fi
9855
9856 if test -n "$ac_tool_prefix"; then
9857 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9858 set dummy ${ac_tool_prefix}ar; ac_word=$2
9859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9861 if test "${ac_cv_prog_AR+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 if test -n "$AR"; then
9865 ac_cv_prog_AR="$AR" # Let the user override the test.
9866 else
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 for as_dir in $PATH
9869 do
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9874 ac_cv_prog_AR="${ac_tool_prefix}ar"
9875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9877 fi
9878 done
9879 done
9880 IFS=$as_save_IFS
9881
9882 fi
9883 fi
9884 AR=$ac_cv_prog_AR
9885 if test -n "$AR"; then
9886 { echo "$as_me:$LINENO: result: $AR" >&5
9887 echo "${ECHO_T}$AR" >&6; }
9888 else
9889 { echo "$as_me:$LINENO: result: no" >&5
9890 echo "${ECHO_T}no" >&6; }
9891 fi
9892
9893
9894 fi
9895 if test -z "$ac_cv_prog_AR"; then
9896 ac_ct_AR=$AR
9897 # Extract the first word of "ar", so it can be a program name with args.
9898 set dummy ar; ac_word=$2
9899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9901 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 if test -n "$ac_ct_AR"; then
9905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9906 else
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH
9909 do
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914 ac_cv_prog_ac_ct_AR="ar"
9915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 break 2
9917 fi
9918 done
9919 done
9920 IFS=$as_save_IFS
9921
9922 fi
9923 fi
9924 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9925 if test -n "$ac_ct_AR"; then
9926 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9927 echo "${ECHO_T}$ac_ct_AR" >&6; }
9928 else
9929 { echo "$as_me:$LINENO: result: no" >&5
9930 echo "${ECHO_T}no" >&6; }
9931 fi
9932
9933 if test "x$ac_ct_AR" = x; then
9934 AR=""
9935 else
9936 case $cross_compiling:$ac_tool_warned in
9937 yes:)
9938 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9939 whose name does not start with the host triplet. If you think this
9940 configuration is useful to you, please write to autoconf@gnu.org." >&5
9941 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9942 whose name does not start with the host triplet. If you think this
9943 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9944 ac_tool_warned=yes ;;
9945 esac
9946 AR=$ac_ct_AR
9947 fi
9948 else
9949 AR="$ac_cv_prog_AR"
9950 fi
9951
9952
9953 rm -f os-proto.h
9954 if test "${LBL_CFLAGS+set}" = set; then
9955 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9956 fi
9957 if test -f .devel ; then
9958 if test "$GCC" = yes ; then
9959 if test "${LBL_CFLAGS+set}" != set; then
9960 if test "$ac_cv_prog_cc_g" = yes ; then
9961 V_CCOPT="-g $V_CCOPT"
9962 fi
9963 V_CCOPT="$V_CCOPT -Wall"
9964 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9965 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
9966 fi
9967 fi
9968 else
9969 case "$host_os" in
9970
9971 irix6*)
9972 V_CCOPT="$V_CCOPT -n32"
9973 ;;
9974
9975 *)
9976 ;;
9977 esac
9978 fi
9979 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9980 name="lbl/os-$os.h"
9981 if test -f $name ; then
9982 ln -s $name os-proto.h
9983
9984 cat >>confdefs.h <<\_ACEOF
9985 #define HAVE_OS_PROTO_H 1
9986 _ACEOF
9987
9988 else
9989 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9990 echo "$as_me: WARNING: can't find $name" >&2;}
9991 fi
9992 fi
9993
9994 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
9995 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
9996 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005
10006 # include <sys/types.h>
10007 # include <sys/socket.h>
10008 int
10009 main ()
10010 {
10011 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10012 ;
10013 return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext
10017 if { (ac_try="$ac_compile"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_compile") 2>conftest.er1
10024 ac_status=$?
10025 grep -v '^ *+' conftest.er1 >conftest.err
10026 rm -f conftest.er1
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && {
10030 test -z "$ac_c_werror_flag" ||
10031 test ! -s conftest.err
10032 } && test -s conftest.$ac_objext; then
10033 ac_cv_lbl_sockaddr_has_sa_len=yes
10034 else
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 ac_cv_lbl_sockaddr_has_sa_len=no
10039 fi
10040
10041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10042 fi
10043
10044 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10045 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10046 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10047
10048 cat >>confdefs.h <<\_ACEOF
10049 #define HAVE_SOCKADDR_SA_LEN 1
10050 _ACEOF
10051
10052 fi
10053
10054 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10055 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10056 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h. */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065
10066 # include <sys/types.h>
10067 # include <sys/socket.h>
10068 int
10069 main ()
10070 {
10071 u_int i = sizeof (struct sockaddr_storage)
10072 ;
10073 return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (ac_try="$ac_compile"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_compile") 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && {
10090 test -z "$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 } && test -s conftest.$ac_objext; then
10093 ac_cv_lbl_has_sockaddr_storage=yes
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098 ac_cv_lbl_has_sockaddr_storage=no
10099 fi
10100
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 fi
10103
10104 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10105 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10106 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10107
10108 cat >>confdefs.h <<\_ACEOF
10109 #define HAVE_SOCKADDR_STORAGE 1
10110 _ACEOF
10111
10112 fi
10113
10114 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10115 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10116 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h. */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125
10126 # include <sys/types.h>
10127 # include <sys/dlpi.h>
10128 # include <sys/dlpi_ext.h>
10129 int
10130 main ()
10131 {
10132 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.$ac_objext; then
10154 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10160 fi
10161
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 fi
10164
10165 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10166 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10167 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10168
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10171 _ACEOF
10172
10173 fi
10174
10175 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10176 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10177 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 case "$host_cpu" in
10181
10182 #
10183 # These are CPU types where:
10184 #
10185 # the CPU faults on an unaligned access, but at least some
10186 # OSes that support that CPU catch the fault and simulate
10187 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10188 # the simulation is slow, so we don't want to use it;
10189 #
10190 # the CPU, I infer (from the old
10191 #
10192 # XXX: should also check that they don't do weird things (like on arm)
10193 #
10194 # comment) doesn't fault on unaligned accesses, but doesn't
10195 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10196 #
10197 # for whatever reason, the test program doesn't work
10198 # (this has been claimed to be the case for several of those
10199 # CPUs - I don't know what the problem is; the problem
10200 # was reported as "the test program dumps core" for SuperH,
10201 # but that's what the test program is *supposed* to do -
10202 # it dumps core before it writes anything, so the test
10203 # for an empty output file should find an empty output
10204 # file and conclude that unaligned accesses don't work).
10205 #
10206 # This run-time test won't work if you're cross-compiling, so
10207 # in order to support cross-compiling for a particular CPU,
10208 # we have to wire in the list of CPU types anyway, as far as
10209 # I know, so perhaps we should just have a set of CPUs on
10210 # which we know it doesn't work, a set of CPUs on which we
10211 # know it does work, and have the script just fail on other
10212 # cpu types and update it when such a failure occurs.
10213 #
10214 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10215 ac_cv_lbl_unaligned_fail=yes
10216 ;;
10217
10218 *)
10219 cat >conftest.c <<EOF
10220 # include <sys/types.h>
10221 # include <sys/wait.h>
10222 # include <stdio.h>
10223 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10224 main() {
10225 unsigned int i;
10226 pid_t pid;
10227 int status;
10228 /* avoid "core dumped" message */
10229 pid = fork();
10230 if (pid < 0)
10231 exit(2);
10232 if (pid > 0) {
10233 /* parent */
10234 pid = waitpid(pid, &status, 0);
10235 if (pid < 0)
10236 exit(3);
10237 exit(!WIFEXITED(status));
10238 }
10239 /* child */
10240 i = *(unsigned int *)&a[1];
10241 printf("%d\n", i);
10242 exit(0);
10243 }
10244 EOF
10245 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10246 conftest.c $LIBS >/dev/null 2>&1
10247 if test ! -x conftest ; then
10248 ac_cv_lbl_unaligned_fail=yes
10249 else
10250 ./conftest >conftest.out
10251 if test ! -s conftest.out ; then
10252 ac_cv_lbl_unaligned_fail=yes
10253 else
10254 ac_cv_lbl_unaligned_fail=no
10255 fi
10256 fi
10257 rm -f -r conftest* core core.conftest
10258 ;;
10259 esac
10260 fi
10261
10262 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10263 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10264 if test $ac_cv_lbl_unaligned_fail = yes ; then
10265
10266 cat >>confdefs.h <<\_ACEOF
10267 #define LBL_ALIGN 1
10268 _ACEOF
10269
10270 fi
10271
10272 #
10273 # Makefile.in includes rules to generate version.h, so we assume
10274 # that it will be generated if autoconf is used.
10275 #
10276
10277 cat >>confdefs.h <<\_ACEOF
10278 #define HAVE_VERSION_H 1
10279 _ACEOF
10280
10281
10282 rm -f net
10283 ln -s ${srcdir}/bpf/net net
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10304 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10305 case "$host_os" in
10306 linux*)
10307
10308 cat >>confdefs.h <<\_ACEOF
10309 #define PCAP_SUPPORT_USB 1
10310 _ACEOF
10311
10312 USB_SRC=pcap-usb-linux.c
10313 { echo "$as_me:$LINENO: result: yes" >&5
10314 echo "${ECHO_T}yes" >&6; }
10315 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10316 if test $? -ne 0 ; then
10317 ac_usb_dev_name="usbmon"
10318 fi
10319
10320 cat >>confdefs.h <<_ACEOF
10321 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10322 _ACEOF
10323
10324 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10325 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10326
10327 for ac_header in linux/usbdevice_fs.h
10328 do
10329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 fi
10336 ac_res=`eval echo '${'$as_ac_Header'}'`
10337 { echo "$as_me:$LINENO: result: $ac_res" >&5
10338 echo "${ECHO_T}$ac_res" >&6; }
10339 else
10340 # Is the header compilable?
10341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h. */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 $ac_includes_default
10350 #include <$ac_header>
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (ac_try="$ac_compile"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357 esac
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_compile") 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest.$ac_objext; then
10369 ac_header_compiler=yes
10370 else
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 ac_header_compiler=no
10375 fi
10376
10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10379 echo "${ECHO_T}$ac_header_compiler" >&6; }
10380
10381 # Is the header present?
10382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 #include <$ac_header>
10391 _ACEOF
10392 if { (ac_try="$ac_cpp conftest.$ac_ext"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null && {
10405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 }; then
10408 ac_header_preproc=yes
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 ac_header_preproc=no
10414 fi
10415
10416 rm -f conftest.err conftest.$ac_ext
10417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418 echo "${ECHO_T}$ac_header_preproc" >&6; }
10419
10420 # So? What about this header?
10421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10422 yes:no: )
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10427 ac_header_preproc=yes
10428 ;;
10429 no:yes:* )
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10442
10443 ;;
10444 esac
10445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450 eval "$as_ac_Header=\$ac_header_preproc"
10451 fi
10452 ac_res=`eval echo '${'$as_ac_Header'}'`
10453 { echo "$as_me:$LINENO: result: $ac_res" >&5
10454 echo "${ECHO_T}$ac_res" >&6; }
10455
10456 fi
10457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10458 cat >>confdefs.h <<_ACEOF
10459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10460 _ACEOF
10461
10462 fi
10463
10464 done
10465
10466 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10467 #
10468 # OK, does it define bRequestType? Older versions of the kernel
10469 # define fields with names like "requesttype, "request", and
10470 # "value", rather than "bRequestType", "bRequest", and
10471 # "wValue".
10472 #
10473 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10474 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10475 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484
10485 $ac_includes_default
10486 #ifdef HAVE_SYS_BITYPES_H
10487 #include <sys/bitypes.h>
10488 #endif
10489 # include <linux/usbdevice_fs.h>
10490 int
10491 main ()
10492 {
10493 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10494 ;
10495 return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (ac_try="$ac_compile"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_compile") 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest.$ac_objext; then
10515 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10521 fi
10522
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 fi
10525
10526 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10527 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10528 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10529
10530 cat >>confdefs.h <<\_ACEOF
10531 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10532 _ACEOF
10533
10534 fi
10535 fi
10536 ;;
10537 *)
10538 { echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6; }
10540 ;;
10541 esac
10542
10543
10544
10545 # Check whether --enable-bluetooth was given.
10546 if test "${enable_bluetooth+set}" = set; then
10547 enableval=$enable_bluetooth;
10548 else
10549 enable_bluetooth=yes
10550 fi
10551
10552
10553 if test "x$enable_bluetooth" != "xno" ; then
10554 case "$host_os" in
10555 linux*)
10556 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10557 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10558 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10559 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 fi
10562 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10563 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10564 else
10565 # Is the header compilable?
10566 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10567 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h. */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 $ac_includes_default
10575 #include <bluetooth/bluetooth.h>
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
10585 ac_status=$?
10586 grep -v '^ *+' conftest.er1 >conftest.err
10587 rm -f conftest.er1
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest.$ac_objext; then
10594 ac_header_compiler=yes
10595 else
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10598
10599 ac_header_compiler=no
10600 fi
10601
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10604 echo "${ECHO_T}$ac_header_compiler" >&6; }
10605
10606 # Is the header present?
10607 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10608 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h. */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 #include <bluetooth/bluetooth.h>
10616 _ACEOF
10617 if { (ac_try="$ac_cpp conftest.$ac_ext"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } >/dev/null && {
10630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10632 }; then
10633 ac_header_preproc=yes
10634 else
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10637
10638 ac_header_preproc=no
10639 fi
10640
10641 rm -f conftest.err conftest.$ac_ext
10642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10643 echo "${ECHO_T}$ac_header_preproc" >&6; }
10644
10645 # So? What about this header?
10646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10647 yes:no: )
10648 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
10649 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
10651 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
10652 ac_header_preproc=yes
10653 ;;
10654 no:yes:* )
10655 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
10656 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
10658 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
10660 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
10662 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
10664 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
10666 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
10667
10668 ;;
10669 esac
10670 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10671 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10672 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
10676 fi
10677 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10678 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10679
10680 fi
10681 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
10682
10683
10684 cat >>confdefs.h <<\_ACEOF
10685 #define PCAP_SUPPORT_BT 1
10686 _ACEOF
10687
10688 BT_SRC=pcap-bt-linux.c
10689 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
10690 echo "$as_me: Bluetooth sniffing is supported" >&6;}
10691
10692 else
10693 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10694 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10695
10696 fi
10697
10698
10699 ;;
10700 *)
10701 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
10702 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10703 ;;
10704 esac
10705
10706
10707 fi
10708
10709 # Check whether --enable-can was given.
10710 if test "${enable_can+set}" = set; then
10711 enableval=$enable_can;
10712 else
10713 enable_can=yes
10714 fi
10715
10716
10717 if test "x$enable_can" != "xno" ; then
10718 case "$host_os" in
10719 linux*)
10720 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
10721 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
10722 if test "${ac_cv_header_linux_can_h+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h. */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 #include <sys/socket.h>
10732
10733
10734 #include <linux/can.h>
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (ac_try="$ac_compile"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741 esac
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_compile") 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } && {
10750 test -z "$ac_c_werror_flag" ||
10751 test ! -s conftest.err
10752 } && test -s conftest.$ac_objext; then
10753 ac_cv_header_linux_can_h=yes
10754 else
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10757
10758 ac_cv_header_linux_can_h=no
10759 fi
10760
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 fi
10763 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
10764 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
10765 if test $ac_cv_header_linux_can_h = yes; then
10766
10767 cat >>confdefs.h <<\_ACEOF
10768 #define PCAP_SUPPORT_CAN 1
10769 _ACEOF
10770
10771 CAN_SRC=pcap-can-linux.c
10772 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
10773 echo "$as_me: CAN sniffing is supported" >&6;}
10774 else
10775 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
10776 echo "$as_me: CAN sniffing is not supported" >&6;}
10777 fi
10778
10779
10780 ;;
10781 *)
10782 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
10783 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
10784 ;;
10785 esac
10786
10787
10788 fi
10789
10790 case "$host_os" in
10791 linux*)
10792
10793 for ac_header in linux/net_tstamp.h
10794 do
10795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 fi
10802 ac_res=`eval echo '${'$as_ac_Header'}'`
10803 { echo "$as_me:$LINENO: result: $ac_res" >&5
10804 echo "${ECHO_T}$ac_res" >&6; }
10805 else
10806 # Is the header compilable?
10807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $ac_includes_default
10816 #include <$ac_header>
10817 _ACEOF
10818 rm -f conftest.$ac_objext
10819 if { (ac_try="$ac_compile"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823 esac
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_compile") 2>conftest.er1
10826 ac_status=$?
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest.$ac_objext; then
10835 ac_header_compiler=yes
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840 ac_header_compiler=no
10841 fi
10842
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10845 echo "${ECHO_T}$ac_header_compiler" >&6; }
10846
10847 # Is the header present?
10848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include <$ac_header>
10857 _ACEOF
10858 if { (ac_try="$ac_cpp conftest.$ac_ext"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } >/dev/null && {
10871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10872 test ! -s conftest.err
10873 }; then
10874 ac_header_preproc=yes
10875 else
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 ac_header_preproc=no
10880 fi
10881
10882 rm -f conftest.err conftest.$ac_ext
10883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10884 echo "${ECHO_T}$ac_header_preproc" >&6; }
10885
10886 # So? What about this header?
10887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10888 yes:no: )
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10893 ac_header_preproc=yes
10894 ;;
10895 no:yes:* )
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10908
10909 ;;
10910 esac
10911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 eval "$as_ac_Header=\$ac_header_preproc"
10917 fi
10918 ac_res=`eval echo '${'$as_ac_Header'}'`
10919 { echo "$as_me:$LINENO: result: $ac_res" >&5
10920 echo "${ECHO_T}$ac_res" >&6; }
10921
10922 fi
10923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10926 _ACEOF
10927
10928 fi
10929
10930 done
10931
10932 ;;
10933 *)
10934 { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
10935 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
10936 ;;
10937 esac
10938
10939 # Find a good install program. We prefer a C program (faster),
10940 # so one script is as good as another. But avoid the broken or
10941 # incompatible versions:
10942 # SysV /etc/install, /usr/sbin/install
10943 # SunOS /usr/etc/install
10944 # IRIX /sbin/install
10945 # AIX /bin/install
10946 # AmigaOS /C/install, which installs bootblocks on floppy discs
10947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10950 # OS/2's system install, which has a completely different semantic
10951 # ./install, which can be erroneously created by make from ./install.sh.
10952 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10954 if test -z "$INSTALL"; then
10955 if test "${ac_cv_path_install+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $PATH
10960 do
10961 IFS=$as_save_IFS
10962 test -z "$as_dir" && as_dir=.
10963 # Account for people who put trailing slashes in PATH elements.
10964 case $as_dir/ in
10965 ./ | .// | /cC/* | \
10966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10968 /usr/ucb/* ) ;;
10969 *)
10970 # OSF1 and SCO ODT 3.0 have their own names for install.
10971 # Don't use installbsd from OSF since it installs stuff as root
10972 # by default.
10973 for ac_prog in ginstall scoinst install; do
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10976 if test $ac_prog = install &&
10977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10978 # AIX install. It has an incompatible calling convention.
10979 :
10980 elif test $ac_prog = install &&
10981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10982 # program-specific install script used by HP pwplus--don't use.
10983 :
10984 else
10985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10986 break 3
10987 fi
10988 fi
10989 done
10990 done
10991 ;;
10992 esac
10993 done
10994 IFS=$as_save_IFS
10995
10996
10997 fi
10998 if test "${ac_cv_path_install+set}" = set; then
10999 INSTALL=$ac_cv_path_install
11000 else
11001 # As a last resort, use the slow shell script. Don't cache a
11002 # value for INSTALL within a source directory, because that will
11003 # break other packages using the cache if that directory is
11004 # removed, or if the value is a relative name.
11005 INSTALL=$ac_install_sh
11006 fi
11007 fi
11008 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11009 echo "${ECHO_T}$INSTALL" >&6; }
11010
11011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11012 # It thinks the first close brace ends the variable substitution.
11013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11014
11015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11016
11017 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11018
11019
11020 ac_config_headers="$ac_config_headers config.h"
11021
11022
11023 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
11024
11025 cat >confcache <<\_ACEOF
11026 # This file is a shell script that caches the results of configure
11027 # tests run on this system so they can be shared between configure
11028 # scripts and configure runs, see configure's option --config-cache.
11029 # It is not useful on other systems. If it contains results you don't
11030 # want to keep, you may remove or edit it.
11031 #
11032 # config.status only pays attention to the cache file if you give it
11033 # the --recheck option to rerun configure.
11034 #
11035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11037 # following values.
11038
11039 _ACEOF
11040
11041 # The following way of writing the cache mishandles newlines in values,
11042 # but we know of no workaround that is simple, portable, and efficient.
11043 # So, we kill variables containing newlines.
11044 # Ultrix sh set writes to stderr and can't be redirected directly,
11045 # and sets the high bit in the cache file unless we assign to the vars.
11046 (
11047 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11048 eval ac_val=\$$ac_var
11049 case $ac_val in #(
11050 *${as_nl}*)
11051 case $ac_var in #(
11052 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11053 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11054 esac
11055 case $ac_var in #(
11056 _ | IFS | as_nl) ;; #(
11057 *) $as_unset $ac_var ;;
11058 esac ;;
11059 esac
11060 done
11061
11062 (set) 2>&1 |
11063 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11064 *${as_nl}ac_space=\ *)
11065 # `set' does not quote correctly, so add quotes (double-quote
11066 # substitution turns \\\\ into \\, and sed turns \\ into \).
11067 sed -n \
11068 "s/'/'\\\\''/g;
11069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11070 ;; #(
11071 *)
11072 # `set' quotes correctly as required by POSIX, so do not add quotes.
11073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11074 ;;
11075 esac |
11076 sort
11077 ) |
11078 sed '
11079 /^ac_cv_env_/b end
11080 t clear
11081 :clear
11082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11083 t end
11084 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11085 :end' >>confcache
11086 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11087 if test -w "$cache_file"; then
11088 test "x$cache_file" != "x/dev/null" &&
11089 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11090 echo "$as_me: updating cache $cache_file" >&6;}
11091 cat confcache >$cache_file
11092 else
11093 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11094 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11095 fi
11096 fi
11097 rm -f confcache
11098
11099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11100 # Let make expand exec_prefix.
11101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11102
11103 DEFS=-DHAVE_CONFIG_H
11104
11105 ac_libobjs=
11106 ac_ltlibobjs=
11107 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11108 # 1. Remove the extension, and $U if already installed.
11109 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11110 ac_i=`echo "$ac_i" | sed "$ac_script"`
11111 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11112 # will be set to the directory where LIBOBJS objects are built.
11113 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11114 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11115 done
11116 LIBOBJS=$ac_libobjs
11117
11118 LTLIBOBJS=$ac_ltlibobjs
11119
11120
11121
11122 : ${CONFIG_STATUS=./config.status}
11123 ac_clean_files_save=$ac_clean_files
11124 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11125 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11126 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11127 cat >$CONFIG_STATUS <<_ACEOF
11128 #! $SHELL
11129 # Generated by $as_me.
11130 # Run this file to recreate the current configuration.
11131 # Compiler output produced by configure, useful for debugging
11132 # configure, is in config.log if it exists.
11133
11134 debug=false
11135 ac_cs_recheck=false
11136 ac_cs_silent=false
11137 SHELL=\${CONFIG_SHELL-$SHELL}
11138 _ACEOF
11139
11140 cat >>$CONFIG_STATUS <<\_ACEOF
11141 ## --------------------- ##
11142 ## M4sh Initialization. ##
11143 ## --------------------- ##
11144
11145 # Be more Bourne compatible
11146 DUALCASE=1; export DUALCASE # for MKS sh
11147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11148 emulate sh
11149 NULLCMD=:
11150 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11151 # is contrary to our usage. Disable this feature.
11152 alias -g '${1+"$@"}'='"$@"'
11153 setopt NO_GLOB_SUBST
11154 else
11155 case `(set -o) 2>/dev/null` in
11156 *posix*) set -o posix ;;
11157 esac
11158
11159 fi
11160
11161
11162
11163
11164 # PATH needs CR
11165 # Avoid depending upon Character Ranges.
11166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11169 as_cr_digits='0123456789'
11170 as_cr_alnum=$as_cr_Letters$as_cr_digits
11171
11172 # The user is always right.
11173 if test "${PATH_SEPARATOR+set}" != set; then
11174 echo "#! /bin/sh" >conf$$.sh
11175 echo "exit 0" >>conf$$.sh
11176 chmod +x conf$$.sh
11177 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11178 PATH_SEPARATOR=';'
11179 else
11180 PATH_SEPARATOR=:
11181 fi
11182 rm -f conf$$.sh
11183 fi
11184
11185 # Support unset when possible.
11186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11187 as_unset=unset
11188 else
11189 as_unset=false
11190 fi
11191
11192
11193 # IFS
11194 # We need space, tab and new line, in precisely that order. Quoting is
11195 # there to prevent editors from complaining about space-tab.
11196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11197 # splitting by setting IFS to empty value.)
11198 as_nl='
11199 '
11200 IFS=" "" $as_nl"
11201
11202 # Find who we are. Look in the path if we contain no directory separator.
11203 case $0 in
11204 *[\\/]* ) as_myself=$0 ;;
11205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11207 do
11208 IFS=$as_save_IFS
11209 test -z "$as_dir" && as_dir=.
11210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11211 done
11212 IFS=$as_save_IFS
11213
11214 ;;
11215 esac
11216 # We did not find ourselves, most probably we were run as `sh COMMAND'
11217 # in which case we are not to be found in the path.
11218 if test "x$as_myself" = x; then
11219 as_myself=$0
11220 fi
11221 if test ! -f "$as_myself"; then
11222 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11223 { (exit 1); exit 1; }
11224 fi
11225
11226 # Work around bugs in pre-3.0 UWIN ksh.
11227 for as_var in ENV MAIL MAILPATH
11228 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11229 done
11230 PS1='$ '
11231 PS2='> '
11232 PS4='+ '
11233
11234 # NLS nuisances.
11235 for as_var in \
11236 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11237 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11238 LC_TELEPHONE LC_TIME
11239 do
11240 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11241 eval $as_var=C; export $as_var
11242 else
11243 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11244 fi
11245 done
11246
11247 # Required to use basename.
11248 if expr a : '\(a\)' >/dev/null 2>&1 &&
11249 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11250 as_expr=expr
11251 else
11252 as_expr=false
11253 fi
11254
11255 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11256 as_basename=basename
11257 else
11258 as_basename=false
11259 fi
11260
11261
11262 # Name of the executable.
11263 as_me=`$as_basename -- "$0" ||
11264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11265 X"$0" : 'X\(//\)$' \| \
11266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11267 echo X/"$0" |
11268 sed '/^.*\/\([^/][^/]*\)\/*$/{
11269 s//\1/
11270 q
11271 }
11272 /^X\/\(\/\/\)$/{
11273 s//\1/
11274 q
11275 }
11276 /^X\/\(\/\).*/{
11277 s//\1/
11278 q
11279 }
11280 s/.*/./; q'`
11281
11282 # CDPATH.
11283 $as_unset CDPATH
11284
11285
11286
11287 as_lineno_1=$LINENO
11288 as_lineno_2=$LINENO
11289 test "x$as_lineno_1" != "x$as_lineno_2" &&
11290 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11291
11292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11293 # uniformly replaced by the line number. The first 'sed' inserts a
11294 # line-number line after each line using $LINENO; the second 'sed'
11295 # does the real work. The second script uses 'N' to pair each
11296 # line-number line with the line containing $LINENO, and appends
11297 # trailing '-' during substitution so that $LINENO is not a special
11298 # case at line end.
11299 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11300 # scripts with optimization help from Paolo Bonzini. Blame Lee
11301 # E. McMahon (1931-1989) for sed's syntax. :-)
11302 sed -n '
11303 p
11304 /[$]LINENO/=
11305 ' <$as_myself |
11306 sed '
11307 s/[$]LINENO.*/&-/
11308 t lineno
11309 b
11310 :lineno
11311 N
11312 :loop
11313 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11314 t loop
11315 s/-\n.*//
11316 ' >$as_me.lineno &&
11317 chmod +x "$as_me.lineno" ||
11318 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11319 { (exit 1); exit 1; }; }
11320
11321 # Don't try to exec as it changes $[0], causing all sort of problems
11322 # (the dirname of $[0] is not the place where we might find the
11323 # original and so on. Autoconf is especially sensitive to this).
11324 . "./$as_me.lineno"
11325 # Exit status is that of the last command.
11326 exit
11327 }
11328
11329
11330 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11331 as_dirname=dirname
11332 else
11333 as_dirname=false
11334 fi
11335
11336 ECHO_C= ECHO_N= ECHO_T=
11337 case `echo -n x` in
11338 -n*)
11339 case `echo 'x\c'` in
11340 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11341 *) ECHO_C='\c';;
11342 esac;;
11343 *)
11344 ECHO_N='-n';;
11345 esac
11346
11347 if expr a : '\(a\)' >/dev/null 2>&1 &&
11348 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11349 as_expr=expr
11350 else
11351 as_expr=false
11352 fi
11353
11354 rm -f conf$$ conf$$.exe conf$$.file
11355 if test -d conf$$.dir; then
11356 rm -f conf$$.dir/conf$$.file
11357 else
11358 rm -f conf$$.dir
11359 mkdir conf$$.dir
11360 fi
11361 echo >conf$$.file
11362 if ln -s conf$$.file conf$$ 2>/dev/null; then
11363 as_ln_s='ln -s'
11364 # ... but there are two gotchas:
11365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11367 # In both cases, we have to default to `cp -p'.
11368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11369 as_ln_s='cp -p'
11370 elif ln conf$$.file conf$$ 2>/dev/null; then
11371 as_ln_s=ln
11372 else
11373 as_ln_s='cp -p'
11374 fi
11375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11376 rmdir conf$$.dir 2>/dev/null
11377
11378 if mkdir -p . 2>/dev/null; then
11379 as_mkdir_p=:
11380 else
11381 test -d ./-p && rmdir ./-p
11382 as_mkdir_p=false
11383 fi
11384
11385 if test -x / >/dev/null 2>&1; then
11386 as_test_x='test -x'
11387 else
11388 if ls -dL / >/dev/null 2>&1; then
11389 as_ls_L_option=L
11390 else
11391 as_ls_L_option=
11392 fi
11393 as_test_x='
11394 eval sh -c '\''
11395 if test -d "$1"; then
11396 test -d "$1/.";
11397 else
11398 case $1 in
11399 -*)set "./$1";;
11400 esac;
11401 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11402 ???[sx]*):;;*)false;;esac;fi
11403 '\'' sh
11404 '
11405 fi
11406 as_executable_p=$as_test_x
11407
11408 # Sed expression to map a string onto a valid CPP name.
11409 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11410
11411 # Sed expression to map a string onto a valid variable name.
11412 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11413
11414
11415 exec 6>&1
11416
11417 # Save the log message, to keep $[0] and so on meaningful, and to
11418 # report actual input values of CONFIG_FILES etc. instead of their
11419 # values after options handling.
11420 ac_log="
11421 This file was extended by $as_me, which was
11422 generated by GNU Autoconf 2.61. Invocation command line was
11423
11424 CONFIG_FILES = $CONFIG_FILES
11425 CONFIG_HEADERS = $CONFIG_HEADERS
11426 CONFIG_LINKS = $CONFIG_LINKS
11427 CONFIG_COMMANDS = $CONFIG_COMMANDS
11428 $ $0 $@
11429
11430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11431 "
11432
11433 _ACEOF
11434
11435 cat >>$CONFIG_STATUS <<_ACEOF
11436 # Files that config.status was made for.
11437 config_files="$ac_config_files"
11438 config_headers="$ac_config_headers"
11439
11440 _ACEOF
11441
11442 cat >>$CONFIG_STATUS <<\_ACEOF
11443 ac_cs_usage="\
11444 \`$as_me' instantiates files from templates according to the
11445 current configuration.
11446
11447 Usage: $0 [OPTIONS] [FILE]...
11448
11449 -h, --help print this help, then exit
11450 -V, --version print version number and configuration settings, then exit
11451 -q, --quiet do not print progress messages
11452 -d, --debug don't remove temporary files
11453 --recheck update $as_me by reconfiguring in the same conditions
11454 --file=FILE[:TEMPLATE]
11455 instantiate the configuration file FILE
11456 --header=FILE[:TEMPLATE]
11457 instantiate the configuration header FILE
11458
11459 Configuration files:
11460 $config_files
11461
11462 Configuration headers:
11463 $config_headers
11464
11465 Report bugs to <bug-autoconf@gnu.org>."
11466
11467 _ACEOF
11468 cat >>$CONFIG_STATUS <<_ACEOF
11469 ac_cs_version="\\
11470 config.status
11471 configured by $0, generated by GNU Autoconf 2.61,
11472 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11473
11474 Copyright (C) 2006 Free Software Foundation, Inc.
11475 This config.status script is free software; the Free Software Foundation
11476 gives unlimited permission to copy, distribute and modify it."
11477
11478 ac_pwd='$ac_pwd'
11479 srcdir='$srcdir'
11480 INSTALL='$INSTALL'
11481 _ACEOF
11482
11483 cat >>$CONFIG_STATUS <<\_ACEOF
11484 # If no file are specified by the user, then we need to provide default
11485 # value. By we need to know if files were specified by the user.
11486 ac_need_defaults=:
11487 while test $# != 0
11488 do
11489 case $1 in
11490 --*=*)
11491 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11492 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11493 ac_shift=:
11494 ;;
11495 *)
11496 ac_option=$1
11497 ac_optarg=$2
11498 ac_shift=shift
11499 ;;
11500 esac
11501
11502 case $ac_option in
11503 # Handling of the options.
11504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11505 ac_cs_recheck=: ;;
11506 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11507 echo "$ac_cs_version"; exit ;;
11508 --debug | --debu | --deb | --de | --d | -d )
11509 debug=: ;;
11510 --file | --fil | --fi | --f )
11511 $ac_shift
11512 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11513 ac_need_defaults=false;;
11514 --header | --heade | --head | --hea )
11515 $ac_shift
11516 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11517 ac_need_defaults=false;;
11518 --he | --h)
11519 # Conflict between --help and --header
11520 { echo "$as_me: error: ambiguous option: $1
11521 Try \`$0 --help' for more information." >&2
11522 { (exit 1); exit 1; }; };;
11523 --help | --hel | -h )
11524 echo "$ac_cs_usage"; exit ;;
11525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11527 ac_cs_silent=: ;;
11528
11529 # This is an error.
11530 -*) { echo "$as_me: error: unrecognized option: $1
11531 Try \`$0 --help' for more information." >&2
11532 { (exit 1); exit 1; }; } ;;
11533
11534 *) ac_config_targets="$ac_config_targets $1"
11535 ac_need_defaults=false ;;
11536
11537 esac
11538 shift
11539 done
11540
11541 ac_configure_extra_args=
11542
11543 if $ac_cs_silent; then
11544 exec 6>/dev/null
11545 ac_configure_extra_args="$ac_configure_extra_args --silent"
11546 fi
11547
11548 _ACEOF
11549 cat >>$CONFIG_STATUS <<_ACEOF
11550 if \$ac_cs_recheck; then
11551 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11552 CONFIG_SHELL=$SHELL
11553 export CONFIG_SHELL
11554 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11555 fi
11556
11557 _ACEOF
11558 cat >>$CONFIG_STATUS <<\_ACEOF
11559 exec 5>>config.log
11560 {
11561 echo
11562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11563 ## Running $as_me. ##
11564 _ASBOX
11565 echo "$ac_log"
11566 } >&5
11567
11568 _ACEOF
11569 cat >>$CONFIG_STATUS <<_ACEOF
11570 _ACEOF
11571
11572 cat >>$CONFIG_STATUS <<\_ACEOF
11573
11574 # Handling of arguments.
11575 for ac_config_target in $ac_config_targets
11576 do
11577 case $ac_config_target in
11578 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11579 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11580 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11581 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11582 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11583 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11584 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11585 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11586 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11587 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11588 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11589 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11590 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11591 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11592 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11593
11594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11596 { (exit 1); exit 1; }; };;
11597 esac
11598 done
11599
11600
11601 # If the user did not use the arguments to specify the items to instantiate,
11602 # then the envvar interface is used. Set only those that are not.
11603 # We use the long form for the default assignment because of an extremely
11604 # bizarre bug on SunOS 4.1.3.
11605 if $ac_need_defaults; then
11606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11608 fi
11609
11610 # Have a temporary directory for convenience. Make it in the build tree
11611 # simply because there is no reason against having it here, and in addition,
11612 # creating and moving files from /tmp can sometimes cause problems.
11613 # Hook for its removal unless debugging.
11614 # Note that there is a small window in which the directory will not be cleaned:
11615 # after its creation but before its name has been assigned to `$tmp'.
11616 $debug ||
11617 {
11618 tmp=
11619 trap 'exit_status=$?
11620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11621 ' 0
11622 trap '{ (exit 1); exit 1; }' 1 2 13 15
11623 }
11624 # Create a (secure) tmp directory for tmp files.
11625
11626 {
11627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11628 test -n "$tmp" && test -d "$tmp"
11629 } ||
11630 {
11631 tmp=./conf$$-$RANDOM
11632 (umask 077 && mkdir "$tmp")
11633 } ||
11634 {
11635 echo "$me: cannot create a temporary directory in ." >&2
11636 { (exit 1); exit 1; }
11637 }
11638
11639 #
11640 # Set up the sed scripts for CONFIG_FILES section.
11641 #
11642
11643 # No need to generate the scripts if there are no CONFIG_FILES.
11644 # This happens for instance when ./config.status config.h
11645 if test -n "$CONFIG_FILES"; then
11646
11647 _ACEOF
11648
11649
11650
11651 ac_delim='%!_!# '
11652 for ac_last_try in false false false false false :; do
11653 cat >conf$$subs.sed <<_ACEOF
11654 SHELL!$SHELL$ac_delim
11655 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11656 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11657 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11658 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11659 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11660 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11661 exec_prefix!$exec_prefix$ac_delim
11662 prefix!$prefix$ac_delim
11663 program_transform_name!$program_transform_name$ac_delim
11664 bindir!$bindir$ac_delim
11665 sbindir!$sbindir$ac_delim
11666 libexecdir!$libexecdir$ac_delim
11667 datarootdir!$datarootdir$ac_delim
11668 datadir!$datadir$ac_delim
11669 sysconfdir!$sysconfdir$ac_delim
11670 sharedstatedir!$sharedstatedir$ac_delim
11671 localstatedir!$localstatedir$ac_delim
11672 includedir!$includedir$ac_delim
11673 oldincludedir!$oldincludedir$ac_delim
11674 docdir!$docdir$ac_delim
11675 infodir!$infodir$ac_delim
11676 htmldir!$htmldir$ac_delim
11677 dvidir!$dvidir$ac_delim
11678 pdfdir!$pdfdir$ac_delim
11679 psdir!$psdir$ac_delim
11680 libdir!$libdir$ac_delim
11681 localedir!$localedir$ac_delim
11682 mandir!$mandir$ac_delim
11683 DEFS!$DEFS$ac_delim
11684 ECHO_C!$ECHO_C$ac_delim
11685 ECHO_N!$ECHO_N$ac_delim
11686 ECHO_T!$ECHO_T$ac_delim
11687 LIBS!$LIBS$ac_delim
11688 build_alias!$build_alias$ac_delim
11689 host_alias!$host_alias$ac_delim
11690 target_alias!$target_alias$ac_delim
11691 build!$build$ac_delim
11692 build_cpu!$build_cpu$ac_delim
11693 build_vendor!$build_vendor$ac_delim
11694 build_os!$build_os$ac_delim
11695 host!$host$ac_delim
11696 host_cpu!$host_cpu$ac_delim
11697 host_vendor!$host_vendor$ac_delim
11698 host_os!$host_os$ac_delim
11699 target!$target$ac_delim
11700 target_cpu!$target_cpu$ac_delim
11701 target_vendor!$target_vendor$ac_delim
11702 target_os!$target_os$ac_delim
11703 SHLICC2!$SHLICC2$ac_delim
11704 CC!$CC$ac_delim
11705 CFLAGS!$CFLAGS$ac_delim
11706 LDFLAGS!$LDFLAGS$ac_delim
11707 CPPFLAGS!$CPPFLAGS$ac_delim
11708 ac_ct_CC!$ac_ct_CC$ac_delim
11709 EXEEXT!$EXEEXT$ac_delim
11710 OBJEXT!$OBJEXT$ac_delim
11711 CPP!$CPP$ac_delim
11712 GREP!$GREP$ac_delim
11713 EGREP!$EGREP$ac_delim
11714 LIBOBJS!$LIBOBJS$ac_delim
11715 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
11716 V_LEX!$V_LEX$ac_delim
11717 V_YACC!$V_YACC$ac_delim
11718 RANLIB!$RANLIB$ac_delim
11719 AR!$AR$ac_delim
11720 V_CCOPT!$V_CCOPT$ac_delim
11721 V_DEFS!$V_DEFS$ac_delim
11722 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
11723 V_INCLS!$V_INCLS$ac_delim
11724 V_PCAP!$V_PCAP$ac_delim
11725 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
11726 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
11727 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
11728 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
11729 ADDLOBJS!$ADDLOBJS$ac_delim
11730 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
11731 SSRC!$SSRC$ac_delim
11732 DYEXT!$DYEXT$ac_delim
11733 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
11734 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
11735 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
11736 USB_SRC!$USB_SRC$ac_delim
11737 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
11738 BT_SRC!$BT_SRC$ac_delim
11739 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
11740 CAN_SRC!$CAN_SRC$ac_delim
11741 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11742 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11743 INSTALL_DATA!$INSTALL_DATA$ac_delim
11744 LTLIBOBJS!$LTLIBOBJS$ac_delim
11745 _ACEOF
11746
11747 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
11748 break
11749 elif $ac_last_try; then
11750 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11751 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11752 { (exit 1); exit 1; }; }
11753 else
11754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11755 fi
11756 done
11757
11758 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11759 if test -n "$ac_eof"; then
11760 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11761 ac_eof=`expr $ac_eof + 1`
11762 fi
11763
11764 cat >>$CONFIG_STATUS <<_ACEOF
11765 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11767 _ACEOF
11768 sed '
11769 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11770 s/^/s,@/; s/!/@,|#_!!_#|/
11771 :n
11772 t n
11773 s/'"$ac_delim"'$/,g/; t
11774 s/$/\\/; p
11775 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11776 ' >>$CONFIG_STATUS <conf$$subs.sed
11777 rm -f conf$$subs.sed
11778 cat >>$CONFIG_STATUS <<_ACEOF
11779 :end
11780 s/|#_!!_#|//g
11781 CEOF$ac_eof
11782 _ACEOF
11783
11784
11785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11787 # trailing colons and then remove the whole line if VPATH becomes empty
11788 # (actually we leave an empty line to preserve line numbers).
11789 if test "x$srcdir" = x.; then
11790 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11791 s/:*\$(srcdir):*/:/
11792 s/:*\${srcdir}:*/:/
11793 s/:*@srcdir@:*/:/
11794 s/^\([^=]*=[ ]*\):*/\1/
11795 s/:*$//
11796 s/^[^=]*=[ ]*$//
11797 }'
11798 fi
11799
11800 cat >>$CONFIG_STATUS <<\_ACEOF
11801 fi # test -n "$CONFIG_FILES"
11802
11803
11804 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11805 do
11806 case $ac_tag in
11807 :[FHLC]) ac_mode=$ac_tag; continue;;
11808 esac
11809 case $ac_mode$ac_tag in
11810 :[FHL]*:*);;
11811 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11812 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11813 { (exit 1); exit 1; }; };;
11814 :[FH]-) ac_tag=-:-;;
11815 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11816 esac
11817 ac_save_IFS=$IFS
11818 IFS=:
11819 set x $ac_tag
11820 IFS=$ac_save_IFS
11821 shift
11822 ac_file=$1
11823 shift
11824
11825 case $ac_mode in
11826 :L) ac_source=$1;;
11827 :[FH])
11828 ac_file_inputs=
11829 for ac_f
11830 do
11831 case $ac_f in
11832 -) ac_f="$tmp/stdin";;
11833 *) # Look for the file first in the build tree, then in the source tree
11834 # (if the path is not absolute). The absolute path cannot be DOS-style,
11835 # because $ac_f cannot contain `:'.
11836 test -f "$ac_f" ||
11837 case $ac_f in
11838 [\\/$]*) false;;
11839 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11840 esac ||
11841 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11842 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11843 { (exit 1); exit 1; }; };;
11844 esac
11845 ac_file_inputs="$ac_file_inputs $ac_f"
11846 done
11847
11848 # Let's still pretend it is `configure' which instantiates (i.e., don't
11849 # use $as_me), people would be surprised to read:
11850 # /* config.h. Generated by config.status. */
11851 configure_input="Generated from "`IFS=:
11852 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11853 if test x"$ac_file" != x-; then
11854 configure_input="$ac_file. $configure_input"
11855 { echo "$as_me:$LINENO: creating $ac_file" >&5
11856 echo "$as_me: creating $ac_file" >&6;}
11857 fi
11858
11859 case $ac_tag in
11860 *:-:* | *:-) cat >"$tmp/stdin";;
11861 esac
11862 ;;
11863 esac
11864
11865 ac_dir=`$as_dirname -- "$ac_file" ||
11866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11867 X"$ac_file" : 'X\(//\)[^/]' \| \
11868 X"$ac_file" : 'X\(//\)$' \| \
11869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11870 echo X"$ac_file" |
11871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11872 s//\1/
11873 q
11874 }
11875 /^X\(\/\/\)[^/].*/{
11876 s//\1/
11877 q
11878 }
11879 /^X\(\/\/\)$/{
11880 s//\1/
11881 q
11882 }
11883 /^X\(\/\).*/{
11884 s//\1/
11885 q
11886 }
11887 s/.*/./; q'`
11888 { as_dir="$ac_dir"
11889 case $as_dir in #(
11890 -*) as_dir=./$as_dir;;
11891 esac
11892 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11893 as_dirs=
11894 while :; do
11895 case $as_dir in #(
11896 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11897 *) as_qdir=$as_dir;;
11898 esac
11899 as_dirs="'$as_qdir' $as_dirs"
11900 as_dir=`$as_dirname -- "$as_dir" ||
11901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11902 X"$as_dir" : 'X\(//\)[^/]' \| \
11903 X"$as_dir" : 'X\(//\)$' \| \
11904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11905 echo X"$as_dir" |
11906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11907 s//\1/
11908 q
11909 }
11910 /^X\(\/\/\)[^/].*/{
11911 s//\1/
11912 q
11913 }
11914 /^X\(\/\/\)$/{
11915 s//\1/
11916 q
11917 }
11918 /^X\(\/\).*/{
11919 s//\1/
11920 q
11921 }
11922 s/.*/./; q'`
11923 test -d "$as_dir" && break
11924 done
11925 test -z "$as_dirs" || eval "mkdir $as_dirs"
11926 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11927 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11928 { (exit 1); exit 1; }; }; }
11929 ac_builddir=.
11930
11931 case "$ac_dir" in
11932 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11933 *)
11934 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11935 # A ".." for each directory in $ac_dir_suffix.
11936 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11937 case $ac_top_builddir_sub in
11938 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11939 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11940 esac ;;
11941 esac
11942 ac_abs_top_builddir=$ac_pwd
11943 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11944 # for backward compatibility:
11945 ac_top_builddir=$ac_top_build_prefix
11946
11947 case $srcdir in
11948 .) # We are building in place.
11949 ac_srcdir=.
11950 ac_top_srcdir=$ac_top_builddir_sub
11951 ac_abs_top_srcdir=$ac_pwd ;;
11952 [\\/]* | ?:[\\/]* ) # Absolute name.
11953 ac_srcdir=$srcdir$ac_dir_suffix;
11954 ac_top_srcdir=$srcdir
11955 ac_abs_top_srcdir=$srcdir ;;
11956 *) # Relative name.
11957 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11958 ac_top_srcdir=$ac_top_build_prefix$srcdir
11959 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11960 esac
11961 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11962
11963
11964 case $ac_mode in
11965 :F)
11966 #
11967 # CONFIG_FILE
11968 #
11969
11970 case $INSTALL in
11971 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11972 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11973 esac
11974 _ACEOF
11975
11976 cat >>$CONFIG_STATUS <<\_ACEOF
11977 # If the template does not know about datarootdir, expand it.
11978 # FIXME: This hack should be removed a few years after 2.60.
11979 ac_datarootdir_hack=; ac_datarootdir_seen=
11980
11981 case `sed -n '/datarootdir/ {
11982 p
11983 q
11984 }
11985 /@datadir@/p
11986 /@docdir@/p
11987 /@infodir@/p
11988 /@localedir@/p
11989 /@mandir@/p
11990 ' $ac_file_inputs` in
11991 *datarootdir*) ac_datarootdir_seen=yes;;
11992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11993 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11994 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11995 _ACEOF
11996 cat >>$CONFIG_STATUS <<_ACEOF
11997 ac_datarootdir_hack='
11998 s&@datadir@&$datadir&g
11999 s&@docdir@&$docdir&g
12000 s&@infodir@&$infodir&g
12001 s&@localedir@&$localedir&g
12002 s&@mandir@&$mandir&g
12003 s&\\\${datarootdir}&$datarootdir&g' ;;
12004 esac
12005 _ACEOF
12006
12007 # Neutralize VPATH when `$srcdir' = `.'.
12008 # Shell code in configure.ac might set extrasub.
12009 # FIXME: do we really want to maintain this feature?
12010 cat >>$CONFIG_STATUS <<_ACEOF
12011 sed "$ac_vpsub
12012 $extrasub
12013 _ACEOF
12014 cat >>$CONFIG_STATUS <<\_ACEOF
12015 :t
12016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12017 s&@configure_input@&$configure_input&;t t
12018 s&@top_builddir@&$ac_top_builddir_sub&;t t
12019 s&@srcdir@&$ac_srcdir&;t t
12020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12021 s&@top_srcdir@&$ac_top_srcdir&;t t
12022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12023 s&@builddir@&$ac_builddir&;t t
12024 s&@abs_builddir@&$ac_abs_builddir&;t t
12025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12026 s&@INSTALL@&$ac_INSTALL&;t t
12027 $ac_datarootdir_hack
12028 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12029
12030 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12031 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12032 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12033 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12034 which seems to be undefined. Please make sure it is defined." >&5
12035 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12036 which seems to be undefined. Please make sure it is defined." >&2;}
12037
12038 rm -f "$tmp/stdin"
12039 case $ac_file in
12040 -) cat "$tmp/out"; rm -f "$tmp/out";;
12041 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12042 esac
12043 ;;
12044 :H)
12045 #
12046 # CONFIG_HEADER
12047 #
12048 _ACEOF
12049
12050 # Transform confdefs.h into a sed script `conftest.defines', that
12051 # substitutes the proper values into config.h.in to produce config.h.
12052 rm -f conftest.defines conftest.tail
12053 # First, append a space to every undef/define line, to ease matching.
12054 echo 's/$/ /' >conftest.defines
12055 # Then, protect against being on the right side of a sed subst, or in
12056 # an unquoted here document, in config.status. If some macros were
12057 # called several times there might be several #defines for the same
12058 # symbol, which is useless. But do not sort them, since the last
12059 # AC_DEFINE must be honored.
12060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12061 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12062 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12063 # PARAMS is the parameter list in the macro definition--in most cases, it's
12064 # just an empty string.
12065 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12066 ac_dB='\\)[ (].*,\\1define\\2'
12067 ac_dC=' '
12068 ac_dD=' ,'
12069
12070 uniq confdefs.h |
12071 sed -n '
12072 t rset
12073 :rset
12074 s/^[ ]*#[ ]*define[ ][ ]*//
12075 t ok
12076 d
12077 :ok
12078 s/[\\&,]/\\&/g
12079 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12080 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12081 ' >>conftest.defines
12082
12083 # Remove the space that was appended to ease matching.
12084 # Then replace #undef with comments. This is necessary, for
12085 # example, in the case of _POSIX_SOURCE, which is predefined and required
12086 # on some systems where configure will not decide to define it.
12087 # (The regexp can be short, since the line contains either #define or #undef.)
12088 echo 's/ $//
12089 s,^[ #]*u.*,/* & */,' >>conftest.defines
12090
12091 # Break up conftest.defines:
12092 ac_max_sed_lines=50
12093
12094 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12095 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12096 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12097 # et cetera.
12098 ac_in='$ac_file_inputs'
12099 ac_out='"$tmp/out1"'
12100 ac_nxt='"$tmp/out2"'
12101
12102 while :
12103 do
12104 # Write a here document:
12105 cat >>$CONFIG_STATUS <<_ACEOF
12106 # First, check the format of the line:
12107 cat >"\$tmp/defines.sed" <<\\CEOF
12108 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12109 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12110 b
12111 :def
12112 _ACEOF
12113 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12114 echo 'CEOF
12115 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12116 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12117 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12118 grep . conftest.tail >/dev/null || break
12119 rm -f conftest.defines
12120 mv conftest.tail conftest.defines
12121 done
12122 rm -f conftest.defines conftest.tail
12123
12124 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12125 cat >>$CONFIG_STATUS <<\_ACEOF
12126 if test x"$ac_file" != x-; then
12127 echo "/* $configure_input */" >"$tmp/config.h"
12128 cat "$ac_result" >>"$tmp/config.h"
12129 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12130 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12131 echo "$as_me: $ac_file is unchanged" >&6;}
12132 else
12133 rm -f $ac_file
12134 mv "$tmp/config.h" $ac_file
12135 fi
12136 else
12137 echo "/* $configure_input */"
12138 cat "$ac_result"
12139 fi
12140 rm -f "$tmp/out12"
12141 ;;
12142
12143
12144 esac
12145
12146 done # for ac_tag
12147
12148
12149 { (exit 0); exit 0; }
12150 _ACEOF
12151 chmod +x $CONFIG_STATUS
12152 ac_clean_files=$ac_clean_files_save
12153
12154
12155 # configure is writing to config.log, and then calls config.status.
12156 # config.status does its own redirection, appending to config.log.
12157 # Unfortunately, on DOS this fails, as config.log is still kept open
12158 # by configure, so config.status won't be able to write to it; its
12159 # output is simply discarded. So we exec the FD to /dev/null,
12160 # effectively closing config.log, so it can be properly (re)opened and
12161 # appended to by config.status. When coming back to configure, we
12162 # need to make the FD available again.
12163 if test "$no_create" != yes; then
12164 ac_cs_success=:
12165 ac_config_status_args=
12166 test "$silent" = yes &&
12167 ac_config_status_args="$ac_config_status_args --quiet"
12168 exec 5>/dev/null
12169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12170 exec 5>>config.log
12171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12172 # would make configure fail if this is the last instruction.
12173 $ac_cs_success || { (exit 1); exit 1; }
12174 fi
12175
12176
12177 if test -f .devel ; then
12178 make depend
12179 fi
12180 exit 0