X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=configure.in;fp=configure.in;h=f6bb58b4b029df2fa779fab4426b5f73170d63ac;hp=63402f2afb97a11d51cd2b9195f46e42503e32ad;hb=0eff156c7816507fa1865b76e948574dd320fae0;hpb=19808b4489b7e096fe4b53446f33d917f0e16438 diff --git a/configure.in b/configure.in index 63402f2a..f6bb58b4 100644 --- a/configure.in +++ b/configure.in @@ -2760,19 +2760,13 @@ then fi if test "x$with_libpcap" = "xyes" then - AC_CHECK_HEADERS(pcap.h, - [ - AC_DEFINE(HAVE_PCAP_H, 1, [Define to 1 if you have the header file.]) - ], [with_libpcap="no (pcap.h not found)"]) + AC_CHECK_HEADERS(pcap.h,, + [with_libpcap="no (pcap.h not found)"]) fi if test "x$with_libpcap" = "xyes" then - collect_libpcap=1 -else - collect_libpcap=0 + AC_CHECK_HEADERS(pcap-bpf.h) fi -AC_DEFINE_UNQUOTED(COLLECT_LIBPCAP, [$collect_libpcap], - [Wether or not to use the pcap library]) AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes") # }}}