]> The Tcpdump Group git mirrors - tcpdump/commit
Use pkg-config if we can. Clean up some CMake stuff.
authorGuy Harris <[email protected]>
Fri, 26 Apr 2019 20:15:39 +0000 (13:15 -0700)
committerGuy Harris <[email protected]>
Fri, 26 Apr 2019 20:15:39 +0000 (13:15 -0700)
commit45a4d4292cf103bf13165441663c5800da1f01fa
tree1b09f8dc119d74379e1154619cd6d41a8489cef4
parent7f260fa85e82f3921c1ef45d805f35360f124eec
Use pkg-config if we can.  Clean up some CMake stuff.

If we have pkg-config, *and* it has .pc files for libpcap, use it to get
the C compiler flags and linker flags for libpcap.

find_library() sets a cache variable; when we're looping over libraries,
trying to find their full paths, we really want the variable to act as a
local variable, as we're looking up different libraries, so unset it
after we're finished processing a particular library.

When we're searching for static libraries, save the current value of
CMAKE_FIND_LIBRARY_SUFFIXES, set it to ".a", and then restore it when
we're done.  Don't use cmake_push_check_state() for that, as
CMAKE_FIND_LIBRARY_SUFFIXES is *not* one of the variables that it's
guaranteed to save and restore.
aclocal.m4
cmake/Modules/FindPCAP.cmake
configure