build: allow dhcpcd versions higher than 5

No reason to exclude them, just that configure.ac hasn't tracked new
versions of dhcpcd.
This commit is contained in:
Dan Williams
2013-07-19 13:32:44 -05:00
parent c370c04fee
commit 89512ec5c4

View File

@@ -506,8 +506,8 @@ fi
if test "$with_dhcpcd" = "yes"; then
AC_PATH_PROGS(with_dhcpcd, dhcpcd, no, /sbin:/usr/sbin:/usr/local/sbin)
if test "$with_dhcpcd" != "no"; then
if ! $with_dhcpcd --version 2>&1 | grep -q "^dhcpcd [[45]]\."; then
AC_MSG_WARN([Cannot use dhcpcd, version 4.x or 5.x is required])
if ! $with_dhcpcd --version 2>&1 | grep -q "^dhcpcd [[456789]]\."; then
AC_MSG_WARN([Cannot use dhcpcd, version 4.x or higher is required])
with_dhcpcd=no
fi
fi