From: Eric Leblond Date: Thu, 1 Sep 2011 15:07:46 +0000 (+0200) Subject: pcap: fix build on some recent x86_64 platform X-Git-Tag: ulogd-2.0.0~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddabb5ea471d86f23a6d2fd7585340e934635255;p=thirdparty%2Fulogd2.git pcap: fix build on some recent x86_64 platform Signed-off-by: Eric Leblond Signed-off-by: Pablo Neira Ayuso --- diff --git a/acinclude.m4 b/acinclude.m4 index 9a8e1ae..56d47b8 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -218,6 +218,7 @@ AC_ARG_WITH(pcap-lib, AC_SUBST(PCAP_INC) AC_SUBST(PCAP_LIB) +AC_SUBST(HAVE_PCAP_LIB) if test "$pcap_prefix" != "no"; then @@ -261,7 +262,7 @@ if test "$PCAP_INC" = "" ; then AC_CHECK_HEADER([pcap.h], [], AC_MSG_WARN(pcap.h not found)) fi if test "$PCAP_LIB" = "" ; then - AC_CHECK_LIB(pcap, pcap_close, [], AC_MSG_WARN(libpcap.so not found)) + AC_CHECK_LIB(pcap, pcap_close, [HAVE_PCAP_LIB="yes"], AC_MSG_WARN(libpcap.so not found)) fi fi diff --git a/configure.ac b/configure.ac index f835707..e8f8427 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,7 @@ CT_CHECK_DBI() AM_CONDITIONAL(HAVE_DBI, test "x$DBI_LIB" != "x") CT_CHECK_PCAP() -AM_CONDITIONAL(HAVE_PCAP, test "x$PCAP_LIB" != "x") +AM_CONDITIONAL(HAVE_PCAP, test "x$HAVE_PCAP_LIB" != "x") dnl AC_SUBST(DATABASE_DIR)