]> The Tcpdump Group git mirrors - libpcap/commit
Don't test for capture devices, test for header files.
authorGuy Harris <[email protected]>
Fri, 15 Sep 2017 12:14:10 +0000 (05:14 -0700)
committerGuy Harris <[email protected]>
Fri, 15 Sep 2017 12:14:10 +0000 (05:14 -0700)
commit6865dc7308d5b9a8e5308e6fa7f6ec64695fc15e
treeaff54eb80cc5f21bb8c2be757b5e7f350dd6a132
parent90bea1316ebbd60ffbff586d39090f67d5dc3365
Don't test for capture devices, test for header files.

Testing for /dev/bpf or /dev/bpfN in CMake requires that they be
readable.  Test for various header files required by various pcap-XXX.c
files, and use that to determine what the capture mechanism for the
host platform is.

Don't look for headers by absolute path, as that could get in the way of
cross-development (if any cross-development where the build machine and
the host machine are running different OSes works).

This means we have to determine whether we have a cloning BPF device at
run time; do so.
CMakeLists.txt
config.h.in
configure
configure.ac
pcap-bpf.c