diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-11-30 16:13:05 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-11-30 16:13:05 -0800 |
commit | 316d5087cc80d30a5bd10ba9eebd4634d15a171d (patch) | |
tree | 7777659289addd80c328079e57b2a6be8996267c /aclocal.m4 | |
parent | 71894d1a627491b037993e06cd115bf706b4a610 (diff) | |
download | tcpdump-316d5087cc80d30a5bd10ba9eebd4634d15a171d.tar.gz |
Use AC_PATH_TOOL, not AC_PATH_PROG, to find pcap-config.
The PROG variant does not take into consideration cross-compilation, so
it always looks for "pcap-config" which finds the host script. So use
the TOOL variant instead which first searches for the cross-prefixed
pcap-config before falling back to the bare "pcap-config".
Reviewed-By: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -309,7 +309,7 @@ AC_DEFUN(AC_LBL_LIBPCAP, # # Look for pcap-config. # - AC_PATH_PROG(PCAP_CONFIG, pcap-config) + AC_PATH_TOOL(PCAP_CONFIG, pcap-config) if test -n "$PCAP_CONFIG" ; then # # Found - use it to get the include flags for |