Check upnp version

This commit is contained in:
Yann Diorcet 2013-03-15 14:16:23 +01:00
parent 2566366990
commit aefc883656
2 changed files with 7 additions and 2 deletions

View file

@ -183,7 +183,12 @@ AC_ARG_ENABLE(upnp,
)
if test "$build_upnp" != "false" ; then
PKG_CHECK_MODULES([LIBUPNP], [libupnp], [build_upnp=true],
PKG_CHECK_MODULES([LIBUPNP], [libupnp],
[if pkg-config --atleast-version=1.6 "libupnp < 1.7"; then
build_upnp=true
else
AC_MSG_ERROR([libupnp >= 1.6 < 1.5 required.])
fi],
[if test "$build_upnp" == "true" ; then
AC_MSG_ERROR([libupnp not found.])
else

@ -1 +1 @@
Subproject commit d1d3e1af51ab26ecb9808d6f83629e661c67af5f
Subproject commit f223705f2853e62f0fb5340b994cd40665b9e854