(Same as in tcpdump.)
Before:
checking for pcap-config... ../libpcap/pcap-config
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
checking for pcap_loop... no
configure: error: This is a bug, please follow...
After:
checking for pcap-config... ../libpcap/pcap-config
checking for pcap_loop... yes
- Do the version number the same way as in tcpdump and libpcap.
- Lose unused missing/strlcpy.c.
- Use posix_fadvise() on input files if available.
+- Fix --static-pcap-only test on Solaris 10.
v1.6 Thu 20 Oct 21:22:28 BST 2022
# statically linked, and provide only the direct
# dependencies with --static-pcap-only.
#
- if grep -s -q "static-pcap-only" "$PCAP_CONFIG"
+ if grep "static-pcap-only" "$PCAP_CONFIG" >/dev/null 2>&1
then
static_opt="--static-pcap-only"
else