From: Paul Mackerras Date: Mon, 1 Nov 2004 03:49:20 +0000 (+0000) Subject: Only compile in filtering if /usr/include/pcap-bpf.h exists. X-Git-Tag: ppp-2.4.7~215 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=3238ea487539f57ee027fb2898ec0d3c4dbd0139 Only compile in filtering if /usr/include/pcap-bpf.h exists. --- diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index cfa2d1a..aaf5c31 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.64 2004/10/31 22:09:03 paulus Exp $ +# $Id: Makefile.linux,v 1.65 2004/11/01 03:49:20 paulus Exp $ # # Default installation locations @@ -171,9 +171,11 @@ LIBS += -ldl endif ifdef FILTER +ifneq ($(wildcard /usr/include/pcap-bpf.h),) LIBS += -lpcap CFLAGS += -DPPP_FILTER endif +endif ifdef HAVE_INET6 PPPDSRCS += ipv6cp.c eui64.c