diff options
author | Eric Leblond <eric@regit.org> | 2011-09-01 17:07:46 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-09-01 17:07:46 +0200 |
commit | ddabb5ea471d86f23a6d2fd7585340e934635255 (patch) | |
tree | 9c11b27f64fd2ddaf9205a0b283a64653aabfd5f | |
parent | f06e97c1ea01f4effba173dce0e854fb8d078221 (diff) |
pcap: fix build on some recent x86_64 platform
Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
-rw-r--r-- | acinclude.m4 | 3 | ||||
-rw-r--r-- | 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) |