Add enable-wifi switch and proper check for pcap

This commit is contained in:
riccardom 2009-06-19 22:42:41 +00:00
parent e89c997958
commit 1f0cadcfe8
1 changed files with 10 additions and 0 deletions

View File

@ -176,6 +176,16 @@ if test "x$HAVE_SDL" = "xyes"; then
fi
fi
dnl - wifi support
AC_ARG_ENABLE(wifi,
[AC_HELP_STRING(--enable-wifi, enable experimental wifi support)],
[
AC_CHECK_LIB(pcap, main,[
AC_DEFINE(EXPERIMENTAL_WIFI)
LIBS="$LIBS -lpcap"
])
])
dnl Set compiler library flags per target.
case $target in
*linux* | *bsd*)