Warn if --enable-wifi is set but libpcap is not available.

This commit is contained in:
riccardom 2010-04-20 18:58:38 +00:00
parent 42f9017627
commit cb6f0c0dfd
1 changed files with 2 additions and 2 deletions

View File

@ -264,8 +264,8 @@ AC_ARG_ENABLE(wifi,
[
AC_CHECK_LIB(pcap, main,[
AC_DEFINE(EXPERIMENTAL_WIFI_COMM)
LIBS="$LIBS -lpcap"
])
LIBS="$LIBS -lpcap"],
[AC_MSG_WARN([pcap library not found, wifi will not work])])
])
dnl Set compiler library flags per target.