Error out if the user asked us to install dumpcap with a particular group but
we are not building dumpcap.

svn path=/trunk/; revision=37208
This commit is contained in:
Jeff Morriss 2011-05-17 19:59:18 +00:00
parent a385b7c9f3
commit 99a76aca46
1 changed files with 3 additions and 0 deletions

View File

@ -1460,6 +1460,9 @@ AC_ARG_WITH(dumpcap-group,
if test "x$withval" = "xyes"; then
AC_MSG_ERROR([No dumpcap group specified.])
elif test "x$withval" != "xno"; then
if test "x$enable_dumpcap" = "xno" ; then
AC_MSG_ERROR(dumpcap group install works only with dumpcap but dumpcap is disabled)
fi
AC_MSG_RESULT($withval)
DUMPCAP_GROUP="$withval"
fi