1 diff -rdup tcpdump-3.9.8.orig/config.h.in tcpdump-3.9.8/config.h.in
2 --- tcpdump-3.9.8.orig/config.h.in 2007-09-26 03:59:52.000000000 +0200
3 +++ tcpdump-3.9.8/config.h.in 2008-01-21 13:02:09.000000000 +0100
5 /* Define to 1 if you have the `crypto' library (-lcrypto). */
8 +/* Define to 1 if you have the `pcap' library (-lpcap). */
11 /* Define to 1 if you have the `rpc' library (-lrpc). */
15 /* Define to 1 if you have the <openssl/evp.h> header file. */
16 #undef HAVE_OPENSSL_EVP_H
18 -/* Define to 1 if you have the `pcap_breakloop' function. */
19 -#undef HAVE_PCAP_BREAKLOOP
21 /* Define to 1 if you have the `pcap_dump_flush' function. */
22 #undef HAVE_PCAP_DUMP_FLUSH
25 /* Define to 1 if you have the `pcap_lib_version' function. */
26 #undef HAVE_PCAP_LIB_VERSION
28 -/* Define to 1 if you have the `pfopen' function. */
31 /* Define to 1 if you have the <rpc/rpcent.h> header file. */
32 #undef HAVE_RPC_RPCENT_H
34 diff -rdup tcpdump-3.9.8.orig/configure tcpdump-3.9.8/configure
35 --- tcpdump-3.9.8.orig/configure 2008-01-21 12:54:17.000000000 +0100
36 +++ tcpdump-3.9.8/configure 2008-01-21 13:02:08.000000000 +0100
37 @@ -8783,522 +8783,7 @@ fi
41 - # Most operating systems have gethostbyname() in the default searched
42 - # libraries (i.e. libc):
43 - # Some OSes (eg. Solaris) place it in libnsl
44 - # Some strange OSes (SINIX) have it in libsocket:
45 - { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
46 -echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
47 -if test "${ac_cv_search_gethostbyname+set}" = set; then
48 - echo $ECHO_N "(cached) $ECHO_C" >&6
50 - ac_func_search_save_LIBS=$LIBS
51 -cat >conftest.$ac_ext <<_ACEOF
54 -cat confdefs.h >>conftest.$ac_ext
55 -cat >>conftest.$ac_ext <<_ACEOF
56 -/* end confdefs.h. */
58 -/* Override any GCC internal prototype to avoid an error.
59 - Use char because int might match the return type of a GCC
60 - builtin and then its argument prototype would still apply. */
64 -char gethostbyname ();
68 -return gethostbyname ();
73 -for ac_lib in '' nsl socket resolv; do
74 - if test -z "$ac_lib"; then
75 - ac_res="none required"
78 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
80 - rm -f conftest.$ac_objext conftest$ac_exeext
81 -if { (ac_try="$ac_link"
83 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84 - *) ac_try_echo=$ac_try;;
86 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
87 - (eval "$ac_link") 2>conftest.er1
89 - grep -v '^ *+' conftest.er1 >conftest.err
91 - cat conftest.err >&5
92 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
93 - (exit $ac_status); } && {
94 - test -z "$ac_c_werror_flag" ||
95 - test ! -s conftest.err
96 - } && test -s conftest$ac_exeext &&
97 - $as_test_x conftest$ac_exeext; then
98 - ac_cv_search_gethostbyname=$ac_res
100 - echo "$as_me: failed program was:" >&5
101 -sed 's/^/| /' conftest.$ac_ext >&5
106 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108 - if test "${ac_cv_search_gethostbyname+set}" = set; then
112 -if test "${ac_cv_search_gethostbyname+set}" = set; then
115 - ac_cv_search_gethostbyname=no
118 -LIBS=$ac_func_search_save_LIBS
120 -{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
121 -echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
122 -ac_res=$ac_cv_search_gethostbyname
123 -if test "$ac_res" != no; then
124 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
128 - # Unfortunately libsocket sometimes depends on libnsl and
129 - # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
130 - if test "$ac_cv_search_gethostbyname" = "no"
132 - { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
133 -echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
134 -if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
135 - echo $ECHO_N "(cached) $ECHO_C" >&6
137 - ac_check_lib_save_LIBS=$LIBS
138 -LIBS="-lsocket -lnsl $LIBS"
139 -cat >conftest.$ac_ext <<_ACEOF
142 -cat confdefs.h >>conftest.$ac_ext
143 -cat >>conftest.$ac_ext <<_ACEOF
144 -/* end confdefs.h. */
146 -/* Override any GCC internal prototype to avoid an error.
147 - Use char because int might match the return type of a GCC
148 - builtin and then its argument prototype would still apply. */
152 -char gethostbyname ();
156 -return gethostbyname ();
161 -rm -f conftest.$ac_objext conftest$ac_exeext
162 -if { (ac_try="$ac_link"
164 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
165 - *) ac_try_echo=$ac_try;;
167 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
168 - (eval "$ac_link") 2>conftest.er1
170 - grep -v '^ *+' conftest.er1 >conftest.err
172 - cat conftest.err >&5
173 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
174 - (exit $ac_status); } && {
175 - test -z "$ac_c_werror_flag" ||
176 - test ! -s conftest.err
177 - } && test -s conftest$ac_exeext &&
178 - $as_test_x conftest$ac_exeext; then
179 - ac_cv_lib_socket_gethostbyname=yes
181 - echo "$as_me: failed program was:" >&5
182 -sed 's/^/| /' conftest.$ac_ext >&5
184 - ac_cv_lib_socket_gethostbyname=no
187 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
188 - conftest$ac_exeext conftest.$ac_ext
189 -LIBS=$ac_check_lib_save_LIBS
191 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
192 -echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
193 -if test $ac_cv_lib_socket_gethostbyname = yes; then
194 - LIBS="-lsocket -lnsl $LIBS"
198 - { echo "$as_me:$LINENO: checking for library containing socket" >&5
199 -echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
200 -if test "${ac_cv_search_socket+set}" = set; then
201 - echo $ECHO_N "(cached) $ECHO_C" >&6
203 - ac_func_search_save_LIBS=$LIBS
204 -cat >conftest.$ac_ext <<_ACEOF
207 -cat confdefs.h >>conftest.$ac_ext
208 -cat >>conftest.$ac_ext <<_ACEOF
209 -/* end confdefs.h. */
211 -/* Override any GCC internal prototype to avoid an error.
212 - Use char because int might match the return type of a GCC
213 - builtin and then its argument prototype would still apply. */
226 -for ac_lib in '' socket; do
227 - if test -z "$ac_lib"; then
228 - ac_res="none required"
231 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
233 - rm -f conftest.$ac_objext conftest$ac_exeext
234 -if { (ac_try="$ac_link"
236 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
237 - *) ac_try_echo=$ac_try;;
239 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
240 - (eval "$ac_link") 2>conftest.er1
242 - grep -v '^ *+' conftest.er1 >conftest.err
244 - cat conftest.err >&5
245 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
246 - (exit $ac_status); } && {
247 - test -z "$ac_c_werror_flag" ||
248 - test ! -s conftest.err
249 - } && test -s conftest$ac_exeext &&
250 - $as_test_x conftest$ac_exeext; then
251 - ac_cv_search_socket=$ac_res
253 - echo "$as_me: failed program was:" >&5
254 -sed 's/^/| /' conftest.$ac_ext >&5
259 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
261 - if test "${ac_cv_search_socket+set}" = set; then
265 -if test "${ac_cv_search_socket+set}" = set; then
268 - ac_cv_search_socket=no
271 -LIBS=$ac_func_search_save_LIBS
273 -{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
274 -echo "${ECHO_T}$ac_cv_search_socket" >&6; }
275 -ac_res=$ac_cv_search_socket
276 -if test "$ac_res" != no; then
277 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
280 - { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
281 -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
282 -if test "${ac_cv_lib_socket_socket+set}" = set; then
283 - echo $ECHO_N "(cached) $ECHO_C" >&6
285 - ac_check_lib_save_LIBS=$LIBS
286 -LIBS="-lsocket -lnsl $LIBS"
287 -cat >conftest.$ac_ext <<_ACEOF
290 -cat confdefs.h >>conftest.$ac_ext
291 -cat >>conftest.$ac_ext <<_ACEOF
292 -/* end confdefs.h. */
294 -/* Override any GCC internal prototype to avoid an error.
295 - Use char because int might match the return type of a GCC
296 - builtin and then its argument prototype would still apply. */
309 -rm -f conftest.$ac_objext conftest$ac_exeext
310 -if { (ac_try="$ac_link"
312 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
313 - *) ac_try_echo=$ac_try;;
315 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
316 - (eval "$ac_link") 2>conftest.er1
318 - grep -v '^ *+' conftest.er1 >conftest.err
320 - cat conftest.err >&5
321 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
322 - (exit $ac_status); } && {
323 - test -z "$ac_c_werror_flag" ||
324 - test ! -s conftest.err
325 - } && test -s conftest$ac_exeext &&
326 - $as_test_x conftest$ac_exeext; then
327 - ac_cv_lib_socket_socket=yes
329 - echo "$as_me: failed program was:" >&5
330 -sed 's/^/| /' conftest.$ac_ext >&5
332 - ac_cv_lib_socket_socket=no
335 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
336 - conftest$ac_exeext conftest.$ac_ext
337 -LIBS=$ac_check_lib_save_LIBS
339 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
340 -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
341 -if test $ac_cv_lib_socket_socket = yes; then
342 - LIBS="-lsocket -lnsl $LIBS"
347 - # DLPI needs putmsg under HPUX so test for -lstr while we're at it
348 - { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
349 -echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
350 -if test "${ac_cv_search_putmsg+set}" = set; then
351 - echo $ECHO_N "(cached) $ECHO_C" >&6
353 - ac_func_search_save_LIBS=$LIBS
354 -cat >conftest.$ac_ext <<_ACEOF
357 -cat confdefs.h >>conftest.$ac_ext
358 -cat >>conftest.$ac_ext <<_ACEOF
359 -/* end confdefs.h. */
361 -/* Override any GCC internal prototype to avoid an error.
362 - Use char because int might match the return type of a GCC
363 - builtin and then its argument prototype would still apply. */
376 -for ac_lib in '' str; do
377 - if test -z "$ac_lib"; then
378 - ac_res="none required"
381 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
383 - rm -f conftest.$ac_objext conftest$ac_exeext
384 -if { (ac_try="$ac_link"
386 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
387 - *) ac_try_echo=$ac_try;;
389 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
390 - (eval "$ac_link") 2>conftest.er1
392 - grep -v '^ *+' conftest.er1 >conftest.err
394 - cat conftest.err >&5
395 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
396 - (exit $ac_status); } && {
397 - test -z "$ac_c_werror_flag" ||
398 - test ! -s conftest.err
399 - } && test -s conftest$ac_exeext &&
400 - $as_test_x conftest$ac_exeext; then
401 - ac_cv_search_putmsg=$ac_res
403 - echo "$as_me: failed program was:" >&5
404 -sed 's/^/| /' conftest.$ac_ext >&5
409 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
411 - if test "${ac_cv_search_putmsg+set}" = set; then
415 -if test "${ac_cv_search_putmsg+set}" = set; then
418 - ac_cv_search_putmsg=no
421 -LIBS=$ac_func_search_save_LIBS
423 -{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
424 -echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
425 -ac_res=$ac_cv_search_putmsg
426 -if test "$ac_res" != no; then
427 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
434 - pfopen=/usr/examples/packetfilter/pfopen.c
435 - if test -f $pfopen ; then
437 -for ac_func in pfopen
439 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
440 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
441 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
442 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
443 - echo $ECHO_N "(cached) $ECHO_C" >&6
445 - cat >conftest.$ac_ext <<_ACEOF
448 -cat confdefs.h >>conftest.$ac_ext
449 -cat >>conftest.$ac_ext <<_ACEOF
450 -/* end confdefs.h. */
451 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
452 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
453 -#define $ac_func innocuous_$ac_func
455 -/* System header to define __stub macros and hopefully few prototypes,
456 - which can conflict with char $ac_func (); below.
457 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
458 - <limits.h> exists even on freestanding compilers. */
461 -# include <limits.h>
463 -# include <assert.h>
468 -/* Override any GCC internal prototype to avoid an error.
469 - Use char because int might match the return type of a GCC
470 - builtin and then its argument prototype would still apply. */
475 -/* The GNU C library defines this for functions which it implements
476 - to always fail with ENOSYS. Some functions are actually named
477 - something starting with __ and the normal name is an alias. */
478 -#if defined __stub_$ac_func || defined __stub___$ac_func
490 -rm -f conftest.$ac_objext conftest$ac_exeext
491 -if { (ac_try="$ac_link"
493 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
494 - *) ac_try_echo=$ac_try;;
496 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
497 - (eval "$ac_link") 2>conftest.er1
499 - grep -v '^ *+' conftest.er1 >conftest.err
501 - cat conftest.err >&5
502 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
503 - (exit $ac_status); } && {
504 - test -z "$ac_c_werror_flag" ||
505 - test ! -s conftest.err
506 - } && test -s conftest$ac_exeext &&
507 - $as_test_x conftest$ac_exeext; then
508 - eval "$as_ac_var=yes"
510 - echo "$as_me: failed program was:" >&5
511 -sed 's/^/| /' conftest.$ac_ext >&5
513 - eval "$as_ac_var=no"
516 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
517 - conftest$ac_exeext conftest.$ac_ext
519 -ac_res=`eval echo '${'$as_ac_var'}'`
520 - { echo "$as_me:$LINENO: result: $ac_res" >&5
521 -echo "${ECHO_T}$ac_res" >&6; }
522 -if test `eval echo '${'$as_ac_var'}'` = yes; then
523 - cat >>confdefs.h <<_ACEOF
524 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
530 - if test $ac_cv_func_pfopen = "no" ; then
531 - { echo "$as_me:$LINENO: result: Using $pfopen" >&5
532 -echo "${ECHO_T}Using $pfopen" >&6; }
533 - LIBS="$LIBS $pfopen"
536 - { echo "$as_me:$LINENO: checking for local pcap library" >&5
537 -echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
540 - places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
541 - egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
542 - for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
543 - basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
544 - if test $lastdir = $basedir ; then
548 - if test -r $dir/libpcap.a ; then
549 - libpcap=$dir/libpcap.a
553 - if test $libpcap = FAIL ; then
554 - { echo "$as_me:$LINENO: result: not found" >&5
555 -echo "${ECHO_T}not found" >&6; }
556 - { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
557 +{ echo "$as_me:$LINENO: checking for main in -lpcap" >&5
558 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
559 if test "${ac_cv_lib_pcap_main+set}" = set; then
560 echo $ECHO_N "(cached) $ECHO_C" >&6
561 @@ -9354,646 +8839,14 @@ fi
562 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
563 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
564 if test $ac_cv_lib_pcap_main = yes; then
568 - if test $libpcap = FAIL ; then
569 - { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
570 -echo "$as_me: error: see the INSTALL doc for more info" >&2;}
571 - { (exit 1); exit 1; }; }
573 - { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
574 -echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
575 - if test \( ! -r /usr/local/include/pcap.h \) -a \
576 - \( ! -r /usr/include/pcap.h \); then
577 - if test -r /usr/local/include/pcap/pcap.h; then
578 - d="/usr/local/include/pcap"
579 - elif test -r /usr/include/pcap/pcap.h; then
580 - d="/usr/include/pcap"
583 - if test -z "$d" ; then
584 - { echo "$as_me:$LINENO: result: not found" >&5
585 -echo "${ECHO_T}not found" >&6; }
587 - V_INCLS="-I$d $V_INCLS"
588 - { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
589 -echo "${ECHO_T}found -- -I$d added" >&6; }
593 - places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
594 - egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
595 - if test -r $d/pcap.h; then
596 - V_INCLS="-I$d $V_INCLS"
597 - elif test -r $places/pcap.h; then
598 - V_INCLS="-I$places $V_INCLS"
600 - { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
601 -echo "$as_me: error: cannot find pcap.h" >&2;}
602 - { (exit see INSTALL); exit see INSTALL; }; }
604 - { echo "$as_me:$LINENO: result: $libpcap" >&5
605 -echo "${ECHO_T}$libpcap" >&6; }
607 - LIBS="$libpcap $LIBS"
611 - pseexe="/lib/pse.exp"
612 - { echo "$as_me:$LINENO: checking for $pseexe" >&5
613 -echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
614 - if test -f $pseexe ; then
615 - { echo "$as_me:$LINENO: result: yes" >&5
616 -echo "${ECHO_T}yes" >&6; }
617 - LIBS="$LIBS -I:$pseexe"
620 - # We need "-lodm" and "-lcfg", as libpcap requires them on
621 - # AIX, and we just build a static libpcap.a and thus can't
622 - # arrange that when you link with libpcap you automatically
623 - # link with those libraries.
625 - LIBS="$LIBS -lodm -lcfg"
629 - { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
630 -echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
631 -if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
632 - echo $ECHO_N "(cached) $ECHO_C" >&6
634 - cat >conftest.$ac_ext <<_ACEOF
637 -cat confdefs.h >>conftest.$ac_ext
638 -cat >>conftest.$ac_ext <<_ACEOF
639 -/* end confdefs.h. */
640 -/* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
641 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
642 -#define pcap_list_datalinks innocuous_pcap_list_datalinks
644 -/* System header to define __stub macros and hopefully few prototypes,
645 - which can conflict with char pcap_list_datalinks (); below.
646 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
647 - <limits.h> exists even on freestanding compilers. */
650 -# include <limits.h>
652 -# include <assert.h>
655 -#undef pcap_list_datalinks
657 -/* Override any GCC internal prototype to avoid an error.
658 - Use char because int might match the return type of a GCC
659 - builtin and then its argument prototype would still apply. */
663 -char pcap_list_datalinks ();
664 -/* The GNU C library defines this for functions which it implements
665 - to always fail with ENOSYS. Some functions are actually named
666 - something starting with __ and the normal name is an alias. */
667 -#if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
674 -return pcap_list_datalinks ();
679 -rm -f conftest.$ac_objext conftest$ac_exeext
680 -if { (ac_try="$ac_link"
682 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
683 - *) ac_try_echo=$ac_try;;
685 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
686 - (eval "$ac_link") 2>conftest.er1
688 - grep -v '^ *+' conftest.er1 >conftest.err
690 - cat conftest.err >&5
691 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
692 - (exit $ac_status); } && {
693 - test -z "$ac_c_werror_flag" ||
694 - test ! -s conftest.err
695 - } && test -s conftest$ac_exeext &&
696 - $as_test_x conftest$ac_exeext; then
697 - ac_cv_func_pcap_list_datalinks=yes
699 - echo "$as_me: failed program was:" >&5
700 -sed 's/^/| /' conftest.$ac_ext >&5
702 - ac_cv_func_pcap_list_datalinks=no
705 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
706 - conftest$ac_exeext conftest.$ac_ext
708 -{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
709 -echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
710 -if test $ac_cv_func_pcap_list_datalinks = yes; then
711 - cat >>confdefs.h <<\_ACEOF
712 -#define HAVE_PCAP_LIST_DATALINKS 1
717 - case " $LIBOBJS " in
718 - *" datalinks.$ac_objext "* ) ;;
719 - *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
726 - { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
727 -echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
728 -if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
729 - echo $ECHO_N "(cached) $ECHO_C" >&6
731 - cat >conftest.$ac_ext <<_ACEOF
734 -cat confdefs.h >>conftest.$ac_ext
735 -cat >>conftest.$ac_ext <<_ACEOF
736 -/* end confdefs.h. */
737 -/* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
738 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
739 -#define pcap_set_datalink innocuous_pcap_set_datalink
741 -/* System header to define __stub macros and hopefully few prototypes,
742 - which can conflict with char pcap_set_datalink (); below.
743 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
744 - <limits.h> exists even on freestanding compilers. */
747 -# include <limits.h>
749 -# include <assert.h>
752 -#undef pcap_set_datalink
754 -/* Override any GCC internal prototype to avoid an error.
755 - Use char because int might match the return type of a GCC
756 - builtin and then its argument prototype would still apply. */
760 -char pcap_set_datalink ();
761 -/* The GNU C library defines this for functions which it implements
762 - to always fail with ENOSYS. Some functions are actually named
763 - something starting with __ and the normal name is an alias. */
764 -#if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
771 -return pcap_set_datalink ();
776 -rm -f conftest.$ac_objext conftest$ac_exeext
777 -if { (ac_try="$ac_link"
779 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
780 - *) ac_try_echo=$ac_try;;
782 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
783 - (eval "$ac_link") 2>conftest.er1
785 - grep -v '^ *+' conftest.er1 >conftest.err
787 - cat conftest.err >&5
788 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
789 - (exit $ac_status); } && {
790 - test -z "$ac_c_werror_flag" ||
791 - test ! -s conftest.err
792 - } && test -s conftest$ac_exeext &&
793 - $as_test_x conftest$ac_exeext; then
794 - ac_cv_func_pcap_set_datalink=yes
796 - echo "$as_me: failed program was:" >&5
797 -sed 's/^/| /' conftest.$ac_ext >&5
799 - ac_cv_func_pcap_set_datalink=no
802 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
803 - conftest$ac_exeext conftest.$ac_ext
805 -{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
806 -echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
807 -if test $ac_cv_func_pcap_set_datalink = yes; then
808 - cat >>confdefs.h <<\_ACEOF
809 -#define HAVE_PCAP_SET_DATALINK 1
814 - { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
815 -echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
816 -if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
817 - echo $ECHO_N "(cached) $ECHO_C" >&6
819 - cat >conftest.$ac_ext <<_ACEOF
822 -cat confdefs.h >>conftest.$ac_ext
823 -cat >>conftest.$ac_ext <<_ACEOF
824 -/* end confdefs.h. */
825 -/* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
826 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
827 -#define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
829 -/* System header to define __stub macros and hopefully few prototypes,
830 - which can conflict with char pcap_datalink_name_to_val (); below.
831 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
832 - <limits.h> exists even on freestanding compilers. */
835 -# include <limits.h>
837 -# include <assert.h>
840 -#undef pcap_datalink_name_to_val
842 -/* Override any GCC internal prototype to avoid an error.
843 - Use char because int might match the return type of a GCC
844 - builtin and then its argument prototype would still apply. */
848 -char pcap_datalink_name_to_val ();
849 -/* The GNU C library defines this for functions which it implements
850 - to always fail with ENOSYS. Some functions are actually named
851 - something starting with __ and the normal name is an alias. */
852 -#if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
859 -return pcap_datalink_name_to_val ();
864 -rm -f conftest.$ac_objext conftest$ac_exeext
865 -if { (ac_try="$ac_link"
867 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
868 - *) ac_try_echo=$ac_try;;
870 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
871 - (eval "$ac_link") 2>conftest.er1
873 - grep -v '^ *+' conftest.er1 >conftest.err
875 - cat conftest.err >&5
876 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
877 - (exit $ac_status); } && {
878 - test -z "$ac_c_werror_flag" ||
879 - test ! -s conftest.err
880 - } && test -s conftest$ac_exeext &&
881 - $as_test_x conftest$ac_exeext; then
882 - ac_cv_func_pcap_datalink_name_to_val=yes
884 - echo "$as_me: failed program was:" >&5
885 -sed 's/^/| /' conftest.$ac_ext >&5
887 - ac_cv_func_pcap_datalink_name_to_val=no
890 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
891 - conftest$ac_exeext conftest.$ac_ext
893 -{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
894 -echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
895 -if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
897 - cat >>confdefs.h <<\_ACEOF
898 -#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
901 - { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
902 -echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
903 -if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
904 - echo $ECHO_N "(cached) $ECHO_C" >&6
906 - cat >conftest.$ac_ext <<_ACEOF
909 -cat confdefs.h >>conftest.$ac_ext
910 -cat >>conftest.$ac_ext <<_ACEOF
911 -/* end confdefs.h. */
912 -/* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
913 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
914 -#define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
916 -/* System header to define __stub macros and hopefully few prototypes,
917 - which can conflict with char pcap_datalink_val_to_description (); below.
918 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
919 - <limits.h> exists even on freestanding compilers. */
922 -# include <limits.h>
924 -# include <assert.h>
927 -#undef pcap_datalink_val_to_description
929 -/* Override any GCC internal prototype to avoid an error.
930 - Use char because int might match the return type of a GCC
931 - builtin and then its argument prototype would still apply. */
935 -char pcap_datalink_val_to_description ();
936 -/* The GNU C library defines this for functions which it implements
937 - to always fail with ENOSYS. Some functions are actually named
938 - something starting with __ and the normal name is an alias. */
939 -#if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
946 -return pcap_datalink_val_to_description ();
951 -rm -f conftest.$ac_objext conftest$ac_exeext
952 -if { (ac_try="$ac_link"
954 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
955 - *) ac_try_echo=$ac_try;;
957 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
958 - (eval "$ac_link") 2>conftest.er1
960 - grep -v '^ *+' conftest.er1 >conftest.err
962 - cat conftest.err >&5
963 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
964 - (exit $ac_status); } && {
965 - test -z "$ac_c_werror_flag" ||
966 - test ! -s conftest.err
967 - } && test -s conftest$ac_exeext &&
968 - $as_test_x conftest$ac_exeext; then
969 - ac_cv_func_pcap_datalink_val_to_description=yes
971 - echo "$as_me: failed program was:" >&5
972 -sed 's/^/| /' conftest.$ac_ext >&5
974 - ac_cv_func_pcap_datalink_val_to_description=no
977 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
978 - conftest$ac_exeext conftest.$ac_ext
980 -{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
981 -echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
982 -if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
983 - cat >>confdefs.h <<\_ACEOF
984 -#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
989 - case " $LIBOBJS " in
990 - *" dlnames.$ac_objext "* ) ;;
991 - *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
1001 - case " $LIBOBJS " in
1002 - *" dlnames.$ac_objext "* ) ;;
1003 - *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
1012 -for ac_func in pcap_breakloop
1014 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1015 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
1016 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
1017 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1018 - echo $ECHO_N "(cached) $ECHO_C" >&6
1020 - cat >conftest.$ac_ext <<_ACEOF
1023 -cat confdefs.h >>conftest.$ac_ext
1024 -cat >>conftest.$ac_ext <<_ACEOF
1025 -/* end confdefs.h. */
1026 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1027 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
1028 -#define $ac_func innocuous_$ac_func
1030 -/* System header to define __stub macros and hopefully few prototypes,
1031 - which can conflict with char $ac_func (); below.
1032 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1033 - <limits.h> exists even on freestanding compilers. */
1036 -# include <limits.h>
1038 -# include <assert.h>
1043 -/* Override any GCC internal prototype to avoid an error.
1044 - Use char because int might match the return type of a GCC
1045 - builtin and then its argument prototype would still apply. */
1050 -/* The GNU C library defines this for functions which it implements
1051 - to always fail with ENOSYS. Some functions are actually named
1052 - something starting with __ and the normal name is an alias. */
1053 -#if defined __stub_$ac_func || defined __stub___$ac_func
1060 -return $ac_func ();
1065 -rm -f conftest.$ac_objext conftest$ac_exeext
1066 -if { (ac_try="$ac_link"
1067 -case "(($ac_try" in
1068 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1069 - *) ac_try_echo=$ac_try;;
1071 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1072 - (eval "$ac_link") 2>conftest.er1
1074 - grep -v '^ *+' conftest.er1 >conftest.err
1075 - rm -f conftest.er1
1076 - cat conftest.err >&5
1077 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1078 - (exit $ac_status); } && {
1079 - test -z "$ac_c_werror_flag" ||
1080 - test ! -s conftest.err
1081 - } && test -s conftest$ac_exeext &&
1082 - $as_test_x conftest$ac_exeext; then
1083 - eval "$as_ac_var=yes"
1085 - echo "$as_me: failed program was:" >&5
1086 -sed 's/^/| /' conftest.$ac_ext >&5
1088 - eval "$as_ac_var=no"
1091 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1092 - conftest$ac_exeext conftest.$ac_ext
1094 -ac_res=`eval echo '${'$as_ac_var'}'`
1095 - { echo "$as_me:$LINENO: result: $ac_res" >&5
1096 -echo "${ECHO_T}$ac_res" >&6; }
1097 -if test `eval echo '${'$as_ac_var'}'` = yes; then
1098 cat >>confdefs.h <<_ACEOF
1099 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1106 - { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
1107 -echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
1108 -if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
1109 - echo $ECHO_N "(cached) $ECHO_C" >&6
1111 - cat >conftest.$ac_ext <<_ACEOF
1114 -cat confdefs.h >>conftest.$ac_ext
1115 -cat >>conftest.$ac_ext <<_ACEOF
1116 -/* end confdefs.h. */
1117 -/* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
1118 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
1119 -#define pcap_dump_ftell innocuous_pcap_dump_ftell
1121 -/* System header to define __stub macros and hopefully few prototypes,
1122 - which can conflict with char pcap_dump_ftell (); below.
1123 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1124 - <limits.h> exists even on freestanding compilers. */
1127 -# include <limits.h>
1129 -# include <assert.h>
1132 -#undef pcap_dump_ftell
1134 -/* Override any GCC internal prototype to avoid an error.
1135 - Use char because int might match the return type of a GCC
1136 - builtin and then its argument prototype would still apply. */
1140 -char pcap_dump_ftell ();
1141 -/* The GNU C library defines this for functions which it implements
1142 - to always fail with ENOSYS. Some functions are actually named
1143 - something starting with __ and the normal name is an alias. */
1144 -#if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
1151 -return pcap_dump_ftell ();
1156 -rm -f conftest.$ac_objext conftest$ac_exeext
1157 -if { (ac_try="$ac_link"
1158 -case "(($ac_try" in
1159 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1160 - *) ac_try_echo=$ac_try;;
1162 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1163 - (eval "$ac_link") 2>conftest.er1
1165 - grep -v '^ *+' conftest.er1 >conftest.err
1166 - rm -f conftest.er1
1167 - cat conftest.err >&5
1168 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1169 - (exit $ac_status); } && {
1170 - test -z "$ac_c_werror_flag" ||
1171 - test ! -s conftest.err
1172 - } && test -s conftest$ac_exeext &&
1173 - $as_test_x conftest$ac_exeext; then
1174 - ac_cv_func_pcap_dump_ftell=yes
1176 - echo "$as_me: failed program was:" >&5
1177 -sed 's/^/| /' conftest.$ac_ext >&5
1179 - ac_cv_func_pcap_dump_ftell=no
1182 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1183 - conftest$ac_exeext conftest.$ac_ext
1185 -{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
1186 -echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
1187 -if test $ac_cv_func_pcap_dump_ftell = yes; then
1188 - cat >>confdefs.h <<\_ACEOF
1189 -#define HAVE_PCAP_DUMP_FTELL 1
1190 +#define HAVE_LIBPCAP 1
1195 - case " $LIBOBJS " in
1196 - *" pcap_dump_ftell.$ac_objext "* ) ;;
1197 - *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
1201 + LIBS="-lpcap $LIBS"
1208 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
1209 # libraries (e.g., "-lsocket -lnsl" on Solaris).
1210 diff -rdup tcpdump-3.9.8.orig/configure.in tcpdump-3.9.8/configure.in
1211 --- tcpdump-3.9.8.orig/configure.in 2007-09-26 04:08:25.000000000 +0200
1212 +++ tcpdump-3.9.8/configure.in 2008-01-21 13:02:03.000000000 +0100
1213 @@ -539,8 +539,8 @@ AC_SEARCH_LIBS(getrpcbynumber, nsl, AC_D
1214 dnl AC_CHECK_LIB(z, uncompress)
1215 dnl AC_CHECK_HEADERS(zlib.h)
1217 -AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS)
1219 +dnl AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS)
1220 +AC_CHECK_LIB(pcap, main)
1222 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
1223 # libraries (e.g., "-lsocket -lnsl" on Solaris).