switch enable-sniffer w/o libpcap to error out again
This commit is contained in:
parent
b41d09b1a2
commit
e5b0000ee4
16
configure.ac
16
configure.ac
@ -311,14 +311,14 @@ fi
|
|||||||
|
|
||||||
# SNIFFER
|
# SNIFFER
|
||||||
AC_ARG_ENABLE([sniffer],
|
AC_ARG_ENABLE([sniffer],
|
||||||
[AS_HELP_STRING([--enable-sniffer],[ Enable CyaSSL sniffer support (default: disabled) ])],[
|
[AS_HELP_STRING([--enable-sniffer],[ Enable CyaSSL sniffer support (default: disabled) ])],[
|
||||||
AS_IF([ test "x$enableval" = "xyes" ],[ AC_CHECK_HEADERS([pcap/pcap.h],[
|
AS_IF([ test "x$enableval" = "xyes" ],[ AC_CHECK_HEADERS([pcap/pcap.h],[
|
||||||
ENABLED_SNIFFER=yes
|
ENABLED_SNIFFER=yes
|
||||||
AM_CFLAGS="$AM_CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
|
||||||
],[ ENABLED_SNIFFER=no ]) ])
|
],[ AC_MSG_ERROR([cannot enable sniffer without having libpcap available.]) ]) ])
|
||||||
],[
|
],[
|
||||||
ENABLED_SNIFFER=no
|
ENABLED_SNIFFER=no
|
||||||
])
|
])
|
||||||
|
|
||||||
AM_CONDITIONAL([BUILD_SNIFFER], [ test "x$ENABLED_SNIFFER" = "xyes" ])
|
AM_CONDITIONAL([BUILD_SNIFFER], [ test "x$ENABLED_SNIFFER" = "xyes" ])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user