netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Leblond <eric@regit.org>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org, Eric Leblond <eric@regit.org>
Subject: [PATCH 1/2] pcap: fix build on some recent x86_64 platform.
Date: Mon, 29 Aug 2011 00:43:31 +0200	[thread overview]
Message-ID: <1314571412-9707-2-git-send-email-eric@regit.org> (raw)
In-Reply-To: <1314571412-9707-1-git-send-email-eric@regit.org>

---
 acinclude.m4 |    3 ++-
 configure.ac |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

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)
-- 
1.7.5.4


  reply	other threads:[~2011-08-28 23:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-28 22:43 [PATCH 0/2] ulogd: minor fix and improvement Eric Leblond
2011-08-28 22:43 ` Eric Leblond [this message]
2011-09-01 15:08   ` [PATCH 1/2] pcap: fix build on some recent x86_64 platform Pablo Neira Ayuso
2011-08-28 22:43 ` [PATCH 2/2] pcap: add file option to configuration file Eric Leblond
2011-09-01 15:09   ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1314571412-9707-2-git-send-email-eric@regit.org \
    --to=eric@regit.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).