switch enable-sniffer w/o libpcap to error out again

This commit is contained in:
toddouska 2013-12-11 14:59:46 -08:00
parent b41d09b1a2
commit e5b0000ee4

View File

@ -315,7 +315,7 @@ AC_ARG_ENABLE([sniffer],
AS_IF([ test "x$enableval" = "xyes" ],[ AC_CHECK_HEADERS([pcap/pcap.h],[
ENABLED_SNIFFER=yes
AM_CFLAGS="$AM_CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
],[ ENABLED_SNIFFER=no ]) ])
],[ AC_MSG_ERROR([cannot enable sniffer without having libpcap available.]) ]) ])
],[
ENABLED_SNIFFER=no
])